⚙️
TMC v2 Core
DiscordWebsite
  • Get Started
  • TMC Core Object
    • Client Functions
      • Vehicle Functions
      • Interaction Ped Functions
      • Interaction Object Functions
      • Interaction Prompts
      • Polyzones
    • Client Menus
    • Events
      • Client
      • Server
    • Server Functions
      • General Functions
      • Commands
      • Player Functions
    • Common Functions
    • 🚘Vehicle Names
  • Object Models
    • Job
  • 📄Other Resources
    • ✨Status Effects
    • 📤Dispatch
    • 🫂Parties
    • 💶Banking
    • 🔍Evidence
Powered by GitBook
On this page
  • AddCall
  • Call Object Definition
  1. Other Resources

Dispatch

A modern take on dispatch calls. Allows servers to send notifications to jobs and include zone-based restrictions if they want.

AddCall

A server function to add a call for a job

Parameter
Required
Type
Description

callObj

Object

A call definition containing all information about a dispatch call.

-- Server
TMC.Functions.TriggerEvent('dispatch:server:addCall', {
    title = "A title!",
    description = "Some longer description",
    jobType = 'jobType',
    position = vector3(0, 0, 0),
    urgency = 1,
    limits = {}
})

-- Client
TMC.Functions.TriggerServerEvent('dispatch:server:addCall', {
    title = "A title!",
    description = "Some longer description",
    jobType = 'jobType',
    position = vector3(0, 0, 0),
    urgency = 1,
    limits = {}
})

Call Object Definition

{
    title = "A title!", -- (Required)
    description = "Some longer description", -- (Required)
    jobType = 'jobType', -- (Required) Can be a single string or list of strings. I.e. { 'police', 'medical' }
    position = vector3(0, 0, 0), -- (Optional)
    urgency = 1, -- (Optional) Urgency value related to config
    limits = {} -- (Optional) List of limitations for example: { 'hunting' }
}
PreviousStatus EffectsNextParties

Last updated 6 months ago

📄
📤