SA-MP Forums Archive
Getting vehicle id at spot - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Getting vehicle id at spot (/showthread.php?tid=245184)



Getting vehicle id at spot - woaha - 30.03.2011

I am making car damage report system and I want to get "at spot" vehicle's id.

I mean, that spot is on coords 55.22, 33.66, 22,55 and range is 15 and I park vehicle to in it and now I want make that system gets what vehicle id is on that spot.

Is this possible even?

Perhaps something like this:
pawn Код:
if(GetVehicleIDInRangeofPoint(areaid, 15, 55.22, 33.66, 22,55))
After getting id, I am gonna use GetVehicleDamageStatus(vehicleid,panels,doors,ligh ts,tires) and printing it to 3DText.

And ps. I know it's easyer to call this function when player is inside that vehicle, but in this case its not just possible.