Im using ataGarage script, how to correctly export lc_fuel to ataGarage ? I did try edit the ataGarage client.lua but the fuel level is still either decrease or increase when i get the car out from garage .
LC Fuel GetFuel & SetFuel Exports
[FREE] LC Fuel - Gas, Diesel, Electric & more
ata Garage [ESX][Paid][NEW UPDATE]
If you have time to help, i can send you client.lua in person.Thanks in advance !
I can assist you with that if you provide a client.lua screenshot or file either the whole code or the specific lines you are trying to edit! 
Sorry i have this solved by LC developer,they are helpful even this is a free release script. I have another problem HUD not hiding while pause menu is active…See if you have time to give solution,Thabks in advance🥰
Citizen.CreateThread(function()
while true do
Citizen.Wait(650)
if IsPauseMenuActive() and not pauseActive then
pauseActive = true
SendNUIMessage({
action = 'EXIT',
args = false
})
end
if not IsPauseMenuActive() and pauseActive then
pauseActive = false
SendNUIMessage({
action = 'EXIT',
args = true
})
end
end
end)
Is this the function of hiding hud while pause menu is active? How to edit it correctly?
could you also share the js where the action EXIT is being used?
To help you understand I made a test script of how it should look like
client.lua
local pauseActive = false
Citizen.CreateThread(function()
while true do
Citizen.Wait(650) -- shorter wait for better responsiveness
if IsPauseMenuActive() and not pauseActive then
pauseActive = true
SendNUIMessage({
action = 'toggleHud',
visible = false
})
elseif not IsPauseMenuActive() and pauseActive then
pauseActive = false
SendNUIMessage({
action = 'toggleHud',
visible = true
})
end
end
end)
script.js
window.addEventListener('message', function(event) {
const data = event.data;
if (data.action === 'toggleHud') {
const hud = document.getElementById('hud');
if (hud) {
hud.style.display = data.visible ? 'block' : 'none';
}
}
});
Concept HTML
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>HUD</title>
<style>
#hud {
position: absolute;
top: 50px;
left: 50px;
background: rgba(0, 0, 0, 0.7);
color: white;
padding: 10px;
border-radius: 8px;
}
</style>
</head>
<body>
<div id="hud">This is the HUD</div>
<script src="script.js"></script>
</body>
</html>
I sent the whole script instead, check your message pls
1 Like