nth_simpleHud
A simple hud without dependency just gta native.
Preview:
Download:
Installation:
- Extract the .zip or open it.
- Place
nth_simpleHudinto yourresourcesfolder. - Add
ensure nth_simpleHudto yourserver.cfg
Requirements:
- FiveM
- That’s all
Special Instructions:
Into Config.lua line 9.
Config.lifeRequest = function()
--Insert your code here
return 50, 50 --The first is thirst and the seconde is hunger (Attention: This must return a percentage!)
end
Exemple (ESX):
I don’t follow that there and need the “math.floor” I’m not testing, if it doesn’t work remove it and just leave the “status.getPercent()”
Config.lifeRequest = function()
local thirst, hunger = nil, nil
TriggerEvent('esx_status:getStatus', 'thirst', function(status)
thirst = math.floor(100-status.getPercent())
end)
TriggerEvent('esx_status:getStatus', 'hunger', function(status)
hunger = math.floor(100-status.getPercent())
end)
return thirst, hunger
end

