Skip to content

bs_gates

map gates you push open by hand, driven by the native door system.

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

None.

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, ...).

None.

“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_config:changed:bs_gatesserverlocalserver/sv_main.lua:127
bs_gates:deniedclientnetclient/cl_main.lua:244
bs_gates:notifyclientnetclient/cl_main.lua:250
bs_gates:pushservernetserver/sv_main.lua:37
bs_gates:resetAllclientnetclient/cl_main.lua:252
onResourceStopclientlocalclient/cl_main.lua:257hand the doors back: ours are removed, the map’s own are left shut and unlocked
onResourceStopserverlocalserver/sv_main.lua:136clear our statebag keys so a restart does not leave stale ratios behind
playerDroppedserverlocalserver/sv_main.lua:131
CommandSideWhereDescription
/gatesresetserverserver/sv_main.lua:115