64 Commits
Author SHA1 Message Date
Mustachedom d85a1300d5 - remove callback calls 2026-08-18 00:13:37 -07:00
Mustachedom d6cffd01bc - init changes 2026-08-17 03:49:37 -07:00
Mustache Dom bf98a38619 - add Framework Functions
- added `GetPlayerByIdentifier`
- added `GetPlayerSource`
2026-02-08 02:10:14 -07:00
Sinaps Dev 0f2e41d72f IsVehicleOwnedByPlayer method 2025-12-28 17:10:26 +01: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
MrNewb 90c65dc55e Add GetResourceName function to all modules
Introduces a standardized GetResourceName function to banking, clothing, dispatch, doorlock, framework, fuel, helptext, housing, and other modules. This function returns the name of the in-use resource, improving resource identification and interoperability across the codebase.
2025-09-10 12:27:12 -04:00
MrNewb 8bf02f6372 Fix hunger and thirst status retrieval
Changed Framework.GetHunger and Framework.GetThirst to fetch the 'status' instead of 'hunger' or 'thirst' directly. This ensures the functions correctly iterate over the status table to find the relevant values.
2025-09-10 11:29:42 -04:00
MrNewb aae3d540ff Update server.lua 2025-09-10 11:29:42 -04:00
MrNewb 87345fafce Add GetHunger and GetThirst functions to frameworks
Introduced GetHunger and GetThirst functions to client and server files for es_extended, qb-core, and qbx_core frameworks. These functions return the player's hunger and thirst values rounded to the nearest integer, improving consistency in status retrieval.
2025-09-10 11:29:41 -04:00
MrNewb 0186815079 Merge pull request #146 from solaire-fivem/fix-issue-with-the-GetHunger-and-GetThirst-server-sided-functions
Fix issue with GetThirst and GetHunger not working in ESX
2025-09-04 04:45:49 -04:00
Solaire 18ac3ce0ca Round the result 2025-09-03 22:58:17 +01:00
MrNewb facffe26c5 Merge pull request #148 from TheOrderFivem/JobCounts
Job counts
2025-09-03 01:25:02 -04:00
MrNewb 9c61f7967d Update callback module import paths
Changed all references from 'lib/utility/shared/callbacks.lua' to 'lib/callback/shared/callback.lua' in client and server files for framework, inventory, and phone modules to reflect new file structure or module location.

Commit#f900bc5 did not adjust these, correcting.
2025-09-01 17:05:34 -04:00
solaire-fivem 71cd1e0676 Fix issue with GetThirst and GetHunger not working in ESX 2025-09-01 14:22:03 +01:00
MrNewb 9fdb41e9f6 Add job count management on player events
Introduces event handlers to update job counts when players load, change jobs, or unload across multiple framework modules. Ensures job count tracking stays accurate by adding or removing counts based on player actions. (would like to update this to have some client event tables?)
2025-08-31 22:49:29 -04:00
solaire-fivem f5017792e3 es_extended framework code cleanup 2025-08-31 18:41:12 +01:00
MrNewb 9b2b7de2b4 fix job duty
Issue noticed by randomzz, pr did not use proper job.name so went ahead and corrected.
2025-08-17 02:32:07 -04:00
MrNewb b1556d13fb draft GetPlayerSourcesByJob 2025-08-07 00:47:51 -04:00
MrNewb 4d6958aa86 community_bridge:Server:OnPlayerJobChange
job change serverside event
2025-08-04 01:32:30 -04:00
MrNewb 58ab40d14e cachedItemList 2025-07-09 22:17:24 -04:00
MrNewb 33a9b6ba69 Framework.ItemList for esx and a catchall for qbox 2025-07-09 22:08:44 -04:00
MrNewb 5dc2321d67 Remove all uses of ox_lib callbacks in favor of internal option
This seems fine, Crowley created the callback system in bridge so will need review
2025-06-28 16:52:01 -04:00
MrNewb 854482094a small tweaks 2025-06-21 07:53:49 -04:00
No.1 63349d32a8 fix(returns): Fixed errors in many operations in the ESX Framework because there is no return 2025-06-11 21:03:19 +03:00
gononono64 34d24cb6a9 Targets, entities and events, oh my!
Targets updated to have boxzone
Entities dont require a model and are effectively points with on spawn on despawn
onplayerloaded and onplayeriunloaded now pass source
2025-06-02 22:19:42 -05:00
MrNewb 3a141cb8f2 GetIsFrameworkAdmin 2025-06-01 23:12:32 -04:00
MrNewb 7fc9ee4956 docs: refine framework notes, params, and return documentation 2025-05-30 03:21:32 -04:00
MrNewb 68e81b720a should resolve start order issues 2025-05-18 23:45:37 -04:00
MrNewb 6b660d8084 feat: GetPlayerJobData
return {
        jobName = jobData.name,
        jobLabel = jobData.label,
        gradeName = jobData.grade_name,
        gradeLabel = jobData.grade_label,
        gradeRank = jobData.grade,
        boss = isBoss,
        onDuty = jobData.onduty,
    }
