hasPermission
Check whether an online player has a specific permission.
Returns
true or false. Group inheritance and wildcards are resolved automatically.
getGroup
Return the player’s YB Admin group name.
helper, admin, or owner. Returns nil when the player is not staff.
isAdmin
Check whether a player belongs to any YB Admin group.
isOnDuty
Check whether a staff member currently has an active duty session.
false for non-staff players.
Recommended authorization pattern
Check duty and the exact permission before running an administrative action:Editable integration hooks
These functions are customization hooks rather than public exports:Client hooks
Client hooks
YBClientBridge.Notify, Revive, OpenAppearance, OpenOtherInventory, and PrepareVehicle live in editable/client.lua.Server hooks
Server hooks
YBServerBridge.GetWeather, SetWorld, SendWebhook, and UploadDataUrl live in editable/server.lua.