Quasar Dispatch Integration

Configure FiveM Deathscreen to use Quasar Smartphone Pro dispatch.

Update Deathscreen Dispatch Handler

Replace the dispatch integration in the correct file for your ambulancejob in sky_deathscreen/config/framework/:

sky_deathscreen/config/framework/esx.lua
if GetResourceState("esx_ambulancejob") == "started" then

    function Functions.sendDispatch()
        local coords = GetEntityCoords(PlayerPedId())
        local street = GetStreetNameAtCoord(coords.x, coords.y, coords.z)
        local streetName = GetStreetNameFromHashKey(street)

        local message = json.encode(coords)
        TriggerServerEvent('phone:sendSOSMessage', 'ambulance', message, 'location')

        Citizen.Wait(100)

        message = ([[
            Verletzte Person bei %s. beeil dich!
        ]]):format(streetName)
        TriggerServerEvent('phone:sendSOSMessage', 'ambulance', message, 'message')
    end

    function Functions.respawn()
        exports.esx_ambulancejob:RemoveItemsAfterRPDeath()
    end

    function Functions.revive()
        TriggerEvent("esx_ambulancejob:revive")
    end

end

Support

Need help? Our support team is always ready to assist

Join Discord