Shop
constShop: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.
Type Declaration
Section titled “Type Declaration”close()
Section titled “close()”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.
Returns
Section titled “Returns”void
open()
Section titled “open()”open(
shopName):boolean
Requests the native shop interface. A shopOpen handler still gets to veto it.
Parameters
Section titled “Parameters”shopName
Section titled “shopName”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.
Returns
Section titled “Returns”boolean
False when the shop system is not ready or the shop is not streamed in.
