Getting nearest vehicle in range
#2

Why not loop through all vehicles and see if the player is close to any of them? You would just loop through all possible IDs (2000) and then do https://sampwiki.blast.hk/wiki/GetPlayerDistanceFromPoint with https://sampwiki.blast.hk/wiki/GetVehiclePos.
Reply


Messages In This Thread
Getting nearest vehicle in range - by Jimmy0wns - 30.01.2014, 21:23
Re: Getting nearest vehicle in range - by AlonzoTorres - 30.01.2014, 21:45
Re: Getting nearest vehicle in range - by MP2 - 31.01.2014, 00:04
Re: Getting nearest vehicle in range - by Jimmy0wns - 31.01.2014, 08:20

Forum Jump:


Users browsing this thread: 1 Guest(s)