bs_building
barricades, campfires, workbenches and somewhere to wake up.
Generated from the Lua sources in resources/[beyond]/bs_building/. 29 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_building:Name(...) from the same side.
| Name | Side | Where | Description |
|---|---|---|---|
IsPlacing | client | client/cl_place.lua:338 | |
NearStation | client | client/cl_world.lua:300 | |
Pieces | client | client/cl_world.lua:301 | |
StartPlacing | client | client/cl_place.lua:334 | |
Count | server | server/sv_main.lua:568 | How much this character has standing in the world. |
GetRespawnPoint | server | server/sv_main.lua:475 | bs_medical asks this before sending a bled-out player to a clinic. |
Materials | server | server/sv_main.lua:594 | What every buildable piece costs, flattened. |
NearStation | server | server/sv_main.lua:572 | Is this player standing at a built station? |
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 |
|---|---|---|---|
build:begin | client -> server | server/sv_main.lua:266 | |
build:cancel | client -> server | server/sv_main.lua:275 | |
build:catalogue | client -> server | server/sv_main.lua:507 | What this player may build right now, for the hub panel. |
build:claimRespawn | client -> server | server/sv_main.lua:459 | |
build:dismantle | client -> server | server/sv_main.lua:376 | |
build:dismantleCheck | client -> server | server/sv_main.lua:356 | |
build:list | client -> server | server/sv_main.lua:502 | |
build:place | client -> server | server/sv_main.lua:277 |
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:building:added | client | net | client/cl_world.lua:281 | |
bs:building:dot:dismantle | client | local | client/cl_world.lua:119 | |
bs:building:dot:pending | client | local | client/cl_world.lua:179 | |
bs:building:dot:sleep | client | local | client/cl_world.lua:153 | |
bs:building:dot:station | client | local | client/cl_world.lua:167 | |
bs:building:hit | server | net | server/sv_main.lua:410 | Clients report their own walkers hitting a barricade. |
bs:building:removed | client | net | client/cl_world.lua:286 | |
bs:building:sync | client | net | client/cl_world.lua:291 | |
bs:hook:player:unloaded | client | local | client/cl_place.lua:329 | |
bs:ui:opened | client | local | client/cl_place.lua:349 | Another menu opening means you are no longer building. |
onResourceStop | client | local | client/cl_place.lua:330 | |
playerDropped | server | local | server/sv_main.lua:264 |
Commands
Section titled “Commands”| Command | Side | Where | Description |
|---|---|---|---|
/clearbuilds | server | server/sv_main.lua:551 |
bs19.org · Privacy · Terms · Cookie settings