{"hash":"0x6929E22158E52265","ns":"WEAPON","name":"GET_PED_WEAPON_GUID_AT_ATTACH_POINT","slug":"GET_PED_WEAPON_GUID_AT_ATTACH_POINT","official":true,"named":true,"luaName":"GetPedWeaponGuidAtAttachPoint","game":"rdr3","apiset":"client","returnType":"BOOL","params":[{"name":"ped","type":"Ped"},{"name":"attachPoint","type":"int"},{"name":"weaponGuid","type":"Any*"}],"summary":"","descriptions":[],"examples":[],"aliases":[],"enums":["eWeaponAttachPoint"],"related":[],"build":"1207","sources":["alloc8or"],"doc":1,"url":"https://natives.borderlinerp.com/natives/WEAPON/GET_PED_WEAPON_GUID_AT_ATTACH_POINT","markdownUrl":"https://natives.borderlinerp.com/natives/WEAPON/GET_PED_WEAPON_GUID_AT_ATTACH_POINT.md","snippets":{"lua":"local retval, weaponGuid = GetPedWeaponGuidAtAttachPoint(ped, attachPoint, weaponGuid)","luaInvoke":"local retval, weaponGuid = Citizen.InvokeNative(0x6929E22158E52265, ped, attachPoint, Citizen.PointerValueIntInitialized(weaponGuid), Citizen.ReturnResultAnyway())","js":"const [retval, weaponGuid] = GetPedWeaponGuidAtAttachPoint(ped, attachPoint, weaponGuid);","jsInvoke":"const [retval, weaponGuid] = Citizen.invokeNative('0x6929E22158E52265', ped, attachPoint, Citizen.pointerValueIntInitialized(weaponGuid), Citizen.returnResultAnyway());","csharp":"var weaponGuid = new OutputArgument();\nbool retval = Function.Call<bool>((Hash)0x6929E22158E52265, ped, attachPoint, weaponGuid);\n// weaponGuid.GetResult<int>()","notes":["The last argument is an in/out pointer: pass its initial value, and the updated value is returned after the result.","`Any*` arguments are often structs. Build them with a DataView buffer and pass it with `:Buffer()` — see the examples and notes below."]}}