onStockWithdrawnFromShop
Purpose
Triggered when items are withdrawn from shop stock to player inventory. Use this hook to track stock removals and monitor potential theft.
When It Triggers
Employee or owner withdraws items from shop stock to their inventory
Stock levels are reduced
Parameters
Parameter
Type
Description
data.source
number
Server ID
data.shopId
string
Unique shop identifier
data.shopName
string
Display name of the shop
data.itemName
string
Item spawn name
data.itemLabel
string
Item display name
data.quantity
number
Quantity withdrawn
data.previousStock
number
Stock before withdrawal
data.newStock
number
Stock after withdrawal
data.withdrawnBy
string
Name of person who withdrew
data.withdrawnByIdentifier
string
Identifier of person who withdrew
data.timestamp
number
Server timestamp
Example
Last updated