dont think so
Anyone know how to convet the speedometer over to MPH instead of KMH?
If you want to convert it, all you have to do is change where is says kmh in the html file to mph, then find everywhere that it multiplies something by 3.6 in the client.lua and replace the 3.6 with 2.23694.
How do you configure this so it’s in english?
in your server.cfg file have you tried this?
sets locale “en-US”
Can anyone help me to make the speedometer fuel compatible with LegacyFuel?
I think i need to rewrite this code:
Citizen.CreateThread(function()
while true do
local Ped = GetPlayerPed(-1)
if(IsPedInAnyVehicle(Ped)) then
local PedCar = GetVehiclePedIsIn(Ped, false)
if PedCar and GetPedInVehicleSeat(PedCar, -1) == Ped then
carSpeed = math.ceil(GetEntitySpeed(PedCar) * 3.6)
fuel = GetVehicleFuelLevel(PedCar)
rpm = GetVehicleCurrentRpm(PedCar)
rpmfuel = 0
if rpm > 0.9 then
rpmfuel = fuel - rpm / 0.8
Citizen.Wait(1000)
elseif rpm > 0.8 then
rpmfuel = fuel - rpm / 1.1
Citizen.Wait(1500)
elseif rpm > 0.7 then
rpmfuel = fuel - rpm / 2.2
Citizen.Wait(2000)
elseif rpm > 0.6 then
rpmfuel = fuel - rpm / 4.1
Citizen.Wait(3000)
elseif rpm > 0.5 then
rpmfuel = fuel - rpm / 5.7
Citizen.Wait(4000)
elseif rpm > 0.4 then
rpmfuel = fuel - rpm / 6.4
Citizen.Wait(5000)
elseif rpm > 0.3 then
rpmfuel = fuel - rpm / 6.9
Citizen.Wait(6000)
elseif rpm > 0.2 then
rpmfuel = fuel - rpm / 7.3
Citizen.Wait(8000)
else
rpmfuel = fuel - rpm / 7.5
Citizen.Wait(15000)
end
carFuel = SetVehicleFuelLevel(PedCar, rpmfuel)
SendNUIMessage({
showfuel = true,
fuel = fuel
})
end
end
Citizen.Wait(1)
end
end)
Actually the fuel is going empty very fast.
Thanks
to change fuel level to legacyfuel, go to speedometer/client.lua:95
and replace
fuel = GetVehicleFuelLevel(PedCar)
with
fuel = exports["LegacyFuel"]:GetFuel(PedCar)
You fixed that? i have the same error please heelp!
i have the same error, you fix that? please help
vart finns det scriptet?
Hello. Color for fuel below 20 and 10 doesn’t work. The HuD remains white
. Any idea to fix that ?
Is it possible to get the carhud in mph instead of km/h
it would have been nice to have an installation/configuration guide with …
If anyone would like to help me, please do not hesitate
Hey! Love this script, is there any way to hide the skinchanger from showing up?
There is no inventory script? I don’t see it anymore, can you provide me the link?
How can i make it english
can you help me? I don’t know where to add the code that appears in the github instructions, sorry I’m new to installing scripts.
Erhm and why is this related to this topic?
Does its still up I had don’t find the l;ink for the inventory and the v2 of the skinchanger…
any way to change the language?