[{"data":1,"prerenderedAt":480},["ShallowReactive",2],{"content-query-jI9pZ16S6Q":3},{"_path":4,"_dir":5,"_draft":6,"_partial":6,"_locale":7,"title":8,"description":7,"icon":9,"body":10,"_type":474,"_id":475,"_source":476,"_file":477,"_stem":478,"_extension":479},"/ramdb/hashes/hashgetid","hashes",false,"","ArmaRAMDb - Hash Get ID","mdi:file-text-outline",{"type":11,"children":12,"toc":459},"root",[13,22,29,35,41,54,60,226,232,237,243,250,259,265,274,280,289,295,366,372],{"type":14,"tag":15,"props":16,"children":18},"element","h1",{"id":17},"ramdb_db_fnc_hashgetid",[19],{"type":20,"value":21},"text","ramdb_db_fnc_hashGetId",{"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 specific field from a hash table identified by its key. This function allows targeted access to individual fields within a specific hash table, making it ideal for accessing particular attributes of player or entity data. The retrieved data is returned through a 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, _keyField, _function, _call, _netId] call ramdb_db_fnc_hashGetId\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,174,201],{"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},"Identifier of the hash table",{"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},"_keyField",{"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 field in the hash to retrieve",{"type":14,"tag":100,"props":146,"children":147},{},[148],{"type":20,"value":123},{"type":14,"tag":69,"props":150,"children":151},{},[152,161,165,170],{"type":14,"tag":100,"props":153,"children":154},{},[155],{"type":14,"tag":50,"props":156,"children":158},{"className":157},[],[159],{"type":20,"value":160},"_function",{"type":14,"tag":100,"props":162,"children":163},{},[164],{"type":20,"value":113},{"type":14,"tag":100,"props":166,"children":167},{},[168],{"type":20,"value":169},"Name of the function to receive the retrieved data",{"type":14,"tag":100,"props":171,"children":172},{},[173],{"type":20,"value":123},{"type":14,"tag":69,"props":175,"children":176},{},[177,186,191,196],{"type":14,"tag":100,"props":178,"children":179},{},[180],{"type":14,"tag":50,"props":181,"children":183},{"className":182},[],[184],{"type":20,"value":185},"_call",{"type":14,"tag":100,"props":187,"children":188},{},[189],{"type":20,"value":190},"Boolean",{"type":14,"tag":100,"props":192,"children":193},{},[194],{"type":20,"value":195},"Whether to call the function directly (true) or spawn (false)",{"type":14,"tag":100,"props":197,"children":198},{},[199],{"type":20,"value":200},"false",{"type":14,"tag":69,"props":202,"children":203},{},[204,213,217,222],{"type":14,"tag":100,"props":205,"children":206},{},[207],{"type":14,"tag":50,"props":208,"children":210},{"className":209},[],[211],{"type":20,"value":212},"_netId",{"type":14,"tag":100,"props":214,"children":215},{},[216],{"type":20,"value":113},{"type":14,"tag":100,"props":218,"children":219},{},[220],{"type":20,"value":221},"(Optional) NetID of the player to receive the data",{"type":14,"tag":100,"props":223,"children":224},{},[225],{"type":20,"value":123},{"type":14,"tag":23,"props":227,"children":229},{"id":228},"return-value",[230],{"type":20,"value":231},"Return Value",{"type":14,"tag":30,"props":233,"children":234},{},[235],{"type":20,"value":236},"None. The retrieved data is passed to the specified callback function asynchronously.",{"type":14,"tag":23,"props":238,"children":240},{"id":239},"examples",[241],{"type":20,"value":242},"Examples",{"type":14,"tag":244,"props":245,"children":247},"h3",{"id":246},"retrieve-a-players-loadout-field",[248],{"type":20,"value":249},"Retrieve a player's loadout field:",{"type":14,"tag":42,"props":251,"children":254},{"className":252,"code":253,"language":47,"meta":7},[45],"[getPlayerUID player, \"loadout\", \"ramdb_db_fnc_test\"] call ramdb_db_fnc_hashGetId;\n",[255],{"type":14,"tag":50,"props":256,"children":257},{"__ignoreMap":7},[258],{"type":20,"value":253},{"type":14,"tag":244,"props":260,"children":262},{"id":261},"retrieve-a-specific-vehicle-property-with-synchronous-callback",[263],{"type":20,"value":264},"Retrieve a specific vehicle property with synchronous callback:",{"type":14,"tag":42,"props":266,"children":269},{"className":267,"code":268,"language":47,"meta":7},[45],"[\"vehicle_123\", \"fuel\", \"ramdb_db_fnc_processFuelData\", true] call ramdb_db_fnc_hashGetId;\n",[270],{"type":14,"tag":50,"props":271,"children":272},{"__ignoreMap":7},[273],{"type":20,"value":268},{"type":14,"tag":244,"props":275,"children":277},{"id":276},"retrieve-data-and-send-it-to-a-specific-client",[278],{"type":20,"value":279},"Retrieve data and send it to a specific client:",{"type":14,"tag":42,"props":281,"children":284},{"className":282,"code":283,"language":47,"meta":7},[45],"[getPlayerUID player, \"stats\", \"ramdb_db_fnc_test\", false, netId player] remoteExecCall [\"ramdb_db_fnc_hashGetId\", 2, false];\n",[285],{"type":14,"tag":50,"props":286,"children":287},{"__ignoreMap":7},[288],{"type":20,"value":283},{"type":14,"tag":23,"props":290,"children":292},{"id":291},"notes",[293],{"type":20,"value":294},"Notes",{"type":14,"tag":296,"props":297,"children":298},"ul",{},[299,305,310,315,320,332,351,356,361],{"type":14,"tag":300,"props":301,"children":302},"li",{},[303],{"type":20,"value":304},"Retrieves a single field value from a specific hash table",{"type":14,"tag":300,"props":306,"children":307},{},[308],{"type":20,"value":309},"All three primary parameters (key, keyField, and function) are required and validated",{"type":14,"tag":300,"props":311,"children":312},{},[313],{"type":20,"value":314},"The data is retrieved asynchronously through the extension's callback system",{"type":14,"tag":300,"props":316,"children":317},{},[318],{"type":20,"value":319},"When a netId is provided, the data is sent to that specific client",{"type":14,"tag":300,"props":321,"children":322},{},[323,325,330],{"type":20,"value":324},"The ",{"type":14,"tag":50,"props":326,"children":328},{"className":327},[],[329],{"type":20,"value":185},{"type":20,"value":331}," parameter determines whether the function is called directly (synchronous) or spawned (asynchronous)",{"type":14,"tag":300,"props":333,"children":334},{},[335,337,342,344,349],{"type":20,"value":336},"This function targets both a specific hash table (",{"type":14,"tag":50,"props":338,"children":340},{"className":339},[],[341],{"type":20,"value":108},{"type":20,"value":343},") and a specific field (",{"type":14,"tag":50,"props":345,"children":347},{"className":346},[],[348],{"type":20,"value":135},{"type":20,"value":350},")",{"type":14,"tag":300,"props":352,"children":353},{},[354],{"type":20,"value":355},"More efficient than retrieving all hash fields when only one is needed",{"type":14,"tag":300,"props":357,"children":358},{},[359],{"type":20,"value":360},"Player UIDs are commonly used as keys to store player-specific data",{"type":14,"tag":300,"props":362,"children":363},{},[364],{"type":20,"value":365},"All operations are logged for debugging purposes",{"type":14,"tag":23,"props":367,"children":369},{"id":368},"links",[370],{"type":20,"value":371},"Links",{"type":14,"tag":30,"props":373,"children":374},{},[375,382,384,390,391,397,398,404,405,411,412,417,418,424,425,431,432,438,439,445,446,452,453],{"type":14,"tag":376,"props":377,"children":379},"a",{"href":378},"/ramdb/hashes/hashdelete",[380],{"type":20,"value":381},"Hash Delete",{"type":20,"value":383}," |\n",{"type":14,"tag":376,"props":385,"children":387},{"href":386},"/ramdb/hashes/hashdeleteid",[388],{"type":20,"value":389},"Hash Delete ID",{"type":20,"value":383},{"type":14,"tag":376,"props":392,"children":394},{"href":393},"/ramdb/hashes/hashget",[395],{"type":20,"value":396},"Hash Get",{"type":20,"value":383},{"type":14,"tag":376,"props":399,"children":401},{"href":400},"/ramdb/hashes/hashgetall",[402],{"type":20,"value":403},"Hash Get All",{"type":20,"value":383},{"type":14,"tag":376,"props":406,"children":408},{"href":407},"/ramdb/hashes/hashgetallid",[409],{"type":20,"value":410},"Hash Get All ID",{"type":20,"value":383},{"type":14,"tag":376,"props":413,"children":414},{"href":4},[415],{"type":20,"value":416},"Hash Get ID",{"type":20,"value":383},{"type":14,"tag":376,"props":419,"children":421},{"href":420},"/ramdb/hashes/hashremove",[422],{"type":20,"value":423},"Hash Remove",{"type":20,"value":383},{"type":14,"tag":376,"props":426,"children":428},{"href":427},"/ramdb/hashes/hashremoveid",[429],{"type":20,"value":430},"Hash Remove ID",{"type":20,"value":383},{"type":14,"tag":376,"props":433,"children":435},{"href":434},"/ramdb/hashes/hashset",[436],{"type":20,"value":437},"Hash Set",{"type":20,"value":383},{"type":14,"tag":376,"props":440,"children":442},{"href":441},"/ramdb/hashes/hashsetbulk",[443],{"type":20,"value":444},"Hash Set Bulk",{"type":20,"value":383},{"type":14,"tag":376,"props":447,"children":449},{"href":448},"/ramdb/hashes/hashsetid",[450],{"type":20,"value":451},"Hash Set ID",{"type":20,"value":383},{"type":14,"tag":376,"props":454,"children":456},{"href":455},"/ramdb/hashes/hashsetidbulk",[457],{"type":20,"value":458},"Hash Set ID Bulk",{"title":7,"searchDepth":460,"depth":460,"links":461},2,[462,463,464,465,466,472,473],{"id":25,"depth":460,"text":28},{"id":37,"depth":460,"text":40},{"id":56,"depth":460,"text":59},{"id":228,"depth":460,"text":231},{"id":239,"depth":460,"text":242,"children":467},[468,470,471],{"id":246,"depth":469,"text":249},3,{"id":261,"depth":469,"text":264},{"id":276,"depth":469,"text":279},{"id":291,"depth":460,"text":294},{"id":368,"depth":460,"text":371},"markdown","content:ramdb:hashes:hashGetId.md","content","ramdb/hashes/hashGetId.md","ramdb/hashes/hashGetId","md",1742777961992]