DISABLE_PLAYER_FIRING
Prevents player from firing weapons for the current frame.
Call it every frame for as long as firing should be blocked.
Signature
void DISABLE_PLAYER_FIRING(Player player, BOOL toggle); // 0x2970929FD5F9FC89 b1207Parameters
| # | Name | Type |
|---|---|---|
| 1 | player | Player |
| 2 | toggle | BOOL |
Facts
| 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.
Citizen.InvokeNative(0x2970929FD5F9FC89, -- DISABLE_PLAYER_FIRING
PlayerId(), -- Player player
false -- BOOL toggle
)Citizen.invokeNative("0x2970929FD5F9FC89", // DISABLE_PLAYER_FIRING
PlayerId(), // Player player
false // BOOL toggle
);Function.Call((Hash)0x2970929FD5F9FC89, // DISABLE_PLAYER_FIRING
API.PlayerId(), // Player player
false // BOOL toggle
);Related PLAYER natives
- _DISABLE_PLAYER_INTERACTIVE_FOCUS_PRESET
- _SET_DISABLE_PLAYER_WANTED_LEVEL
- _ADD_AMBIENT_PLAYER_INTERACTIVE_FOCUS_PRESET
- _ADD_AMBIENT_PLAYER_INTERACTIVE_FOCUS_PRESET_AT_COORDS
- _ADD_PLAYER_AS_FOLLOW_TARGET
- _CLEAR_PED_EAGLE_EYE_TRAILS_FOR_PLAYER
- _EAGLE_EYE_CAN_PLAYER_FOCUS_ON_TRACK
- _EAGLE_EYE_DISABLE_TRACKING_TRAIL
- _FORMAT_PLAYER_NAME_STRING
- _GET_ACTIVE_HORSE_FOR_PLAYER
- _GET_AI_PLAYER_DEFENSE_MODIFIER_AGAINST_AI
- _GET_HAS_PLAYER_DISCOVERED_CHARACTER_NAME_SP
Facts compiled from community research (alloc8or/rdr3-nativedb-data, femga/rdr3_discoveries); descriptions and examples by The Lab.