Setup FFA & Gangwar

Block PlayerDeath (FFA and Gangwar)

Example with esx_ambulancejob

  1. Open Directory client/

  2. Open File main.lua

  3. Search for esx:onPlayerDeath (STRG+F)

  4. Replace AddEventHandler with the example below

AddEventHandler('esx:onPlayerDeath', function(data)
  if GetResourceState('wise_faction') == 'started' then 
	if not exports.wise_faction.inFight() then 
	  OnPlayerDeath()
	end
  else
    OnPlayerDeath()
  end
end)

Example with qb-ambulancejob

  1. Open Directory client/

  2. Open File dead.lua

  3. Search gameEventTriggered for (STRG+F)

  4. Replace AddEventHandler with example below

Last updated