Major refactor to centralize QBCore and replace the web UI stack:
- Move QBConfig into a unified QBCore.Config and initialize QBCore.PlayerData; add shared/functions.lua.
- Remove legacy client/main.lua and server/main.lua exports and update fxmanifest to include shared/functions and drop those main scripts.
- Update client event handling: adapt player data events to QBCore:Client:OnPlayerUpdated and trigger job/gang update events; remove deprecated exploitable handlers.
- Web UI rewrite: remove Vue/Quasar dependency and config module; implement a lightweight vanilla JS notification system (html/js/app.js) with updated html and css assets, plus drawtext tweaks.
- CSS overhaul for notification styling and animations; HTML head/meta/font cleanup.
- Server fixes: use QBCore.Shared.Locations in teleport command and strengthen numeric parsing/validation for coords.
- Add .gitattributes for consistent text/eol handling and small code cleanups (thread/comment removal).
These changes consolidate config/shared logic under QBCore, simplify the frontend dependencies, and fix a few parsing/event issues.
Add support for sending single-field player data updates to clients to reduce bandwidth. Added a new client event QBCore:Player:UpdatePlayerDataField that updates a single key on QBCore.PlayerData. Modified server QBCore.Player.CreatePlayer UpdatePlayerData to accept an optional key and value; when provided it triggers the new per-field client event, otherwise it falls back to sending the full player data. Updated various player functions to call UpdatePlayerData with specific keys (job, gang, metadata, money, etc.) instead of always triggering a full sync. Files changed: client/events.lua, server/player.lua.
* [Update] Stuff and Things - Fix Exploit
- Update doors on teleport so they don't get stuck (requires my doorlock PR that creates a updateDoors() export
- Support for heading with TeleportToCoords event
- Support for teleporting to location name with /tp and a default file with locations to use
- Remove 'QBCore:Server:AddItem' event (requires PR to other resources that use it)
- Support for an array of items that do the same thing with QBCore.Functions.CreateUsableItem
- Player exists check before removing or adding permission
- Trigger OnPlayerUnload as a server side event too
- Player.Functions.GetMetaData function
- Added reason to money remove logs
- Set dirt level to 0 on /car vehicles
* Export to Event
* Deprecate instead of remove?
* Player+License verification fix
* Update events.lua
* Export change for qb-management
* [Hotfix] Errors after Merge
* [Change] src to source
* Prevent people using /me to troll
This prevents people using that /me troll with the huge font size and different colors.
* Remove DoorUpdate event
* Update client/events.lua
Co-authored-by: BerkieBb <82737367+BerkieBb@users.noreply.github.com>
* Update server/functions.lua
Co-authored-by: BerkieBb <82737367+BerkieBb@users.noreply.github.com>
* Adjustments for BB
* Linting
* fix(server/functions): use indexed variables
Co-authored-by: David Malchin <malchin459@gmail.com>
* chore(server/events): remove unnecessary _
Co-authored-by: David Malchin <malchin459@gmail.com>
* chore(server/events): remove unnecessary _'s
Co-authored-by: David Malchin <malchin459@gmail.com>
* chore(server/events): language
Co-authored-by: David Malchin <malchin459@gmail.com>
* chore(server/events): language
Co-authored-by: David Malchin <malchin459@gmail.com>
* chore(server/events): language
Co-authored-by: David Malchin <malchin459@gmail.com>
* chore(server/events): language
Co-authored-by: David Malchin <malchin459@gmail.com>
* chore(server/player): indentation
Co-authored-by: David Malchin <malchin459@gmail.com>
* [Chore] Remove Money
Removed repetitive code that made zero sense
* Update en.lua
* Update player.lua
* Update player.lua
* Update functions.lua
Co-authored-by: ItsANoBrainer <itsanobrainergg@protonmail.com>
Co-authored-by: Scullyy <51968381+Scullyy@users.noreply.github.com>
Co-authored-by: Idris Dev <IdrisDose@users.noreply.github.com>
Co-authored-by: Idris <idrisdev@gmail.com>
Co-authored-by: BerkieBb <82737367+BerkieBb@users.noreply.github.com>
Co-authored-by: David Malchin <malchin459@gmail.com>
Co-authored-by: Chris Usiak <christopher.usiak@oakland.k12.mi.us>
- Major cleanup of all files including reformatting & notations
- Added an optional export to add to scripts as an alternative to import.lua
- Added player state to OnPlayerLoaded so no more need for isLoggedIn inside scripts
- Updated all events to the new RegisterNetEvent and got rid of unneeded handlers
- Added the ability for ACE permissions with commands
- Added two new config options for player update interval and status update
- Changed players table to use citizenid column as primary key <-- very important
- Overall sloppy code cleanup, removal of unused code, got rid of nil checks