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>