Skip to content

bs_admin

staff menu.

Generated from the Lua sources in resources/[beyond]/bs_admin/. 28 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:1347
IsAdminserverserver/sv_main.lua:55“IS THIS PLAYER STAFF”, FOR OTHER RESOURCES.
IsSuperAdminserverserver/sv_main.lua:61

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:1283
admin:playersclient -> serverserver/sv_main.lua:67
admin:whoamiclient -> serverserver/sv_main.lua:32

“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:173live refresh of the GUARD tab when bs_guard reports a new detection
bs:admin:healclientnetclient/cl_main.lua:1274
bs:admin:prefs:applyclientnetclient/cl_main.lua:771Applying what came back.
bs:admin:prefs:requestservernetserver/sv_prefs.lua:194Asked for by the client once it has loaded and knows it is staff.
bs:admin:prefs:saveservernetserver/sv_prefs.lua:165Reported by the client whenever a toggle changes.
bs:admin:teleportToclientnetclient/cl_main.lua:1256
bs:admin:vehiclesDeletedclientnetclient/cl_main.lua:1264Broadcast so /dv (and the menu’s delete) disappear for everyone watching, not just the admin who typed it - the DB side is already permanent by the time this fires (AdminDelete…
bs:hook:player:diedclientlocalclient/cl_zspectate.lua:301A staff member who dies while spectating still needs their body back.
bs:hook:player:spawnedclientlocalclient/cl_main.lua:834
bs:hook:player:unloadedclientlocalclient/cl_main.lua:1321
bs:ui:openedclientlocalclient/cl_main.lua:1307One menu at a time - see the note in bs_inventory.
bs:ui:panicclientlocalclient/cl_main.lua:1314/refreshui hard reset - see the note in bs_inventory.
onResourceStopclientlocalclient/cl_main.lua:1299The menu must never survive into a state where the player cannot close it.
playerDroppedserverlocalserver/sv_prefs.lua:216
CommandSideWhereDescription
/ammoclientclient/cl_main.lua:1357/ammo - the same action the menu button calls.
/carclientclient/cl_main.lua:1015
/devcarclientclient/cl_main.lua:1048/devcar <model> - spawns a car the way the world would hand you one: its own generated plate and DB row, nobody’s key already in your pocket.
/dvclientclient/cl_main.lua:1074
/healclientclient/cl_main.lua:1114
/prefsdebugserverserver/sv_prefs.lua:249Five things have to be true for a toggle to survive a relog, and when it does not, every one of them looks identical from in game: nothing happens.
/zforceclientclient/cl_zspectate.lua:334The force-spawn from the console as well as the menu.
/zspectateclientclient/cl_zspectate.lua:314

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