[{"data":1,"prerenderedAt":342},["ShallowReactive",2],{"content-query-wx8gaSClhN":3},{"_path":4,"_dir":5,"_draft":6,"_partial":6,"_locale":7,"title":8,"description":7,"icon":9,"body":10,"_type":336,"_id":337,"_source":338,"_file":339,"_stem":340,"_extension":341},"/dragonfly/generic/get","generic",false,"","ArmaDragonflyClient - Get Key","mdi:file-text-outline",{"type":11,"children":12,"toc":322},"root",[13,22,29,35,41,54,60,202,208,213,219,226,235,241,250,256,293,299],{"type":14,"tag":15,"props":16,"children":18},"element","h1",{"id":17},"get-key",[19],{"type":20,"value":21},"text","Get Key",{"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 the value of a stored key from the database. This function performs an asynchronous request to the database and passes the retrieved data to the specified callback function.",{"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, _function, _call, _netId] call dragonfly_db_fnc_get\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,149,176],{"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 stored key to retrieve from the database",{"type":14,"tag":100,"props":120,"children":121},{},[122],{"type":20,"value":123},"\"\"",{"type":14,"tag":69,"props":125,"children":126},{},[127,136,140,145],{"type":14,"tag":100,"props":128,"children":129},{},[130],{"type":14,"tag":50,"props":131,"children":133},{"className":132},[],[134],{"type":20,"value":135},"_function",{"type":14,"tag":100,"props":137,"children":138},{},[139],{"type":20,"value":113},{"type":14,"tag":100,"props":141,"children":142},{},[143],{"type":20,"value":144},"Name of the function to call when data is retrieved",{"type":14,"tag":100,"props":146,"children":147},{},[148],{"type":20,"value":123},{"type":14,"tag":69,"props":150,"children":151},{},[152,161,166,171],{"type":14,"tag":100,"props":153,"children":154},{},[155],{"type":14,"tag":50,"props":156,"children":158},{"className":157},[],[159],{"type":20,"value":160},"_call",{"type":14,"tag":100,"props":162,"children":163},{},[164],{"type":20,"value":165},"Boolean",{"type":14,"tag":100,"props":167,"children":168},{},[169],{"type":20,"value":170},"Whether to call the function directly (true) or spawn (false)",{"type":14,"tag":100,"props":172,"children":173},{},[174],{"type":20,"value":175},"false",{"type":14,"tag":69,"props":177,"children":178},{},[179,188,192,197],{"type":14,"tag":100,"props":180,"children":181},{},[182],{"type":14,"tag":50,"props":183,"children":185},{"className":184},[],[186],{"type":20,"value":187},"_netId",{"type":14,"tag":100,"props":189,"children":190},{},[191],{"type":20,"value":113},{"type":14,"tag":100,"props":193,"children":194},{},[195],{"type":20,"value":196},"(Optional) NetID of the player to whom the data should be returned",{"type":14,"tag":100,"props":198,"children":199},{},[200],{"type":20,"value":201},"nil",{"type":14,"tag":23,"props":203,"children":205},{"id":204},"return-value",[206],{"type":20,"value":207},"Return Value",{"type":14,"tag":30,"props":209,"children":210},{},[211],{"type":20,"value":212},"None. When data is retrieved, it will be passed to the specified function. The operation runs asynchronously.",{"type":14,"tag":23,"props":214,"children":216},{"id":215},"examples",[217],{"type":20,"value":218},"Examples",{"type":14,"tag":220,"props":221,"children":223},"h3",{"id":222},"retrieve-data-in-singleplayer-or-on-the-server",[224],{"type":20,"value":225},"Retrieve data in singleplayer or on the server:",{"type":14,"tag":42,"props":227,"children":230},{"className":228,"code":229,"language":47,"meta":7},[45],"[getPlayerUID player, \"dragonfly_db_fnc_test\"] call dragonfly_db_fnc_get;\n",[231],{"type":14,"tag":50,"props":232,"children":233},{"__ignoreMap":7},[234],{"type":20,"value":229},{"type":14,"tag":220,"props":236,"children":238},{"id":237},"retrieve-data-on-the-server-and-send-to-a-specific-client",[239],{"type":20,"value":240},"Retrieve data on the server and send to a specific client:",{"type":14,"tag":42,"props":242,"children":245},{"className":243,"code":244,"language":47,"meta":7},[45],"[getPlayerUID player, \"dragonfly_db_fnc_test\", false, netId player] remoteExecCall [\"dragonfly_db_fnc_get\", 2, false];\n",[246],{"type":14,"tag":50,"props":247,"children":248},{"__ignoreMap":7},[249],{"type":20,"value":244},{"type":14,"tag":23,"props":251,"children":253},{"id":252},"notes",[254],{"type":20,"value":255},"Notes",{"type":14,"tag":257,"props":258,"children":259},"ul",{},[260,266,271,276,281],{"type":14,"tag":261,"props":262,"children":263},"li",{},[264],{"type":20,"value":265},"The function exit with an error if the key or function parameters are empty",{"type":14,"tag":261,"props":267,"children":268},{},[269],{"type":20,"value":270},"Data is processed through the scheduler system, which manages callback responses",{"type":14,"tag":261,"props":272,"children":273},{},[274],{"type":20,"value":275},"For large data that exceeds buffer limits, it will be automatically chunked and reassembled",{"type":14,"tag":261,"props":277,"children":278},{},[279],{"type":20,"value":280},"The callback function must be defined to accept the retrieved data",{"type":14,"tag":261,"props":282,"children":283},{},[284,286,291],{"type":20,"value":285},"The ",{"type":14,"tag":50,"props":287,"children":289},{"className":288},[],[290],{"type":20,"value":160},{"type":20,"value":292}," parameter determines whether the callback is executed directly or spawned in a separate thread",{"type":14,"tag":23,"props":294,"children":296},{"id":295},"links",[297],{"type":20,"value":298},"Links",{"type":14,"tag":30,"props":300,"children":301},{},[302,309,311,315,316],{"type":14,"tag":303,"props":304,"children":306},"a",{"href":305},"/dragonfly/generic/delete",[307],{"type":20,"value":308},"Delete Key",{"type":20,"value":310}," |\n",{"type":14,"tag":303,"props":312,"children":313},{"href":4},[314],{"type":20,"value":21},{"type":20,"value":310},{"type":14,"tag":303,"props":317,"children":319},{"href":318},"/dragonfly/generic/set",[320],{"type":20,"value":321},"Set Key",{"title":7,"searchDepth":323,"depth":323,"links":324},2,[325,326,327,328,329,334,335],{"id":25,"depth":323,"text":28},{"id":37,"depth":323,"text":40},{"id":56,"depth":323,"text":59},{"id":204,"depth":323,"text":207},{"id":215,"depth":323,"text":218,"children":330},[331,333],{"id":222,"depth":332,"text":225},3,{"id":237,"depth":332,"text":240},{"id":252,"depth":323,"text":255},{"id":295,"depth":323,"text":298},"markdown","content:dragonfly:generic:get.md","content","dragonfly/generic/get.md","dragonfly/generic/get","md",1742777962567]