Hello there, I have been searshing for speed rockets and i found this:
function drawLinesAcrossScreen()
if getPedOccupiedVehicle(localPlayer) then
if getElementModel(getPedOccupiedVehicle(localPlayer)) == 520 then
---Script---
local sx, sy = guiGetScreenSize()
sx = sx / 2.10
sy = sy / 2.10
local maxHeight = 800
--speed--
speedx, speedy, speedz = getElementVelocity ( getPedOccupiedVehicle(localPlayer) )
actualspeed = (speedx^2 + speedy^2 + speedz^2)^(0.5)
--mps = actualspeed * 350
kmh = actualspeed * 480
--mph = actualspeed * 111.847
--/speed--
but it doesn't work Please help me