[{"data":1,"prerenderedAt":456},["ShallowReactive",2],{"content-query-N3qSJwQhZS":3},{"_path":4,"_dir":5,"_draft":6,"_partial":6,"_locale":7,"title":8,"description":7,"icon":9,"body":10,"_type":450,"_id":451,"_source":452,"_file":453,"_stem":454,"_extension":455},"/ramdb/hashes/hashget","hashes",false,"","ArmaRAMDb - Hash Get","mdi:file-text-outline",{"type":11,"children":12,"toc":435},"root",[13,22,29,44,50,62,68,209,215,220,226,233,242,248,257,263,272,278,342,348],{"type":14,"tag":15,"props":16,"children":18},"element","h1",{"id":17},"ramdb_db_fnc_hashget",[19],{"type":20,"value":21},"text","ramdb_db_fnc_hashGet",{"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 ramdb_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":131},{"type":14,"tag":23,"props":210,"children":212},{"id":211},"return-value",[213],{"type":20,"value":214},"Return Value",{"type":14,"tag":30,"props":216,"children":217},{},[218],{"type":20,"value":219},"None. The retrieved data is passed to the specified callback function asynchronously.",{"type":14,"tag":23,"props":221,"children":223},{"id":222},"examples",[224],{"type":20,"value":225},"Examples",{"type":14,"tag":227,"props":228,"children":230},"h3",{"id":229},"retrieve-a-players-loadout",[231],{"type":20,"value":232},"Retrieve a player's loadout:",{"type":14,"tag":51,"props":234,"children":237},{"className":235,"code":236,"language":56,"meta":7},[54],"[\"loadout\", \"ramdb_db_fnc_test\"] call ramdb_db_fnc_hashGet;\n",[238],{"type":14,"tag":36,"props":239,"children":240},{"__ignoreMap":7},[241],{"type":20,"value":236},{"type":14,"tag":227,"props":243,"children":245},{"id":244},"retrieve-data-with-synchronous-callback",[246],{"type":20,"value":247},"Retrieve data with synchronous callback:",{"type":14,"tag":51,"props":249,"children":252},{"className":250,"code":251,"language":56,"meta":7},[54],"[\"playerScore\", \"ramdb_db_fnc_processScore\", true] call ramdb_db_fnc_hashGet;\n",[253],{"type":14,"tag":36,"props":254,"children":255},{"__ignoreMap":7},[256],{"type":20,"value":251},{"type":14,"tag":227,"props":258,"children":260},{"id":259},"retrieve-data-and-send-it-to-a-specific-client",[261],{"type":20,"value":262},"Retrieve data and send it to a specific client:",{"type":14,"tag":51,"props":264,"children":267},{"className":265,"code":266,"language":56,"meta":7},[54],"[\"loadout\", \"ramdb_db_fnc_test\", false, netId player] remoteExecCall [\"ramdb_db_fnc_hashGet\", 2, false];\n",[268],{"type":14,"tag":36,"props":269,"children":270},{"__ignoreMap":7},[271],{"type":20,"value":266},{"type":14,"tag":23,"props":273,"children":275},{"id":274},"notes",[276],{"type":20,"value":277},"Notes",{"type":14,"tag":279,"props":280,"children":281},"ul",{},[282,288,293,298,303,308,320,325,337],{"type":14,"tag":283,"props":284,"children":285},"li",{},[286],{"type":20,"value":287},"Retrieves a value from the current client's hash table",{"type":14,"tag":283,"props":289,"children":290},{},[291],{"type":20,"value":292},"The data is retrieved asynchronously through the extension's callback system",{"type":14,"tag":283,"props":294,"children":295},{},[296],{"type":20,"value":297},"Both the field name and callback function name must be provided",{"type":14,"tag":283,"props":299,"children":300},{},[301],{"type":20,"value":302},"Input validation ensures both required parameters are non-empty",{"type":14,"tag":283,"props":304,"children":305},{},[306],{"type":20,"value":307},"When a netId is provided, the data is sent to that specific client",{"type":14,"tag":283,"props":309,"children":310},{},[311,313,318],{"type":20,"value":312},"The ",{"type":14,"tag":36,"props":314,"children":316},{"className":315},[],[317],{"type":20,"value":168},{"type":20,"value":319}," parameter determines whether the function is called directly (synchronous) or spawned (asynchronous)",{"type":14,"tag":283,"props":321,"children":322},{},[323],{"type":20,"value":324},"This function automatically determines which hash table to use based on the caller's identity",{"type":14,"tag":283,"props":326,"children":327},{},[328,330,335],{"type":20,"value":329},"Use ",{"type":14,"tag":36,"props":331,"children":333},{"className":332},[],[334],{"type":20,"value":41},{"type":20,"value":336}," when you need to specify a particular hash table by ID",{"type":14,"tag":283,"props":338,"children":339},{},[340],{"type":20,"value":341},"All operations are logged for debugging purposes",{"type":14,"tag":23,"props":343,"children":345},{"id":344},"links",[346],{"type":20,"value":347},"Links",{"type":14,"tag":30,"props":349,"children":350},{},[351,358,360,366,367,372,373,379,380,386,387,393,394,400,401,407,408,414,415,421,422,428,429],{"type":14,"tag":352,"props":353,"children":355},"a",{"href":354},"/ramdb/hashes/hashdelete",[356],{"type":20,"value":357},"Hash Delete",{"type":20,"value":359}," |\n",{"type":14,"tag":352,"props":361,"children":363},{"href":362},"/ramdb/hashes/hashdeleteid",[364],{"type":20,"value":365},"Hash Delete ID",{"type":20,"value":359},{"type":14,"tag":352,"props":368,"children":369},{"href":4},[370],{"type":20,"value":371},"Hash Get",{"type":20,"value":359},{"type":14,"tag":352,"props":374,"children":376},{"href":375},"/ramdb/hashes/hashgetall",[377],{"type":20,"value":378},"Hash Get All",{"type":20,"value":359},{"type":14,"tag":352,"props":381,"children":383},{"href":382},"/ramdb/hashes/hashgetallid",[384],{"type":20,"value":385},"Hash Get All ID",{"type":20,"value":359},{"type":14,"tag":352,"props":388,"children":390},{"href":389},"/ramdb/hashes/hashgetid",[391],{"type":20,"value":392},"Hash Get ID",{"type":20,"value":359},{"type":14,"tag":352,"props":395,"children":397},{"href":396},"/ramdb/hashes/hashremove",[398],{"type":20,"value":399},"Hash Remove",{"type":20,"value":359},{"type":14,"tag":352,"props":402,"children":404},{"href":403},"/ramdb/hashes/hashremoveid",[405],{"type":20,"value":406},"Hash Remove ID",{"type":20,"value":359},{"type":14,"tag":352,"props":409,"children":411},{"href":410},"/ramdb/hashes/hashset",[412],{"type":20,"value":413},"Hash Set",{"type":20,"value":359},{"type":14,"tag":352,"props":416,"children":418},{"href":417},"/ramdb/hashes/hashsetbulk",[419],{"type":20,"value":420},"Hash Set Bulk",{"type":20,"value":359},{"type":14,"tag":352,"props":423,"children":425},{"href":424},"/ramdb/hashes/hashsetid",[426],{"type":20,"value":427},"Hash Set ID",{"type":20,"value":359},{"type":14,"tag":352,"props":430,"children":432},{"href":431},"/ramdb/hashes/hashsetidbulk",[433],{"type":20,"value":434},"Hash Set ID Bulk",{"title":7,"searchDepth":436,"depth":436,"links":437},2,[438,439,440,441,442,448,449],{"id":25,"depth":436,"text":28},{"id":46,"depth":436,"text":49},{"id":64,"depth":436,"text":67},{"id":211,"depth":436,"text":214},{"id":222,"depth":436,"text":225,"children":443},[444,446,447],{"id":229,"depth":445,"text":232},3,{"id":244,"depth":445,"text":247},{"id":259,"depth":445,"text":262},{"id":274,"depth":436,"text":277},{"id":344,"depth":436,"text":347},"markdown","content:ramdb:hashes:hashGet.md","content","ramdb/hashes/hashGet.md","ramdb/hashes/hashGet","md",1742777961980]