SA-MP Forums Archive
GetPlayerSurfingVehicleID without vehicle having to be driven. - 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: GetPlayerSurfingVehicleID without vehicle having to be driven. (/showthread.php?tid=570752)



GetPlayerSurfingVehicleID without vehicle having to be driven. - Ahmad45123 - 12.04.2015

Hello,

I need some help creating a function that is just similar to GetPlayerSurfingVehicleID but without the limitation where the vehicle has to be occupied.


Re: GetPlayerSurfingVehicleID without vehicle having to be driven. - Threshold - 12.04.2015

Not sure if OnOccupiedVehicleUpdate is called at any time when they jump on the vehicle, but it's your best bet. Otherwise a timer to constantly check whether they're close enough to a vehicle (ew).