🚑Distress Signals

You can send Distress Signals to the ambulance by using this code snippet in your esx_ambulancejob script!

Open your esx_ambulancejob resource folder, and open main.lua file located in esx_ambulancejob/client/ folder!

Now find the function SendDistressSignal() and replace the whole function code with the code below.

function SendDistressSignal()
    local playerPed = PlayerPedId()
    local coords    = GetEntityCoords(playerPed)
    local position = {x = coords.x, y = coords.y, z = coords.z}

    TriggerEvent("high_phone:sendNotification", "Messages", "Distress signal sent to available units!", 3000)
    TriggerServerEvent("high_phone:sendMessage", "02", "Person is dead at (GPS:" .. position.x .. "," .. position.y .. ")")
end

Last updated