[{"data":1,"prerenderedAt":434},["ShallowReactive",2],{"content-query-UCGiyv5cz1":3},{"_path":4,"_dir":5,"_draft":6,"_partial":6,"_locale":7,"title":8,"description":7,"icon":9,"body":10,"_type":428,"_id":429,"_source":430,"_file":431,"_stem":432,"_extension":433},"/ramdb/lists/listget","lists",false,"","ArmaRAMDb - List Get","mdi:file-text-outline",{"type":11,"children":12,"toc":413},"root",[13,22,29,35,41,54,60,228,234,239,245,252,261,267,276,282,291,297,362,368],{"type":14,"tag":15,"props":16,"children":18},"element","h1",{"id":17},"ramdb_db_fnc_listget",[19],{"type":20,"value":21},"text","ramdb_db_fnc_listGet",{"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 ramdb_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":123},{"type":14,"tag":23,"props":229,"children":231},{"id":230},"return-value",[232],{"type":20,"value":233},"Return Value",{"type":14,"tag":30,"props":235,"children":236},{},[237],{"type":20,"value":238},"None. The retrieved data is passed to the specified callback function asynchronously.",{"type":14,"tag":23,"props":240,"children":242},{"id":241},"examples",[243],{"type":20,"value":244},"Examples",{"type":14,"tag":246,"props":247,"children":249},"h3",{"id":248},"retrieve-a-specific-event-log-entry",[250],{"type":20,"value":251},"Retrieve a specific event log entry:",{"type":14,"tag":42,"props":253,"children":256},{"className":254,"code":255,"language":47,"meta":7},[45],"[\"events\", 0, \"ramdb_db_fnc_test\"] call ramdb_db_fnc_listGet;\n",[257],{"type":14,"tag":50,"props":258,"children":259},{"__ignoreMap":7},[260],{"type":20,"value":255},{"type":14,"tag":246,"props":262,"children":264},{"id":263},"retrieve-data-with-synchronous-callback",[265],{"type":20,"value":266},"Retrieve data with synchronous callback:",{"type":14,"tag":42,"props":268,"children":271},{"className":269,"code":270,"language":47,"meta":7},[45],"[\"messages\", 5, \"ramdb_db_fnc_processMessage\", true] call ramdb_db_fnc_listGet;\n",[272],{"type":14,"tag":50,"props":273,"children":274},{"__ignoreMap":7},[275],{"type":20,"value":270},{"type":14,"tag":246,"props":277,"children":279},{"id":278},"retrieve-data-and-send-it-to-a-specific-client",[280],{"type":20,"value":281},"Retrieve data and send it to a specific client:",{"type":14,"tag":42,"props":283,"children":286},{"className":284,"code":285,"language":47,"meta":7},[45],"[\"notifications\", 0, \"ramdb_db_fnc_displayNotification\", false, netId player] remoteExecCall [\"ramdb_db_fnc_listGet\", 2, false];\n",[287],{"type":14,"tag":50,"props":288,"children":289},{"__ignoreMap":7},[290],{"type":20,"value":285},{"type":14,"tag":23,"props":292,"children":294},{"id":293},"notes",[295],{"type":20,"value":296},"Notes",{"type":14,"tag":298,"props":299,"children":300},"ul",{},[301,307,312,317,322,327,332,344,357],{"type":14,"tag":302,"props":303,"children":304},"li",{},[305],{"type":20,"value":306},"Retrieves a single element from a list by its index position",{"type":14,"tag":302,"props":308,"children":309},{},[310],{"type":20,"value":311},"The key, index, and function parameters are required and validated",{"type":14,"tag":302,"props":313,"children":314},{},[315],{"type":20,"value":316},"Index is zero-based (the first element is at index 0)",{"type":14,"tag":302,"props":318,"children":319},{},[320],{"type":20,"value":321},"If the index is out of bounds or the list doesn't exist, no data will be returned",{"type":14,"tag":302,"props":323,"children":324},{},[325],{"type":20,"value":326},"The data is retrieved asynchronously through the extension's callback system",{"type":14,"tag":302,"props":328,"children":329},{},[330],{"type":20,"value":331},"When a netId is provided, the data is sent to that specific client",{"type":14,"tag":302,"props":333,"children":334},{},[335,337,342],{"type":20,"value":336},"The ",{"type":14,"tag":50,"props":338,"children":340},{"className":339},[],[341],{"type":20,"value":187},{"type":20,"value":343}," parameter determines whether the function is called directly (synchronous) or spawned (asynchronous)",{"type":14,"tag":302,"props":345,"children":346},{},[347,349,355],{"type":20,"value":348},"For retrieving multiple elements, use ",{"type":14,"tag":50,"props":350,"children":352},{"className":351},[],[353],{"type":20,"value":354},"listLoad",{"type":20,"value":356}," instead",{"type":14,"tag":302,"props":358,"children":359},{},[360],{"type":20,"value":361},"All operations are logged for debugging purposes",{"type":14,"tag":23,"props":363,"children":365},{"id":364},"links",[366],{"type":20,"value":367},"Links",{"type":14,"tag":30,"props":369,"children":370},{},[371,378,380,386,387,392,393,399,400,406,407],{"type":14,"tag":372,"props":373,"children":375},"a",{"href":374},"/ramdb/lists/listadd",[376],{"type":20,"value":377},"List Add",{"type":20,"value":379}," |\n",{"type":14,"tag":372,"props":381,"children":383},{"href":382},"/ramdb/lists/listdelete",[384],{"type":20,"value":385},"List Delete",{"type":20,"value":379},{"type":14,"tag":372,"props":388,"children":389},{"href":4},[390],{"type":20,"value":391},"List Get",{"type":20,"value":379},{"type":14,"tag":372,"props":394,"children":396},{"href":395},"/ramdb/lists/listload",[397],{"type":20,"value":398},"List Load",{"type":20,"value":379},{"type":14,"tag":372,"props":401,"children":403},{"href":402},"/ramdb/lists/listremove",[404],{"type":20,"value":405},"List Remove",{"type":20,"value":379},{"type":14,"tag":372,"props":408,"children":410},{"href":409},"/ramdb/lists/listset",[411],{"type":20,"value":412},"List Set",{"title":7,"searchDepth":414,"depth":414,"links":415},2,[416,417,418,419,420,426,427],{"id":25,"depth":414,"text":28},{"id":37,"depth":414,"text":40},{"id":56,"depth":414,"text":59},{"id":230,"depth":414,"text":233},{"id":241,"depth":414,"text":244,"children":421},[422,424,425],{"id":248,"depth":423,"text":251},3,{"id":263,"depth":423,"text":266},{"id":278,"depth":423,"text":281},{"id":293,"depth":414,"text":296},{"id":364,"depth":414,"text":367},"markdown","content:ramdb:lists:listGet.md","content","ramdb/lists/listGet.md","ramdb/lists/listGet","md",1742777961812]