SA-MP Forums Archive
Vehicle max speed - 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: Vehicle max speed (/showthread.php?tid=582941)



Vehicle max speed - deimantas1 - 24.07.2015

Hello, I want to set vehicle max speed. How do it? In GUI players write max speed (example 20km/h).


Re: Vehicle max speed - liquor - 24.07.2015

https://sampwiki.blast.hk/wiki/SetVehicleVelocity
https://sampwiki.blast.hk/wiki/GetVehicleVelocity
https://sampwiki.blast.hk/wiki/ShowPlayerDialog
https://sampwiki.blast.hk/wiki/SetTimer

A combination of these, and other obvious functions and callbacks belonging to them should do the trick



Re: Vehicle max speed - Gammix - 24.07.2015

I have made this include a few weeks/months ago: https://sampforum.blast.hk/showthread.php?pid=3489154#pid3489154

Checkout the example related to speed capping, that is what you need.