help with cars id
#1

i am not looking for cars ID like 400-600.

this is a line from godfather:

{405,-2125.7424,658.0462,52.2988,93.9612},//carid 90
^
^
how he know that this is 90
is there anywhere defined or something.
btw. I need it for rent car and some other things.

Reply
#2

search the sa-mp wiki at https://sampwiki.blast.hk/wiki/Main_Page
Reply
#3

cant find I seached
Reply
#4

if u have the vehicles on one script all addststicvehicle bцah
then u can count from 1 to ...
so u get the id like that

if u want to check the vehicle id sum1 drives then u need

GetPlayerVehicleID(playerid);
Reply
#5

Thanks
Reply
#6

i have some AddStaticVehicle and have AddStaticVehicleEx
and i counted then all together and the result in game was bad. all mixed
rentcar,planes,boats,taxi all.....

how should i count
Reply
#7

pls help?
Reply
#8

count them in ur script line for line

AddStaticVehicle(blah..); //1
AddStaticVehicle(blah..);//2
AddStaticVehicle(blah..);//3
AddStaticVehicle(blah..);//4
AddStaticVehicle(blah..);//5
AddStaticVehicle(blah..);//6
Reply
#9

Read this, and hopefully you'll understand: http://forum.sa-mp.com/index.php?top....0#post_assume
Reply
#10

Quote:
Originally Posted by saiberfun
count them in ur script line for line

AddStaticVehicle(blah..); //1
AddStaticVehicle(blah..);//2
AddStaticVehicle(blah..);//3
AddStaticVehicle(blah..);//4
AddStaticVehicle(blah..);//5
AddStaticVehicle(blah..);//6
you have to count from zero like this:

Код:
AddStaticVehicle(blah..); //0
AddStaticVehicle(blah..);//1
AddStaticVehicle(blah..);//2
AddStaticVehicle(blah..);//3
AddStaticVehicle(blah..);//4
AddStaticVehicle(blah..);//5
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)