RedM Natives

GET_CURRENT_PED_WEAPON_ENTITY_INDEX

Returns weaponObject, attachPoint: see SET_CURRENT_PED_WEAPON

Hash0x3B390A939AF0B5FC
Runtime nameGetCurrentPedWeaponEntityIndex
NamespaceWEAPON
SideClient
NameOfficial
Docs
Since build1207
GTA V hash0x3B390A939AF0B5FC

Signature

Entity GET_CURRENT_PED_WEAPON_ENTITY_INDEX(Ped ped, int attachPoint);

Parameters

NameTypeDescription
pedPed—
attachPointint—

Returns Entity

Description

Returns weaponObject, attachPoint: see SET_CURRENT_PED_WEAPON

Usage

Lua
local retval = GetCurrentPedWeaponEntityIndex(ped, attachPoint)

-- always works, by hash
local retval = Citizen.InvokeNative(0x3B390A939AF0B5FC, ped, attachPoint, Citizen.ResultAsInteger())
JavaScript and C#
JavaScript
const retval = GetCurrentPedWeaponEntityIndex(ped, attachPoint);

// by hash
const retval = Citizen.invokeNative('0x3B390A939AF0B5FC', ped, attachPoint, Citizen.returnResultAnyway(), Citizen.resultAsInteger());
C#
int retval = Function.Call<int>((Hash)0x3B390A939AF0B5FC, ped, attachPoint);

Enums and flags

Sources

alloc8or RDR3 NativeDB

Something wrong or missing? Contribute a verified note — corrections ship through pull requests.