Posts: 45
Threads: 0
Joined: Apr 2018
Reputation:
0
GetVehicleSpeed(vehicleid)
{
new Float:vx, Float:vy, Float:vz, Float:vel; // vehicle x y z
vel = GetVehicleVelocity(GetPlayerVehicleID(playerid), vx, vy, vz); // pythagoras square
vel = (floatsqroot(((vx*vx)+(vy*vy))+(vz*vz))* 181.5); // pythagoras square root vel * by magic number 181.5 by pottus
return vel; // vel is rounded anddnow return it
}
...(%i speed, vel)
There's 0.6 miles in 1 km, you do the maths.
Posts: 78
Threads: 27
Joined: Feb 2017
Reputation:
0
I want textdraw in image and code ..
Posts: 78
Threads: 27
Joined: Feb 2017
Reputation:
0
please i want small speedo miles textdraw