Exports

List of available exports for you to use.

circle-info

Note

These exports are optional and available for use in your scripts or integrations.


Client


Get Custom Vehicle Class

Returns the custom racing style vehicle class of a vehicle.

@parameters
--- @param vehicle number Vehicle entity.
--- @return table # { class = string, rating = number }

-- Class ranges:
-- D  (0 - 299)
-- C  (300 - 399)
-- B  (400 - 499)
-- A  (500 - 599)
-- S1 (600 - 699)
-- S2 (700 - 799)
-- X  (800+)

--- @example
local vehicle = GetVehiclePedIsIn(PlayerPedId(), false)

local data = exports.cd_mechanic:GetCustomVehicleClass(vehicle)
print('Vehicle Class:', data.class, 'Vehicle Rating:', data.rating)

-- Example output:
-- Vehicle Class: S2, Vehicle Rating: 750

Get Vehicle Performance Stats

Returns advanced performance stats for a vehicle.

chevron-rightExample Outputhashtag

Server


Shared

Get Config

Returns the complete config.lua.


Get Vehicle Mileage

Returns the mileage of a vehicle.


Get Parts Degradation

Returns the degradation data for all this vehicle parts.

chevron-rightExample Outputhashtag

Get Dyno History (Single Vehicle)

Returns dyno history for a specific vehicle.


Get Dyno History (All Vehicles)

Returns dyno history for all vehicles.

chevron-rightExample outputhashtag

Get Vehicle Engine Sound

Returns advanced performance stats for a vehicle.

Get Stancer Data

Returns the stancer configuration data for a vehicle.

chevron-rightExample Outputhashtag

Last updated

Was this helpful?