131 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
PeppeSg a4a7c4927b Update server.lua
removed duplicates
2026-06-03 22:16:49 +02:00
PeppeSg 162598a3f9 Update server.lua
fixed a small careless error
2026-05-05 11:01:19 +02:00
PeppeSg fecbddd938 Update server.lua
Added missing command registration support for the Qbox framework module.

The ESX and QBCore framework modules already expose `Framework.Commands.Add`, but the Qbox module did not define `Framework.Commands`, causing resources that rely on the unified Community Bridge command API to fail on Qbox
2026-05-05 02:01:11 +02:00
MrNewb 8475f65ee5 Merge pull request #183 from Mustachedom/Framework_Dom_PR
- `add` Framework Functions
2026-02-11 03:06:59 -05:00
Mustache Dom bf98a38619 - add Framework Functions
- added `GetPlayerByIdentifier`
- added `GetPlayerSource`
2026-02-08 02:10:14 -07:00
Sinaps Dev f753b8ae97 fixed qbcore GetIsFrameworkAdmin method 2026-01-28 23:49:08 +01: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 61f4d05f0a Add descriptions to framework job count functions
Added @description annotations to all relevant functions and event handlers in both client and server framework modules for improved code documentation and clarity.
2025-10-19 22:21:22 -04:00
MrNewb 91e295947b Merge pull request #162 from solaire-fivem/qb-core-code-cleanup
Enforcing consistent annotations and fixing spelling mistakes
2025-10-05 18:56:23 -04:00
solaire-fivem 3ce3b7fe57 Enforcing consistent annotations and fixing spelling mistakes 2025-10-04 19:39:26 +01:00
ONyambura a4959882b3 FIX - QB-Core - Framework/Inventory - Item properties fix
QB-Core Framework.
Some inventories has item property `count` instead of `amount`.
+/- Added fallback to `count` if `amount` doesn't exists.
2025-09-26 19:02:30 +03: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 f4e5d9485f Refactor hunger and thirst retrieval methods
Simplified Framework.GetHunger and Framework.GetThirst functions in both qb-core and qbx_core by using Framework.GetPlayerMetaData instead of accessing player data directly. This improves code readability and consistency.
2025-09-10 11:29:42 -04:00
MrNewb 08c3d937d6 Round hunger and thirst values to nearest integer
Updated GetHunger and GetThirst functions to return rounded integer values using math.floor(value + 0.5) for consistency and to avoid floating point results.
2025-09-10 11:29:42 -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 943f86d47b Add nil check for player data in GetStatusData
Prevents errors by returning 0 if player data is unavailable when calling Framework.GetStatusData.
2025-09-10 11:29:42 -04:00
MrNewb cfd746d889 Refactor hunger and thirst retrieval logic
Introduced Framework.GetStatusData to centralize status lookup. Updated GetHunger and GetThirst to use the new function, improving code reuse and maintainability.
2025-09-10 11:29:41 -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 e9fa5a2891 Fix type annotation for job count function
Updated the type annotation for the 'tbl' parameter in Framework.GetJobCountTotal from 'any' to 'table' for improved clarity and correctness.
2025-09-01 02:31:14 -04:00
MrNewb 014dba1012 Add job count tracking to framework
Introduces job count tracking and retrieval functions to both client and server modules. The server now maintains and updates a global state of job counts, synchronizing changes to clients. Refactors job registration logic for accuracy and consistency, and adds utility functions for total job counts and player source retrieval.

This usage with the state may be a problem on initial start for highly populated servers as 200 players load in for example...
2025-08-31 22:49:31 -04: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
MrNewb b532e33fc7 Merge pull request #145 from solaire-fivem/solaire-improving-readability
ESX: Cleanup the client and server lua files in the framework module
2025-08-31 14:33:50 -04:00
solaire-fivem f5017792e3 es_extended framework code cleanup 2025-08-31 18:41:12 +01:00
solaire-fivem 48cba10ad2 fix minor typo, 'platerData' to 'playerData' 2025-08-22 22:08:41 +01:00
MrNewb fd3f62f288 playermetadata patch for qbx 2025-08-19 04:22:52 -04: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 a280606c3d feat Framework.GetIsPlayerLoaded, locale tweaks 2025-07-10 13:50:47 -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
MrNewb 61f3f09c19 ESX.Game.SetVehicleProperties fix 2025-06-12 08:24:12 -04:00
MrNewb 50f822bf20 oops ESX.Game.SetVehicleProperties 2025-06-12 07:47:06 -04:00
MrNewb 395629af17 GetAccountBalace (client) fixed for esx
This will return the players money by type, I recommend not using this as its the client and not secure or to be trusted.
Use case is for a ui or a menu I guess?
2025-06-12 06:49:41 -04:00
MrNewb ebdaf5be94 Merge pull request #115 from harbiyelidev/dev
fix(returns): Fixed errors in many operations in the ESX Framework be…
2025-06-12 06:18:39 -04:00
MrNewb 4da73dbc48 GetAccountBalance 2025-06-11 23:15:15 -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
MrNewb 33868c43c4 Get/Set vehicle props 2025-06-08 19:40:49 -04:00