Feat( es_extended): Disable health regen option

This commit is contained in:
Mycroft
2022-04-26 19:59:11 +01:00
parent 35fe8aaf25
commit 828fdd3aca
2 changed files with 5 additions and 0 deletions
+4
View File
@@ -55,6 +55,10 @@ AddEventHandler('esx:playerLoaded', function(xPlayer, isNew, skin)
NetworkSetFriendlyFireOption(true)
end
if Config.DisableHealthRegen then
SetPlayerHealthRechargeMultiplier(PlayerId(), 0.0)
end
if Config.EnableHud then
for k,v in ipairs(ESX.PlayerData.accounts) do
local accountTpl = '<div><img src="img/accounts/' .. v.name .. '.png"/>&nbsp;{{money}}</div>'
+1
View File
@@ -18,6 +18,7 @@ Config.EnableDefaultInventory = true -- Display the default Inventory ( F2 )
Config.EnableWantedLevel = false -- Use Normal GTA wanted Level?
Config.EnablePVP = true -- Allow Player to player combat
Config.NativeNotify = false -- true = old esx notification
Config.DisableHealthRegen = true
Config.Multichar = true -- Enable support for esx_multicharacter
Config.Identity = true -- Select a characters identity data before they have loaded in (this happens by default with multichar)