Exports
Server Exports
GetDealership
Returns a dealership by its ID.
exports['RxDealerships']:GetDealership(dealershipId)
ID of the dealership.
GetAllDealerships
Returns all dealerships.
exports['RxDealerships']:GetAllDealerships()
GetDealershipByName
Returns a dealership by its name.
exports['RxDealerships']:GetDealershipByName(name)
Name of the dealership.
GetVehicle
Returns a vehicle from the master vehicle list by model name.
exports['RxDealerships']:GetVehicle(model)
Model name of the vehicle.
GetAllVehicles
Returns all vehicles in the master vehicle list.
exports['RxDealerships']:GetAllVehicles()
GetDealershipVehicles
Returns all catalog vehicles for a specific dealership.
exports['RxDealerships']:GetDealershipVehicles(dealershipId)
ID of the dealership.
IsDealershipOpen
Returns whether a dealership is currently open. Server and Tebex dealerships always return true.
exports['RxDealerships']:IsDealershipOpen(dealershipId)
ID of the dealership.
GetPlayerFinances
Returns all active finances for a player.
exports['RxDealerships']:GetPlayerFinances(identifier)
Identifier of the player.
GetPlayerTransactions
Returns all transactions for a player, optionally filtered by dealership.
exports['RxDealerships']:GetPlayerTransactions(identifier, dealershipId)
Identifier of the player.
Optional dealership ID to filter transactions by.
GiveVehicle
Gives a vehicle to a player by saving it directly to their garage with a unique plate.
exports['RxDealerships']:GiveVehicle(src, model, primaryColor, secondaryColor)
Server ID of the player.
Model name of the vehicle.
Primary color index. Defaults to 0.
Secondary color index. Defaults to 0.
SetDealershipStatus
Sets the open/closed status of a dealership.
exports['RxDealerships']:SetDealershipStatus(dealershipId, isOpen)
ID of the dealership.
Whether the dealership should be open or closed.
SetDealershipBalance
Sets the balance of a dealership.
exports['RxDealerships']:SetDealershipBalance(dealershipId, amount)
ID of the dealership.
New balance amount.
TransferDealershipOwnership
Transfers ownership of a player-owned dealership to a new owner.
exports['RxDealerships']:TransferDealershipOwnership(dealershipId, newOwnerIdentifier)
ID of the dealership. Must be a player-owned dealership.
Identifier of the new owner.
Client Exports
OpenDealership
Opens a dealership showroom for the player.
exports['RxDealerships']:OpenDealership(dealershipId)
ID of the dealership to open.
OpenAdminPanel
Opens the admin panel on the player's client.
exports['RxDealerships']:OpenAdminPanel(page)
Optional page to open the admin panel to.
OpenManagementMenu
Opens the management menu for a player-owned dealership.
exports['RxDealerships']:OpenManagementMenu(dealershipId)
ID of the dealership to manage.
StartTestDrive
Starts a test drive for a specific vehicle at a dealership.
exports['RxDealerships']:StartTestDrive(dealershipId, vehicleModel)
ID of the dealership.
Model name of the vehicle to test drive.
EndTestDrive
Ends the currently active test drive.
exports['RxDealerships']:EndTestDrive()
GetDealerships
Returns all dealerships loaded on the client.
exports['RxDealerships']:GetDealerships()
