/op-dispatch

Op-Dispatch a dispatch that seeks the best user experience

Primary LanguageLuaGNU General Public License v3.0GPL-3.0

Op-Dispatch

ESX & QBCore FiveM dispatch

Download & Installation

Config

  • Make sure to change your language in Config.Locale and Config.Framework.
  • At the bottom of the config.lua file you will see Config.Jobs and Config.AllowedJobs, you can add whatever job you're interested to be able to use the dispatch.
Config = {}
Config.Sound = true -- True to listen to the sound and false to don't.
Config.Framework = 'QBCore' -- 'ESX' or 'QBCore'.
Config.Locale = 'en' -- 'en' or 'es'.

Config.CommandShow = {
    command = 'show',
    description = 'Open Dispatch',
}

Config.VehicleRob = {
    command = 'vehrob',
    description = 'Vehicle theft',
}

Config.CommandPanic = {
    command = 'p',
    description = 'Emergency button'
}

Config.CommandClear = {
    command = 'cls',
    description =  'Clear Alerts'
}

Config.Jobs = {
    'police',
    'ambulance'
}

Config.AllowedJobs = {
    ["police"] = {
        name = 'police',
        label = 'LSPD',
        command = 'alert',
        descriptcommand = 'Send an alert to LSPD',
        panic = true,
    },
    ["ambulance"] = {
        name = 'ambulance',
        label = 'EMS',
        command = 'alertems',
        descriptcommand = 'Send an alert to EMS',
        panic = true,
    },
}

Manually

Using Git

cd resources git clone https://github.com/ErrorMauw/op-dispatch resources/op-dispatch

Preview

Op-dispatch.Preview.mp4