Documentation
Base Resource

police

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

v1.0.0VCore FrameworkGameplay systems

Introduction

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

10Client Lua
1Server Lua
2Exports
83Events
2SQL tables

UI page: html/index.html

Dependencies & References

ResourceDetected asPackage status
anklemonitorManifest dependencyIncluded in Base
coreManifest dependencyIncluded in Base
dispatchManifest dependencyIncluded in Base
inventoryManifest dependencyIncluded in Base
logsManifest dependencyIncluded in Base
mdtManifest dependencyIncluded in Base
oxmysqlManifest dependencyExternal / prerequisite

Cross-resource export calls

ResourceFunctions called
coregetCoreObject
dispatchCreateCall
inventoryAddItem, GetPlayerItems, OpenShopInterface, RegisterShop, RemoveItem
logsLog
mdtGetPlateBolosForOfficer, OpenEvidenceForm, SetPlateBoloForOfficer

Installation / Start Order

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

server.cfg
ensure police

Configuration

Config files

  • config.lua

Top-level config keys detected

AwardListEvidenceFleetVehiclesFleetVehiclesSubCarsHandcuffSkillcheckLeoLeoEmsObjectsPrisonRadarsRequiredGradesRequireHandcuffItemSecurityCamerasSpikeStripeMaxTimeStationsStatusesStoresUseHandcuffSkillcheckWeedItems

Events, Exports & Callbacks

Exports

Client exports1
  • IsEvidenceSearching
Shared exports1
  • GetRequiredRanks

Callbacks

Server callbacks10
  • police:cb:getCertifications
  • police:cb:getEvidenceById
  • police:cb:getImpoundList
  • police:cb:getInventoryEvidence
  • police:cb:getJailStatus
  • police:cb:getLabResults
  • police:cb:getRadarLogs
  • police:cb:getStationEvidence
  • police:cb:getVehicleVin
  • police:server:isVehicleScratched

Registered network events

Client registered events43
  • evidence:toggleSearch
  • openMDT
  • police:client:BACtest
  • police:client:EmergencySound
  • police:client:FriskPlayer
  • police:client:GSRTest
  • police:client:GetJailMenu
  • police:client:GetStatus
  • police:client:SearchPlayer
  • police:client:SendPoliceEmergencyAlert
  • police:client:SetStatus
  • police:client:addFlaggedPlate
  • police:client:addPoliceObject
  • police:client:addSpikeStrip
  • police:client:clockIn
  • police:client:closeFingerprint
  • police:client:evidenceRemoved
  • police:client:gsrResult
  • police:client:jailPlayer
  • police:client:jailPlayer:legacyDisabled
  • police:client:nearbyEvidence
  • police:client:openAwards
  • police:client:openFleetVehicles
  • police:client:openImpoundMenu
  • police:client:openLocker
  • police:client:openMDT
  • police:client:removeFlaggedPlate
  • police:client:removeObject
  • police:client:removeObjectsInArea
  • police:client:removePoliceObject
  • police:client:removePoliceObjects
  • police:client:removeSpikeStrip
  • police:client:retrieveVIN
  • police:client:setCuffed
  • police:client:showFingerprintId
  • police:client:spawnObject
  • police:client:syncFlaggedPlates
  • police:client:syncPoliceObjects
  • police:client:takeDNASwab
  • police:client:unjailPlayer
  • police:client:unjailPlayer:legacyDisabled
  • police:client:viewCertifications
  • police:selectCameraGroup
Server registered events40
  • police:createAward
  • police:server:ContactPolice
  • police:server:FriskPlayer
  • police:server:JailPlayer
  • police:server:SearchPlayer
  • police:server:Send311Message
  • police:server:SendEmergencyMessage
  • police:server:UnjailPlayer
  • police:server:billPlayer
  • police:server:clearStatus
  • police:server:collectEvidenceBag
  • police:server:decrementJailTime
  • police:server:flagPlate
  • police:server:impoundVehicle
  • police:server:jailPlayer
  • police:server:newPoliceObject
  • police:server:newSpikeStrip
  • police:server:openLocker
  • police:server:registerWorldEvidence
  • police:server:releaseImpound
  • police:server:removePoliceObject
  • police:server:removePoliceObjects
  • police:server:removeSpikeStrip
  • police:server:requestLabResult
  • police:server:requestNearbyEvidence
  • police:server:requestPoliceObjects
  • police:server:setHandcuffStatus
  • police:server:setSeizure
  • police:server:setStatus
  • police:server:showFingerprint
  • police:server:showFingerprintId
  • police:server:spawnFleetVehicle
  • police:server:startDrag
  • police:server:stopDrag
  • police:server:submitEvidence
  • police:server:syncFlaggedPlates
  • police:server:takeDNASwab
  • police:server:testGSR
  • police:server:unflagPlate
  • police:server:unjailPlayer

Commands

Client commands12
  • anpr
  • cctv
  • evidence
  • flagplate
  • gsr
  • interact
  • placeobject
  • pursuit
  • removeobject
  • spikes
  • tpac
  • unflagplate

Database / SQL

FileType
sql/police.sqlResource SQL file
doesevidence

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

Source Layout

AreaDetected files
Client Lua10
Server Lua1
Other/shared Lua2
JavaScript2
HTML1
CSS1
SQL1

Troubleshooting

  • Confirm all manifest dependencies are started before police.
  • 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.