[{"data":1,"prerenderedAt":478},["ShallowReactive",2],{"content-query-phMHQ7LOjK":3},{"_path":4,"_dir":5,"_draft":6,"_partial":6,"_locale":7,"title":8,"description":7,"icon":9,"body":10,"_type":472,"_id":473,"_source":474,"_file":475,"_stem":476,"_extension":477},"/dragonfly/hashes/hashgetid","hashes",false,"","ArmaDragonflyClient - Hash Get ID","mdi:file-text-outline",{"type":11,"children":12,"toc":457},"root",[13,22,29,35,41,54,60,227,233,238,244,251,260,266,275,281,290,296,393,399],{"type":14,"tag":15,"props":16,"children":18},"element","h1",{"id":17},"hash-get-id",[19],{"type":20,"value":21},"text","Hash Get ID",{"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 dragonfly_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":226},"nil",{"type":14,"tag":23,"props":228,"children":230},{"id":229},"return-value",[231],{"type":20,"value":232},"Return Value",{"type":14,"tag":30,"props":234,"children":235},{},[236],{"type":20,"value":237},"None. The retrieved data is passed to the specified callback function asynchronously.",{"type":14,"tag":23,"props":239,"children":241},{"id":240},"examples",[242],{"type":20,"value":243},"Examples",{"type":14,"tag":245,"props":246,"children":248},"h3",{"id":247},"retrieve-a-players-loadout-field",[249],{"type":20,"value":250},"Retrieve a player's loadout field:",{"type":14,"tag":42,"props":252,"children":255},{"className":253,"code":254,"language":47,"meta":7},[45],"[getPlayerUID player, \"loadout\", \"dragonfly_db_fnc_test\"] call dragonfly_db_fnc_hashGetId;\n",[256],{"type":14,"tag":50,"props":257,"children":258},{"__ignoreMap":7},[259],{"type":20,"value":254},{"type":14,"tag":245,"props":261,"children":263},{"id":262},"retrieve-a-specific-vehicle-property-with-synchronous-callback",[264],{"type":20,"value":265},"Retrieve a specific vehicle property with synchronous callback:",{"type":14,"tag":42,"props":267,"children":270},{"className":268,"code":269,"language":47,"meta":7},[45],"[\"vehicle_123\", \"fuel\", \"dragonfly_db_fnc_processFuelData\", true] call dragonfly_db_fnc_hashGetId;\n",[271],{"type":14,"tag":50,"props":272,"children":273},{"__ignoreMap":7},[274],{"type":20,"value":269},{"type":14,"tag":245,"props":276,"children":278},{"id":277},"retrieve-data-and-send-it-to-a-specific-client",[279],{"type":20,"value":280},"Retrieve data and send it to a specific client:",{"type":14,"tag":42,"props":282,"children":285},{"className":283,"code":284,"language":47,"meta":7},[45],"[getPlayerUID player, \"stats\", \"dragonfly_db_fnc_test\", false, netId player] remoteExecCall [\"dragonfly_db_fnc_hashGetId\", 2, false];\n",[286],{"type":14,"tag":50,"props":287,"children":288},{"__ignoreMap":7},[289],{"type":20,"value":284},{"type":14,"tag":23,"props":291,"children":293},{"id":292},"notes",[294],{"type":20,"value":295},"Notes",{"type":14,"tag":297,"props":298,"children":299},"ul",{},[300,306,332,337,342,354,373,378,383,388],{"type":14,"tag":301,"props":302,"children":303},"li",{},[304],{"type":20,"value":305},"Retrieves a single field value from a specific hash table",{"type":14,"tag":301,"props":307,"children":308},{},[309,311,316,318,323,325,330],{"type":20,"value":310},"All three primary parameters (",{"type":14,"tag":50,"props":312,"children":314},{"className":313},[],[315],{"type":20,"value":108},{"type":20,"value":317},", ",{"type":14,"tag":50,"props":319,"children":321},{"className":320},[],[322],{"type":20,"value":135},{"type":20,"value":324},", and ",{"type":14,"tag":50,"props":326,"children":328},{"className":327},[],[329],{"type":20,"value":160},{"type":20,"value":331},") are required and validated",{"type":14,"tag":301,"props":333,"children":334},{},[335],{"type":20,"value":336},"The data is retrieved asynchronously through the extension's callback system",{"type":14,"tag":301,"props":338,"children":339},{},[340],{"type":20,"value":341},"When a netId is provided, the data is sent to that specific client",{"type":14,"tag":301,"props":343,"children":344},{},[345,347,352],{"type":20,"value":346},"The ",{"type":14,"tag":50,"props":348,"children":350},{"className":349},[],[351],{"type":20,"value":185},{"type":20,"value":353}," parameter determines whether the function is called directly (synchronous) or spawned (asynchronous)",{"type":14,"tag":301,"props":355,"children":356},{},[357,359,364,366,371],{"type":20,"value":358},"This function targets both a specific hash table (",{"type":14,"tag":50,"props":360,"children":362},{"className":361},[],[363],{"type":20,"value":108},{"type":20,"value":365},") and a specific field (",{"type":14,"tag":50,"props":367,"children":369},{"className":368},[],[370],{"type":20,"value":135},{"type":20,"value":372},")",{"type":14,"tag":301,"props":374,"children":375},{},[376],{"type":20,"value":377},"More efficient than retrieving all hash fields when only one is needed",{"type":14,"tag":301,"props":379,"children":380},{},[381],{"type":20,"value":382},"Player UIDs are commonly used as keys to store player-specific data",{"type":14,"tag":301,"props":384,"children":385},{},[386],{"type":20,"value":387},"For large data that exceeds buffer limits, it will be automatically chunked and reassembled",{"type":14,"tag":301,"props":389,"children":390},{},[391],{"type":20,"value":392},"All operations are logged for debugging purposes",{"type":14,"tag":23,"props":394,"children":396},{"id":395},"links",[397],{"type":20,"value":398},"Links",{"type":14,"tag":30,"props":400,"children":401},{},[402,409,411,415,416,422,423,429,430,436,437,443,444,450,451],{"type":14,"tag":403,"props":404,"children":406},"a",{"href":405},"/dragonfly/hashes/hashget",[407],{"type":20,"value":408},"Hash Get",{"type":20,"value":410}," |\n",{"type":14,"tag":403,"props":412,"children":413},{"href":4},[414],{"type":20,"value":21},{"type":20,"value":410},{"type":14,"tag":403,"props":417,"children":419},{"href":418},"/dragonfly/hashes/hashgetall",[420],{"type":20,"value":421},"Hash Get All",{"type":20,"value":410},{"type":14,"tag":403,"props":424,"children":426},{"href":425},"/dragonfly/hashes/hashgetallid",[427],{"type":20,"value":428},"Hash Get All ID",{"type":20,"value":410},{"type":14,"tag":403,"props":431,"children":433},{"href":432},"/dragonfly/hashes/hashset",[434],{"type":20,"value":435},"Hash Set",{"type":20,"value":410},{"type":14,"tag":403,"props":438,"children":440},{"href":439},"/dragonfly/hashes/hashsetid",[441],{"type":20,"value":442},"Hash Set ID",{"type":20,"value":410},{"type":14,"tag":403,"props":445,"children":447},{"href":446},"/dragonfly/hashes/hashsetbulk",[448],{"type":20,"value":449},"Hash Set Bulk",{"type":20,"value":410},{"type":14,"tag":403,"props":452,"children":454},{"href":453},"/dragonfly/hashes/hashsetbulkid",[455],{"type":20,"value":456},"Hash Set Bulk ID",{"title":7,"searchDepth":458,"depth":458,"links":459},2,[460,461,462,463,464,470,471],{"id":25,"depth":458,"text":28},{"id":37,"depth":458,"text":40},{"id":56,"depth":458,"text":59},{"id":229,"depth":458,"text":232},{"id":240,"depth":458,"text":243,"children":465},[466,468,469],{"id":247,"depth":467,"text":250},3,{"id":262,"depth":467,"text":265},{"id":277,"depth":467,"text":280},{"id":292,"depth":458,"text":295},{"id":395,"depth":458,"text":398},"markdown","content:dragonfly:hashes:hashGetId.md","content","dragonfly/hashes/hashGetId.md","dragonfly/hashes/hashGetId","md",1742777962446]