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
string required

License plate of the vehicle.

garageName
string required

Name of the shared garage to move the vehicle to.

ImpoundVehicle

Impounds a vehicle programmatically.

local success, msg = exports['RxGarages']:ImpoundVehicle(playerId, plate, impoundName, reason, tillUnix, price, vehNetId, selfRetrieval)
playerId
number required

Server ID of the player impounding the vehicle.

plate
string required

License plate of the vehicle to impound.

impoundName
string

Name of the impound garage. If not provided, uses the first available impound.

reason
string

Reason for impounding the vehicle.

tillUnix
number

Unix timestamp when impound expires. Leave nil for indefinite.

price
number

Price to retrieve the vehicle from impound.

vehNetId
number

Network ID of the vehicle entity to delete.

selfRetrieval
boolean

Whether the owner can retrieve the vehicle themselves. Defaults to false.

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()