The Lab
WEAPON native

_GET_DEFAULT_WEAPON_ATTACH_POINT

returns int1 parambuild 1311

Returns the default attach point index used by the weapon weaponHash.

Signature

C
int _GET_DEFAULT_WEAPON_ATTACH_POINT(Hash weaponHash); // 0x65DC4AC5B96614CB b1311

Parameters

#NameType
1weaponHashHash

Facts

Facts about _GET_DEFAULT_WEAPON_ATTACH_POINT
Name
_GET_DEFAULT_WEAPON_ATTACH_POINT
Hash
0x65DC4AC5B96614CB
Namespace
Returns
int
Game build
1311

Examples

Calls by hash work in every RedM runtime. Replace the placeholder arguments with your own values.

Lua
local result = Citizen.InvokeNative(0x65DC4AC5B96614CB, -- _GET_DEFAULT_WEAPON_ATTACH_POINT
  GetHashKey("weapon_revolver_cattleman"), -- Hash weaponHash
  Citizen.ResultAsInteger()
)
print(result)
JavaScript
const result = Citizen.invokeNative("0x65DC4AC5B96614CB", // _GET_DEFAULT_WEAPON_ATTACH_POINT
  GetHashKey("weapon_revolver_cattleman"), // Hash weaponHash
  Citizen.resultAsInteger()
);
console.log(result)
C#
int result = Function.Call<int>((Hash)0x65DC4AC5B96614CB, // _GET_DEFAULT_WEAPON_ATTACH_POINT
  (uint)API.GetHashKey("weapon_revolver_cattleman") // Hash weaponHash
);
All WEAPON natives

Facts compiled from community research (alloc8or/rdr3-nativedb-data, femga/rdr3_discoveries); descriptions and examples by The Lab.