SafeGuardBeta

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:

FrameworkDetectionNotes
ESX (legacy and older)automaticStaff by the admin group
QBCoreautomaticStaff by the admin group/permission
Qboxautomatic
vRPautomaticMaximum health 400; staff by a permission such as admin.permissao; revive clears the knocked-out state
vRPex / creativemanual: Config.Framework = 'vrpex'Creative bases cannot be told apart automatically
Standaloneautomatic when there is no frameworkStaff 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) and add_ace group.admin safeguard.admin allow (sg commands 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.