The Lab
WEAPON native

_GET_CAN_SWITCH_WEAPON

returns BOOL1 parambuild 1355

Returns true if the ped is currently able to switch weapons.

Signature

C
BOOL _GET_CAN_SWITCH_WEAPON(Ped ped); // 0xBC9444F2FF94A9C0 b1355

Parameters

#NameType
1pedPed

Facts

Facts about _GET_CAN_SWITCH_WEAPON
Name
_GET_CAN_SWITCH_WEAPON
Hash
0xBC9444F2FF94A9C0
Namespace
Returns
BOOL
Game build
1355

Examples

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

Lua
local result = Citizen.InvokeNative(0xBC9444F2FF94A9C0, -- _GET_CAN_SWITCH_WEAPON
  PlayerPedId() -- Ped ped
)
if result then
  -- ...
end
JavaScript
const result = Citizen.invokeNative("0xBC9444F2FF94A9C0", // _GET_CAN_SWITCH_WEAPON
  PlayerPedId(), // Ped ped
  Citizen.returnResultAnyway()
);
if (result) {
  // ...
}
C#
bool result = Function.Call<bool>((Hash)0xBC9444F2FF94A9C0, // _GET_CAN_SWITCH_WEAPON
  API.PlayerPedId() // Ped ped
);
All WEAPON natives

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