Documentation
Docs/Resources/Base/drugtables
Base Resource

drugtables

Native VCORE rewrite of the supplied table-processing and medicine-run resource. The existing drugtable interaction type in VCore Base/coregame/config.lua already places vretmltableb and fires drugstable:openTable; this resource retains that compatibility event and uses the rebuilt Core menu, prompt, notification and progress systems. The server owns ingredient removal, table locks, distance validation, minimum completion time, durability, contamination, rewards and delivery assignments. Every batch and courier lifecycle is sent to the central VCORE logger. Configuration is deliberately retained even when an item is absent. The resource reports missing shared definitions on startup so the item list can be completed without losing recipes.

v1.0.0VCore FrameworkGameplay systems

Introduction

Native VCORE rewrite of the supplied table-processing and medicine-run resource. The existing drugtable interaction type in VCore Base/coregame/config.lua already places vretmltableb and fires drugstable:openTable; this resource retains that compatibility event and uses the rebuilt Core menu, prompt, notification and progress systems. The server owns ingredient removal, table locks, distance validation, minimum completion time, durability, contamination, rewards and delivery assignments. Every batch and courier lifecycle is sent to the central VCORE logger. Configuration is deliberately retained even when an item is absent. The resource reports missing shared definitions on startup so the item list can be completed without losing recipes.

2Client Lua
2Server Lua
0Exports
9Events
0SQL tables

No manifest UI page detected.

Dependencies & References

ResourceDetected asPackage status
coreManifest dependencyIncluded in Base
core_gameManifest dependencyIncluded in Base
inventoryManifest dependencyIncluded in Base
vcore_minigamesManifest dependencyIncluded in Base
gangsReferenced by sourceIncluded in Base
logsReferenced by sourceIncluded in Base

Cross-resource export calls

ResourceFunctions called
coregetCoreObject
core_gameGetClosestInteractionObject, GetInteractionObject, SetInteractionObjectMetadata
gangsIsCSNInAGang
inventoryGetItemAmount, SetItemDescriptionFormatter
logsLog
vcore_minigamesStart

Installation / Start Order

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

server.cfg
ensure drugtables

Configuration

Config files

  • config.lua

Top-level config keys detected

ActionCooldownFailedBatchRefundInteractionDistanceMedRunsProcessesRepairServerDistanceSkillGameSkillSettingsTableItemTableType

Events, Exports & Callbacks

Exports

No export definitions were detected.

Callbacks

Server callbacks5
  • drugtables:server:completeMedDrop
  • drugtables:server:getTable
  • drugtables:server:startBatch
  • drugtables:server:startMedRun
  • drugtables:server:startService

Registered network events

Client registered events6
  • core:resetUi
  • drugstable:openTable
  • drugtables:client:medAssigned
  • drugtables:client:medEnded
  • drugtables:client:medWaiting
  • drugtables:client:openTable
Server registered events3
  • drugtables:server:cancelMedRun
  • drugtables:server:finishBatch
  • drugtables:server:finishService

Commands

No commands were detected.

Database / SQL

No resource-local SQL file was detected.

No CREATE TABLE statements detected inside this resource.

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

Source Layout

AreaDetected files
Client Lua2
Server Lua2
Other/shared Lua2
JavaScript0
HTML0
CSS0
SQL0

Troubleshooting

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