mirror of
https://github.com/esx-framework/esx_core.git
synced 2026-09-02 19:28:52 +00:00
Moved anti-combat to config (enabled by default)
This commit is contained in:
@@ -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
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user