Skip to content
M2O Scripting APIScripting reference
Data shapeClient APIGenerated

ShopOpenEvent

Defined in: client/api.d.ts:1126

A native city-shop menu about to open on the local client.

shopName: string | null

Defined in: client/api.d.ts:1130

Friendly shopmenu2 configuration name, the identifier Shop.open and the server’s Shop.setItem accept, or null when it could not be resolved.


shopPath: string | null

Defined in: client/api.d.ts:1135

Internal shop script path, or null when the shop is not registered yet.


source: string

Defined in: client/api.d.ts:1140

"walkIn" when the shop’s own script opened it, "script" when Shop.open did.