GET_VEHICLE_TOTAL_REPAIRS
Signature
int GET_VEHICLE_TOTAL_REPAIRS(Vehicle vehicle);Parameters
| Name | Type | Description |
|---|---|---|
vehicle | Vehicle | — |
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
local retval = GetVehicleTotalRepairs(vehicle)
-- always works, by hash
local retval = Citizen.InvokeNative(0x9963d5f9, vehicle, Citizen.ResultAsInteger())JavaScript and C#
const retval = GetVehicleTotalRepairs(vehicle);
// by hash
const retval = Citizen.invokeNative('0x9963d5f9', vehicle, Citizen.returnResultAnyway(), Citizen.resultAsInteger());int retval = Function.Call<int>((Hash)0x9963d5f9, vehicle);Sources
Something wrong or missing? Contribute a verified note — corrections ship through pull requests.