ESX Alerts

1

esx_ambulancejob

View the code on GitHub: esx_ambuancejob/client/main.lua

Add the code snippet exactly as seen in the screenshot below.

esx_ambuancejob/client/main.lua — line 189
  local data = exports['cd_dispatch3d']:GetPlayerInfo()
  TriggerServerEvent('cd_dispatch:AddNotification', {
    job_table = {'police', 'ambulance'},
    coords    = data.coords,
    title     = '10-10 - Injured Person',
    message   = 'A ' .. data.sex .. ' injured at ' .. data.street,
    flash     = false,
    sound     = 1,
    blip = {
      sprite  = 305,
      scale   = 1.2,
      colour  = 1,
      flashes = true,
      text    = '10-10 - Injured Person',
      time    = 5,
      radius  = 0,
    }
  })


Last updated

Was this helpful?