Page cover

βš’οΈCommon issues

Here you will find a list of common problems reported and solved.

Brutal Ambulance issue when it does not revive

Replace CheckIsDeadPlayer function in shared/cl_editable.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

Last updated