Exports
Server Exports
ToggleRecycler
Toggles a recycler on or off by its ID.
local active = exports['RxZ_Recyclers']:ToggleRecycler(recyclerId, state, src)
The unique ID of the recycler to toggle.
Optional: true to turn on, false to turn off, nil to toggle current state.
Optional: Player server ID for logging purposes. If not provided, logs will show "System".
ToggleClosestRecycler
Toggles the closest recycler to a player within a specified distance.
local active = exports['RxZ_Recyclers']:ToggleClosestRecycler(src, maxDistance, state)
Player server ID to search around.
Maximum distance in units to search for recyclers.
Optional: true to turn on, false to turn off, nil to toggle current state.
Client Exports
OpenRecycler
Opens a recycler.
exports['RxZ_Recyclers']:OpenRecycler(name, key, coords)
Name of the recycler to open. This should match the name defined in the Config.Recyclers table.
Key of the recycler: can be any string or number value as long as it is unique.
Coords for saving it server-sided, so coords will be given within certain events triggered.
