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.

circle-info

Player must have at least one active financing contract to view data.


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.

circle-exclamation

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 nil if 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.

circle-info

Large inventories may impact performance. Consider caching results when possible.


Get Vehicles By Category

Retrieves all vehicles within a specific category.

Syntax

Parameters

  • categoryName (string) - The vehicle category identifier

Common Categories

  • super - Super cars

  • sports - Sports cars

  • sportsclassics - Sports classics

  • sedans - Sedans

  • suvs - SUVs

  • coupes - Coupes

  • muscle - Muscle cars

  • offroad - Off-road vehicles

  • vans - Vans

  • motorcycles - 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.

circle-exclamation

Integration Examples

Custom Dealership NPC

Price Comparison Tool

Category Browser


Best Practices

circle-check
triangle-exclamation

Last updated

Was this helpful?