DOES_PLAYER_OWN_SKU
This native is deprecated and may be removed in a future version.
Signature
BOOL DOES_PLAYER_OWN_SKU(char* playerSrc, int skuId);Parameters
| Name | Type | Description |
|---|---|---|
playerSrc | char* | The player handle |
skuId | int | The ID of the SKU. |
Returns BOOL — A boolean.
Description
This native is deprecated and may be removed in a future version. Use
DOES_PLAYER_OWN_SKU_EXTinstead.
Requests whether or not the player owns the specified SKU.
Usage
local retval = DoesPlayerOwnSku(playerSrc, skuId)
-- always works, by hash
local retval = Citizen.InvokeNative(0x167aba27, playerSrc, skuId, Citizen.ReturnResultAnyway())JavaScript and C#
const retval = DoesPlayerOwnSku(playerSrc, skuId);
// by hash
const retval = Citizen.invokeNative('0x167aba27', playerSrc, skuId, Citizen.returnResultAnyway());bool retval = Function.Call<bool>((Hash)0x167aba27, playerSrc, skuId);Sources
Something wrong or missing? Contribute a verified note — corrections ship through pull requests.