5️⃣
Five Developments
  • 👋Welcome!
  • SCRIPTS
    • 🧑‍🦱five-idcard
      • 📝Setup
      • ⛏️Exports & Events
    • ✉️five-textui
      • 📝Setup
      • ⛏️Exports
    • 👮five-dispatch
      • 📝Setup
      • ⛏️Server Events
    • 🚗five-repairkit
      • 📝Setup
      • ⛏️Exports
    • 💰five-billing
      • 📝Setup
      • ⛏️Exports & Event
Powered by GitBook
On this page
  1. SCRIPTS
  2. five-dispatch

Server Events

Integrating our script with yours can be a bit challenging if you're a beginner in the scripting environment. If our guide isn't clear enough, you may need to consult with any developer for assistance.

dispatch:server:senddispatch

local coords = GetEntityCoords(PlayerPedId())
local streetName, crossing = GetStreetNameFromHashKey(GetStreetNameAtCoord(coords.x, coords.y, coords.z))
TriggerServerEvent('dispatch:server:senddispatch', {
        road = streetName,
        label = "Robbery",
        code = "10-69",
        priority = "3",
        coords = coords,
        jobs = { "unemployed" }
})
  • road: string

  • label: string

  • code: string

  • priority: string

  • coords: vector3

  • jobs: table

PreviousSetupNextfive-repairkit

Last updated 1 year ago

👮
⛏️