# PLAYER::DISABLE_PLAYER_FIRING

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

## Signature

```c
void DISABLE_PLAYER_FIRING(Player player, BOOL toggle);
```

## Parameters

- `player` (`Player`)
- `toggle` (`BOOL`)

## Returns

`void`

## Description

Inhibits the player from using any method of combat including melee and firearms.

NOTE: Only disables the firing for one frame

## Usage

### Lua

```lua
DisablePlayerFiring(player, toggle)

-- always available, by hash
Citizen.InvokeNative(0x2970929FD5F9FC89, player, toggle)
```

### JavaScript

```js
DisablePlayerFiring(player, toggle);

// by hash
Citizen.invokeNative('0x2970929FD5F9FC89', player, toggle);
```

### C#

```csharp
Function.Call((Hash)0x2970929FD5F9FC89, player, toggle);
```

*Sources: alloc8or RDR3 NativeDB.*
