Skip to content

Commit

Permalink
Update speedometer.lua
Browse files Browse the repository at this point in the history
  • Loading branch information
Im2Slothy authored May 12, 2021
1 parent af26558 commit c5832e4
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Speedometer/speedometer.lua
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
-- HELP BY FRIEND FOR VALUES OF SPEED
-- Speed Values
--[[
local mph = 2.2369
local kph = 3.6
Expand All @@ -13,7 +13,7 @@ function text(content)
DrawText(0.8,0.9)
end
Citizen.CreateThread(function()
-- Little bit of help but it makes it so it only shows speed when in vehicle.
-- Speed only shows while in vehicle
while true do
Citizen.Wait(1)
local speed = (GetEntitySpeed(GetVehiclePedIsIn(GetPlayerPed(-1), false))*2.2369)
Expand All @@ -22,4 +22,4 @@ Citizen.CreateThread(function()
text(math.floor(speed))
end
end
end)
end)

0 comments on commit c5832e4

Please sign in to comment.