mirror of
https://github.com/esx-framework/esx_core.git
synced 2026-09-04 08:13:21 +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()
|
||||
|
||||
Reference in New Issue
Block a user