Events
List of Events within wasabi_mdt that can be used for 3rd party scripts!
Server Events
wasabi_mdt:createExternalDispatch
TriggerEvent('wasabi_mdt:createExternalDispatch', mdtData)
Creates a custom dispatch call
mdtData (table):
type(string): Type of dispatch (e.g. 'robbery', 'assault', 'disturbance')title(string): The title of the dispatchdescription(string): The description of the dispatchlocation(string): The location name of the dispatch (e.g. 'Pacific Bank')coords(table / optional): Coordinates of the crime. If not provided, will take triggering officer's position. (e.g.{x = number, y = number, z = number})priority(int / optional): An optional priority level (1-5, default if not defined is 2)departments(table / optional): Jobs that will receive the alert. If not provided, it will send the alert to all departments.
Example:
local mdtData = {
type = 'robbery',
title = 'Bank Alarm Triggered',
description = 'The Fleeca Bank is being robbed! All units respond!',
coords = {x = 100, y = 200, z = 300},
location = 'Fleeca Bank',
priority = 5
}
TriggerEvent('wasabi_mdt:createExternalDispatch', mdtData)