Increase the maximum speed of a vehicle
#1

Hello!

I have seen 2 functions on wiki:
https://sampwiki.blast.hk/wiki/GetVehicleVelocity
https://sampwiki.blast.hk/wiki/SetVehicleVelocity

Allows you to retrieve and change the speed of a vehicle.

However what I'm trying to do:

To change the speed of a vehicle MAXIMUM, and https://sampwiki.blast.hk/wiki/SetVehicleVelocity it alters the timing or "for all time", for example if my Sanchez goes to 150 KM / H max descent, I want it can go to 200, you know? ^ ^

Thank you.
Reply
#2

up....
Reply
#3

I think this makes the car faster, use it when a player uses a command or presses a button.

pawn Код:
new Float:vX, Float:vY, Float:vZ;
GetVehicleVelocity(GetPlayerVehicleID(playerid), vX, vY, vZ);
SetVehicleVelocity(GetPlayerVehicleID(playerid), vX * 1.8, vY *1.8, vZ * 1.8);
Reply
#4

Nop...
Reply
#5

You need to use OnPlayerUpdate...

Check this out:

https://sampforum.blast.hk/showthread.php?tid=179089
https://sampforum.blast.hk/showthread.php?tid=334339
Reply
#6

Thank you guys
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)