RedM Natives

_GET_WEAPON_ATTACH_POINT

Returns WeaponAttachPoint

Hash0xCAD4FE9398820D24
Runtime nameGetWeaponAttachPoint
NamespaceWEAPON
SideClient
NameCommunity guess
Docs
Since build1207

Signature

int _GET_WEAPON_ATTACH_POINT(Ped ped, int attachPoint);

Parameters

NameTypeDescription
pedPed—
attachPointint—

Returns int

Description

Returns WeaponAttachPoint

Usage

Lua
local retval = GetWeaponAttachPoint(ped, attachPoint)

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

// by hash
const retval = Citizen.invokeNative('0xCAD4FE9398820D24', ped, attachPoint, Citizen.returnResultAnyway(), Citizen.resultAsInteger());
C#
int retval = Function.Call<int>((Hash)0xCAD4FE9398820D24, ped, attachPoint);
  • The name is a community guess and may change. If the named call is missing in your client build, use InvokeNative with the hash — it always works.

Enums and flags

Sources

alloc8or RDR3 NativeDB

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