Skip to content

Commit

Permalink
feat(es_extended/shared/config/main): add Config.SaveDeathStatus
Browse files Browse the repository at this point in the history
  • Loading branch information
Kenshiin13 committed Nov 26, 2024
1 parent 51c777f commit 47ae063
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [core]/es_extended/client/main.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
1 change: 1 addition & 0 deletions [core]/es_extended/shared/config/main.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 47ae063

Please sign in to comment.