Commit Graph
35 Commits
Author SHA1 Message Date
Mustachedom 3947eb6cd5 - gutted utilities to only have a couple useful functions
- `removed` second object spawner
- `edit` more lib conversions
2026-08-18 01:23:06 -07:00
Mustachedom 07530a8662 - remove locales module 2026-08-18 00:02:04 -07:00
MrNewb 60df8b8d6c Update utility.lua 2026-08-14 19:10:26 -04:00
MrNewb 48f8122197 Remove cache and batch event libraries, update locales
Deleted the cache and batch event libraries from the codebase, including all related client, server, and shared files. Removed server-side particle library and associated client event handlers. Updated utility and clothing modules to remove cache dependencies. Improved utility logging and deprecated point functions with notices. Updated all locales to use a consistent 'PurchasedItem' message format and added Bulgarian (bg) translation. Bumped version to 0.13.1 in fxmanifest.
2025-12-23 19:27:27 -05:00
MrNewb 343af95794 Remove example scripts and update core logic
Deleted all files in the examples directory to clean up unused or test scripts. Updated fxmanifest.lua to enable ox_lib initialization. Improved error handling and entity tracking in utility functions, added prop removal, and made minor localization and code style adjustments throughout the codebase. Significant reword of inventory module, notification module, and framework module. Added support for wasabi_uikit, added support for keep-progressbars,
2025-12-14 16:22:35 -05:00
Mr.Crowley a1901fc400 Bux fixes and cleanup
placeable_objects cleaned up white space and removed commented out code

points: issue with teleporting outside of a cell. Does not fire onremove event functions. Fixed

utility: Implemented fix for special characters for blips.

dialogue: upped wait time on close. This allows use to reopen the menu right away without firing the animation to close
2025-11-14 18:36:35 -06:00
Mr.Crowley e7de2972fd Add client/server entity examples and improve 3D help text
Added new example scripts for client and server entity creation, demonstrating features like clothing, particles, scenarios, and targets. Enhanced Utility.Draw3DHelpText to support multi-line text and improved background rendering for better readability.
2025-09-10 10:45:10 -05:00
Mr.Crowley 2da3fed196 following convention for blips
switched to follow naming convention for others
2025-08-22 03:33:42 -05:00
Mr.Crowley 4e313c40cb Update to utility for blip
added .CreateBlipRadius which makes a circular blip with some radius in meters
2025-08-22 03:27:03 -05:00
Mr.Crowley d0d72bdba5 here we go again 2025-08-21 00:09:54 -05:00
Mr.Crowley cdeba0652d Community Feedback on cache
serverid in cache is pointless and will never change

unit tests are not actually unit tests so i renamed to examples.
2025-08-18 18:32:38 -05:00
MrNewb defc7c0e8b blip tweak 2025-08-16 01:03:45 -04:00
Mr.Crowley e11ef1242d tweaks 2025-08-12 19:23:15 -05:00
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