# CFX::GET_PLAYER_CAMERA_ROTATION

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

## Signature

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

## Parameters

- `playerSrc` (`char*`) — The player handle.

## Returns

`Vector3` — The player's camera rotation. Values are in radians.

## Description

*Source: Cfx.re native reference*

Gets the current camera rotation for a specified player. This native is used server side when using OneSync.

## Usage

### Lua

```lua
local retval = GetPlayerCameraRotation(playerSrc)

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

### JavaScript

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

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

### C#

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

*Sources: Cfx.re native reference.*
