DOES_PLAYER_OWN_SKU_EXT
Requests whether or not the player owns the specified package.
Signature
BOOL DOES_PLAYER_OWN_SKU_EXT(char* playerSrc, int skuId);Parameters
| Name | Type | Description |
|---|---|---|
playerSrc | char* | The player handle |
skuId | int | The package ID on Tebex. |
Returns BOOL — A boolean.
Description
Requests whether or not the player owns the specified package.
Usage
local retval = DoesPlayerOwnSkuExt(playerSrc, skuId)
-- always works, by hash
local retval = Citizen.InvokeNative(0xdef0480b, playerSrc, skuId, Citizen.ReturnResultAnyway())JavaScript and C#
const retval = DoesPlayerOwnSkuExt(playerSrc, skuId);
// by hash
const retval = Citizen.invokeNative('0xdef0480b', playerSrc, skuId, Citizen.returnResultAnyway());bool retval = Function.Call<bool>((Hash)0xdef0480b, playerSrc, skuId);Sources
Something wrong or missing? Contribute a verified note — corrections ship through pull requests.