Help ID problem
#1

well i have just found out that i have a problem with all car ID's because the GM i am using had all ID's like cars from ID 70 to 80 are planes and such but all of that got Mixed UP so when i enter a bike it says it's a plane and many other is there a way to fix that problem so i dont need to use the
Код:
if(GetPlayerVehicleID(playerid) >= 161 && GetPlayerVehicleID(playerid) <= 185)
is there any other command to use instead to check for the car id?? Pls help
Reply
#2

when you create vehicles, they get assigned increasing vehicleid's. inserting a AddStaticVehicle() or CreateVehicle() in between your already scritped ones, will also disturb the order of the vehicleids created.
your solution is to check for the model of the vehicleid. have a look at GetVehicleModel
Reply
#3

i know that but i use diffrent cars like i use premiers for Mafia cars and also for rent and players can buy a premier also if i use it with GetVehicleModel i can't use it for something else
Reply
#4

anyone know how can i fix the ids? i have bikes that are planes and many other things! all is mixed up
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)