pScripts
  • INFORMATION
    • FiveM Asset Escrow System
    • Assets Updates
    • Discord Roles
  • Assets & Guides
    • 🏛️Banking
      • 👋Installation Guide
      • ⚙️Editable Files
      • Client Exports
      • Server Exports
    • 👨‍⚖️DOJ Job
      • 👋Installation Guide
      • ⚙️Config Files
      • Client Exports
      • Server Exports
    • 💻DOJ MDT
      • 👋Installation Guide
      • ⚙️Config Files
      • Client Exports
      • Server Exports
    • 🌿Weed Plants
      • 👋Installation Guide
      • ⚙️Config Files
      • Client Exports
      • Server Exports
    • 🚗Car Sale Job
      • 👋Installation Guide
      • ⚙️Config File
      • Client Exports
      • Server Exports
    • 📙Job Core
      • ⚙️Config File
      • Exports
    • 👮Police Job
      • 👋Installation Guide
      • ⚠️Common Issues
      • ⁉️Setup Server
      • ⚙️Config Files
      • Client Exports
        • Bodycam
        • Evidence System
        • Duty GPS
        • Interactions
        • Jail System
        • Police Objects
        • Speed Camera
        • Manage Traffic
        • Misc
      • Server Exports
        • Evidence System
        • Interactions
        • Jail System
        • Misc
    • 💻Police MDT
      • ⁉️Setup Server
      • ⚙️Config File
      • Client Exports
      • Server Exports
      • Dispatch System
    • 🚑Ambulance Job
      • 👋Installation Guide
      • ⁉️Setup Server
      • ⚙️Config Files
      • Client Exports
      • Server Exports
    • 💻Ambulance MDT
      • 👋Installation Guide
      • ⚙️Config File
      • Exports and Events
      • Dispatch System
    • 🛠️Mechanic Job
      • ⚙️Config Files
      • Mileage System
      • Nitro System
      • Lifters System
      • Misc
    • 💻Mechanic MDT
      • ⚙️Config File
      • Exports
      • Dispatch System
      • Licenses System
    • 💵Fleeca Robbery
      • 👋Installation Guide
      • ⚙️Config File
    • ⌚Jewelry Robbery
      • 👋Installation Guide
      • ⚙️Config File
    • 💇Appearance
      • ⚙️Config Files
      • Client Exports
    • 👀Hints
      • Exports
    • 👋Helper
      • Exports
    • 🔧Tuning Menu
      • Exports and Events
      • ⚙️Config Files
    • 🆔Documents
      • ⚙️Config File
      • Exports and Events
    • 📱Phone
      • ⤵️INSTALLATION
      • ⚙️CONFIG FILES
      • 📃FEATURES
      • 📱APPS
      • 📇SIM CARDS
      • 📳NOTIFICATIONS
      • 📨MESSAGES
      • 🚘GARAGES
      • 🪙CRYPTO
      • 🔪DARK CONNECT
      • ⌨️FUNCTIONS
      • 🌎LANGUAGE
      • ⚠️COMMON ISSUES
    • 🪙Casino Games
      • 🎰Slot Machine
      • 🏐Roulette
      • ♣️Poker
    • 💻GCT
      • 📨EXPORTS
    • 💻Civil MDT
      • ⤵️INSTALLATION
      • 📱APPS
      • 🏎️BOOSTING
      • 🏅ACHIEVEMENTS
      • ⚠️COMMON ISSUES
Powered by GitBook
On this page
  • Open Dispatch
  • Send Alert
  1. Assets & Guides
  2. Ambulance MDT

Dispatch System

Open Dispatch

You are able to open dispatch by pressing "DELETE" on your keyboard.

exports['piotreq_gmt']:OpenDispatch()

Send Alert

With following export you are able to send alert.

  • senderId number

  • data table

  • title string

  • code string

  • icon string (fontawesome)

  • info table

  • isStreet? boolean

  • coords? vector3 / vector4 / table (not required if you want source coords)

  • jobs? table (dont use if for everyone)

  • blip? table

  • type? "normal" / "risk" (default "risk")

  • canAnswer? boolean (default false)

  • maxOfficers? number (default 4)

  • time? number (default 5, in minutes, how long alert will be on dispatch)

  • notifyTime? number (default 7000)

exports['piotreq_gmt']:SendAlert(senderId, {
    title = 'Report',
    code = '911',
    icon = 'fa-solid fa-mask',
    info = {
       {icon = 'fa-solid fa-road', isStreet = true},
       {icon = 'fa-solid fa-triangle-exclamation', data = 'George Gouda'},
    },
    jobs = {['ambulance'] = true}, -- optional
    blip = { -- optional
       scale = 1.1,
       sprite = 1,
       category = 3, -- default 1
       color = 1,
       hidden = false, -- default false (hidden on legend)
       priority = 5, -- default 5
       short = true, -- as short range? default true
       alpha = 200, -- default 255
       name = "Report"
    },
    type = 'normal', -- default normal
    canAnswer = true, -- default false
    maxOfficers = 4, -- default 4
    time = 5,-- 10 minutes, default 5
    notifyTime = 8000, -- 8 seconds, default 7
})
PreviousExports and EventsNextMechanic Job

Last updated 5 months ago

💻