RedM Natives

GET_VEHICLE_TOTAL_REPAIRS

Hash0x9963D5F9
Runtime nameGetVehicleTotalRepairs
NamespaceCFX
SideServer
NameOfficial
Docs

Signature

int GET_VEHICLE_TOTAL_REPAIRS(Vehicle vehicle);

Parameters

NameTypeDescription
vehicleVehicle—

Returns int — Returns the total amount of repairs. Each repair will increase the count to make it possible to detect client repairs. The value has a range from 0 to 15. Next value after 15 is 0.

Usage

Lua
local retval = GetVehicleTotalRepairs(vehicle)

-- always works, by hash
local retval = Citizen.InvokeNative(0x9963d5f9, vehicle, Citizen.ResultAsInteger())
JavaScript and C#
JavaScript
const retval = GetVehicleTotalRepairs(vehicle);

// by hash
const retval = Citizen.invokeNative('0x9963d5f9', vehicle, Citizen.returnResultAnyway(), Citizen.resultAsInteger());
C#
int retval = Function.Call<int>((Hash)0x9963d5f9, vehicle);

Sources

Cfx.re native reference

Something wrong or missing? Contribute a verified note — corrections ship through pull requests.