2025-05-14 04:48:23 -04:00
MrNewb 99f82095d7 fuck 2025-05-13 01:06:52 -04:00
MrNewb 5e016afc25 fix sharedConfig load order 2025-05-11 20:18:46 -04:00
JericoFX 78bb1f8c05 Add utility functions for player data retrieval and enhance existing functions 2025-05-11 12:16:49 -03:00
MrNewb 7e0124f02e returns added everywhere per crowleys request 2025-05-10 00:01:56 -04:00
Johann Kraus 1242d9ef7c Add GetPlayer functions to framework and New FUnctions to Utility 2025-05-09 23:06:01 -03:00
gononono64 69edf6f6ab forgot qbox and did some cleanup 2025-05-09 20:09:57 -05:00
gononono64 38d0d5527a New features and cleanup
Added Networked Markers
Added Anim module
Added framework default file for things that are native to game related to player
Started on a batch network event trigger to allow for single event call for multiple events

Updated params notation for ids
Removed prints from client_entity + actions + ext
2025-05-09 19:06:50 -05:00
MrNewb 11114bf529 core_inventory compatibility
The current implementation isn’t the cleanest, but it gets the job done. I’ve had to rig parts of it together, and it hasn’t yet had a proper cleanup pass. This update adds support for core_inventory on both ESX and QB frameworks. Previously, the QB fallback worked fine, but an issue affecting ESX users was discovered.

To resolve this, a change was needed in how framework-registered usable items are handled—allowing us to pass the item’s ID as the slot when using core_inventory, while maintaining slot-based behavior otherwise. This approach ensures compatibility without requiring any modifications to other resources.

I've personally tested this on ESX, but since I haven’t been able to coordinate with the core_inventory team, QB Core users will essentially be the first wave of testers for this integration.
2025-05-06 14:39:29 -04:00
MrNewb 3e6bc0dd81 account type for qb format to esx 2025-05-05 10:45:00 -04:00
gononono64 3c96d6a2bc GetIsPlayerDead added
Added GetIsPlayerDead to framework serverside. Needs testing on esx and qbox
2025-05-02 03:13:07 -05:00
MrNewb 81ab66fbbf rumaier found a bug 2025-05-01 11:44:22 -04:00
MrNewb 5d3a9d1950 Get/SetPlayerDuty 2025-04-15 08:04:43 -04:00
MrNewb 01f7b385c1 comments + disable dup warning 2025-04-15 03:00:44 -04:00
MrNewb 870f440a1b GetPlayers added
while theres a native to do this, the purpose of this is using the framework methods, this will only return logged in players ie wont include people who are in multichar and still not logged in
2025-04-14 01:16:06 -04:00
MrNewb 8b59fe22aa get framework jobs
These are not the same format, will need touchups
2025-03-10 01:17:18 -04:00
gononono64 f713fe2254 skibbity
bibbity bop
2025-03-09 23:13:03 -05:00
MrNewb dee14600ba HasItem + partial support for shops 2025-03-07 04:08:40 -05:00
MrNewb b77fbeffa8 player/xplayer guards 2025-03-03 02:05:53 -05:00
MrNewb b03e83933f feat(Framework.GetPlayerDob)
available now on supported cores near you!
2025-02-26 01:34:47 -05:00
MrNewb fc7fd01d5f stuff 2025-02-10 02:02:33 -05:00