Skip to content

bs_admin

staff menu.

Generated from the Lua sources in resources/[beyond]/bs_admin/. 31 entries. The description column is the comment above the line in the code, so if it’s empty nobody wrote one yet.

Call with exports.bs_admin:Name(...) from the same side.

NameSideWhereDescription
IsGodmodeclientclient/cl_main.lua:1191
IsAdminserverserver/sv_main.lua:52Export: is this player staff.
IsSuperAdminserverserver/sv_main.lua:58

Server callbacks are called from a client with BSB.Await(name, timeoutMs, ...). Client callbacks are called from the server with BSB.AwaitClient(src, name, timeoutMs, ...).

NameDirectionWhereDescription
admin:actionclient -> serverserver/sv_main.lua:1181
admin:playersclient -> serverserver/sv_main.lua:64
admin:whoamiclient -> serverserver/sv_main.lua:44

“net” means the handler is registered with RegisterNetEvent, so the other side can trigger it. “local” is AddEventHandler only (same side, or game events).

NameSideTypeWhereDescription
bs_guard:detectionclientnetclient/cl_main.lua:181live refresh of the GUARD tab when bs_guard reports a new detection
bs:admin:freezeclientnetclient/cl_main.lua:1118
bs:admin:healclientnetclient/cl_main.lua:1141
bs:admin:killclientnetclient/cl_main.lua:1137
bs:admin:prefs:applyclientnetclient/cl_main.lua:660Each toggle is applied by calling its own action, not by repeating the natives, so the logic stays in one place.
bs:admin:prefs:requestservernetserver/sv_prefs.lua:110Requested by the client once it has loaded and knows it is staff.
bs:admin:prefs:saveservernetserver/sv_prefs.lua:86Sent by the client on every toggle change.
bs:admin:teleportToclientnetclient/cl_main.lua:1099
bs:admin:tpCoordsclientnetclient/cl_main.lua:1062
bs:admin:vehiclesDeletedclientnetclient/cl_main.lua:1106Broadcast so /dv (and the menu’s delete) removes the car for everyone watching.
bs:hook:player:diedclientlocalclient/cl_zspectate.lua:232A staff member who dies while spectating still needs their body back.
bs:hook:player:spawnedclientlocalclient/cl_main.lua:704
bs:hook:player:unloadedclientlocalclient/cl_main.lua:1174
bs:ui:openedclientlocalclient/cl_main.lua:1161One menu at a time, see the note in bs_inventory.
bs:ui:panicclientlocalclient/cl_main.lua:1167/refreshui hard reset, see bs_inventory.
onResourceStopclientlocalclient/cl_main.lua:1153The menu must never survive into a state where the player can’t close it.
playerDroppedserverlocalserver/sv_prefs.lua:132
CommandSideWhereDescription
/ammoclientclient/cl_main.lua:1195/ammo - same action as the menu button, for topping up mid-test with the menu closed.
/carclientclient/cl_main.lua:840
/devcarclientclient/cl_main.lua:871/devcar <model> - spawns a car like the world would: its own generated plate and DB row, no key in your pocket.
/dvclientclient/cl_main.lua:926/dv [radius]. The server does the deleting (owned cars are stored, not lost; see deleteVehicles).
/healclientclient/cl_main.lua:953
/prefsdebugserverserver/sv_prefs.lua:148/prefsdebug checks the five things a toggle needs to survive a relog: table exists, identifier resolved, staff check passes, row exists, client asked and applied it.
/zforceclientclient/cl_zspectate.lua:252Force-spawn is also a command, so it can be repeated without the menu closing.
/zspectateclientclient/cl_zspectate.lua:237

These Lua files are on disk but no pattern in fxmanifest.lua loads them (or they are only pulled in with @bs_admin/... by another resource). Anything listed from them above is not live in this resource.

  • client/cl_mapteleports.lua