DISABLE_PLAYER_FIRING
Inhibits the player from using any method of combat including melee and firearms.
Hash
0x2970929FD5F9FC89Runtime name
DisablePlayerFiringNamespacePLAYER
SideClient
NameOfficial
Docs
Since build1207
GTA V hash
0x5E6CC07646BBEAB8Signature
void DISABLE_PLAYER_FIRING(Player player, BOOL toggle);Parameters
| Name | Type | Description |
|---|---|---|
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
DisablePlayerFiring(player, toggle)
-- always works, by hash
Citizen.InvokeNative(0x2970929FD5F9FC89, player, toggle)JavaScript and C#
DisablePlayerFiring(player, toggle);
// by hash
Citizen.invokeNative('0x2970929FD5F9FC89', player, toggle);Function.Call((Hash)0x2970929FD5F9FC89, player, toggle);Sources
Something wrong or missing? Contribute a verified note — corrections ship through pull requests.