VCORE Ecosystem StudioFrameworkServerClipr
VCORE Studio›Products›Vcore Framework›Resources
Documentation
Base Resource

Vcore-dispatch

Vcore-dispatch is part of Vcore Framework.

Resource folder: dispatchv1.0.0VCore FrameworkCore systems

Introduction

Vcore-dispatch is part of Vcore Framework.

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

UI page: html/index.html

Dependencies & References

ResourceTypePackage status
coreManifest dependencyIncluded in Base
logsManifest dependencyIncluded in Base
oxmysqlManifest dependencyExternal / prerequisite
vehiclelocksReferenced resourceIncluded in Base

Cross-resource export calls

ResourceFunctions called
coregetCoreObject
logsLog
vehiclelocksHasKey

Installation / Start Order

Install the resource with its required dependencies, then enable it in your resource start order.

server.cfg
ensure dispatch

Configuration

Config files

  • config.lua

Top-level config keys

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

Vcore also includes the consolidated VCORE_INSTALL.sql.

Source Layout

AreaFiles
Client Lua2
Server Lua2
Other/shared Lua2
JavaScript1
HTML1
CSS1
SQL1

Troubleshooting

  • Confirm all manifest dependencies are started before dispatch.
  • Confirm the resource is enabled in the correct start order.
  • 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.