CreatorsServer exports
IsStaff
Last updated on
Whether a player holds the staff right.
local res = exports.opx_infinity:IsStaff(source)Scope read · sync.
Parameters
- source:
number
Returns
boolean—truewhen the player holdsSTAFF_PERMISSION(command.opx.adminby default);falseon a host with no ACL
Errors
export.badArgument
local res = exports.opx_infinity:IsStaff(source)
if res.ok and res.value then print('staff') end