Distress Signal notification not working fivem code example
Example 1: Distress Signal notification not working fivem
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
Example 2: Distress Signal notification not working fivem
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