mirror of
https://github.com/esx-framework/esx_core.git
synced 2026-08-31 10:18:54 +00:00
Ability to make the display hud enable or disable in config file (#37)
* Update config.lua Adds the option to make the bars visible/invisible in case you're using some other resource like trew_hud_ui * Update main.lua Adds the option to make the bars visible/invisible in case you're using some other resource like trew_hud_ui
This commit is contained in:
+3
-3
@@ -40,13 +40,13 @@ end)
|
||||
AddEventHandler('esx_status:loaded', function(status)
|
||||
|
||||
TriggerEvent('esx_status:registerStatus', 'hunger', 1000000, '#CFAD0F', function(status)
|
||||
return true
|
||||
return Config.Visible
|
||||
end, function(status)
|
||||
status.remove(100)
|
||||
end)
|
||||
|
||||
TriggerEvent('esx_status:registerStatus', 'thirst', 1000000, '#0C98F1', function(status)
|
||||
return true
|
||||
return Config.Visible
|
||||
end, function(status)
|
||||
status.remove(75)
|
||||
end)
|
||||
@@ -140,4 +140,4 @@ AddEventHandler('esx_basicneeds:onDrink', function(prop_name)
|
||||
end)
|
||||
|
||||
end
|
||||
end)
|
||||
end)
|
||||
|
||||
+2
-1
@@ -1,2 +1,3 @@
|
||||
Config = {}
|
||||
Config.Locale = 'fr'
|
||||
Config.Locale = 'fr'
|
||||
Config.Visible = true
|
||||
|
||||
Reference in New Issue
Block a user