Skip to main content
YB Admin exposes four server-side exports for trusted resources. Do not call them from client code.

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.
Returns a value such as helper, admin, or owner. Returns nil when the player is not staff.

isAdmin

Check whether a player belongs to any YB Admin group.
This export does not require the player to be on duty.

isOnDuty

Check whether a staff member currently has an active duty session.
Returns false for non-staff players. Check duty and the exact permission before running an administrative action:
Never trust a client-provided group, permission, player ID, amount, item name, or identifier. Validate every input on the server.

Editable integration hooks

These functions are customization hooks rather than public exports:
YBClientBridge.Notify, Revive, OpenAppearance, OpenOtherInventory, and PrepareVehicle live in editable/client.lua.
YBServerBridge.GetWeather, SetWorld, SendWebhook, and UploadDataUrl live in editable/server.lua.
Internal YB Admin events are implementation details. Do not trigger them from another resource.