{"hash":"0x1A47699E8D533E8F","ns":"WEAPON","name":"_GIVE_WEAPON_COMPONENT_TO_WEAPON_OBJECT","slug":"_GIVE_WEAPON_COMPONENT_TO_WEAPON_OBJECT","official":false,"named":true,"luaName":"GiveWeaponComponentToWeaponObject","game":"rdr3","apiset":"client","returnType":"void","params":[{"name":"weaponObject","type":"Object*"},{"name":"ped","type":"Ped"},{"name":"componentHash","type":"Hash"},{"name":"p3","type":"BOOL"}],"summary":"","descriptions":[],"examples":[],"aliases":[],"enums":[],"related":[],"build":"1207","sources":["alloc8or"],"doc":1,"url":"https://natives.borderlinerp.com/natives/WEAPON/_GIVE_WEAPON_COMPONENT_TO_WEAPON_OBJECT","markdownUrl":"https://natives.borderlinerp.com/natives/WEAPON/_GIVE_WEAPON_COMPONENT_TO_WEAPON_OBJECT.md","snippets":{"lua":"local weaponObject = GiveWeaponComponentToWeaponObject(ped, componentHash, p3)","luaInvoke":"local weaponObject = Citizen.InvokeNative(0x1A47699E8D533E8F, Citizen.PointerValueInt(), ped, componentHash, p3)","js":"const weaponObject = GiveWeaponComponentToWeaponObject(ped, componentHash, p3);","jsInvoke":"const weaponObject = Citizen.invokeNative('0x1A47699E8D533E8F', Citizen.pointerValueInt(), ped, componentHash, p3);","csharp":"var weaponObject = new OutputArgument();\nFunction.Call((Hash)0x1A47699E8D533E8F, weaponObject, ped, componentHash, p3);\n// weaponObject.GetResult<int>()","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` ``.","Pointer (out) arguments are not passed in Lua/JS: their values are returned after the result, in order.","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."]}}