{"hash":"0x65DC4AC5B96614CB","ns":"WEAPON","name":"_GET_DEFAULT_WEAPON_ATTACH_POINT","slug":"_GET_DEFAULT_WEAPON_ATTACH_POINT","official":false,"named":true,"luaName":"GetDefaultWeaponAttachPoint","game":"rdr3","apiset":"client","returnType":"int","params":[{"name":"weaponHash","type":"Hash"}],"summary":"Returns default attach point for given weapon hash.","descriptions":[{"source":"alloc8or","format":"text","body":"Returns default attach point for given weapon hash. Returns -1 for melee as they can't be attached.\nExample: https://imgur.com/a/mUE5fug"},{"source":"vorp","format":"text","body":"Returns the attachpoint for a weapon hash. (returns -1 for melee as they can't be attached)"}],"examples":[],"aliases":[],"enums":[],"related":[],"build":"1311","sources":["alloc8or","vorp"],"doc":2,"url":"https://natives.borderlinerp.com/natives/WEAPON/_GET_DEFAULT_WEAPON_ATTACH_POINT","markdownUrl":"https://natives.borderlinerp.com/natives/WEAPON/_GET_DEFAULT_WEAPON_ATTACH_POINT.md","snippets":{"lua":"local retval = GetDefaultWeaponAttachPoint(weaponHash)","luaInvoke":"local retval = Citizen.InvokeNative(0x65DC4AC5B96614CB, weaponHash, Citizen.ResultAsInteger())","js":"const retval = GetDefaultWeaponAttachPoint(weaponHash);","jsInvoke":"const retval = Citizen.invokeNative('0x65DC4AC5B96614CB', weaponHash, Citizen.returnResultAnyway(), Citizen.resultAsInteger());","csharp":"int retval = Function.Call<int>((Hash)0x65DC4AC5B96614CB, weaponHash);","notes":["Hash parameters: the named function also accepts a string and hashes it for you; `Citizen.InvokeNative` needs the number — pass `joaat(\"name\")` or a backtick literal like `` `name` ``.","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."]}}