CAN_PLAYER_START_COMMERCE_SESSION
This native is deprecated and may be removed in a future version.
Signature
BOOL CAN_PLAYER_START_COMMERCE_SESSION(char* playerSrc);Parameters
| Name | Type | Description |
|---|---|---|
playerSrc | char* | The player handle |
Returns BOOL — True or false.
Description
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
local retval = CanPlayerStartCommerceSession(playerSrc)
-- always works, by hash
local retval = Citizen.InvokeNative(0x429461c3, playerSrc, Citizen.ReturnResultAnyway())JavaScript and C#
const retval = CanPlayerStartCommerceSession(playerSrc);
// by hash
const retval = Citizen.invokeNative('0x429461c3', playerSrc, Citizen.returnResultAnyway());bool retval = Function.Call<bool>((Hash)0x429461c3, playerSrc);Sources
Something wrong or missing? Contribute a verified note — corrections ship through pull requests.