Moved anti-combat to config (enabled by default)

This commit is contained in:
ElPumpo
2018-04-15 01:41:37 +02:00
parent 65100a8abd
commit 9e18a0f0c4
2 changed files with 10 additions and 2 deletions
+8
View File
@@ -893,6 +893,14 @@ Citizen.CreateThread(function()
end
end)
RegisterNetEvent('esx_ambulancejob:requestDeath')
AddEventHandler('esx_ambulancejob:requestDeath', function()
if Config.AntiCombatLog then
Citizen.Wait(5000)
SetEntityHealth(GetPlayerPed(-1), 0)
end
end)
-- Load unloaded IPLs
Citizen.CreateThread(function()
LoadMpDlcMaps()
+2 -2
View File
@@ -2,8 +2,8 @@ Config = {}
Config.DrawDistance = 100.0
Config.MarkerColor = { r = 102, g = 0, b = 102 }
Config.MarkerSize = { x = 1.5, y = 1.5, z = 1.0 }
Config.ReviveReward = 700
Config.ReviveReward = 700 -- revive reward, set to 0 if you don't want it enabled
Config.AntiCombatLog = true -- enable anti-combat logging?
local second = 1000
local minute = 60 * second