Frameworks
SafeGuard reads the framework to recognise staff, read money, inventory and jobs, revive players and use the right maximum health. With Config.Framework = 'auto' it detects it by itself:
| Framework | Detection | Notes |
|---|---|---|
| ESX (legacy and older) | automatic | Staff by the admin group |
| QBCore | automatic | Staff by the admin group/permission |
| Qbox | automatic | |
| vRP | automatic | Maximum health 400; staff by a permission such as admin.permissao; revive clears the knocked-out state |
| vRPex / creative | manual: Config.Framework = 'vrpex' | Creative bases cannot be told apart automatically |
| Standalone | automatic when there is no framework | Staff by ACE only |
Make sure ensure safeguard comes after the framework in server.cfg.
Staff
Staff are recognised in either of two ways:
- ACE:
add_ace group.admin safeguard.bypass allow(exempt from detections) andadd_ace group.admin safeguard.admin allow(sgcommands and F10 menu). - Framework permissions, in
config.lua:
Config.Staff = { Exempt = true, Ace = 'safeguard.bypass', FrameworkPermissions = { 'admin', 'admin.permissao' } }
Config.AdminAce = 'safeguard.admin'
Config.AdminPermissions = { 'admin', 'admin.permissao' }sg staff shows who is exempt and why. sg framework shows the selected adapter and the last error of each call.