Create alert (client side)
Create alert, from client side.
Using provided event, you can simple trigger alert from client side. We do not recommend this method, that's why you should always send alerts from server side.
More information on how to send alerts from server side.
Usage
Export
Event
Payload
Examples
Alert with vehicle data
By adding local vehicleData = require 'modules.composables.client.vehicleData'
to your lua file, you can utialise useful vehicle data for your alerts.
Emergency alert
Detailed information
titlestring
description string
groupsstring[]
location{ coords: vector3, street: string }
prioritynumber
codestring
radioChannelnumber
metadataAlertMetadataType[]
isArchivedboolean
isEmergencyboolean
isAnonymousboolean
isShootingboolean
blipstring | BlipPayload
config/alerts.lua
-> predefinedBlips
config. Otherwise, provide blip data.