Skip to content

bs_world

dead world: no traffic, no pedestrians, custom blackout.

Generated from the Lua sources in resources/[beyond]/bs_world/. 20 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_world:Name(...) from the same side.

NameSideWhereDescription
CurrentPowerZoneclientclient/cl_blackout.lua:248
IsPoweredclientclient/cl_blackout.lua:247
Resweepclientclient/cl_population.lua:480Called when something deliberately changes the world’s population rules - raising density inside a safe zone, or lowering it again on the way out.
FreezeTimeserverserver/sv_time.lua:199
FreezeWeatherserverserver/sv_time.lua:230
PoweredAtserverserver/sv_main.lua:51IS THIS SPOT POWERED?
SetTimeserverserver/sv_time.lua:188SET THE TIME AND LET IT RUN.
SetWeatherserverserver/sv_time.lua:215SET THE WEATHER, AND FREEZE IT UNLESS TOLD OTHERWISE.
WorldStateserverserver/sv_time.lua:239

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
world:powerCutsclient -> serverserver/sv_main.lua:65Which zones staff have cut, so a joining client’s lamps agree with the server’s answer about them.
world:powerZonesclient -> serverserver/sv_main.lua:8
world:togglePowerclient -> serverserver/sv_main.lua:19

“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:hook:player:spawnedclientlocalclient/cl_blackout.lua:219Re-assert on spawn and after a resource restart: the engine resets the artificial-light flags when the player is respawned.
bs:world:blackoutHoldclientlocalclient/cl_blackout.lua:46THE ONE EXCEPTION. The character screen stands in an interior with no daylight.
bs:world:requestservernetserver/sv_time.lua:123A client that has just connected knows nothing, and waiting up to a full sync interval to find out what time it is means joining into the wrong sky and watching it snap.
bs:world:syncclientnetclient/cl_time.lua:66
bs:world:weatherclientnetclient/cl_time.lua:102A staff-set weather has its own event because it carries the full transition duration.
bs:world:zoneStateclientnetclient/cl_blackout.lua:74
onResourceStopclientlocalclient/cl_blackout.lua:223
CommandSideWhereDescription
/powerlightclientclient/cl_blackout.lua:233PLACING A LAMP. Lamp positions are coordinates in a config file, and coordinates written from memory end up inside walls or floating over a roof.