fnx-matchmaking
how can i setup the match with my death system?
Our export
Server and Client side
local pim = export:["fenix-matchmaking"].PlayerInMatch() -- check if the player is in a match
local pinm = export:["fenix-matchmaking"].PlayerInMatchMaking() - check if the player is in the matchmakingHow can i set it for my death system?
all must be client side, when your player die.
local PlayerInMatch = export:["fenix-matchmaking"].PlayerInMatch()
if PlayerInMatch then
TriggerServerEvent("fenix-matchmaking:ImDead")
TriggerServerEvent("fenix-matchmaking:Updatestats")
else
-- Your death system
endHow can i set it for ambulancejob?
edit your onplayerdeath handler with this:
AddEventHandler('esx:onPlayerDeath', function(data)
local inMatch = exports["fenix-matchmaking"].PlayerInMatch()
if not inMatch then
OnPlayerDeath()
end
end)photo example

How can i set it for fnx-deathsystem?
edit the client of the death system and add this lines
local inMatch = exports["fenix-matchmaking"].PlayerInMatch()
if not inMatch then
TriggerServerEvent("fnx-death_system:updatedeath",true)
endphoto example

Last updated