Commit Graph
100 Commits
Author SHA1 Message Date
MrNewb 5b7e7bb06e Merge pull request #149 from TheOrderFivem/crowleys-branch
Crowleys branch
2025-09-04 22:32: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
MrNewb facffe26c5 Merge pull request #148 from TheOrderFivem/JobCounts
Job counts
2025-09-03 01:25:02 -04:00
MrNewb 209d257f1c Merge pull request #147 from TheOrderFivem/loggs
Loggs
2025-09-03 01:13:43 -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
MrNewb 63d2f675f6 Buffer and batch Discord log messages
Introduces a queue and timer to batch log messages before sending them to Discord, reducing the number of HTTP requests. Refactors the built-in log handler to use the new queuing system and improves code consistency. Looks gross but works.
2025-09-01 03:33:29 -04: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 7f14eef82b Refactor logging system and centralize config
Reworked the logging system to use a unified handler approach supporting built-in, qb, ox_lib, and Fivemerr log systems. Deprecated Logs.Send and Logs.Notify in favor of Logs.CreateLog. Centralized all logging configuration options in serverConfig.lua for easier management and extensibility.
2025-09-01 02:29:15 -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
MrNewb c0e8b7e447 Merge pull request #144 from TheOrderFivem/crowleys-branch
prep for behaviors
2025-08-31 03:12:26 -04:00
MrNewb 26bd9e1cad Update server_entity.lua 2025-08-30 03:43:01 -04:00
MrNewb a435a4a75c Restore stash registration return values
Reverts stash registration to return a boolean and id, undoing a breaking change from commit #e06e04a. This restores compatibility with multiple resources and inventories that rely on the previous behavior. Also returning a success status on registration has many uses.
2025-08-29 23:53:44 -04:00
MrNewb 9062e5b2a8 Restore shop opening logic to pre-e06e04a behavior
Reverts breaking changes from commit #e06e04a by restoring the previous shop opening logic. This fixes compatibility issues with multiple resources that were affected by the change.
2025-08-29 23:49:59 -04:00
MrNewb ac9f0ae777 Restore legacy shop logic
Reverts shop registration to pre-commit #e06e04a behavior, removing the CreateShop function and restoring RegisterShop. This fixes breaking changes affecting multiple resources and inventories without any deprecation path.
2025-08-29 23:47:52 -04:00
MrNewb 996339f0bc Update init.lua 2025-08-28 12:47:40 -04:00
MrNewb 7693648c32 yeeeeet 2025-08-24 17:32:16 -04:00
MrNewb b81ea486ff Merge pull request #142 from solaire-fivem/fix-minor-typo
Fix typo "platerData" to "playerData"
2025-08-22 17:25:43 -04:00
MrNewb f2fad0cb5b Update server.lua 2025-08-21 05:37:44 -04:00
MrNewb b896b94001 sync 2025-08-20 23:38:22 -04:00
MrNewb cbd340326d Merge pull request #141 from XenoS-ITA/refactor-fuel-and-vehiclekey
Refactor fuel and vehiclekey
2025-08-20 21:44:49 -04:00
MrNewb c17b4e1fe6 Update client.lua 2025-08-20 19:38:47 -04:00
MrNewb 718214d135 This is busted, should be removed.
Should be removed as not working for external resources.
It will work in the bridge itself but could lead to bloat/misuse and we shouldn't be responsible.
2025-08-20 16:59:04 -04:00
MrNewb 957e2e2ff6 Merge pull request #140 from TheOrderFivem/dev
feat: major system refactor, feature patches, and compatibility improvements
2025-08-19 07:30:39 -04:00
MrNewb 75f431e3ac Merge pull request #139 from PiotreeQ/patch-1
Update server.lua
2025-08-19 07:29:13 -04:00
MrNewb ec8067828f prep for version bump 2025-08-19 06:30:52 -04:00
MrNewb fd3f62f288 playermetadata patch for qbx 2025-08-19 04:22:52 -04:00
MrNewb fd28d9a1a6 attempt to add piotreq_gpt (dispatch compatability) 2025-08-18 02:18: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 58242b4213 possible fix
Before only one point could exist per cell.
This corrects that but im unsure on the impact to performance or grids
2025-08-16 07:04:00 -04:00
MrNewb 0fc872a102 patch for vector4 2025-08-16 05:56:25 -04:00
MrNewb defc7c0e8b blip tweak 2025-08-16 01:03:45 -04:00
MrNewb d6cb8ece6c Merge branch 'dev' of https://github.com/TheOrderFivem/community_bridge into dev 2025-08-12 21:32:20 -04:00
MrNewb 1a2e780eff Lithuanian support 2025-08-12 21:32:17 -04:00
MrNewb 29c19f3cb4 Update client_entity.lua 2025-08-12 20:20:49 -04:00
MrNewb de5353b329 tweak dispatch for ps 2025-08-12 18:10:13 -04:00
MrNewb e30dceb540 CanCarryItem checks on additem 2025-08-12 18:08:49 -04:00
MrNewb af33909794 qs inv image path tweak 2025-08-11 00:46:26 -04:00
MrNewb 35d18972e6 Update points.lua 2025-08-09 23:40:27 -04:00
MrNewb b914f0ffeb Merge pull request #136 from RandomZFx/patch-1
Patch 1
2025-08-09 12:56:10 -04:00
MrNewb 249f1c4032 Update server_entity.lua 2025-08-07 02:19:20 -04: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 b1556d13fb draft GetPlayerSourcesByJob 2025-08-07 00:47:51 -04:00
MrNewb d0f9fb7ca3 Update VersionChecker.lua
comment out old
2025-08-05 16:05:47 -04:00
MrNewb e1a43ed918 Restore original version checker for compatibility; refactor export logic with reduced variable passing
- 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.
2025-08-05 15:55:49 -04:00
MrNewb d8f1599052 Update points.lua 2025-08-05 00:01:32 -04:00
MrNewb 4d6958aa86 community_bridge:Server:OnPlayerJobChange
job change serverside event
2025-08-04 01:32:30 -04:00
MrNewb 5abebe13c6 image pathing fixed on tgiann
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.
2025-08-03 16:23:19 -04:00
MrNewb fa9ea6e6eb image path tweaks 2025-08-03 15:22:33 -04:00
MrNewb 2d02e8b0df Update VersionChecker.lua 2025-07-30 21:34:46 -04:00
MrNewb f42f853c81 Update VersionChecker.lua 2025-07-30 17:31:51 -04:00
MrNewb 69703e803f feat(version): improve version comparison and patch notes display
- 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
2025-07-30 14:46:27 -04:00
MrNewb 94484e882b remove random print 2025-07-30 13:28:20 -04:00
MrNewb a5799df7cb Update client.lua 2025-07-29 12:56:27 -04:00
MrNewb 868a193cea Update client.lua 2025-07-29 12:55:48 -04:00
MrNewb 3bb5bd7ad6 Merge branch 'dev' of https://github.com/TheOrderFivem/community_bridge into dev 2025-07-29 11:25:41 -04:00
MrNewb 4e02625d70 add support for qb-fuel 2025-07-29 11:25:38 -04:00
MrNewb 6047c6d88c banking in manifest 2025-07-28 03:30:46 -04:00
MrNewb a62cb880b0 mr gorbachev tear down this wall
of commented out code
2025-07-28 01:38:25 -04:00
MrNewb 88b4daa2e8 migrate cache.ped to PlayerPedId() 2025-07-28 01:37:52 -04:00
MrNewb fc8da1d528 qb progressbar returns opposite of bridge standard (ox) 2025-07-27 14:30:38 -04:00
MrNewb 503154a69c Create hr.json 2025-07-27 14:22:52 -04:00
MrNewb ca11f2954e Disable debug commands.
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.
2025-07-24 20:02:33 -04:00
MrNewb 07b76868f2 notify tweak 2025-07-24 00:10:47 -04:00
MrNewb d4c4999bde fix for origen_police 2025-07-23 22:16:19 -04:00
MrNewb 45a08338d8 Merge pull request #134 from TheOrderFivem/dev
Dev
2025-07-20 00:47:05 -04:00
MrNewb c4e3e87d84 Update fxmanifest.lua 2025-07-20 00:43:46 -04:00
MrNewb 9c98bd00f3 Update callbacks.lua 2025-07-20 00:38:35 -04:00
MrNewb 11a82194a9 fix for compatibility in kartik-mdt
repack job table as it needs a boolean
2025-07-19 01:47:53 -04:00
MrNewb 4e15466814 Merge branch 'dev' of https://github.com/TheOrderFivem/community_bridge into dev 2025-07-18 22:59:13 -04:00
MrNewb 8d85577cc8 kartik-mdt support added
has 143 users so meets requirement's + someone requested it
2025-07-18 22:58:41 -04:00
MrNewb a97263b168 Merge pull request #133 from TheOrderFivem/main
Update Attributions.md
2025-07-18 04:35:44 -04:00
MrNewb 227a5049b6 Update Attributions.md 2025-07-18 04:34:54 -04:00
MrNewb 18c8e882e7 Update README.md 2025-07-16 14:20:28 -04:00
MrNewb 71b1f45b48 Update README.md 2025-07-16 14:19:25 -04:00
MrNewb da37e9acc8 Merge pull request #132 from SwagDaddyBrad/dev
Dev
2025-07-15 23:06:45 -04:00
MrNewb ec0299bccc Pirate language support arrr! 2025-07-13 19:32:50 -04:00
MrNewb 597a81b40f Update README.md 2025-07-13 19:23:11 -04:00
MrNewb 5b2e6fe108 Update README.md 2025-07-13 19:22:53 -04:00
MrNewb bde1d38c26 Merge pull request #131 from TheOrderFivem/main
Merge pull request #130 from TheOrderFivem/dev
2025-07-13 19:07:54 -04:00
MrNewb 0a87fb2007 Merge pull request #130 from TheOrderFivem/dev
Dev
2025-07-13 19:06:51 -04:00
MrNewb 53e25db6dc Merge branch 'dev' of https://github.com/TheOrderFivem/community_bridge into dev 2025-07-13 19:02:49 -04:00
MrNewb b41ebbc637 0.11.0 2025-07-13 19:02:40 -04:00
MrNewb e8b3b5c601 Update README.md 2025-07-13 18:54:24 -04:00
MrNewb 41facf0d02 Update VersionChecker.lua 2025-07-13 18:27:10 -04:00
MrNewb d2ee234278 Update VersionChecker.lua 2025-07-13 18:26:57 -04:00
MrNewb d02be6eaa5 small fix, should resolve FL-Notify 2025-07-12 11:26:34 -04:00
MrNewb 5205962c32 FL-Notify support as requested by daniel 2025-07-12 10:30:02 -04:00
MrNewb 5da5503a49 tgg-banking support 2025-07-11 19:05:45 -04:00
MrNewb c7d638cbfb rcore_clothing partial support
This relys on the default server file to handle most, but we have opening menus and when rcore_clothing provides as qb/esx_skin this should resolve the errors if the framework didnt match the bridged option. Formatting fixed, debug commands disabled as this is for production.
2025-07-11 15:23:24 -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 2cb847c8cd this is bad but just trying to prevent anything they might run into. 2025-07-09 22:10:19 -04:00
MrNewb 33a9b6ba69 Framework.ItemList for esx and a catchall for qbox 2025-07-09 22:08:44 -04:00
MrNewb 6443d728d4 Merge pull request #129 from RZ-Developments/dev
add Kartik-Banking Support
2025-07-09 21:05:04 -04:00
MrNewb c00ae7958c Merge pull request #128 from youngsinatra99/main
feat(inventory): add item list function
2025-07-09 21:04:20 -04:00
MrNewb 1493f26748 Merge pull request #127 from The-Order-Of-The-Sacred-Framework/main
Merge pull request #126 from The-Order-Of-The-Sacred-Framework/dev
2025-07-09 09:18:41 -04:00
MrNewb a9a4ef619c Merge pull request #126 from The-Order-Of-The-Sacred-Framework/dev
Dev
2025-07-09 09:16:41 -04:00
MrNewb 5ea2d32b88 should handle network id based targeting add/remove 2025-07-09 05:34:41 -04:00