The Lab
WEAPON native

_SET_FORCE_CURRENT_WEAPON_INTO_COCKED_STATE

returns void2 paramsbuild 1207

Forces the ped's weapon at the given attach point into a cocked state.

Signature

C
void _SET_FORCE_CURRENT_WEAPON_INTO_COCKED_STATE(Ped ped, int attachPoint); // 0x5230D3F6EE56CFE6 b1207

Parameters

#NameType
1pedPed
2attachPointint

Facts

Facts about _SET_FORCE_CURRENT_WEAPON_INTO_COCKED_STATE
Name
_SET_FORCE_CURRENT_WEAPON_INTO_COCKED_STATE
Hash
0x5230D3F6EE56CFE6
Namespace
Returns
void
Game build
1207

Examples

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

Lua
Citizen.InvokeNative(0x5230D3F6EE56CFE6, -- _SET_FORCE_CURRENT_WEAPON_INTO_COCKED_STATE
  PlayerPedId(), -- Ped ped
  0 -- int attachPoint
)
JavaScript
Citizen.invokeNative("0x5230D3F6EE56CFE6", // _SET_FORCE_CURRENT_WEAPON_INTO_COCKED_STATE
  PlayerPedId(), // Ped ped
  0 // int attachPoint
);
C#
Function.Call((Hash)0x5230D3F6EE56CFE6, // _SET_FORCE_CURRENT_WEAPON_INTO_COCKED_STATE
  API.PlayerPedId(), // Ped ped
  0 // int attachPoint
);
All WEAPON natives

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