RedM Natives

REQUEST_PLAYER_COMMERCE_SESSION

This native is deprecated and may be removed in a future version.

Hash0x96F93CCE
Runtime nameRequestPlayerCommerceSession
NamespaceCFX
SideServer
NameOfficial
Docs

Signature

void REQUEST_PLAYER_COMMERCE_SESSION(char* playerSrc, int skuId);

Parameters

NameTypeDescription
playerSrcchar*

The player handle

skuIdint

The ID of the SKU.

Returns void

Description

Cfx.re native reference

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

Lua
RequestPlayerCommerceSession(playerSrc, skuId)

-- always works, by hash
Citizen.InvokeNative(0x96f93cce, playerSrc, skuId)
JavaScript and C#
JavaScript
RequestPlayerCommerceSession(playerSrc, skuId);

// by hash
Citizen.invokeNative('0x96f93cce', playerSrc, skuId);
C#
Function.Call((Hash)0x96f93cce, playerSrc, skuId);

Sources

Cfx.re native reference

Something wrong or missing? Contribute a verified note — corrections ship through pull requests.