The Lab
PLAYER native

DISABLE_PLAYER_FIRING

returns void2 paramsbuild 1207

Prevents player from firing weapons for the current frame.

Call it every frame for as long as firing should be blocked.

Signature

C
void DISABLE_PLAYER_FIRING(Player player, BOOL toggle); // 0x2970929FD5F9FC89 b1207

Parameters

#NameType
1playerPlayer
2toggleBOOL

Facts

Facts about DISABLE_PLAYER_FIRING
Name
DISABLE_PLAYER_FIRING
Hash
0x2970929FD5F9FC89
Namespace
Returns
void
Game build
1207

Examples

Calls by hash work in every RedM runtime. Replace the placeholder arguments with your own values.

Lua
Citizen.InvokeNative(0x2970929FD5F9FC89, -- DISABLE_PLAYER_FIRING
  PlayerId(), -- Player player
  false -- BOOL toggle
)
JavaScript
Citizen.invokeNative("0x2970929FD5F9FC89", // DISABLE_PLAYER_FIRING
  PlayerId(), // Player player
  false // BOOL toggle
);
C#
Function.Call((Hash)0x2970929FD5F9FC89, // DISABLE_PLAYER_FIRING
  API.PlayerId(), // Player player
  false // BOOL toggle
);
All PLAYER natives

Facts compiled from community research (alloc8or/rdr3-nativedb-data, femga/rdr3_discoveries); descriptions and examples by The Lab.