Skip to content

Mechanic Integration

Explore the versatile integration options for vehicle parts and statistics within your resource through our custom exports.

--Without vehicle entity ID
exports['realisticVehicleSystem']:fixPart("all", 1000.00, false)
--With Vehicle Entity ID
exports['realisticVehicleSystem']:fixPart("all", 1000.00, false, vehicle)
local array = exports['realisticVehicleSystem']:getVehiclePartsArray(plate)
print("Engine:" .. array.engine)
print("Radiator:" .. array.radiator)
print("Fuel Tank:" .. array.fueltank)
...
local percentageExampleEngine = array.engine / 10
print("Engine:" .. percentageExampleEngine .. "%")