Skip to content

bs_recycler

Rust-style recyclers: feed a machine loot, get materials back.

Generated from the Lua sources in resources/[beyond]/bs_recycler/. 11 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_recycler: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, ...).

NameDirectionWhereDescription
recycler:finishclient -> serverserver/sv_main.lua:314
recycler:openclient -> serverserver/sv_main.lua:196
recycler:pointsclient -> serverserver/sv_main.lua:402
recycler:runclient -> serverserver/sv_main.lua:239

“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:spawnedserverlocalserver/sv_main.lua:461
bs:recycler:openclientnetclient/cl_main.lua:80
bs:recycler:pointsclientnetclient/cl_main.lua:70
bs:recycler:startclientnetclient/cl_main.lua:96
onResourceStopclientlocalclient/cl_main.lua:167
playerDroppedserverlocalserver/sv_main.lua:391A machine whose operator has gone keeps its fuel and unlocks, rather than staying reserved to somebody who is no longer on the server.
CommandSideWhereDescription
/recyclerserverserver/sv_main.lua:404