Permission System
SixM scripts use your framework’s built-in permission system to control access to features.
Framework Permissions
QBCore / QBox
Permissions are tied to jobs and grades:
Config.AdminJobs = {
['police'] = 3, -- Grade 3+ can access admin features
['ambulance'] = 2, -- Grade 2+ can access admin features
}
ESX
ESX uses job grades similarly:
Config.AdminJobs = {
['police'] = 3,
['ambulance'] = 2,
}
ACE Permissions
Some scripts support FiveM’s ACE permission system:
# In server.cfg
add_ace group.admin allow sixm.admin allow
add_ace group.mod allow sixm.use allow
-- In config.lua
Config.UseAcePermissions = true
Config.AdminPermission = 'sixm.admin'
Common Permission Configs
-- Who can access the admin menu
Config.AdminGroups = { 'god', 'admin', 'mod' }
-- Who can use the command
Config.CommandPermission = 'group.admin'
-- Job-based access
Config.RestrictedJobs = {
'police',
'ambulance',
}
If you’re unsure about permission setup, start with the defaults — most scripts come with sensible permission settings out of the box.