Skip to content

bs_interactions

dot targeting, world interactions, searchable containers.

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

NameSideWhereDescription
AddEntityclientclient/cl_registry.lua:270
AddModelclientclient/cl_registry.lua:267
AddTypeclientclient/cl_registry.lua:272
AddZoneclientclient/cl_registry.lua:268
CancelProgressclientclient/cl_search.lua:138
CurrentEntityclientclient/cl_target.lua:494
DebugLookAtclientclient/cl_target.lua:673Toggled from the server only (see sv_main.lua), since the client cannot test an ACE.
IsTargetingclientclient/cl_target.lua:493
Progressclientclient/cl_search.lua:133Standalone progress bar, no animation and no movement cancel (for machines that run on their own).
RemoveEntityclientclient/cl_registry.lua:271
RemoveZoneclientclient/cl_registry.lua:269
RunSearchclientclient/cl_search.lua:129

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
containers:checkclient -> serverserver/sv_main.lua:146
containers:lootclient -> serverserver/sv_main.lua:171
containers:resetclient -> serverserver/sv_main.lua:251Staff reset, for testing loot tables without waiting out cooldowns.

“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_interactions:debug:toggleclientnetclient/cl_target.lua:679
bs:hook:player:unloadedclientlocalclient/cl_target.lua:484
onResourceStopclientlocalclient/cl_search.lua:124On a resource restart mid-search the thread dies with the weapon still hidden.
playerDroppedserverlocalserver/sv_main.lua:243A player leaving must not lock a container forever.
CommandSideWhereDescription
/targetdebugserverserver/sv_main.lua:269