bs_world
dead world: no traffic, no pedestrians, custom blackout.
Generated from the Lua sources in resources/[beyond]/bs_world/. 22 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_world:Name(...) from the same side.
| Name | Side | Where | Description |
|---|---|---|---|
CurrentPowerZone | client | client/cl_blackout.lua:179 | |
IsPowered | client | client/cl_blackout.lua:178 | |
Resweep | client | client/cl_population.lua:279 | Called when the population rules change on purpose (density raised in a safe zone, or lowered again), so the sweep wakes up from its idle rate. |
Blackout | server | server/sv_main.lua:48 | |
FreezeTime | server | server/sv_time.lua:158 | |
FreezeWeather | server | server/sv_time.lua:182 | |
PoweredAt | server | server/sv_main.lua:51 | Is this spot powered? |
SetBlackout | server | server/sv_main.lua:38 | |
SetTime | server | server/sv_time.lua:147 | Set the time and let it run; freezing is a separate choice. |
SetWeather | server | server/sv_time.lua:167 | Set the weather and freeze it unless told otherwise (a staff-chosen weather is usually deliberate). |
WorldState | server | server/sv_time.lua:190 |
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 |
|---|---|---|---|
world:powerCuts | client -> server | server/sv_main.lua:64 | Zones staff have cut, so joining clients match the server. |
world:powerZones | client -> server | server/sv_main.lua:5 | |
world:togglePower | client -> server | server/sv_main.lua:16 |
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:hook:player:spawned | client | local | client/cl_blackout.lua:154 | Re-assert on spawn and after a resource restart; the engine resets the artificial-light flags on respawn. |
bs:world:blackoutHold | client | local | client/cl_blackout.lua:16 | Exception: the character screen is an interior with no daylight. |
bs:world:request | server | net | server/sv_time.lua:92 | A newly connected client asks and is told immediately, so it does not join into the wrong sky. |
bs:world:sync | client | net | client/cl_time.lua:44 | |
bs:world:weather | client | net | client/cl_time.lua:76 | Staff-set weather has its own event because it carries the full transition duration. |
bs:world:zoneState | client | net | client/cl_blackout.lua:38 | |
onResourceStop | client | local | client/cl_blackout.lua:158 |
Commands
Section titled “Commands”| Command | Side | Where | Description |
|---|---|---|---|
/powerlight | client | client/cl_blackout.lua:164 | Placing a lamp: prints the config line for exactly where you stand and look, so lamps end up on the right pole instead of inside walls. |
bs19.org · Privacy · Terms · Cookie settings
Cookies and outside content
The site only needs two essential cookies to keep you logged in and protect forms. Videos and streams from YouTube and Twitch load from their servers, which can set their own cookies, so they stay off until you say yes. Nothing is pre-ticked and you can change your mind any time with "Cookie settings" at the bottom of every page. Details.
Questions about the server, the framework or the site? A real person reads this, usually within a day.