Documentation
Optional Addon

payphone

Public payphones using VCORE Phone calls, Core prompts/menus/notifications and inventory cash. Configure supported world models, interaction range, cash item, call price and billing interval in config.lua. Calls are charged once answered and then once per configured interval. Saved contacts are offered when the player has a VCORE phone number; manually dialling does not require owning a phone. Start after core, inventory and vcorephone.

v1.0.0VCore FrameworkNot enabled in supplied server.cfg

Introduction

Public payphones using VCORE Phone calls, Core prompts/menus/notifications and inventory cash. Configure supported world models, interaction range, cash item, call price and billing interval in config.lua. Calls are charged once answered and then once per configured interval. Saved contacts are offered when the player has a VCORE phone number; manually dialling does not require owning a phone. Start after core, inventory and vcorephone.

1Client Lua
1Server Lua
0Exports
4Events
0SQL tables

No manifest UI page detected.

Dependencies & References

ResourceDetected asPackage status
coreManifest dependencyIncluded in Base
inventoryManifest dependencyIncluded in Base
vcore_phoneManifest dependencyIncluded in Base
logsReferenced by sourceIncluded in Base

Cross-resource export calls

ResourceFunctions called
coregetCoreObject
inventoryGetItemAmount, RemoveItem
logsLog
vcore_phoneEndPhoneCall, GetPhoneContacts, GetPhoneNumber, StartExternalCall

Installation / Start Order

The updated server.cfg explicitly classifies payphone under Addons and extras. It is optional and is not started by default.

server.cfg
ensure payphone

Keep the addon after its required framework dependencies. Global Vcore prerequisites and database setup are documented in Getting Started.

Configuration

Config files

  • config.lua

Top-level config keys detected

AllowContactsAllowServiceNumbersAnimationBillingIntervalSecondsCallDistanceCallerLabelCallerNumberCashItemCostPerIntervalInteractionDistanceModelsPhoneNumberFormatScanDistanceScanIntervalServerValidationDistanceSessionLifetime

Events, Exports & Callbacks

Exports

No export definitions were detected.

Callbacks

Server callbacks2
  • payphone:server:prepare
  • payphone:server:startCall

Registered network events

Client registered events3
  • payphone:client:answered
  • payphone:client:charged
  • payphone:client:ended
Server registered events1
  • payphone:server:hangup

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 Lua1
Server Lua1
Other/shared Lua2
JavaScript0
HTML0
CSS0
SQL0

Troubleshooting

  • Confirm all manifest dependencies are started before payphone.
  • This addon is intentionally commented out in the supplied server.cfg. Enable it only after its dependencies are installed.
  • 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.