â†Ēī¸Exports

Exports can be requested at our discord! (https://discord.rxscripts.xyz/)

Client Side

OpenGarage(garageName, garageType, vehicleType, coords?)
Example
function OpenGarage(garageId, coords)
    exports['RxGarages']:OpenGarage("House Garage ("..tostring(garageId)..")", 'garage', 'car', coords)
end
ParkVehicle(garageName, garageType, vehicleType)
Example
function OpenGarage(garageId, coords)
    exports['RxGarages']:ParkVehicle("House Garage ("..tostring(garageId)..")", 'garage', 'car')
end
OpenImpoundMenu()
Example
RegisterCommand('iv', function()
    exports['RxGarages']:OpenImpoundMenu()
end)
OpenAdminPanel()
Example
RegisterCommand('garages-admin', function()
    exports['RxGarages']:OpenAdminPanel()
end)

Server Side

MoveVehicleToSharedGarage(plate, sharedNameGarage)
Example
local success, msg = exports['RxGarages']:MoveVehicleToSharedGarage('349 BBK', 'Police Shared')

Last updated