📜  遇险信号通知在五分钟内不起作用 - 无论代码示例

📅  最后修改于: 2022-03-11 14:56:00.880000             🧑  作者: Mango

代码示例2
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