Exactly, as Lokii says.
We will make it easier for you.
PHP код:
public OnVehicleDamageStatusUpdate(vehicleid, playerid)
{
new Float:hp, vehicleid = GetPlayerVehicleID(playerid), engine, lights, alarm, doors, bonnet, boot, objective;
GetVehicleHealth(vehicleid, hp);
if(hp <= 400)
{
GetVehicleParamsEx(vehicleid, engine, lights, alarm, doors, bonnet, boot, objective);
SetVehicleParamsEx(vehicleid, VEHICLE_PARAMS_OFF, lights, alarm, doors, bonnet, boot, objective);
}
return 1;
}
Also if you want to find how to configure another part of the vehicle, go to this link: