Server Exports

CreateDispatchNotify

It creates a dispatch notify

exports.dispatch:CreateDispatchNotify(title, description, jobName, coords, source)
  • title: string - Dispatch title

  • description: string - Dispatch description

  • jobName: string - The job that receive the dispatch notification

  • coords: vector3 - GPS coordinates to reach the signal

  • source: number - Player's ID


An example

local source     = source
local xPlayer    = ESX.GetPlayerFromId(source)
exports.dispatch:CreateDispatchNotify("Title", "description", "police", xPlayer.coords(true), source)

Last updated