Modified EnsureModelLoaded to skip validation and request loops if the model is already loaded
Condensed SafeAddBlip, SafeRemoveBlip, etc. into dedicated utility functions
Removed AddTextEntryOnce and SafeAddTextEntry — native existence checks were redundant
Replaced repetitive table inserts with keyed tables using tostring(number) to avoid unnecessary loops
Added HasAnimDictLoaded check to RequestAnimDict to prevent redundant request loops
Introduced FloatingHelpText in utilities (aesthetic improvement)
Updated DrawText: replaced outdated logic, switched 1 to true for clarity/preference
- Reinstated the original version checker to maintain compatibility.
- Reworked the export approach: the new export method and the legacy one are now split rather than merged.
- Patch‑note data is handled separately, as seen in the example structure at resources.json (e.g. https://github.com/MrNewb/patchnotes/blob/main/resources.json).
- Minimized variable passing by leveraging JSON template references directly, reducing redundancy.
this -- "nui://inventory_images/html/images/%s.png"
Is not the path, it its instead
nui://inventory_images/images/%s.png"
Also strip webp function added. And indexing itemdata was required.
- Added CompareVersions function for accurate semantic version comparison.
- Refactored patch notes fetching into fetchPatchNotes, supporting both GitHub and Tebex sources.
- Improved error handling for invalid repository formats and missing version metadata.
- Enhanced update notification logic to use latest GitHub release and display patch notes for newer versions.
- Now triggers version check on resource start using updated logic.
- Fully backwards compatible
targets now accept event
fixed a check for .action passed to ox fix options
input will now return in qbs format if qb is used (passed as true).. this makes converting qb resources infinitely simpler
Targets:
sphearzone should not take a heading, removed
optional debug at the end for individual debugging
Inventory:
Added OpenPlayerInventory for all inventories.
2 (aka codem and qs) did not have clear documentation. Probably doesnt work
All the this below should go in unit tests if we are to continue using them.
None of these were harmful but its a good thing to watch out for going forward.