checkoutCommerceProduct
CHECKOUT_COMMERCE_PRODUCTThe 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.
checkoutCommerceProduct(
productID: string,
location: number,
launchLandingPageOnClose: boolean
): voidcheckoutCommerceProduct(
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
| Parameter | Type | JavaScript | Lua |
|---|---|---|---|
productID | string | string | string |
location | int | number | integer |
launchLandingPageOnClose | BOOL | boolean | boolean |
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)