{"hash":"0x608BC6A6AACD5036","ns":"PED","name":"GET_CARRIED_ATTACHED_INFO_FOR_SLOT","slug":"GET_CARRIED_ATTACHED_INFO_FOR_SLOT","official":true,"named":true,"luaName":"GetCarriedAttachedInfoForSlot","game":"rdr3","apiset":"client","returnType":"BOOL","params":[{"name":"outData","type":"Any*"},{"name":"ped","type":"Ped"},{"name":"carriableSlot","type":"int"},{"name":"p3","type":"int"}],"summary":"Outputs carriable info for a ped's carriable slot (see TASK_CARRIABLE slot indices).","descriptions":[{"source":"alloc8or","format":"text","body":"Outputs carriable info for a ped's carriable slot (see TASK_CARRIABLE slot indices). p3 is always 0 in R* scripts. Returns true if outData was filled.\n\noutData: script struct<4> (32 bytes); each field is 8-byte (alignas(8)):\n\tstruct CarriedAttachedInfo\n\t{\n\t\talignas(8) Hash   model;         // carried entity model\n\t\talignas(8) Hash   carryConfig;   // carry config (e.g. DEAD_CARRIABLE_FOX)\n\t\talignas(8) int    carriableSlot; // slot index queried\n\t\talignas(8) Entity entity;        // carried entity handle (0 if none)\n\t};\n\nExample image: https://imgur.com/a/2wjt6PT"},{"source":"vorp","format":"text","body":"Outputs carriable infos for selected ped carriable slot.\n\nParameters:\n- outData: Any* — A structure of 4 explained below\n- ped: Ped to check\n- carriableSlot: int See TASK_CARRIABLE for available slots\n- p3: int always 0 in R* scripts"}],"examples":[{"lang":"lua","code":"struct outData\n{\n  Hash model;\n  Hash carryConfig;\n  Hash carriableSlot;\n  Entity entityCarried;\n}","source":"vorp"}],"aliases":["_GET_CARRIED_ATTACHED_INFO_FOR_SLOT"],"enums":[],"related":[],"build":"1207","sources":["alloc8or","vorp"],"doc":3,"url":"https://natives.borderlinerp.com/natives/PED/GET_CARRIED_ATTACHED_INFO_FOR_SLOT","markdownUrl":"https://natives.borderlinerp.com/natives/PED/GET_CARRIED_ATTACHED_INFO_FOR_SLOT.md","snippets":{"lua":"local retval, outData = GetCarriedAttachedInfoForSlot(ped, carriableSlot, p3)","luaInvoke":"local retval, outData = Citizen.InvokeNative(0x608BC6A6AACD5036, Citizen.PointerValueInt(), ped, carriableSlot, p3, Citizen.ReturnResultAnyway())","js":"const [retval, outData] = GetCarriedAttachedInfoForSlot(ped, carriableSlot, p3);","jsInvoke":"const [retval, outData] = Citizen.invokeNative('0x608BC6A6AACD5036', Citizen.pointerValueInt(), ped, carriableSlot, p3, Citizen.returnResultAnyway());","csharp":"var outData = new OutputArgument();\nbool retval = Function.Call<bool>((Hash)0x608BC6A6AACD5036, outData, ped, carriableSlot, p3);\n// outData.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."]}}