NetworkClient

openCommerceStore

OPEN_COMMERCE_STORE0x58C21165F6545892

The GTA V native OPEN_COMMERCE_STORE of the NETWORK namespace, as LS:MP client scripts call it: the global function openCommerceStore, in JavaScript and in Lua.

SignatureJavaScript
openCommerceStore(
  productID: string,
  category: string,
  location: number,
  launchLandingPageOnClose: boolean
): void
SignatureLua
openCommerceStore(
  productID: string,
  category: string,
  location: integer,
  launchLandingPageOnClose: boolean
)

Usage

JavaScript
openCommerceStore(productID, category, location, launchLandingPageOnClose);
Lua
openCommerceStore(productID, category, location, launchLandingPageOnClose)

Parameters

ParameterTypeJavaScriptLua
productIDstringstringstring
categorystringstringstring
locationintnumberinteger
launchLandingPageOnCloseBOOLbooleanboolean

Returns

Nothing. In JavaScript the call evaluates to undefined.

Reference

Namespace
Network NETWORK
In the game
void OPEN_COMMERCE_STORE(const char* productID, const char* category, int location, BOOL launchLandingPageOnClose)
Hash
0x58C21165F6545892

Open in the interactive natives reference