- 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
To add multiple items to the callback you use it like this
QBCore.Funtions.TriggerCallback('QBCore:HasItem', function(result)
if result then
print('has items')
end
end, {"item1", "item2"})
Also still compatible with 1 item.