_SET_PLAYER_AIM_WEAPON
Based on its name and signature, here is our best reading:
Sets the weapon player aims with and its draw order.
Signature
void _SET_PLAYER_AIM_WEAPON(Player player, Hash weapon, int weaponDrawOrder); // 0xCFFC3ECCD7A5CCEB b1207Parameters
| # | Name | Type |
|---|---|---|
| 1 | player | Player |
| 2 | weapon | Hash |
| 3 | weaponDrawOrder | int |
Facts
| 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.
Citizen.InvokeNative(0xCFFC3ECCD7A5CCEB, -- _SET_PLAYER_AIM_WEAPON
PlayerId(), -- Player player
GetHashKey("weapon_revolver_cattleman"), -- Hash weapon
0 -- int weaponDrawOrder
)Citizen.invokeNative("0xCFFC3ECCD7A5CCEB", // _SET_PLAYER_AIM_WEAPON
PlayerId(), // Player player
GetHashKey("weapon_revolver_cattleman"), // Hash weapon
0 // int weaponDrawOrder
);Function.Call((Hash)0xCFFC3ECCD7A5CCEB, // _SET_PLAYER_AIM_WEAPON
API.PlayerId(), // Player player
(uint)API.GetHashKey("weapon_revolver_cattleman"), // Hash weapon
0 // int weaponDrawOrder
);Related PLAYER natives
- _SET_PLAYER_EXPLOSIVE_WEAPON_DAMAGE_MODIFIER
- _SET_PLAYER_WEAPON_GROUP_AS_INSTANT_KILL
- _SET_PLAYER_WEAPON_GROUP_DAMAGE_MODIFIER
- _SET_PLAYER_CAN_MERCY_KILL
- _SET_PLAYER_CAN_PICKUP_ABILITY
- _SET_PLAYER_CAN_PICKUP_HAT
- _SET_PLAYER_COOPERATE_PROMPT_THIS_FRAME
- _SET_PLAYER_DAMAGE_INFO_OVERRIDE
- _SET_PLAYER_DEAD_EYE_AURA_BY_HASH
- _SET_PLAYER_DEFENSE_MODIFIER
- _SET_PLAYER_DEFENSE_TYPE_MODIFIER
- _SET_PLAYER_HAS_DISCOVERED_CHARACTER_NAME_MP
Facts compiled from community research (alloc8or/rdr3-nativedb-data, femga/rdr3_discoveries); descriptions and examples by The Lab.