local font_flag = require('moonloader').font_flag
local speed_font = renderCreateFont('Consolas', 20, font_flag.BOLD)
local speed_multiplier = 3.6
local sw, sh = getScreenResolution()
function main()
while not isSampAvailable() do wait(200) end
while true do
if isCharInAnyCar(PLAYER_PED) then
carHandle = storeCarCharIsInNoSave(PLAYER_PED)
speed = (getCarSpeed(storeCarCharIsInNoSave(PLAYER_PED)))
speed = speed * speed_multiplier
renderFontDrawText(speed_font, '{ffff0000}' .. math.floor(speed), sw/2 - 40, sh-200, 0xFFFFFFFF)
end
wait(0)
end
end