I recently bought the Quasar Phone. Installing and setting up everything worked great, but a problem revealed itself pretty quickly. The normal dispatch of the esx_ambulancejob, which you can do when you’re dead. I’ve only ever done with the “gcphone” script. Unfortunately, I don’t know if it’s even possible to set this up with the Quasar Phone. I couldn’t find any help on this in the Quasar documentation either. Maybe someone knows more about this script than me and can help me to set this dispatch up with the Quasar Phone. Thanks everyone in advance!
function SendDistressSignal()
local playerPed = PlayerPedId()
local coords = GetEntityCoords(playerPed)
local message = "Injured person" -- The message that will be received.
local alert = {
message = message,
-- img = "img url", -- You can add image here (OPTIONAL).
location = coords,
}
TriggerServerEvent('qs-smartphone:server:sendJobAlert', alert, "ambulance") -- "Your ambulance job"
TriggerServerEvent('qs-smartphone:server:AddNotifies', {
head = "Google My Business", -- Message name.
msg = message,
app = 'business'
})
end
this one too you can just trade it with the old ones
function SendDistressSignal()
local playerPed = PlayerPedId()
local coords = GetEntityCoords(playerPed)
TriggerEvent('qs-smartphone:sendJobMessage', {
phone = 'ambulance',
type = 'message',
message = 'Injured person'
})
Wait(300)
TriggerEvent('qs-smartphone:sendJobMessage', {
phone = 'ambulance',
type = 'location'
})
end