SA-MP Forums Archive
Nearby vehicle. - 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)
+--- Thread: Nearby vehicle. (/showthread.php?tid=612594)



Nearby vehicle. - Bailews - 19.07.2016

Could anyone share a script which would check that if player near the specific modelid vehicle?


Re: Nearby vehicle. - F1N4L - 19.07.2016

GetVehiclePos
IsPlayerInRangeOfPoint


Re: Nearby vehicle. - Bailews - 19.07.2016

I ask for already who made this, and I need not a one car, but all car models which for example are modelid = 530


Re: Nearby vehicle. - Konstantinos - 19.07.2016

http://forum.sa-mp.com/showpost.php?...29&postcount=2
https://sampwiki.blast.hk/wiki/GetVehicleModel

Get the vehicle ID returned from the first function and call GetVehicleModel to get its modelid. If it is 530, do your stuff.