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
  • OpenDispatch
  • SendAlert [ONLY SERVER SIDE]
  • blipData
  • Example of Usage
  1. Assets & Guides
  2. Police MDT

Dispatch System

Here you will find the list of usable exports for Police Dispatch, you can use them if you have basic or advanced programming knowledge, we do not recommend using these if you do not have such knowledge.

REMEMBER TO CHOOSE CLIENT OR SERVER EXPORTS!

OpenDispatch

Use following export / event to open dispatch.

exports['piotreq_gpt']:OpenDispatch()
TriggerEvent('piotreq_gpt:OpenDispatch')

SendAlert [ONLY SERVER SIDE]

Use following export to send alert on dispatch.

exports['piotreq_gpt']:SendAlert(playerId, data)
  • playerId: number

    • Sender server id

  • data: table

    • title: string

    • icon?: string

    • code: string

    • jobs?: { [jobName]: jobGrade }

    • info: [ { icon: string, data?: string, isStreet?: boolean } ]

    • blip?: blipData

    • coords?: vector3

    • type?: string | "normal" / "risk"

    • canAnswer?: boolean | default false

    • maxOfficers?: number | default 4

    • time?: number | default 5

    • notifyTime?: number | default 7000

blipData

  • scale: number

  • sprite: number

  • category?: number | default 3

  • color: number

  • hidden?: boolean | default false [hidden on minimap if too far]

  • priority?: number | default 5

  • short?: boolean | default true

  • alpha?: number | default 255 [0 - 255]

  • name: string | blip name

Example of Usage

Remember it's only EXAMPLE, you should change all data for your requirements.

exports['piotreq_gpt']:SendAlert(playerId --[[ SET PLAYER ID HERE ]], {
   title = 'Fleeca Bank Robbery',
   code = '10-90',
   icon = 'fa-solid fa-mask',
   info = {
       {icon = 'fa-solid fa-road', isStreet = true},
       {icon = 'fa-solid fa-triangle-exclamation', data = 'Very Danger'},
   },
   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 = "Fleeca Robbery"
   },
   type = 'risk', -- default normal
   canAnswer = true, -- default false
   maxOfficers = 6, -- default 4
   time = 10,-- 10 minutes, default 5
   notifyTime = 8000, -- 8 seconds, default 7
})
PreviousServer ExportsNextAmbulance Job

Last updated 3 months ago

💻