Setup for Ambulancejob

Block PlayerDeath

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_gungame') == 'started' then 
	if not exports.wise_gungame:inLobby() 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