GET_CURRENT_PED_WEAPON_ENTITY_INDEX
Returns the entity of the ped's current weapon at the given attach point.
Signature
Entity GET_CURRENT_PED_WEAPON_ENTITY_INDEX(Ped ped, int attachPoint); // 0x3B390A939AF0B5FC b1207Parameters
| # | Name | Type |
|---|---|---|
| 1 | ped | Ped |
| 2 | attachPoint | int |
Facts
| Name | GET_CURRENT_PED_WEAPON_ENTITY_INDEX |
|---|---|
| Hash | 0x3B390A939AF0B5FC |
| Namespace | |
| Returns | Entity |
| Game build | 1207 |
Examples
Calls by hash work in every RedM runtime. Replace the placeholder arguments with your own values.
local entity = Citizen.InvokeNative(0x3B390A939AF0B5FC, -- GET_CURRENT_PED_WEAPON_ENTITY_INDEX
PlayerPedId(), -- Ped ped
0, -- int attachPoint
Citizen.ResultAsInteger()
)
print(entity)const entity = Citizen.invokeNative("0x3B390A939AF0B5FC", // GET_CURRENT_PED_WEAPON_ENTITY_INDEX
PlayerPedId(), // Ped ped
0, // int attachPoint
Citizen.resultAsInteger()
);
console.log(entity)int entity = Function.Call<int>((Hash)0x3B390A939AF0B5FC, // GET_CURRENT_PED_WEAPON_ENTITY_INDEX
API.PlayerPedId(), // Ped ped
0 // int attachPoint
);Related WEAPON natives
- GET_CURRENT_PED_WEAPON
- GET_CURRENT_PED_VEHICLE_WEAPON
- _GET_CURRENT_PED_WEAPON_AMMO_TYPE
- _GET_MAX_LOCKON_DISTANCE_OF_CURRENT_PED_WEAPON
- _GET_PED_CURRENT_HELD_WEAPON
- _GET_WEAPON_FROM_DEFAULT_PED_WEAPON_COLLECTION
- GET_AMMO_IN_PED_WEAPON
- GET_BEST_PED_WEAPON
- GET_PED_AMMO_TYPE_FROM_WEAPON
- GET_PED_BACKUP_WEAPON
- GET_PED_LAST_WEAPON_IMPACT_COORD
- GET_PED_WEAPON_GUID_AT_ATTACH_POINT
Facts compiled from community research (alloc8or/rdr3-nativedb-data, femga/rdr3_discoveries); descriptions and examples by The Lab.