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.
Exports
Section titled “Exports”Call with exports.bs_admin:Name(...) from the same side.
| Name | Side | Where | Description |
|---|---|---|---|
IsGodmode | client | client/cl_main.lua:1347 | |
IsAdmin | server | server/sv_main.lua:55 | “IS THIS PLAYER STAFF”, FOR OTHER RESOURCES. |
IsSuperAdmin | server | server/sv_main.lua:61 |
Callbacks
Section titled “Callbacks”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, ...).
| Name | Direction | Where | Description |
|---|---|---|---|
admin:action | client -> server | server/sv_main.lua:1283 | |
admin:players | client -> server | server/sv_main.lua:67 | |
admin:whoami | client -> server | server/sv_main.lua:32 |
Events
Section titled “Events”“net” means the handler is registered with RegisterNetEvent, so the other side can trigger it. “local” is AddEventHandler only (same side, or game events).
| Name | Side | Type | Where | Description |
|---|---|---|---|---|
bs_guard:detection | client | net | client/cl_main.lua:173 | live refresh of the GUARD tab when bs_guard reports a new detection |
bs:admin:heal | client | net | client/cl_main.lua:1274 | |
bs:admin:prefs:apply | client | net | client/cl_main.lua:771 | Applying what came back. |
bs:admin:prefs:request | server | net | server/sv_prefs.lua:194 | Asked for by the client once it has loaded and knows it is staff. |
bs:admin:prefs:save | server | net | server/sv_prefs.lua:165 | Reported by the client whenever a toggle changes. |
bs:admin:teleportTo | client | net | client/cl_main.lua:1256 | |
bs:admin:vehiclesDeleted | client | net | client/cl_main.lua:1264 | Broadcast 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:died | client | local | client/cl_zspectate.lua:301 | A staff member who dies while spectating still needs their body back. |
bs:hook:player:spawned | client | local | client/cl_main.lua:834 | |
bs:hook:player:unloaded | client | local | client/cl_main.lua:1321 | |
bs:ui:opened | client | local | client/cl_main.lua:1307 | One menu at a time - see the note in bs_inventory. |
bs:ui:panic | client | local | client/cl_main.lua:1314 | /refreshui hard reset - see the note in bs_inventory. |
onResourceStop | client | local | client/cl_main.lua:1299 | The menu must never survive into a state where the player cannot close it. |
playerDropped | server | local | server/sv_prefs.lua:216 |
Commands
Section titled “Commands”| Command | Side | Where | Description |
|---|---|---|---|
/ammo | client | client/cl_main.lua:1357 | /ammo - the same action the menu button calls. |
/car | client | client/cl_main.lua:1015 | |
/devcar | client | client/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. |
/dv | client | client/cl_main.lua:1074 | |
/heal | client | client/cl_main.lua:1114 | |
/prefsdebug | server | server/sv_prefs.lua:249 | Five 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. |
/zforce | client | client/cl_zspectate.lua:334 | The force-spawn from the console as well as the menu. |
/zspectate | client | client/cl_zspectate.lua:314 |
Files not loaded
Section titled “Files not loaded”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
bs19.org · Privacy · Terms · Cookie settings