> For the complete documentation index, see [llms.txt](https://docs.biyei.net/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.biyei.net/old-scripts/xstorm/common-issues.md).

# Common issues

## **Brutal Ambulance issue when it does not revive**

Replace `CheckIsDeadPlayer` function in `shared/cl_editable.lua`

```lua
CheckIsDeadPlayer = function()
    if Framework == 'QBCore' then
        QBCore.Functions.GetPlayerData(function(PlayerData)
            if exports.brutal_ambulancejob:IsDead() then
                Citizen.Wait(5000)
                RevivePlayer()
                discountLives()
                if currentLives() == -1 then
                    StopClientGame()
                else
                    AirTeleportRandom()
                end    
            end
        end)
    elseif Framework == 'ESX' then
        if IsEntityDead(PlayerPedId()) then
            Citizen.Wait(1000)
            RevivePlayer()
            discountLives()
            Wait(100)
            if currentLives() == -1 then
                StopClientGame()
            else
                AirTeleportRandom()
            end
        end
    end
end
```
