GET_CURRENT_PED_WEAPON_ENTITY_INDEX
Returns weaponObject, attachPoint: see SET_CURRENT_PED_WEAPON
Hash
0x3B390A939AF0B5FCRuntime name
GetCurrentPedWeaponEntityIndexNamespaceWEAPON
SideClient
NameOfficial
Docs
Since build1207
GTA V hash
0x3B390A939AF0B5FCSignature
Entity GET_CURRENT_PED_WEAPON_ENTITY_INDEX(Ped ped, int attachPoint);Parameters
| Name | Type | Description |
|---|---|---|
ped | Ped | — |
attachPoint | int | — |
Returns Entity
Description
Returns weaponObject, attachPoint: see SET_CURRENT_PED_WEAPON
Usage
local retval = GetCurrentPedWeaponEntityIndex(ped, attachPoint)
-- always works, by hash
local retval = Citizen.InvokeNative(0x3B390A939AF0B5FC, ped, attachPoint, Citizen.ResultAsInteger())JavaScript and C#
const retval = GetCurrentPedWeaponEntityIndex(ped, attachPoint);
// by hash
const retval = Citizen.invokeNative('0x3B390A939AF0B5FC', ped, attachPoint, Citizen.returnResultAnyway(), Citizen.resultAsInteger());int retval = Function.Call<int>((Hash)0x3B390A939AF0B5FC, ped, attachPoint);Enums and flags
- eWeaponAttachPoint 33 values
Sources
Something wrong or missing? Contribute a verified note — corrections ship through pull requests.