Client Exports
SendAlert
Send an alert to the police dispatch.
All data is optional except for (coords, title, and type).
-- coords: Coordinates vector3(x, y, z) in which the alert is triggered
-- title: Title of the alert
-- type: Type of alert (GENERAL, RADARS, 215, DRUGS, FORCE, 48X) This is to filter the alerts in the dashboard
-- message: Alert message
-- job: Job group related to the alert
-- metadata: Additional metadata of the alert (vehicle model, color, plate, speed, weapon, ammo type, name of the subject, unit)
TriggerServerEvent("SendAlert:police", {
coords = vector3(0, 0, 0),
title = 'Alert title',
type = 'GENERAL',
message = 'Alert message',
job = 'police',
metadata = {
model = 'Vehicle label',
color = {255, 255, 255},
plate = 'PLATE',
speed = '100 kmh',
weapon = 'Weapon name',
ammotype = 'AMMO_PISTOL',
name = 'Subject name',
unit = 'ADAM-10',
}
})Example of use
IsOnDuty
Check if the player is on duty.
RobVehicle
Send a vehicle theft alert to the police.
DisableAutoAlerts
Toggle automatic alerts.
IsInPrision
Checks if the player is in jail.
SpawnInFederal
Spawns the player in the federal location.
SetFederal
Set the player's federal timer with the specified duration in minutes.
SetWantedLevel
Set the player's wanted level.
IsHandCuffed
Check if the player is handcuffed.
CanOpenTablet
Check if the player has access to the menu.
GetMinimunGrade
Example of use
TogglePause
Toggle the police tablet.
ShowBills
Display the police fines menu.
GetBills
Get a list of fines for the player.
Toggle
Toggle radio communication.
Last updated