RX Scripts Logo
Garages

Exports

All client- & serversided exports included within this script. Exports provide callable functions that allow other resources to interact with this script's functionality.
If additional exports are required for your implementation, please submit a formal request through our ticketing system on the official Discord server.

Server Exports

MoveVehicleToSharedGarage

Moves a vehicle to a shared garage.

local success, msg = exports['RxGarages']:MoveVehicleToSharedGarage(plate, garageName)
plate
number required

License plate of the vehicle.

garageName
name required

Name of the shared garage to move the vehicle to.

Client Exports

OpenGarage

Opens a specific garage at the player's current location.

exports['RxGarages']:OpenGarage(garageName, garageType, vehicleType, coords)
garageName
name required

Name identifier of the garage.

garageType
'garage'|'impound'|'shared' required

Type of garage.

vehicleType
'car'|'air'|'boat' required

Type of vehicle.

coords
vector3

Coordinates a taken out car gets spawned at.

ParkVehicle

Parks the vehicle the player is sitting in to a specific garage.

exports['RxGarages']:ParkVehicle(garageName, garageType, vehicleType)
garageName
name required

Name identifier of the garage.

garageType
'garage'|'impound'|'shared' required

Type of garage.

vehicleType
'car'|'air'|'boat' required

Type of vehicle.

OpenImpoundMenu

Opens the impound menu on the player's client.

exports['RxGarages']:OpenImpoundMenu()

OpenAdminPanel

Opens the admin panel on the player's client, if applicable.

exports['RxGarages']:OpenAdminPanel()