Limit vehicle topspeed
#1

I have been wondering if there is a Way to
Limit the vehicles topspeed?😊
Reply
#2

Create a timer and verify the car velocity with this function: GetVehicleVelocity
Reply
#3

Код:
foreach(new vehicleid : Vehicles)
{
new topspeed = 100;
if(GetVehicleVelocity(vehicleid) > topspeed)
{
SetVehicleVelocity(vehicleid) = topspeed;
}
}
Hope you get the idea.
Reply
#4

Hopefully these three links will help you achieve your goal.

https://sampwiki.blast.hk/wiki/GetVehicleVelocity
https://sampwiki.blast.hk/wiki/SetVehicleVelocity
https://sampforum.blast.hk/showthread.php?tid=364124
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)