[RELEASE] Enhanced HUD

Cannot wait to give it a try!

Yeah I would definitely be interested in this.

1 Like

please :heart_eyes:

Please do this!

i make repair speedometer and my fuel it work very good , very easy , you need change the math follow the source fuel , you don’t need export […fuel] or anything . Thanks @Naiko

That’s cz there’s no change language.

did you changed the way of calc in JS file ?

if you did can you share it ?

It already works on github. go take that file

I am getting this error with hunger/thirst

well am using legacy fuel script so i removed some codes
but i didn’t change anything in js ,
the only problem i have now that some players see that meter not changing

Citizen.CreateThread(function()
while true do
local Ped = GetPlayerPed(-1)
local PedCar = GetVehiclePedIsIn(Ped, false)
local fuelserver = exports[“esx_legacyfuel”]:GetFuel(PedCar)
SendNUIMessage({
showfuel = true,
fuel = fuelserver
})
Citizen.Wait(1)
end
end)

You need to put isShowSkinCreator at false et make an event ou put it at true when you’ve finish to create the identity

Could you make it for me ?

Could you tell me how you do this, please?

For the moment i don’t make anything but i will share it when i will make it

I have problem with skincreator and target. Skincreator can’t finish i tried to add code line to essentialmode isFirstconnect but it didnt work. The second error is no export for Target error. Please help me. I am starting target resource on top.

1 Like

Hey
when i go to the server and create the skin of the body, i press “oui” but the menu dont get out
But in console says “Outfits successfully updated !”

Can someone help me? pls :c

If you’re editing the vehicle fuel from another script I would use DecorGetFloat

fuel = DecorGetFloat(PedCar, "Vehicle.Fuel")

This way if you’re editing the Vehicle.Fuel decor you can read it back any where without relying on ESX

Full 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
          fuel = DecorGetFloat(PedCar, "Vehicle.Fuel")
          SendNUIMessage(
            {
              showfuel = true,
              fuel = fuel
            }
          )
        end
      end

      Citizen.Wait(1)
    end
  end
)

iam sorry but how i can use it wiht “exports[“esx_legacyfuel”]:GetFuel(PedCar)”

It looks like esx_legacyfuel sets the Vehicle.Fuel Decor so the code I put above will work fine.

Change it inside html files