NetworkClientNot in this build

checkoutCommerceProduct

CHECKOUT_COMMERCE_PRODUCT

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

SignatureJavaScript
checkoutCommerceProduct(
  productID: string,
  location: number,
  launchLandingPageOnClose: boolean
): void
SignatureLua
checkoutCommerceProduct(
  productID: string,
  location: integer,
  launchLandingPageOnClose: boolean
)
⚠
Not in this game build

The global exists, but the native is not part of the game build LS:MP runs: calling it does nothing and returns undefined in JavaScript, nil in Lua. It never throws. See Coverage.

Usage

JavaScript
checkoutCommerceProduct(productID, location, launchLandingPageOnClose);
Lua
checkoutCommerceProduct(productID, location, launchLandingPageOnClose)

Parameters

ParameterTypeJavaScriptLua
productIDstringstringstring
locationintnumberinteger
launchLandingPageOnCloseBOOLbooleanboolean

Returns

Nothing. In JavaScript the call evaluates to undefined.

Reference

Namespace
Network NETWORK
In the game
void CHECKOUT_COMMERCE_PRODUCT(const char* productID, int location, BOOL launchLandingPageOnClose)

Open in the interactive natives reference