Commit Graph
496 Commits
Author SHA1 Message Date
SignApps Dev 5cdc4b4e72 feat: add support for tk_bosstablet and zat-bossmenu boss menus 2026-04-08 11:27:05 +02:00
MrNewb 6c6a1b5bd3 Merge pull request #184 from gononono64/dev
issue with qb-input checkboxes
2026-03-13 12:36:01 -04:00
MrNewb e0c6d2f8c7 fix for jg-mechanic is missing
Replace earlier GetResourceState checks in multiple inventory modules so they only return early when the 'jg-mechanic' resource state is 'missing'. This standardizes behavior across modules (jpr, origen, ox, ps, qb, qs, tgiann) and fixes an inverted check in ox_inventory so the exports['jg-mechanic']:vehiclePlateUpdated call runs unless the resource is actually missing.
2026-03-13 12:35:30 -04:00
Mr.Crowley 0088559b91 qb also returns strings for some reason
qb returns "true" or "false" instead of true or false for checkbox's and probably other stuff. Converting to bools to be consistent with ox's returns
2026-02-24 01:14:50 -06:00
Mr.Crowley b90463b7d2 issue with qb-input checkboxes
qb-input was not returning multiple checkboxes correctly.

The issue was that the returned data was being overwritten by other return values.

example:
```lua
local input = {
    {
        type = 'input',
        label = Locale("whitelist.label"),
        description = Locale("whitelist.description"),
        required = true,
    },
    {
        type = 'checkbox',
        label = Locale("can_whitelist.label"),
        required = false,
    },
    {
        type = 'checkbox',
        label = Locale("whitelist_temp_access.label"),
        required = false,
    }
}
```

Previously, one of the checkbox values would get overridden. The same issue occurred when using .options.
2026-02-24 00:53:37 -06: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
MrNewb 1c3d045479 Merge pull request #179 from Mustachedom/qb-inventory_version_fix
- `fix` qb-inventory version check function
2026-01-28 19:55:41 -05:00
Sinaps Dev 56043f06ed Merge branch 'main' of https://github.com/SinapsDev/community_bridge 2026-01-28 23:49:10 +01:00
Sinaps Dev f753b8ae97 fixed qbcore GetIsFrameworkAdmin method 2026-01-28 23:49:08 +01:00
Mustache Dom ba6886b4a8 - fix
- `issue`
   - function getInventoryNewVersion() does not have a return if you are 2.0 or higher. resulting in auto setting to false

- `how i fixed`
  - added a return
2026-01-25 03:21:15 -07:00
MrNewb 98b883950d Add ZSX_UIV2 support for helptext, notify, and progressbar
Introduced new client modules for helptext, notify, and progressbar using ZSX_UIV2. Updated client and shared configuration files to include ZSX_UIV2 as an option for ProgressBarSystem, Notify, and HelpText. Bumped fxmanifest version to 0.13.2.
2026-01-24 18:08:34 -05: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
Mr.Crowley c40a260ea2 magic space was introduced with last patch
removed
2025-11-14 19:34:47 -06: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
MrNewb 444040dd39 This was crowleys commit and work - Refactor entity behaviors and improve particle handling
Refactored entity behavior triggers to simplify argument passing and added OnSet handler for particle behaviors. Improved particle effect management and event handling, updated locale and lib initialization in several modules, and fixed skill metadata access. Also streamlined point zone logic and menu/zone system initialization for better reliability.
2025-10-26 16:20:27 -04:00
MrNewb 179c3bad85 Add vehicle key integration modules
Introduces client-side modules for various vehicle key resources, each providing standardized GiveKeys and RemoveKeys functions. This enables compatibility with multiple vehicle key systems by abstracting their APIs behind a common interface.
2025-10-26 15:20:45 -04:00
MrNewb 266697b1fe Remove all vehicle key client modules
Deleted all client-side vehicle key integration modules from both 'vehicleKey' and 'vehiclekey' directories. This change likely reflects a refactor, migration, or deprecation of the vehicle key system integrations.
2025-10-26 15:20:31 -04:00
MrNewb 1d9431f88e folder name changes 2025-10-26 15:19:35 -04:00
MrNewb b42219f0a3 Merge pull request #163 from divide29/main
add integration for emergencydispatch
2025-10-21 09:06:42 -04:00
divide29 ff57646be2 fix: wrong index in data.jobs client 2025-10-21 13:04:34 +00:00
divide29 85e784b3f6 fix wrong index in data.jobs 2025-10-21 09:58:34 +00:00
MrNewb 3a9424659b Refactor Dispatch.SendAlert for clarity
Assigns alert data to a local variable before passing it to exports.tk_dispatch:addCall, improving readability and maintainability.
2025-10-19 23:04:54 -04:00
MrNewb 664b397404 Refactor Target resource name function placement
Moved the GetResourceName function definition to the top of both ox_target and qb-target client modules for consistency and clarity. Also performed minor code cleanup and reordering for improved readability.
2025-10-19 22:59:18 -04:00
Mr.Crowley 45a98528b1 Merge pull request #160 from Luke20201/main
Add fd_dispatch support
2025-10-19 21:58:17 -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
divide29 c6759228a3 add integration for emergencydispatch 2025-10-17 22:50:00 +00:00
MrNewb 19911d9173 Refactor target system client logic and zone functions
Simplifies debug flag initialization and resource state checks in both ox_target and qb-target client scripts. Updates Target.FixOptions to streamline option handling and canInteract logic. Target.AddBoxZone and Target.AddSphereZone now return the zone name for improved usability.
2025-10-15 18:05:56 -04:00
MrNewb a7b3a34998 Add LuaDoc @description to fuel API functions
Replaced comment blocks with LuaDoc @description tags for GetResourceName, GetFuel, and SetFuel functions across all fuel module client files. This improves code documentation consistency and supports better tooling integration.
2025-10-12 21:54:52 -04:00
MrNewb c73faa43db Add checks for alternative inventory resources
Added resource state checks for 'codem-inventory' and 'origen_inventory' in both client and server scripts to ensure compatibility and prevent conflicts when those resources are present.
2025-10-12 21:53:27 -04:00
MrNewb c582ce69e9 Add check for 17mov_CharacterSystem resource
Added a conditional check for the '17mov_CharacterSystem' resource in all clothing module scripts. This prevents the modules from loading if '17mov_CharacterSystem' is present, improving compatibility and avoiding conflicts.
2025-10-12 21:52:12 -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
Luke20201 ab414b2b48 fix location returning hash instead of string 2025-09-28 18:11:14 +01:00
Luke20201 c0e5241d40 add fd_dispatch support 2025-09-28 17:26:03 +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 582ce9e640 Refactor item info retrieval in inventory modules
Updated Inventory.GetItemInfo to use the full items table for lookups instead of fetching individual items. Added Inventory.Items function to both client and server for consistent access to the items table. Improved handling of missing data and streamlined code for better maintainability.
2025-09-13 18:04:05 -04:00
MrNewb 41c90f9082 Add wasabi_mdt dispatch integration
Introduces client and server modules for dispatch integration with the wasabi_mdt resource. Provides functions to send alerts and retrieve the resource name, enabling compatibility with the wasabi_mdt dispatch system.
2025-09-11 17:34:54 -04:00
MrNewb 3dfbaa8573 Localize target menu and interaction prompts
Replaced hardcoded target menu titles, descriptions, and interaction prompts with localized strings from en.json. Updated client.lua to use Language.Locale for menu and help text, improving internationalization and consistency.
2025-09-10 21:47:58 -04: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