💻Events & Alerts
Custom Alert
You can create your custom alert in your script by using this method
local pos = GetEntityCoords(PlayerPedId(), true)
local info = { -- Options here , you can add multi options
{icon = 'globe-americas', text = exports['l2s-policehub']:GetStreetAndZone()},
}
local proirty = 1
local code = '10-9' -- Alerts Code Here
local title = 'Title Here'
local icon = 'masks-theater'
local coords = {x = pos.x, y = pos.y, z = pos.z}
local time = 10000
local sound = 3
local amublance = false
local police = true
local blips = {
Color = 1,
Sprite = 487,
Scale = 1.2,
}
TriggerServerEvent('l2s-policehub:server:sendalert', proirty ,code, title, info, coords, time, sound, police, amublance, blipsReady Alerts
Robberys
Emergency Officers