feat(es_extended/shared/config/main): add Config.SaveDeathStatus

This commit is contained in:
Ilias Rbayti
2024-11-26 23:20:35 +01:00
parent 51c777f6c2
commit 47ae063aa1
2 changed files with 2 additions and 1 deletions
+1 -1
View File
@@ -68,7 +68,7 @@ AddEventHandler("esx:onPlayerSpawn", function()
if isFirstSpawn then
isFirstSpawn = false
if ESX.PlayerData.metadata.health then
if ESX.PlayerData.metadata.health and (ESX.PlayerData.metadata.health > 0 or Config.SaveDeathStatus) then
SetEntityHealth(ESX.PlayerData.ped, ESX.PlayerData.metadata.health)
end
@@ -40,6 +40,7 @@ Config.LogPaycheck = false -- Logs paychecks to a nominated Discord channel via
Config.EnableSocietyPayouts = false -- pay from the society account that the player is employed at? Requirement: esx_society
Config.MaxWeight = 24 -- the max inventory weight without a backpack
Config.PaycheckInterval = 7 * 60000 -- how often to receive paychecks in milliseconds
Config.SaveDeathStatus = true -- Save the death status of a player
Config.EnableDebug = false -- Use Debug options?
Config.DefaultJobDuty = true -- A players default duty status when changing jobs