Posts: 1,110
Threads: 183
Joined: Jul 2009
Reputation:
0
How can you find the vehicle ID of for(new i=0;i<MAX_VEHICLES;i++)
because I want to make a command, but I need the vehicleID.
Thanks, all help appreciated.
Posts: 995
Threads: 71
Joined: Jul 2008
Reputation:
0
just do GetPlayerVehicleID(playerid);
Or change MAX_VEHICLES to MAX_PLAYERS and change playerid to i
Posts: 1,110
Threads: 183
Joined: Jul 2009
Reputation:
0
Well what I'm trying to do is create an admin command that shuts off all car engines, but I think I need the vehicle ID to do that...
FactionCar[x][fcEngine] is my engine where x = vehicleid.
What I want to do is have the command shut all engines off.
Posts: 2,862
Threads: 11
Joined: Mar 2008
Reputation:
0
Just put vehicle id inside?
Like VehicleInfo[vehicleid][fcEngine].