Merge pull request #240 from Leon485/master

Edited the combat log system (Will revert if deemed disadvantageous)
This commit is contained in:
ArkSeyonet
2021-02-01 14:12:45 -06:00
committed by GitHub
+3 -3
View File
@@ -42,13 +42,13 @@ AddEventHandler('esx:onPlayerSpawn', function()
if Config.AntiCombatLog then
while not PlayerLoaded do
Citizen.Wait(1000)
Citizen.Wait(5000)
end
ESX.TriggerServerCallback('esx_ambulancejob:getDeathStatus', function(shouldDie)
if shouldDie then
ESX.ShowNotification(_U('combatlog_message'))
RemoveItemsAfterRPDeath()
Citizen.Wait(10000)
SetEntityHealth(PlayerPedId(), 0)
end
end)
end