# CFX::GET_PLAYER_FOCUS_POS

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

## Signature

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

## Parameters

- `playerSrc` (`char*`) — The player to get the focus position of

## Returns

`Vector3` — Returns a `Vector3` containing the focus position of the player.

## Description

*Source: Cfx.re native reference*

Gets the focus position (i.e. the position of the active camera in the game world) of a player.

## Usage

### Lua

```lua
local retval = GetPlayerFocusPos(playerSrc)

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

### JavaScript

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

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

### C#

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

*Sources: Cfx.re native reference.*
