# CFX::DOES_PLAYER_OWN_SKU

- **Hash:** `0x167ABA27`
- **Namespace:** CFX
- **Runtime name (Lua/JS):** `DoesPlayerOwnSku`
- **Side:** server (Cfx runtime native)
- **Name status:** official
- **Documentation:** described
- **URL:** https://natives.borderlinerp.com/natives/CFX/DOES_PLAYER_OWN_SKU

## Signature

```c
BOOL DOES_PLAYER_OWN_SKU(char* playerSrc, int skuId);
```

## Parameters

- `playerSrc` (`char*`) — The player handle
- `skuId` (`int`) — The ID of the SKU.

## Returns

`BOOL` — A boolean.

## Description

*Source: Cfx.re native reference*

> This native is deprecated and may be removed in a future version. Use [`DOES_PLAYER_OWN_SKU_EXT`](#\_0xDEF0480B) instead.

Requests whether or not the player owns the specified SKU.

## Usage

### Lua

```lua
local retval = DoesPlayerOwnSku(playerSrc, skuId)

-- always available, by hash
local retval = Citizen.InvokeNative(0x167aba27, playerSrc, skuId, Citizen.ReturnResultAnyway())
```

### JavaScript

```js
const retval = DoesPlayerOwnSku(playerSrc, skuId);

// by hash
const retval = Citizen.invokeNative('0x167aba27', playerSrc, skuId, Citizen.returnResultAnyway());
```

### C#

```csharp
bool retval = Function.Call<bool>((Hash)0x167aba27, playerSrc, skuId);
```

*Sources: Cfx.re native reference.*
