RedM Natives

DISABLE_PLAYER_FIRING

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

Hash0x2970929FD5F9FC89
Runtime nameDisablePlayerFiring
NamespacePLAYER
SideClient
NameOfficial
Docs
Since build1207
GTA V hash0x5E6CC07646BBEAB8

Signature

void DISABLE_PLAYER_FIRING(Player player, BOOL toggle);

Parameters

NameTypeDescription
playerPlayer—
toggleBOOL—

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
DisablePlayerFiring(player, toggle)

-- always works, by hash
Citizen.InvokeNative(0x2970929FD5F9FC89, player, toggle)
JavaScript and C#
JavaScript
DisablePlayerFiring(player, toggle);

// by hash
Citizen.invokeNative('0x2970929FD5F9FC89', player, toggle);
C#
Function.Call((Hash)0x2970929FD5F9FC89, player, toggle);

Sources

alloc8or RDR3 NativeDB

Something wrong or missing? Contribute a verified note — corrections ship through pull requests.