# PLAYER::IS_PLAYER_CONTROL_ON

- **Hash:** `0x7964097FCE4C244B`
- **Namespace:** PLAYER
- **Runtime name (Lua/JS):** `IsPlayerControlOn`
- **Side:** client (game native)
- **Name status:** official
- **Documentation:** described
- **Since game build:** 1207
- **URL:** https://natives.borderlinerp.com/natives/PLAYER/IS_PLAYER_CONTROL_ON

## Signature

```c
BOOL IS_PLAYER_CONTROL_ON(Player player);
```

## Parameters

- `player` (`Player`)

## Returns

`BOOL`

## Description

Returns whether the player can control himself.

## Usage

### Lua

```lua
local retval = IsPlayerControlOn(player)

-- always available, by hash
local retval = Citizen.InvokeNative(0x7964097FCE4C244B, player, Citizen.ReturnResultAnyway())
```

### JavaScript

```js
const retval = IsPlayerControlOn(player);

// by hash
const retval = Citizen.invokeNative('0x7964097FCE4C244B', player, Citizen.returnResultAnyway());
```

### C#

```csharp
bool retval = Function.Call<bool>((Hash)0x7964097FCE4C244B, player);
```

*Sources: alloc8or RDR3 NativeDB.*
