RedM Natives

CAN_PLAYER_START_COMMERCE_SESSION

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

Hash0x429461C3
Runtime nameCanPlayerStartCommerceSession
NamespaceCFX
SideServer
NameOfficial
Docs

Signature

BOOL CAN_PLAYER_START_COMMERCE_SESSION(char* playerSrc);

Parameters

NameTypeDescription
playerSrcchar*

The player handle

Returns BOOL — True or false.

Description

Cfx.re native reference

This native is deprecated and may be removed in a future version. Use the Tebex API instead.

Returns whether or not the specified player has enough information to start a commerce session for.

Usage

Lua
local retval = CanPlayerStartCommerceSession(playerSrc)

-- always works, by hash
local retval = Citizen.InvokeNative(0x429461c3, playerSrc, Citizen.ReturnResultAnyway())
JavaScript and C#
JavaScript
const retval = CanPlayerStartCommerceSession(playerSrc);

// by hash
const retval = Citizen.invokeNative('0x429461c3', playerSrc, Citizen.returnResultAnyway());
C#
bool retval = Function.Call<bool>((Hash)0x429461c3, playerSrc);

Sources

Cfx.re native reference

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