disablePlayerFiring
DISABLE_PLAYER_FIRING0x5E6CC07646BBEAB8The GTA V native DISABLE_PLAYER_FIRING of the PLAYER namespace, as LS:MP client scripts call it: the global function disablePlayerFiring, in JavaScript and in Lua.
disablePlayerFiring(player: Player, toggle: boolean): voiddisablePlayerFiring(player: Player, toggle: boolean)Usage
JavaScript
disablePlayerFiring(player, toggle);Lua
disablePlayerFiring(player, toggle)Parameters
| Parameter | Type | JavaScript | Lua |
|---|---|---|---|
player | Player | number | integer |
toggle | BOOL | boolean | boolean |
Returns
Nothing. In JavaScript the call evaluates to undefined.
Notes
From the community native database. Names are LS:MP’s; samples may be written for C++ or another framework.
Inhibits the player from using any method of combat including melee and firearms.
NOTE: Only disables the firing for one frame
Reference
- Namespace
- Player PLAYER
- In the game
void DISABLE_PLAYER_FIRING(Player player, BOOL toggle)- Hash
0x5E6CC07646BBEAB8