QF Developers
ShopYouTubeDiscord
ShopYouTubeDiscord
  • 👋Welcome!
  • 🕵️Our offer
    • ▶️Scripts
    • ▶️Bundles
    • ▶️Subscriptions
  • 🤭IM NEW
    • 📎Basic questions
  • 🚓MDT LSPD
    • Getting set up
      • 📝Import SQL
      • 📱Setting up Config
      • ✈️Dispatch notifications
  • 🚑MDT EMS
    • Getting set up
      • 📝Import SQL
      • 📱Setting up Config
      • ✈️Dispatch notifications
  • 🚗MDT LSC
    • Getting set up
      • 📝Import SQL
      • 📱Setting up Config
      • ✈️Dispatch notifications
  • 🤵MDT DOJ
    • Getting set up
      • 📝Import SQL
      • 📱Setting up Config
  • 🚚Road Repair Job
    • Getting set up
      • 📱Setting up Config
  • 💰Banking System
    • Getting set up
      • 📝Import SQL
      • 📱Setting up Config
  • 🏎️Car Races
    • Getting set up
      • 📝Import SQL
      • 📱Setting up Config
  • 👀Spawn Selector
    • Getting set up
      • 📱Setting up Config
  • ✌️Skin Menu
    • Getting set up
      • 📝Import SQL
      • 📱Setting up Config
      • 🧚‍♀️Events
  • ⚡Electrician Multiplayer Job
    • Getting set up
      • 📱Setting up Config
Powered by GitBook
On this page

Was this helpful?

  1. MDT EMS
  2. Getting set up

Dispatch notifications

PreviousSetting up ConfigNextGetting set up

Last updated 2 months ago

Was this helpful?

Dispatch notifications: In this tab, you will learn how to add a notification addon to our dispatch.

Framework ESX / QBOX / QB

Config.Dispatch and Config.NotifDispatchAlerts should be setted to "true" value.

Then you need to add the following 'Trigger' in your script, depending on whether your script code is 'client' or 'server'.

Client:


local coords = GetEntityCoords(PlayerPedId())
local title = 'Title'
local subtitle = 'Subtitle'
local code = '10-90'
local color = 'rgb(255, 0, 255)'
local peopleToJoin = '10'
local spriteId = 458
local blipColorJob = 3
local blipColorOther = 76

TriggerEvent('qf-mdt-ems/addDispatchAlert', coords, title, subtitle, code, color, peopleToJoin, spriteId, blipColorJob, blipColorOther)

Server:


local coords = GetEntityCoords(GetPlayerPed(source))
local title = 'Title'
local subtitle = 'Subtitle'
local code = '10-90'
local color = 'rgb(255, 0, 255)'
local peopleToJoin = '10'
local spriteId = 458
local blipColorJob = 3
local blipColorOther = 76

TriggerClientEvent('qf-mdt-ems/addDispatchAlert', -1, coords, title, subtitle, code, color, peopleToJoin, spriteId, blipColorJob, blipColorOther)
🚑
✈️
https://qfdevelopers.tebex.io