Documentation
Base Resource

dispatch

The supplied manifest describes this resource as “VCore - Dispatch”.

v1.0.0VCore FrameworkCore systems

Introduction

The supplied manifest describes this resource as “VCore - Dispatch”.

2Client Lua
2Server Lua
6Exports
12Events
1SQL tables

UI page: html/index.html

Dependencies & References

ResourceDetected asPackage status
coreManifest dependencyIncluded in Base
logsManifest dependencyIncluded in Base
oxmysqlManifest dependencyExternal / prerequisite
vehiclelocksReferenced by sourceIncluded in Base

Cross-resource export calls

ResourceFunctions called
coregetCoreObject
logsLog
vehiclelocksHasKey

Installation / Start Order

The supplied server.cfg enables this resource in the Core systems stage at enabled-resource position 33. Base installation also depends on the global prerequisites and consolidated VCORE_INSTALL.sql documented in Getting Started.

server.cfg
ensure dispatch

Configuration

Config files

  • config.lua

Top-level config keys detected

ActiveCallSecondsAlertDisplaySecondsAlertRecallKeyAllowedJobsBlacklistWeaponsCallBlipSecondsCallRetentionHoursClientReportCooldownMsClientReportsCrimeDetectionCooldownsDatabaseTableDefaultUrgencyJobAccessJobTypesManageGradeMaxCallsPersistCallsUnitStatusesUrgencies

Events, Exports & Callbacks

Exports

Client exports1
  • GetGenderedName
Server exports5
  • AddCall
  • AddCallZone
  • CreateCall
  • GetActiveCalls
  • GetCall

Callbacks

Server callbacks8
  • dispatch:server:addNote
  • dispatch:server:assignCall
  • dispatch:server:bootstrap
  • dispatch:server:clearCall
  • dispatch:server:createCall
  • dispatch:server:setStatus
  • dispatch:server:unassignCall
  • dispatch:server:updateCall

Registered network events

Client registered events11
  • VCORE:Client:OnJobUpdate
  • VCORE:Client:OnPlayerLoaded
  • VCORE:Client:OnPlayerUnload
  • dispatch:client:callAdded
  • dispatch:client:callRemoved
  • dispatch:client:callUpdated
  • dispatch:client:close
  • dispatch:client:createCall
  • dispatch:client:open
  • dispatch:client:panic
  • dispatch:client:unitUpdated
Server registered events1
  • dispatch:server:addCall

Commands

Client commands11
  • +dispatch_delete
  • +dispatch_next
  • +dispatch_previous
  • +dispatch_recall
  • +dispatch_waypoint
  • -dispatch_delete
  • -dispatch_next
  • -dispatch_previous
  • -dispatch_recall
  • -dispatch_waypoint
  • dispatch
Server commands3
  • 311
  • 911
  • panic

Database / SQL

FileType
sql/dispatch.sqlResource SQL file
dispatch_calls

The root Base package also ships the consolidated VCORE_INSTALL.sql.

Source Layout

AreaDetected files
Client Lua2
Server Lua2
Other/shared Lua2
JavaScript1
HTML1
CSS1
SQL1

Troubleshooting

  • Confirm all manifest dependencies are started before dispatch.
  • Check the supplied start-order note above; resources absent from server.cfg need an explicit decision before enabling.
  • If database queries fail, import the consolidated Base SQL and any resource-local SQL listed above.
  • If the UI fails, verify the resource's NUI files and ui_page when one is declared.