Documentation
Docs/Resources/Base/anklemonitor
Base Resource

anklemonitor

Persistent, server-authoritative ankle monitoring with an MDT management page. - /anklet — fit a monitor to the nearest player. - /removeanklet — remove the nearest player's monitor. - /ankletlocation [CSN] — route to an authorised live or last-known location. - /ankletself — toggle a monitor on yourself when Config.Debug is enabled. New monitors default to the applying officer's department lock. The MDT page can change visibility to any combination of CSN, department, or callsign/tag rules. An empty restriction list makes the tracker visible to all authorised police. The resource creates its own database tables at startup. Start anklemonitor after core and oxmysql; the manifest dependencies handle this automatically.

v1.0.0VCore FrameworkCore systems

Introduction

Persistent, server-authoritative ankle monitoring with an MDT management page. - /anklet — fit a monitor to the nearest player. - /removeanklet — remove the nearest player's monitor. - /ankletlocation [CSN] — route to an authorised live or last-known location. - /ankletself — toggle a monitor on yourself when Config.Debug is enabled. New monitors default to the applying officer's department lock. The MDT page can change visibility to any combination of CSN, department, or callsign/tag rules. An empty restriction list makes the tracker visible to all authorised police. The resource creates its own database tables at startup. Start anklemonitor after core and oxmysql; the manifest dependencies handle this automatically.

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

No manifest UI page detected.

Dependencies & References

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

Cross-resource export calls

ResourceFunctions called
coregetCoreObject
logsLog

Installation / Start Order

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

server.cfg
ensure anklemonitor

Configuration

Config files

  • common.lua
  • config.lua

Top-level config keys detected

BlipClothingCommandsConsumeTrackerItemDatabaseWriteIntervalDebugDefaultLockFullAccessRanksInteractionDistanceLocationUpdateIntervalMaxReasonLengthMaxRestrictionsMdtRefreshIntervalPoliceJobsRequireOnDutyRequireTrackerItemRestrictionTypesReturnTrackerItemStaleAfterSecondsSupervisorGradeTrackerItem

Events, Exports & Callbacks

Exports

Server exports2
  • GetTracker
  • IsMonitored

Callbacks

No Vcore callback registrations were detected.

Registered network events

Client registered events6
  • VCORE:Client:OnPlayerLoaded
  • VCORE:Client:OnPlayerSpawned
  • anklemonitor:client:requestApply
  • anklemonitor:client:requestRemove
  • anklemonitor:client:setState
  • anklemonitor:client:showLocation
Server registered events4
  • anklemonitor:server:applyNearby
  • anklemonitor:server:heartbeat
  • anklemonitor:server:ready
  • anklemonitor:server:removeNearby

Commands

No commands were detected.

Database / SQL

FileType
sql/anklemonitor.sqlResource SQL file
ankle_monitor_auditsankle_monitors

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

Source Layout

AreaDetected files
Client Lua1
Server Lua1
Other/shared Lua3
JavaScript0
HTML0
CSS0
SQL1

Troubleshooting

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