SA-MP Forums Archive
Detect wheels - 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: Detect wheels (/showthread.php?tid=653384)



Detect wheels - Paulthaz - 03.05.2018

Hi guys, how are you? So I was wondering how to detect if the player is near any of the 4 wheels of the vehicle, should I use GetVehicleModelInfo? If so, how?


Re: Detect wheels - Type-R - 03.05.2018

Okay, so i found this on how to detect if the player is by the trunk or by the hood:

http://forum.sa-mp.com/showpost.php?...18&postcount=7

So by looking at this, it seems that this line is very useful:

Код:
GetVehicleModelInfo(411, VEHICLE_MODEL_INFO_SIZE, X, Y, Z);
So i am sure you can mend something from this and here is more info on this function, here:

https://sampwiki.blast.hk/wiki/GetVehicleModelInfo

And here are all the types of info you can retrieve with the function:

https://sampwiki.blast.hk/wiki/Vehicle_information_types

I am sure you can mend something from the info i have given you here, good luck!