The Lab
PLAYER native

_SET_PLAYER_AIM_WEAPON

returns void3 paramsbuild 1207

Based on its name and signature, here is our best reading:

Sets the weapon player aims with and its draw order.

Signature

C
void _SET_PLAYER_AIM_WEAPON(Player player, Hash weapon, int weaponDrawOrder); // 0xCFFC3ECCD7A5CCEB b1207

Parameters

#NameType
1playerPlayer
2weaponHash
3weaponDrawOrderint

Facts

Facts about _SET_PLAYER_AIM_WEAPON
Name
_SET_PLAYER_AIM_WEAPON
Hash
0xCFFC3ECCD7A5CCEB
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(0xCFFC3ECCD7A5CCEB, -- _SET_PLAYER_AIM_WEAPON
  PlayerId(), -- Player player
  GetHashKey("weapon_revolver_cattleman"), -- Hash weapon
  0 -- int weaponDrawOrder
)
JavaScript
Citizen.invokeNative("0xCFFC3ECCD7A5CCEB", // _SET_PLAYER_AIM_WEAPON
  PlayerId(), // Player player
  GetHashKey("weapon_revolver_cattleman"), // Hash weapon
  0 // int weaponDrawOrder
);
C#
Function.Call((Hash)0xCFFC3ECCD7A5CCEB, // _SET_PLAYER_AIM_WEAPON
  API.PlayerId(), // Player player
  (uint)API.GetHashKey("weapon_revolver_cattleman"), // Hash weapon
  0 // int weaponDrawOrder
);
All PLAYER natives

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