Posts: 1,753
Threads: 277
Joined: Sep 2010
Reputation:
0
Is there a way that I can get my car where when the GM starts, they are all off?
Also, is there a way to turn off the vehicles engine, and not let it turn on, when the fuel runs out?
Thanks.
Posts: 1,767
Threads: 124
Joined: Mar 2010
Posts: 1,767
Threads: 124
Joined: Mar 2010
If you wan't to GetVehicle Doors (state is locked or opened) you're using this like:
pawn Код:
new engine, lights, alarm, doors, bonnet, boot, objective;
GetVehicleParamsEx(GetPlayerVehicleID(playerid), engine, lights, alarm, doors, bonnet, boot, objective);
if(doors) // If doors, are opened.
{
SetVehicleParamsEx(GetPlayerVehicleID(playerid), engine, lights, alarm, VEHICLE_PARAMS_ON, bonnet, boot, objective);
}