Exports
Server Exports
MoveVehicleToSharedGarage
Moves a vehicle to a shared garage.
local success, msg = exports['RxGarages']:MoveVehicleToSharedGarage(plate, garageName)
License plate of the vehicle.
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)
Server ID of the player impounding the vehicle.
License plate of the vehicle to impound.
Name of the impound garage. If not provided, uses the first available impound.
Reason for impounding the vehicle.
Unix timestamp when impound expires. Leave nil for indefinite.
Price to retrieve the vehicle from impound.
Network ID of the vehicle entity to delete.
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)
Name identifier of the garage.
Type of garage.
Type of vehicle.
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)
Name identifier of the garage.
Type of garage.
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()
