Exports
Open Finance List
Opens the finance management interface for the player.
Syntax
exports['uz_Dealerships']:openFinanceList()Usage Example
-- Open finance list when player uses a command
RegisterCommand('myfinances', function()
exports['uz_Dealerships']:openFinanceList()
end, false)
-- Open finance list from another resource
TriggerEvent('some:event', function()
exports['uz_Dealerships']:openFinanceList()
end)Description Displays all active financing contracts for the player, including payment history and outstanding balances.
Open Showroom
Opens a specific dealership showroom interface.
Syntax
Parameters
dealershipID(number) - The unique identifier of the dealership
Usage Example
Description Launches the vehicle browsing interface for the specified dealership location.
Invalid dealership IDs will result in no action. Verify dealership configuration before use.
Get Vehicle Data
Retrieves complete data for a specific vehicle model.
Syntax
Parameters
model(string) - The spawn name of the vehicle
Returns
Table containing vehicle information, or
nilif not found
Return Structure
Usage Example
Description Fetches all configured details for a single vehicle, useful for custom purchasing systems or information displays.
Get All Vehicles
Retrieves the complete vehicle inventory across all dealerships.
Syntax
Returns
Table containing all vehicle entries
Return Structure
Usage Example
Description Returns the full vehicle database, ideal for creating custom catalogs, price comparisons, or inventory management systems.
Get Vehicles By Category
Retrieves all vehicles within a specific category.
Syntax
Parameters
categoryName(string) - The vehicle category identifier
Common Categories
super- Super carssports- Sports carssportsclassics- Sports classicssedans- Sedanssuvs- SUVscoupes- Coupesmuscle- Muscle carsoffroad- Off-road vehiclesvans- Vansmotorcycles- Motorcycles
Returns
Table containing vehicles in the specified category
Return Structure
Usage Example
Description Filters vehicle inventory by category, perfect for specialized dealerships or category-based browsing systems.
Category names are case-sensitive and must match your configuration exactly.
Integration Examples
Custom Dealership NPC
Price Comparison Tool
Category Browser
Best Practices
Performance Optimization
Cache export results when using repeatedly
Avoid calling
GetAllVehicles()in loopsValidate dealership IDs before opening showrooms
Error Handling Always check return values before use:
Last updated
Was this helpful?