{"hash":"0x12FB95FE3D579238","ns":"WEAPON","name":"SET_CURRENT_PED_WEAPON_BY_GUID","slug":"SET_CURRENT_PED_WEAPON_BY_GUID","official":true,"named":true,"luaName":"SetCurrentPedWeaponByGuid","game":"rdr3","apiset":"client","returnType":"void","params":[{"name":"ped","type":"Ped"},{"name":"weaponUid","type":"Any*"},{"name":"p2","type":"BOOL"},{"name":"p3","type":"BOOL"},{"name":"p4","type":"BOOL"},{"name":"p5","type":"BOOL"}],"summary":"Equips a weapon from a weaponItem, similar to GIVE_WEAPON_TO_PED","descriptions":[{"source":"alloc8or","format":"text","body":"Equips a weapon from a weaponItem, similar to GIVE_WEAPON_TO_PED"}],"examples":[],"aliases":[],"enums":[],"related":[],"build":"1207","sources":["alloc8or"],"doc":2,"url":"https://natives.borderlinerp.com/natives/WEAPON/SET_CURRENT_PED_WEAPON_BY_GUID","markdownUrl":"https://natives.borderlinerp.com/natives/WEAPON/SET_CURRENT_PED_WEAPON_BY_GUID.md","snippets":{"lua":"local weaponUid = SetCurrentPedWeaponByGuid(ped, p2, p3, p4, p5)","luaInvoke":"local weaponUid = Citizen.InvokeNative(0x12FB95FE3D579238, ped, Citizen.PointerValueInt(), p2, p3, p4, p5)","js":"const weaponUid = SetCurrentPedWeaponByGuid(ped, p2, p3, p4, p5);","jsInvoke":"const weaponUid = Citizen.invokeNative('0x12FB95FE3D579238', ped, Citizen.pointerValueInt(), p2, p3, p4, p5);","csharp":"var weaponUid = new OutputArgument();\nFunction.Call((Hash)0x12FB95FE3D579238, ped, weaponUid, p2, p3, p4, p5);\n// weaponUid.GetResult<int>()","notes":["Pointer (out) arguments are not passed in Lua/JS: their values are returned after the result, in order.","`Any*` arguments are often structs. Build them with a DataView buffer and pass it with `:Buffer()` — see the examples and notes below."]}}