> For the complete documentation index, see [llms.txt](https://izaap-studios.gitbook.io/izaap-scripts/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://izaap-studios.gitbook.io/izaap-scripts/arenapvp/integrations.md).

# Integrations

**All integrations are organized inside the `/integrations` folder, including Inventory, Revive, and Skin support.**

### ✅<mark style="color:$primary;">`ak47_qb_ambulancejob`</mark>

To make ArenaPVP work correctly with `ak47_qb_ambulancejob`, update the `CanPlayerDie` function in `modules/death/client/customizable.lua`.

The default version only handles `ls-arcade`. The replacement below also supports `izaap_arenapvp` and safely validates the killer before sending the kill event.

#### Original

File: `modules/death/client/customizable.lua`

```lua
function CanPlayerDie(attacker, weapon)
    if GetResourceState('ls-arcade') == 'started' then
        if not exports['ls-arcade']:isPlayerInArena() then
            return true
        end
        local killerId = NetworkGetPlayerIndexFromPed(attacker)
        TriggerServerEvent('ls-arcade:server:playerKilled', GetPlayerServerId(killerId))
        return false
    else
        return true
    end
end
```

#### Replace with

```lua
function CanPlayerDie(attacker, weapon)
    -- ls-arcade
    if GetResourceState('ls-arcade') == 'started' then
        if exports['ls-arcade']:isPlayerInArena() then
            local killerId = NetworkGetPlayerIndexFromPed(attacker)

            if killerId ~= -1 then
                TriggerServerEvent('ls-arcade:server:playerKilled', GetPlayerServerId(killerId))
            end

            return false
        end
    end

    -- izaap_arenapvp
    if GetResourceState('izaap_arenapvp') == 'started' then
        if exports['izaap_arenapvp']:IsPlayerInMatch() then
            return false
        end
    end

    return true
end
```

With this change, the death flow stays compatible with both `ls-arcade` and `izaap_arenapvp`.
