[{"data":1,"prerenderedAt":447},["ShallowReactive",2],{"content-query-7b1ryKetBZ":3},{"_path":4,"_dir":5,"_draft":6,"_partial":6,"_locale":7,"title":8,"description":7,"icon":9,"body":10,"_type":441,"_id":442,"_source":443,"_file":444,"_stem":445,"_extension":446},"/dragonfly/lists/listget","lists",false,"","ArmaDragonflyClient - List Get","mdi:file-text-outline",{"type":11,"children":12,"toc":426},"root",[13,22,29,35,41,54,60,229,235,240,246,253,262,268,277,283,292,298,383,389],{"type":14,"tag":15,"props":16,"children":18},"element","h1",{"id":17},"list-get",[19],{"type":20,"value":21},"text","List Get",{"type":14,"tag":23,"props":24,"children":26},"h2",{"id":25},"description",[27],{"type":20,"value":28},"Description",{"type":14,"tag":30,"props":31,"children":32},"p",{},[33],{"type":20,"value":34},"Retrieves a specific element from a list stored in the database by its index. This function accesses a single item from a list using its position number and returns the data through a callback function. It's useful for accessing individual pieces of data from a sequence without retrieving the entire list.",{"type":14,"tag":23,"props":36,"children":38},{"id":37},"syntax",[39],{"type":20,"value":40},"Syntax",{"type":14,"tag":42,"props":43,"children":48},"pre",{"className":44,"code":46,"language":47,"meta":7},[45],"language-sqf","[_key, _index, _function, _call, _netId] call dragonfly_db_fnc_listGet\n","sqf",[49],{"type":14,"tag":50,"props":51,"children":52},"code",{"__ignoreMap":7},[53],{"type":20,"value":46},{"type":14,"tag":23,"props":55,"children":57},{"id":56},"parameters",[58],{"type":20,"value":59},"Parameters",{"type":14,"tag":61,"props":62,"children":63},"table",{},[64,92],{"type":14,"tag":65,"props":66,"children":67},"thead",{},[68],{"type":14,"tag":69,"props":70,"children":71},"tr",{},[72,78,83,87],{"type":14,"tag":73,"props":74,"children":75},"th",{},[76],{"type":20,"value":77},"Parameter",{"type":14,"tag":73,"props":79,"children":80},{},[81],{"type":20,"value":82},"Type",{"type":14,"tag":73,"props":84,"children":85},{},[86],{"type":20,"value":28},{"type":14,"tag":73,"props":88,"children":89},{},[90],{"type":20,"value":91},"Default",{"type":14,"tag":93,"props":94,"children":95},"tbody",{},[96,124,151,176,203],{"type":14,"tag":69,"props":97,"children":98},{},[99,109,114,119],{"type":14,"tag":100,"props":101,"children":102},"td",{},[103],{"type":14,"tag":50,"props":104,"children":106},{"className":105},[],[107],{"type":20,"value":108},"_key",{"type":14,"tag":100,"props":110,"children":111},{},[112],{"type":20,"value":113},"String",{"type":14,"tag":100,"props":115,"children":116},{},[117],{"type":20,"value":118},"Name of the list",{"type":14,"tag":100,"props":120,"children":121},{},[122],{"type":20,"value":123},"\"\"",{"type":14,"tag":69,"props":125,"children":126},{},[127,136,141,146],{"type":14,"tag":100,"props":128,"children":129},{},[130],{"type":14,"tag":50,"props":131,"children":133},{"className":132},[],[134],{"type":20,"value":135},"_index",{"type":14,"tag":100,"props":137,"children":138},{},[139],{"type":20,"value":140},"Number",{"type":14,"tag":100,"props":142,"children":143},{},[144],{"type":20,"value":145},"Index position of the element to retrieve (0-based)",{"type":14,"tag":100,"props":147,"children":148},{},[149],{"type":20,"value":150},"-1",{"type":14,"tag":69,"props":152,"children":153},{},[154,163,167,172],{"type":14,"tag":100,"props":155,"children":156},{},[157],{"type":14,"tag":50,"props":158,"children":160},{"className":159},[],[161],{"type":20,"value":162},"_function",{"type":14,"tag":100,"props":164,"children":165},{},[166],{"type":20,"value":113},{"type":14,"tag":100,"props":168,"children":169},{},[170],{"type":20,"value":171},"Name of the function to receive the retrieved data",{"type":14,"tag":100,"props":173,"children":174},{},[175],{"type":20,"value":123},{"type":14,"tag":69,"props":177,"children":178},{},[179,188,193,198],{"type":14,"tag":100,"props":180,"children":181},{},[182],{"type":14,"tag":50,"props":183,"children":185},{"className":184},[],[186],{"type":20,"value":187},"_call",{"type":14,"tag":100,"props":189,"children":190},{},[191],{"type":20,"value":192},"Boolean",{"type":14,"tag":100,"props":194,"children":195},{},[196],{"type":20,"value":197},"Whether to call the function directly (true) or spawn (false)",{"type":14,"tag":100,"props":199,"children":200},{},[201],{"type":20,"value":202},"false",{"type":14,"tag":69,"props":204,"children":205},{},[206,215,219,224],{"type":14,"tag":100,"props":207,"children":208},{},[209],{"type":14,"tag":50,"props":210,"children":212},{"className":211},[],[213],{"type":20,"value":214},"_netId",{"type":14,"tag":100,"props":216,"children":217},{},[218],{"type":20,"value":113},{"type":14,"tag":100,"props":220,"children":221},{},[222],{"type":20,"value":223},"(Optional) NetID of the player to receive the data",{"type":14,"tag":100,"props":225,"children":226},{},[227],{"type":20,"value":228},"nil",{"type":14,"tag":23,"props":230,"children":232},{"id":231},"return-value",[233],{"type":20,"value":234},"Return Value",{"type":14,"tag":30,"props":236,"children":237},{},[238],{"type":20,"value":239},"None. The retrieved data is passed to the specified callback function asynchronously.",{"type":14,"tag":23,"props":241,"children":243},{"id":242},"examples",[244],{"type":20,"value":245},"Examples",{"type":14,"tag":247,"props":248,"children":250},"h3",{"id":249},"retrieve-a-specific-event-log-entry",[251],{"type":20,"value":252},"Retrieve a specific event log entry:",{"type":14,"tag":42,"props":254,"children":257},{"className":255,"code":256,"language":47,"meta":7},[45],"[\"events\", 0, \"dragonfly_db_fnc_test\"] call dragonfly_db_fnc_listGet;\n",[258],{"type":14,"tag":50,"props":259,"children":260},{"__ignoreMap":7},[261],{"type":20,"value":256},{"type":14,"tag":247,"props":263,"children":265},{"id":264},"retrieve-data-with-synchronous-callback",[266],{"type":20,"value":267},"Retrieve data with synchronous callback:",{"type":14,"tag":42,"props":269,"children":272},{"className":270,"code":271,"language":47,"meta":7},[45],"[\"messages\", 5, \"dragonfly_db_fnc_processMessage\", true] call dragonfly_db_fnc_listGet;\n",[273],{"type":14,"tag":50,"props":274,"children":275},{"__ignoreMap":7},[276],{"type":20,"value":271},{"type":14,"tag":247,"props":278,"children":280},{"id":279},"retrieve-data-and-send-it-to-a-specific-client",[281],{"type":20,"value":282},"Retrieve data and send it to a specific client:",{"type":14,"tag":42,"props":284,"children":287},{"className":285,"code":286,"language":47,"meta":7},[45],"[\"notifications\", 0, \"dragonfly_db_fnc_displayNotification\", false, netId player] remoteExecCall [\"dragonfly_db_fnc_listGet\", 2, false];\n",[288],{"type":14,"tag":50,"props":289,"children":290},{"__ignoreMap":7},[291],{"type":20,"value":286},{"type":14,"tag":23,"props":293,"children":295},{"id":294},"notes",[296],{"type":20,"value":297},"Notes",{"type":14,"tag":299,"props":300,"children":301},"ul",{},[302,308,334,339,344,349,354,365,378],{"type":14,"tag":303,"props":304,"children":305},"li",{},[306],{"type":20,"value":307},"Retrieves a single element from a list by its index position",{"type":14,"tag":303,"props":309,"children":310},{},[311,313,318,320,325,327,332],{"type":20,"value":312},"The ",{"type":14,"tag":50,"props":314,"children":316},{"className":315},[],[317],{"type":20,"value":108},{"type":20,"value":319},", ",{"type":14,"tag":50,"props":321,"children":323},{"className":322},[],[324],{"type":20,"value":135},{"type":20,"value":326},", and ",{"type":14,"tag":50,"props":328,"children":330},{"className":329},[],[331],{"type":20,"value":162},{"type":20,"value":333}," parameters are required and validated",{"type":14,"tag":303,"props":335,"children":336},{},[337],{"type":20,"value":338},"Index is zero-based (the first element is at index 0)",{"type":14,"tag":303,"props":340,"children":341},{},[342],{"type":20,"value":343},"If the index is out of bounds or the list doesn't exist, no data will be returned",{"type":14,"tag":303,"props":345,"children":346},{},[347],{"type":20,"value":348},"The data is retrieved asynchronously through the extension's callback system",{"type":14,"tag":303,"props":350,"children":351},{},[352],{"type":20,"value":353},"When a netId is provided, the data is sent to that specific client",{"type":14,"tag":303,"props":355,"children":356},{},[357,358,363],{"type":20,"value":312},{"type":14,"tag":50,"props":359,"children":361},{"className":360},[],[362],{"type":20,"value":187},{"type":20,"value":364}," parameter determines whether the function is called directly (synchronous) or spawned (asynchronous)",{"type":14,"tag":303,"props":366,"children":367},{},[368,370,376],{"type":20,"value":369},"For retrieving multiple elements, use ",{"type":14,"tag":50,"props":371,"children":373},{"className":372},[],[374],{"type":20,"value":375},"listLoad",{"type":20,"value":377}," instead",{"type":14,"tag":303,"props":379,"children":380},{},[381],{"type":20,"value":382},"All operations are logged for debugging purposes",{"type":14,"tag":23,"props":384,"children":386},{"id":385},"links",[387],{"type":20,"value":388},"Links",{"type":14,"tag":30,"props":390,"children":391},{},[392,399,401,405,406,412,413,419,420],{"type":14,"tag":393,"props":394,"children":396},"a",{"href":395},"/dragonfly/lists/listadd",[397],{"type":20,"value":398},"List Add",{"type":20,"value":400}," |\n",{"type":14,"tag":393,"props":402,"children":403},{"href":4},[404],{"type":20,"value":21},{"type":20,"value":400},{"type":14,"tag":393,"props":407,"children":409},{"href":408},"/dragonfly/lists/listload",[410],{"type":20,"value":411},"List Load",{"type":20,"value":400},{"type":14,"tag":393,"props":414,"children":416},{"href":415},"/dragonfly/lists/listremove",[417],{"type":20,"value":418},"List Remove",{"type":20,"value":400},{"type":14,"tag":393,"props":421,"children":423},{"href":422},"/dragonfly/lists/listset",[424],{"type":20,"value":425},"List Set",{"title":7,"searchDepth":427,"depth":427,"links":428},2,[429,430,431,432,433,439,440],{"id":25,"depth":427,"text":28},{"id":37,"depth":427,"text":40},{"id":56,"depth":427,"text":59},{"id":231,"depth":427,"text":234},{"id":242,"depth":427,"text":245,"children":434},[435,437,438],{"id":249,"depth":436,"text":252},3,{"id":264,"depth":436,"text":267},{"id":279,"depth":436,"text":282},{"id":294,"depth":427,"text":297},{"id":385,"depth":427,"text":388},"markdown","content:dragonfly:lists:listGet.md","content","dragonfly/lists/listGet.md","dragonfly/lists/listGet","md",1742777962596]