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:
akbaig
2020-07-03 21:38:38 +05:00
committed by GitHub
parent 94031d40a0
commit dea210983f
2 changed files with 5 additions and 4 deletions
+3 -3
View File
@@ -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
View File
@@ -1,2 +1,3 @@
Config = {}
Config.Locale = 'fr'
Config.Locale = 'fr'
Config.Visible = true