mirror of
https://github.com/esx-framework/esx_core.git
synced 2026-08-29 01:08:54 +00:00
Feat( es_extended): Disable health regen option
This commit is contained in:
@@ -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"/> {{money}}</div>'
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user