{"hash":"0xCFFC3ECCD7A5CCEB","ns":"PLAYER","name":"_SET_PLAYER_AIM_WEAPON","slug":"_SET_PLAYER_AIM_WEAPON","official":false,"named":true,"luaName":"SetPlayerAimWeapon","game":"rdr3","apiset":"client","returnType":"void","params":[{"name":"player","type":"Player"},{"name":"weapon","type":"Hash"},{"name":"weaponDrawOrder","type":"int"}],"summary":"Sets the weapon that the specified player will aim with.","descriptions":[{"source":"alloc8or","format":"text","body":"Sets the weapon that the specified player will aim with. The weapon must already be assigned to the PED. This also determines the weapon order, specifying which weapon the player will automatically switch to when the current weapon runs out of ammo.\nExample usage:\n\nSet the player's aim weapon to the specified weapon hash in slot 0\nPLAYER::_SET_PLAYER_AIM_WEAPON(PLAYER::PLAYER_ID(), GetHashKey(\"WEAPON_RIFLE_VARMINT\"), 0);\n\nVideo: https://youtu.be/-fUMrLIm9ng"}],"examples":[],"aliases":[],"enums":["eWeaponAttachPoint"],"related":[],"build":"1207","sources":["alloc8or"],"doc":2,"url":"https://natives.borderlinerp.com/natives/PLAYER/_SET_PLAYER_AIM_WEAPON","markdownUrl":"https://natives.borderlinerp.com/natives/PLAYER/_SET_PLAYER_AIM_WEAPON.md","snippets":{"lua":"SetPlayerAimWeapon(player, weapon, weaponDrawOrder)","luaInvoke":"Citizen.InvokeNative(0xCFFC3ECCD7A5CCEB, player, weapon, weaponDrawOrder)","js":"SetPlayerAimWeapon(player, weapon, weaponDrawOrder);","jsInvoke":"Citizen.invokeNative('0xCFFC3ECCD7A5CCEB', player, weapon, weaponDrawOrder);","csharp":"Function.Call((Hash)0xCFFC3ECCD7A5CCEB, player, weapon, weaponDrawOrder);","notes":["Hash parameters: the named function also accepts a string and hashes it for you; `Citizen.InvokeNative` needs the number — pass `joaat(\"name\")` or a backtick literal like `` `name` ``.","The name is a community guess and may change. If the named call is missing in your client build, use `InvokeNative` with the hash — it always works."]}}