[{"data":1,"prerenderedAt":447},["ShallowReactive",2],{"content-query-8FVOUFsWYq":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/hashes/hashget","hashes",false,"","ArmaDragonflyClient - Hash Get","mdi:file-text-outline",{"type":11,"children":12,"toc":426},"root",[13,22,29,44,50,62,68,210,216,221,227,234,243,249,258,264,273,279,362,368],{"type":14,"tag":15,"props":16,"children":18},"element","h1",{"id":17},"hash-get",[19],{"type":20,"value":21},"text","Hash 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,35,42],{"type":20,"value":34},"Retrieves the value associated with a specific field in the hash table of the current client/player. This function automatically determines the appropriate hash ID based on the caller's identity, making it more convenient than ",{"type":14,"tag":36,"props":37,"children":39},"code",{"className":38},[],[40],{"type":20,"value":41},"hashGetId",{"type":20,"value":43}," which requires manually specifying an ID. It accesses hash data asynchronously and returns the result through a callback function.",{"type":14,"tag":23,"props":45,"children":47},{"id":46},"syntax",[48],{"type":20,"value":49},"Syntax",{"type":14,"tag":51,"props":52,"children":57},"pre",{"className":53,"code":55,"language":56,"meta":7},[54],"language-sqf","[_keyField, _function, _call, _netId] call dragonfly_db_fnc_hashGet\n","sqf",[58],{"type":14,"tag":36,"props":59,"children":60},{"__ignoreMap":7},[61],{"type":20,"value":55},{"type":14,"tag":23,"props":63,"children":65},{"id":64},"parameters",[66],{"type":20,"value":67},"Parameters",{"type":14,"tag":69,"props":70,"children":71},"table",{},[72,100],{"type":14,"tag":73,"props":74,"children":75},"thead",{},[76],{"type":14,"tag":77,"props":78,"children":79},"tr",{},[80,86,91,95],{"type":14,"tag":81,"props":82,"children":83},"th",{},[84],{"type":20,"value":85},"Parameter",{"type":14,"tag":81,"props":87,"children":88},{},[89],{"type":20,"value":90},"Type",{"type":14,"tag":81,"props":92,"children":93},{},[94],{"type":20,"value":28},{"type":14,"tag":81,"props":96,"children":97},{},[98],{"type":20,"value":99},"Default",{"type":14,"tag":101,"props":102,"children":103},"tbody",{},[104,132,157,184],{"type":14,"tag":77,"props":105,"children":106},{},[107,117,122,127],{"type":14,"tag":108,"props":109,"children":110},"td",{},[111],{"type":14,"tag":36,"props":112,"children":114},{"className":113},[],[115],{"type":20,"value":116},"_keyField",{"type":14,"tag":108,"props":118,"children":119},{},[120],{"type":20,"value":121},"String",{"type":14,"tag":108,"props":123,"children":124},{},[125],{"type":20,"value":126},"Name of the field in the hash to retrieve",{"type":14,"tag":108,"props":128,"children":129},{},[130],{"type":20,"value":131},"\"\"",{"type":14,"tag":77,"props":133,"children":134},{},[135,144,148,153],{"type":14,"tag":108,"props":136,"children":137},{},[138],{"type":14,"tag":36,"props":139,"children":141},{"className":140},[],[142],{"type":20,"value":143},"_function",{"type":14,"tag":108,"props":145,"children":146},{},[147],{"type":20,"value":121},{"type":14,"tag":108,"props":149,"children":150},{},[151],{"type":20,"value":152},"Name of the function to receive the retrieved data",{"type":14,"tag":108,"props":154,"children":155},{},[156],{"type":20,"value":131},{"type":14,"tag":77,"props":158,"children":159},{},[160,169,174,179],{"type":14,"tag":108,"props":161,"children":162},{},[163],{"type":14,"tag":36,"props":164,"children":166},{"className":165},[],[167],{"type":20,"value":168},"_call",{"type":14,"tag":108,"props":170,"children":171},{},[172],{"type":20,"value":173},"Boolean",{"type":14,"tag":108,"props":175,"children":176},{},[177],{"type":20,"value":178},"Whether to call the function directly (true) or spawn (false)",{"type":14,"tag":108,"props":180,"children":181},{},[182],{"type":20,"value":183},"false",{"type":14,"tag":77,"props":185,"children":186},{},[187,196,200,205],{"type":14,"tag":108,"props":188,"children":189},{},[190],{"type":14,"tag":36,"props":191,"children":193},{"className":192},[],[194],{"type":20,"value":195},"_netId",{"type":14,"tag":108,"props":197,"children":198},{},[199],{"type":20,"value":121},{"type":14,"tag":108,"props":201,"children":202},{},[203],{"type":20,"value":204},"(Optional) NetID of the player to receive the data",{"type":14,"tag":108,"props":206,"children":207},{},[208],{"type":20,"value":209},"nil",{"type":14,"tag":23,"props":211,"children":213},{"id":212},"return-value",[214],{"type":20,"value":215},"Return Value",{"type":14,"tag":30,"props":217,"children":218},{},[219],{"type":20,"value":220},"None. The retrieved data is passed to the specified callback function asynchronously.",{"type":14,"tag":23,"props":222,"children":224},{"id":223},"examples",[225],{"type":20,"value":226},"Examples",{"type":14,"tag":228,"props":229,"children":231},"h3",{"id":230},"retrieve-a-players-loadout",[232],{"type":20,"value":233},"Retrieve a player's loadout:",{"type":14,"tag":51,"props":235,"children":238},{"className":236,"code":237,"language":56,"meta":7},[54],"[\"loadout\", \"dragonfly_db_fnc_test\"] call dragonfly_db_fnc_hashGet;\n",[239],{"type":14,"tag":36,"props":240,"children":241},{"__ignoreMap":7},[242],{"type":20,"value":237},{"type":14,"tag":228,"props":244,"children":246},{"id":245},"retrieve-data-with-synchronous-callback",[247],{"type":20,"value":248},"Retrieve data with synchronous callback:",{"type":14,"tag":51,"props":250,"children":253},{"className":251,"code":252,"language":56,"meta":7},[54],"[\"playerScore\", \"dragonfly_db_fnc_processScore\", true] call dragonfly_db_fnc_hashGet;\n",[254],{"type":14,"tag":36,"props":255,"children":256},{"__ignoreMap":7},[257],{"type":20,"value":252},{"type":14,"tag":228,"props":259,"children":261},{"id":260},"retrieve-data-and-send-it-to-a-specific-client",[262],{"type":20,"value":263},"Retrieve data and send it to a specific client:",{"type":14,"tag":51,"props":265,"children":268},{"className":266,"code":267,"language":56,"meta":7},[54],"[\"loadout\", \"dragonfly_db_fnc_test\", false, netId player] remoteExecCall [\"dragonfly_db_fnc_hashGet\", 2, false];\n",[269],{"type":14,"tag":36,"props":270,"children":271},{"__ignoreMap":7},[272],{"type":20,"value":267},{"type":14,"tag":23,"props":274,"children":276},{"id":275},"notes",[277],{"type":20,"value":278},"Notes",{"type":14,"tag":280,"props":281,"children":282},"ul",{},[283,289,294,313,318,323,335,340,352,357],{"type":14,"tag":284,"props":285,"children":286},"li",{},[287],{"type":20,"value":288},"Retrieves a value from the current client's hash table",{"type":14,"tag":284,"props":290,"children":291},{},[292],{"type":20,"value":293},"The data is retrieved asynchronously through the extension's callback system",{"type":14,"tag":284,"props":295,"children":296},{},[297,299,304,306,311],{"type":20,"value":298},"Both the ",{"type":14,"tag":36,"props":300,"children":302},{"className":301},[],[303],{"type":20,"value":116},{"type":20,"value":305}," and ",{"type":14,"tag":36,"props":307,"children":309},{"className":308},[],[310],{"type":20,"value":143},{"type":20,"value":312}," parameters must be provided",{"type":14,"tag":284,"props":314,"children":315},{},[316],{"type":20,"value":317},"Input validation ensures both required parameters are non-empty",{"type":14,"tag":284,"props":319,"children":320},{},[321],{"type":20,"value":322},"When a netId is provided, the data is sent to that specific client",{"type":14,"tag":284,"props":324,"children":325},{},[326,328,333],{"type":20,"value":327},"The ",{"type":14,"tag":36,"props":329,"children":331},{"className":330},[],[332],{"type":20,"value":168},{"type":20,"value":334}," parameter determines whether the function is called directly (synchronous) or spawned (asynchronous)",{"type":14,"tag":284,"props":336,"children":337},{},[338],{"type":20,"value":339},"This function automatically determines which hash table to use based on the caller's identity",{"type":14,"tag":284,"props":341,"children":342},{},[343,345,350],{"type":20,"value":344},"Use ",{"type":14,"tag":36,"props":346,"children":348},{"className":347},[],[349],{"type":20,"value":41},{"type":20,"value":351}," when you need to specify a particular hash table by ID",{"type":14,"tag":284,"props":353,"children":354},{},[355],{"type":20,"value":356},"For large data that exceeds buffer limits, it will be automatically chunked and reassembled",{"type":14,"tag":284,"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,376,378,384,385,391,392,398,399,405,406,412,413,419,420],{"type":14,"tag":372,"props":373,"children":374},"a",{"href":4},[375],{"type":20,"value":21},{"type":20,"value":377}," |\n",{"type":14,"tag":372,"props":379,"children":381},{"href":380},"/dragonfly/hashes/hashgetid",[382],{"type":20,"value":383},"Hash Get ID",{"type":20,"value":377},{"type":14,"tag":372,"props":386,"children":388},{"href":387},"/dragonfly/hashes/hashgetall",[389],{"type":20,"value":390},"Hash Get All",{"type":20,"value":377},{"type":14,"tag":372,"props":393,"children":395},{"href":394},"/dragonfly/hashes/hashgetallid",[396],{"type":20,"value":397},"Hash Get All ID",{"type":20,"value":377},{"type":14,"tag":372,"props":400,"children":402},{"href":401},"/dragonfly/hashes/hashset",[403],{"type":20,"value":404},"Hash Set",{"type":20,"value":377},{"type":14,"tag":372,"props":407,"children":409},{"href":408},"/dragonfly/hashes/hashsetid",[410],{"type":20,"value":411},"Hash Set ID",{"type":20,"value":377},{"type":14,"tag":372,"props":414,"children":416},{"href":415},"/dragonfly/hashes/hashsetbulk",[417],{"type":20,"value":418},"Hash Set Bulk",{"type":20,"value":377},{"type":14,"tag":372,"props":421,"children":423},{"href":422},"/dragonfly/hashes/hashsetbulkid",[424],{"type":20,"value":425},"Hash Set Bulk ID",{"title":7,"searchDepth":427,"depth":427,"links":428},2,[429,430,431,432,433,439,440],{"id":25,"depth":427,"text":28},{"id":46,"depth":427,"text":49},{"id":64,"depth":427,"text":67},{"id":212,"depth":427,"text":215},{"id":223,"depth":427,"text":226,"children":434},[435,437,438],{"id":230,"depth":436,"text":233},3,{"id":245,"depth":436,"text":248},{"id":260,"depth":436,"text":263},{"id":275,"depth":427,"text":278},{"id":364,"depth":427,"text":367},"markdown","content:dragonfly:hashes:hashGet.md","content","dragonfly/hashes/hashGet.md","dragonfly/hashes/hashGet","md",1742777962334]