[FREE] [STANDALONE] [HUD] NTH SimpleHud

nth_simpleHud

A simple hud without dependency just gta native.

Preview:


Download:

Installation:

  1. Extract the .zip or open it.
  2. Place nth_simpleHud into your resources folder.
  3. Add ensure nth_simpleHud to your server.cfg

Requirements:

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 
5 Likes

This Amazing

1 Like

Hey,
Could you make a Esx ready version please?
Thanks.

1 Like

Hello, yesterday I added an example with esx in the special instructions

1 Like

Thanks!

1 Like

great release!
is above the map better for all resolutions?
just personally think the hud would look very neat below the armor and health.

Thank you, It was planned in a future update to be able to choose below or above the map, for the resolution normally there is no problem I personally tried without apparent problem

1 Like

New Update V0.0.6:

  • Add hud position settings (“top” or “bottom”)

Update V0.0.7:

  • Fix bottom background
1 Like

Hey, i love your hud! I have the folowing problem:

""SCRIPT ERROR: @nth_simpleHud/client/cl_hud.lua:31: attempt to perform arithmetic on a nil value (upvalue “Hpercent”) “”

But when i restart the script it works fine.

Can someone help me ?

Hi, could you try setting thirst and hunger to 0 instead of nil? This could also be related to the order of starting your resources. If you’re using ESX, you should place it after your esx_status. Typically, by setting thirst and hunger to zero, you shouldn’t encounter any issues in any case.

Thanks it worked, what do i have to change that the bar moves in the opposite direction ?