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.

OpenDispatch

Use following export / event to open dispatch.

exports['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

Last updated