{"hash":"0xB7E52A058B07C7E2","ns":"WEAPON","name":"_GET_PLAYER_PED_QUICK_SWAP_WEAPON_BY_GUID","slug":"_GET_PLAYER_PED_QUICK_SWAP_WEAPON_BY_GUID","official":false,"named":true,"luaName":"GetPlayerPedQuickSwapWeaponByGuid","game":"rdr3","apiset":"client","returnType":"void","params":[{"name":"ped","type":"Ped"},{"name":"guidPrimary","type":"Any*"},{"name":"guidSecondary","type":"Any*"}],"summary":"Outputs cached guids","descriptions":[{"source":"alloc8or","format":"text","body":"Outputs cached guids"}],"examples":[],"aliases":[],"enums":[],"related":["0xEC1F85DA51D3D6C4"],"build":"1232","sources":["alloc8or"],"doc":2,"url":"https://natives.borderlinerp.com/natives/WEAPON/_GET_PLAYER_PED_QUICK_SWAP_WEAPON_BY_GUID","markdownUrl":"https://natives.borderlinerp.com/natives/WEAPON/_GET_PLAYER_PED_QUICK_SWAP_WEAPON_BY_GUID.md","snippets":{"lua":"local guidPrimary, guidSecondary = GetPlayerPedQuickSwapWeaponByGuid(ped)","luaInvoke":"local guidPrimary, guidSecondary = Citizen.InvokeNative(0xB7E52A058B07C7E2, ped, Citizen.PointerValueInt(), Citizen.PointerValueInt())","js":"const [guidPrimary, guidSecondary] = GetPlayerPedQuickSwapWeaponByGuid(ped);","jsInvoke":"const [guidPrimary, guidSecondary] = Citizen.invokeNative('0xB7E52A058B07C7E2', ped, Citizen.pointerValueInt(), Citizen.pointerValueInt());","csharp":"var guidPrimary = new OutputArgument();\nvar guidSecondary = new OutputArgument();\nFunction.Call((Hash)0xB7E52A058B07C7E2, ped, guidPrimary, guidSecondary);\n// guidPrimary.GetResult<int>()\n// guidSecondary.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.","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."]}}