Custom Alert
CustomAlert(data)
Sends a custom dispatch alert to specified jobs with optional details like location, person, vehicle, weapon, and blip.
π© Parameters
data
dataType: AlertData
Description: Contains all information required for dispatching an alert including coordinates, description, associated person/vehicle, and jobs to notify.
π§± Data Structures
AlertData
AlertDatacoords
vector3
β
Coordinates of the alert. Defaults to the player's current location.
vehicle
number/table
β
Vehicle entity ID or a preloaded vehicle data table.
title
string
β
Title of the alert.
code
string
β
Alert code (e.g., "10-80").
description
string
β
Full description of the alert.
sound
string
β
Sound to play. Default: "dispatch" (from the sounds/ folder).
type
string
β
Alert type. Default: "Alert". Options: "Alert", "Call".
person
PersonData
β
Information about the person involved.
weapon
WeaponData
β
Weapon involved in the alert.
blip
BlipData
β
Blip customization for the map.
jobs
table
β
Jobs to notify. Example: { police = true, ems = true }.
PersonData
PersonDataname
string
Full name of the person.
phone
string
Phone number.
citizenid
string
Citizen identifier.
WeaponData
WeaponDataname
string
Name of the weapon.
BlipData
BlipDataradius
number
0
Radius of the blip area.
sprite
number
0
Sprite icon ID.
color
number
0
Blip color.
scale
number
1.0
Size scaling factor.
length
number
0
Duration (in minutes) the blip should remain on the map.
π Server Event Triggered
β
Example Usage
Last updated