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' }
}