Skip to content
M2O Scripting APIScripting reference
Global objectClient APIGenerated

Shop

const Shop: object

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

Opens and closes Mafia II’s native city-shop menu on this client. Item availability and prices come from the server-owned shop registry.

close(): void

Closes the active native shop interface. To replace a shop with a custom interface, suppress it from a shopOpen handler instead: closing after the fact still shows the native menu plus its open and close transitions.

void

open(shopName): boolean

Requests the native shop interface. A shopOpen handler still gets to veto it.

string

Friendly shopmenu2 configuration name, such as “Deli bar”, of a shop streamed in on this client; this is the shopName reported by the shopOpen event.

boolean

False when the shop system is not ready or the shop is not streamed in.