L2S Documentation
DiscordTebex
  • Documentation
  • Information
    • Discord Roles
    • How to update your asset
    • FiveM Asset Escrow System
  • Coding Information
    • Webhook System
    • Register Key Mapping
    • Translation System
  • ASSETS & GUIDES
    • 🚨Dispatch
      • ⤵️Installation
      • ⚙️Configuration
        • Settings
        • API
        • Hub
        • CCTV
        • Dispatch
        • UI
      • 💻Integration
        • Exports
          • Client
          • Server
        • Police Alerts
        • Radio Channel
        • Duty System
    • 🏨Hotels V2
      • ⤵️Installation
      • ⚙️Configuration
        • Config
        • Elevators
        • Hotels
      • 💻Exports
    • 👮Police Hub
      • ⤵️Installation
      • ⚙️Configuration
      • 💻Events & Alerts
    • 💀Gangs Turf
      • ⤵️Installation
      • ⚙️Configuration
        • Settings
        • Gangs
      • 💻Exports
      • 📚Tutorial
    • 🔫Paint Ball
      • ⤵️Installation
      • ⚙️Configuration
        • Settings
        • Clothes
        • Locations
      • 💻Exports
Powered by GitBook
On this page
  • Custom Alert
  • Ready Alerts
  1. ASSETS & GUIDES
  2. Police Hub

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, blips

Ready Alerts

Robberys

TriggerEvent('dispatch:cayorobbery') 

TriggerEvent('dispatch:pacificRobbery') 

TriggerEvent('dispatch:unionRobbery')

TriggerEvent('dispatch:yachtrobbery') 

TriggerEvent('dispatch:artRobbery') 

TriggerEvent('dispatch:trainrobbery') 

TriggerEvent('dispatch:paletoRobbery') 

TriggerEvent('dispatch:truckRobbery')

TriggerEvent('dispatch:jewelryRobbery')

TriggerEvent('dispatch:bobcatRobbery') 

TriggerEvent('dispatch:fleecaRobbery') 

TriggerEvent('dispatch:houseRobbery') 

TriggerEvent('dispatch:storeRobbery') 

TriggerEvent('dispatch:gunshot')

TriggerEvent('dispatch:lockpick')

Emergency Officers

Police : 
TriggerEvent('dispatch:officerDown') -- Seek help if killed

TriggerEvent('dispatch:emergncy') -- Seek help for an emergency

TriggerEvent('dispatch:normaldown') -- Seek help if you die naturally

TriggerEvent('dispatch:w7dtn8l') -- Request assistance if you do not own a vehicle

EMS :

TriggerEvent('dispatch:emsDown') -- Request Ambulance for emergency situation

TriggerEvent('dispatch:emsN8L') -- Request assistance if you do not own a vehicle
PreviousConfigurationNextGangs Turf
👮
💻