âĒī¸Exports
Client
OpenRecycler(recyclerName, id, coords?)
Example (id: unique)
RegisterCommand('openrandomrecycler', function()
local coords = GetEntityCoords(PlayerPedId())
-- coords is not needed, but it saves the coords server-sided
-- this way the coords will be given back whenever an event returns
-- an recycler object, e.g. at recyclerToggled event
exports['RxZ_Recyclers']:OpenRecycler('Recycler', 'random', coords)
end)
Last updated