(vehicleid, Float:health)
vehicleid
The ID of the vehicle to set the health of.
Float:health
The health, given as a float value.
Full vehicle health is 1000. Higher values are possible. For more information on health values, see this page.
if(strcmp("/fixengine", cmdtext, true) == 0)
{
new vehicleid = GetPlayerVehicleID(playerid);
SetVehicleHealth(vehicleid, 1000);
SendClientMessage(playerid, COLOUR_WHITE, "The vehicles engine has been fully repaired.");
return 1;
}
The following functions may be useful, as they are related to this function in one way or another.
The following callbacks might be useful, as they're related to this function in one way or another.