Skip to content
M2O Scripting APIScripting reference
Data shapeClient APIGenerated

ShopOpenEvent

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

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

shopName: string | null

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

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:1951

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


source: string

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

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