High Scripts
  • Welcome
  • Information
    • Discord
    • Licensing System
    • Terms of service
  • high-phone
    • 📀Installation
    • ⚠️Common issues
    • ⚙️Configuration
      • 🖼️Imgur setup
      • 👮Job contacts
      • 🚑Distress Signals
      • 🥯OX-Mysql compatibility
      • 🇺🇸Adding translation files
    • 👩‍💻Developers
      • Client-side exports
      • Server-side exports
      • Javascript API
      • Events
      • Creating new apps
  • HIGH-3DSOUNDS
    • 📀Installation
    • ⚠️Common issues
    • 👩‍💻Developer API
      • Client-side exports
      • Server-side exports
Powered by GitBook
On this page

Was this helpful?

  1. high-phone
  2. Configuration

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
PreviousJob contactsNextOX-Mysql compatibility

Last updated 2 years ago

Was this helpful?

⚙️
🚑