Skip to content

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.

Call with exports.bs_world:Name(...) from the same side.

NameSideWhereDescription
CurrentPowerZoneclientclient/cl_blackout.lua:179
IsPoweredclientclient/cl_blackout.lua:178
Resweepclientclient/cl_population.lua:279Called 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.
Blackoutserverserver/sv_main.lua:48
FreezeTimeserverserver/sv_time.lua:158
FreezeWeatherserverserver/sv_time.lua:182
PoweredAtserverserver/sv_main.lua:51Is this spot powered?
SetBlackoutserverserver/sv_main.lua:38
SetTimeserverserver/sv_time.lua:147Set the time and let it run; freezing is a separate choice.
SetWeatherserverserver/sv_time.lua:167Set the weather and freeze it unless told otherwise (a staff-chosen weather is usually deliberate).
WorldStateserverserver/sv_time.lua:190

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:64Zones staff have cut, so joining clients match the server.
world:powerZonesclient -> serverserver/sv_main.lua:5
world:togglePowerclient -> serverserver/sv_main.lua:16

“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:154Re-assert on spawn and after a resource restart; the engine resets the artificial-light flags on respawn.
bs:world:blackoutHoldclientlocalclient/cl_blackout.lua:16Exception: the character screen is an interior with no daylight.
bs:world:requestservernetserver/sv_time.lua:92A newly connected client asks and is told immediately, so it does not join into the wrong sky.
bs:world:syncclientnetclient/cl_time.lua:44
bs:world:weatherclientnetclient/cl_time.lua:76Staff-set weather has its own event because it carries the full transition duration.
bs:world:zoneStateclientnetclient/cl_blackout.lua:38
onResourceStopclientlocalclient/cl_blackout.lua:158
CommandSideWhereDescription
/powerlightclientclient/cl_blackout.lua:164Placing 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.