RedM Natives

DOES_PLAYER_OWN_SKU

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

Hash0x167ABA27
Runtime nameDoesPlayerOwnSku
NamespaceCFX
SideServer
NameOfficial
Docs

Signature

BOOL DOES_PLAYER_OWN_SKU(char* playerSrc, int skuId);

Parameters

NameTypeDescription
playerSrcchar*

The player handle

skuIdint

The ID of the SKU.

Returns BOOL — A boolean.

Description

Cfx.re native reference

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

Requests whether or not the player owns the specified SKU.

Usage

Lua
local retval = DoesPlayerOwnSku(playerSrc, skuId)

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

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

Sources

Cfx.re native reference

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