15.12.2012, 12:11
How do I check if an engine in on using GetVehicleParamsEx ? This will be for deciding if my car's engine should turn on or turn off.
Thanks: jakejohnsonusa
Thanks: jakejohnsonusa
new vehicleid = GetPlayerVehicleID(playerid);
new engine, lights, alarm, doors, bonnet, boot, objective;
GetVehicleParamsEx(vehicleid, engine, lights, alarm, doors, bonnet, boot, objective);
if(engine == 1) {
// ENGINE IS RUNNING
}
else {
// ENGINE IS NOT RUNNING
}