Documentation
Optional Addon

Vcore-scratchcard

VCore-native scratchcard shop, draw, and instant-prize resource. Dependencies: `core` `inventory` The `scratchcard` item is defined by the completed VCore Base. Purchases are server-validated at `Config.ShopZone`; ticket removal, prize selection, jackpot reset, and payout all occur server-side. State persists through CFX KVP storage. Historical pending-winner keys retain the `tmc_scratchcard_pending_` prefix solely to preserve unpaid winnings from the old resource. Start after Core and Inventory:

Introduction

VCore-native scratchcard shop, draw, and instant-prize resource. Dependencies: `core` `inventory` The `scratchcard` item is defined by the completed VCore Base. Purchases are server-validated at `Config.ShopZone`; ticket removal, prize selection, jackpot reset, and payout all occur server-side. State persists through CFX KVP storage. Historical pending-winner keys retain the `tmc_scratchcard_pending_` prefix solely to preserve unpaid winnings from the old resource. Start after Core and Inventory:

Version: 1.0.0Optional Resource4 Lua files0 SQL files

Dependencies

DependencyStatus
coreIncluded Vcore resource
inventoryIncluded Vcore resource

Installation / Start Order

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

server.cfg
ensure scratchcard

Configuration

Config files

  • config.lua

Detected config keys

  • AdminCommand
  • AdminPermission
  • DrawSchedule
  • MaxEntriesPerDraw
  • MinigameSteps
  • MinigameWindow
  • MinimumJackpot
  • MoneyType
  • NotifyLength
  • PotIncreasePerTicket
  • Prizes
  • ScratchCardItem
  • ScratchDuration
  • ScratchRevealPercent
  • ShopBlip
  • ShopZone
  • StartingJackpot
  • TicketPrice

Events & Exports

Exports

No exports are documented for this resource.

Callbacks

servervcore-scratchcard:server:buyTicket

Callback available from this resource. Confirm parameters and return values before using it.

servervcore-scratchcard:server:cancelScratchTicket

Callback available from this resource. Confirm parameters and return values before using it.

servervcore-scratchcard:server:claimScratchTicket

Callback available from this resource. Confirm parameters and return values before using it.

servervcore-scratchcard:server:getInfo

Callback available from this resource. Confirm parameters and return values before using it.

servervcore-scratchcard:server:prepareScratchTicket

Callback available from this resource. Confirm parameters and return values before using it.

servervcore-scratchcard:server:scratchTicket

Callback available from this resource. Confirm parameters and return values before using it.

Registered network events

clientvcore-scratchcard:client:notify

Registered event for this resource. Confirm the expected payload and intended scope before using it.

clientvcore-scratchcard:client:startScratch

Registered event for this resource. Confirm the expected payload and intended scope before using it.

Commands

No registered commands were detected.

Database / SQL

SQL files

None detected in source.

Detected tables

None detected in source.

Troubleshooting

  • Confirm every manifest dependency above is started first.
  • Import the SQL where the resource includes database files.
  • Use the exact resource folder name shown on this page unless you intentionally change both the folder and configuration.
  • Do not copy internal event names into integrations without checking their implementation.