_GET_WEAPON_ATTACH_POINT
Returns the weapon attached at the given attach point of the ped.
Signature
int _GET_WEAPON_ATTACH_POINT(Ped ped, int attachPoint); // 0xCAD4FE9398820D24 b1207Parameters
| # | Name | Type |
|---|---|---|
| 1 | ped | Ped |
| 2 | attachPoint | int |
Facts
| Name | _GET_WEAPON_ATTACH_POINT |
|---|---|
| Hash | 0xCAD4FE9398820D24 |
| Namespace | |
| Returns | int |
| Game build | 1207 |
Examples
Calls by hash work in every RedM runtime. Replace the placeholder arguments with your own values.
local result = Citizen.InvokeNative(0xCAD4FE9398820D24, -- _GET_WEAPON_ATTACH_POINT
PlayerPedId(), -- Ped ped
0, -- int attachPoint
Citizen.ResultAsInteger()
)
print(result)const result = Citizen.invokeNative("0xCAD4FE9398820D24", // _GET_WEAPON_ATTACH_POINT
PlayerPedId(), // Ped ped
0, // int attachPoint
Citizen.resultAsInteger()
);
console.log(result)int result = Function.Call<int>((Hash)0xCAD4FE9398820D24, // _GET_WEAPON_ATTACH_POINT
API.PlayerPedId(), // Ped ped
0 // int attachPoint
);Related WEAPON natives
- _GET_DEFAULT_WEAPON_ATTACH_POINT
- _GET_WEAPON_FROM_DEFAULT_PED_WEAPON_COLLECTION
- _GET_WEAPON_GUN_SPINNING_WEAPON_EMOTE_TRICK_TYPE_HASH
- GET_PED_WEAPON_GUID_AT_ATTACH_POINT
- _GET_WEAPON_COMPONENT_TYPE_MODEL
- _GET_WEAPON_DAMAGE
- _GET_WEAPON_DIRT
- _GET_WEAPON_EMOTE_VARIATION
- _GET_WEAPON_FROM_HORSE_HOLSTER
- _GET_WEAPON_HAS_MULTIPLE_AMMO_TYPES
- _GET_WEAPON_NAME
- _GET_WEAPON_NAME_2
Facts compiled from community research (alloc8or/rdr3-nativedb-data, femga/rdr3_discoveries); descriptions and examples by The Lab.