REQUEST_PLAYER_COMMERCE_SESSION
This native is deprecated and may be removed in a future version.
Signature
void REQUEST_PLAYER_COMMERCE_SESSION(char* playerSrc, int skuId);Parameters
| Name | Type | Description |
|---|---|---|
playerSrc | char* | The player handle |
skuId | int | The ID of the SKU. |
Returns void
Description
This native is deprecated and may be removed in a future version. Use the Tebex API instead.
Requests the specified player to buy the passed SKU. This'll pop up a prompt on the client, which upon acceptance will open the browser prompting further purchase details.
Usage
RequestPlayerCommerceSession(playerSrc, skuId)
-- always works, by hash
Citizen.InvokeNative(0x96f93cce, playerSrc, skuId)JavaScript and C#
RequestPlayerCommerceSession(playerSrc, skuId);
// by hash
Citizen.invokeNative('0x96f93cce', playerSrc, skuId);Function.Call((Hash)0x96f93cce, playerSrc, skuId);Sources
Something wrong or missing? Contribute a verified note — corrections ship through pull requests.