onShopOwnershipTransferred

Purpose

Triggered when shop ownership is transferred to another player. Use this hook to update business registries and track ownership changes.

When It Triggers

  • Owner transfers shop to another player

  • Transfer can be to online or offline players

Parameters

Parameter
Type
Description

data.source

number

Server ID of who initiated transfer

data.shopId

string

Unique shop identifier

data.shopName

string

Display name of the shop

data.previousOwnerIdentifier

string

Previous owner's identifier

data.previousOwnerName

string

Previous owner's name

data.newOwnerIdentifier

string

New owner's identifier

data.newOwnerName

string

New owner's name

data.transferMethod

string

'player' (online) or 'identifier' (offline)

data.timestamp

number

Server timestamp

Example

Last updated