# CFX::GET_PLAYER_WANTED_CENTRE_POSITION

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

## Signature

```c
Vector3 GET_PLAYER_WANTED_CENTRE_POSITION(char* playerSrc);
```

## Parameters

- `playerSrc` (`char*`) — The target player

## Returns

`Vector3` — The player's position known by police. Vector zero if the player has no wanted level.

## Description

*Source: Cfx.re native reference*

Gets the current known coordinates for the specified player from cops perspective. This native is used server side when using OneSync.

## Usage

### Lua

```lua
local retval = GetPlayerWantedCentrePosition(playerSrc)

-- always available, by hash
local retval = Citizen.InvokeNative(0x821f2d2c, playerSrc, Citizen.ResultAsVector())
```

### JavaScript

```js
const retval = GetPlayerWantedCentrePosition(playerSrc);

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

### C#

```csharp
Vector3 retval = Function.Call<Vector3>((Hash)0x821f2d2c, playerSrc);
```

*Sources: Cfx.re native reference.*
