Closed JeanClode closed 5 years ago
Try this, if don't work, i check tomorrow.
function SendDistressSignal()
local playerPed = PlayerPedId()
local coords = GetEntityCoords(playerPed)
ESX.ShowNotification(_U('distress_sent'))
TriggerServerEvent('esx_addons_gcphone:startCall', 'ambulance', _U('distress_message'), {
['x'] = coords.x,
['y'] = coords.y
})
end
Thanks it somehow works again now. Very nice.
function SendDistressSignal() local playerPed = PlayerPedId() local coords = GetEntityCoords(playerPed)
ESX.ShowNotification(_U('distress_sent'))
TriggerServerEvent('esx_addons_gcphone:startCall', 'ambulance', _U('distress_message'), PlayerCoords, {
PlayerCoords = { x = coords.x, y = coords.y, z = coords.z },
})
end
i have done both but still it doesnt work can you help somehow?
bro not working!!!!!
function SendDistressSignal() local playerPed = PlayerPedId() local coords = GetEntityCoords(playerPed)
ESX.ShowNotification(_U('distress_sent'))
TriggerServerEvent('esx_addons_gcphone:startCall', 'ambulance', _U('distress_message'), PlayerCoords, {
PlayerCoords = { x = coords.x, y = coords.y, z = coords.z },
})
And is any way to don´t use a esx_phone or gcphone so you can do it standalone?
Hi,
Everything related to the new GcPhone works perfectly.
The only thing that doesn't seem to be working right now is the Distress signal call for the ambulance service when a player is down.
Sending the distress signal will send a text message to EMS, yes, but it won't include the GPS coordinates as it should / used to do.
Here is the piece of code related to this ... if you can help anyhow..
Thanks in advance