Commit Graph
22 Commits
Author SHA1 Message Date
MrNewb a63837bd1f Refactored model/anim checks, utility functions, and text rendering
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
2025-08-07 01:50:50 -04:00
MrNewb 88b4daa2e8 migrate cache.ped to PlayerPedId() 2025-07-28 01:37:52 -04:00
Mr.Crowley 2ad1f4669c small update
target got a print if onSelect or action are nil

also added groups in fixoptions for sleepless

client entities using return for loadmodel
2025-07-24 05:03:07 -05:00
gononono64 725a86ed8d placeable objects + small tweaks
skills booboo. This should do it (working properly now)
utility shortnames used for command buttons getter
en.json added placeable tags (was missing 1) NEEDS OTHER CONVERSIONS

Placer: Lots of stuff. Pass model and settings. Refer to .lua for setting params
2025-06-30 02:07:20 -05:00
MrNewb 9edcb229f3 patch 2025-06-10 06:13:19 -04:00
MrNewb 854ca2bd61 This is a holy grail of a find.
This will pull the currently bound key as a string from a command.
Use case - allow users to rebind keys for a command, this can then pull what they have bound as a string. Very useful for ui/helptext/notifications to display the correct key in use.

The codes messey but its because the special chars and is needed. We need this though sooooo yea.
2025-06-10 01:33:25 -04:00
MrNewb a32b138ad4 temp disable notify 2025-06-08 23:36:06 -04:00
MrNewb 01217efc5b Update utility.lua 2025-06-05 00:46:06 -04:00
MrNewb 38ce2e8f1e feat(GetClosestVehicle) -- Now ready 2025-05-29 11:00:24 -04:00
MrNewb 14ea4c6a31 Revert "feat(GetClosestVehicle)"
This reverts commit 59d22e9fa7.
2025-05-29 10:26:40 -04:00
MrNewb 59d22e9fa7 feat(GetClosestVehicle)
---Get the closest vehicle to given coordinates
---@param coords vector3|nil
---@param distanceScope number|nil
---@param includePlayerVeh boolean|nil
---@return number|nil, vector3|nil, number|nil
2025-05-28 09:37:29 -04:00
MrNewb 54437d9639 feat:Entity blips 2025-05-24 21:39:37 -04:00
gononono64 d4908042be Clothing and clipboard update
QBClothing and ESKSkin working. Need others (WIP)

Copy to clipboard now a utility function. Will json encode if ~= string
2025-05-24 18:03:31 -05:00
JericoFX 78bb1f8c05 Add utility functions for player data retrieval and enhance existing functions 2025-05-11 12:16:49 -03:00
Johann Kraus 1242d9ef7c Add GetPlayer functions to framework and New FUnctions to Utility 2025-05-09 23:06:01 -03:00
JericoFX a015e681b3 simple refractor with local functions 2025-05-05 15:04:11 -03:00
MrNewb f44d76c791 guards 2025-04-29 16:22:46 -04:00
MrNewb b41e214aed NO :P 2025-04-23 16:11:43 -04:00
gononono64 89858c6d73 Cache and entities update
added cache system similar to others that are readily available. Included beginings of reworked rebound entities
2025-04-23 14:10:19 -05:00
MrNewb 9ad8c6188c Drawtext for non target partial support 2025-04-07 14:33:05 -04:00
MrNewb 6bdee6ad91 Documentation, deprecated old points, removed incomplete clothing bridge.
Documentation added, deprecated old points, removed incomplete clothing bridge. I migrated the points into the new system and added deprecation notices. Cleaned some white spaces because they made me unhappy. Added GetStreetNameAtCoords as it may be useful to return a string for others. Added support for lb-tablet dispatch alerts (thank you loaf)
2025-04-02 07:27:13 -04:00
gononono64 8fd5de2d4e lib structure overhaul
restructured lib portion to match modules
also edited community bridges onplayerunload fire to accept the passed src as it was otherwise nil
2025-03-30 21:06:58 -05:00