All admin commands out of the box in our scripts require god permissions in QBCore and admin permissions in ESX by default.
god
admin
These required permissions can be adjusted inside of framework/sv-functions.lua -> Functions.Server.IsAdmin()
framework/sv-functions.lua
Functions.Server.IsAdmin()
To give someone access to the command they need to be a part of the correct group in your server.cfg file - see the following example:
server.cfg
add_principal identifier.fivem:XXXXXXX group.god # QBCore add_principal identifier.fivem:XXXXXXX group.admin # ESX
Restart your server
⚠️ ESX only: If you are still having issues, try running in-game -> /setgroup [id] admin
/setgroup [id] admin
Last updated 1 year ago
Was this helpful?