codeReal Documentation
  • 👋Welcome to codeReal Documentation
  • Normal Series
    • 🏦Bank
      • ⬇️Installation
      • ℹ️Information
      • 🛠️Exports
    • 👮Dispatch
      • ⬇️Installation
      • ℹ️Information
      • 🛠️Exports
    • 🏠House
      • ⬇️Installation
      • ℹ️Information
  • Aqua Series
    • 🚘Vehicleshop
      • ⬇️Installation
      • ⚙️Configuration
      • ℹ️Information
Powered by GitBook
On this page
  • Send Normal Dispatch
  • Example Usage
  • Send Dispatch To UI (Leaflet)
  • Example Usage
  1. Normal Series
  2. Dispatch

Exports

Exports you can use from other resources to send notification

Send Normal Dispatch

This for those who use Config.DispatchType = 'normal'.

exports['real-dispatch']:AddNormalDispatch(player, crime, street, gender, weapon, vehiclestatus, vehicleplate, vehiclecolor, coords, job)

Example Usage

RegisterCommand('SendNormalDispatch', function()
    local Player = PlayerPedId()
    local coords = GetEntityCoords(Player)
    exports['real-dispatch']:AddNormalDispatch(Player, 'Test Crime', 'Cennet Mahallesi', 'Male', 'AK47', 'Plane', '9/11', 'White', coords, {'police'})
end)

Send Dispatch To UI (Leaflet)

This for those who use Config.DispatchType = 'advanced'.

exports['real-dispatch']:AddDispatch(crime, street, gender, weapon, vehiclestatus, vehicleplate, vehiclecolor, coords)

Example Usage

RegisterCommand('SendDispatchToUI', function()
    local Player = PlayerPedId()
    local coords = GetEntityCoords(Player)
    exports['real-dispatch']:AddDispatch('Test Crime', 'Saudi Arabia', 'Female', 'Minigun', 'Plane', '9/11', 'White', coords)
end)
PreviousInformationNextHouse

Last updated 1 year ago

👮
🛠️