[{"data":1,"prerenderedAt":386},["ShallowReactive",2],{"content-query-owxtcgoY6U":3},{"_path":4,"_dir":5,"_draft":6,"_partial":6,"_locale":7,"title":8,"description":7,"icon":9,"body":10,"_type":380,"_id":381,"_source":382,"_file":383,"_stem":384,"_extension":385},"/dragonfly/hashes/hashset","hashes",false,"","ArmaDragonflyClient - Hash Set","mdi:file-text-outline",{"type":11,"children":12,"toc":365},"root",[13,22,29,44,50,62,68,161,167,172,178,185,194,200,209,215,224,230,301,307],{"type":14,"tag":15,"props":16,"children":18},"element","h1",{"id":17},"hash-set",[19],{"type":20,"value":21},"text","Hash Set",{"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},"Sets the value of a specified field in the hash table associated with 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},"hashSetId",{"type":20,"value":43}," which requires manually specifying an ID. It allows storing various data types (arrays, strings, numbers, or booleans) in a field of the client-specific hash structure.",{"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, _data] call dragonfly_db_fnc_hashSet\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],{"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 set",{"type":14,"tag":108,"props":128,"children":129},{},[130],{"type":20,"value":131},"\"\"",{"type":14,"tag":77,"props":133,"children":134},{},[135,144,149,154],{"type":14,"tag":108,"props":136,"children":137},{},[138],{"type":14,"tag":36,"props":139,"children":141},{"className":140},[],[142],{"type":20,"value":143},"_data",{"type":14,"tag":108,"props":145,"children":146},{},[147],{"type":20,"value":148},"Array, String, Number, or Boolean",{"type":14,"tag":108,"props":150,"children":151},{},[152],{"type":20,"value":153},"The value to store in the hash field",{"type":14,"tag":108,"props":155,"children":156},{},[157],{"type":14,"tag":158,"props":159,"children":160},"span",{},[],{"type":14,"tag":23,"props":162,"children":164},{"id":163},"return-value",[165],{"type":20,"value":166},"Return Value",{"type":14,"tag":30,"props":168,"children":169},{},[170],{"type":20,"value":171},"None. The operation runs synchronously to store the data.",{"type":14,"tag":23,"props":173,"children":175},{"id":174},"examples",[176],{"type":20,"value":177},"Examples",{"type":14,"tag":179,"props":180,"children":182},"h3",{"id":181},"store-a-players-loadout",[183],{"type":20,"value":184},"Store a player's loadout:",{"type":14,"tag":51,"props":186,"children":189},{"className":187,"code":188,"language":56,"meta":7},[54],"[\"loadout\", [getUnitLoadout player]] call dragonfly_db_fnc_hashSet;\n",[190],{"type":14,"tag":36,"props":191,"children":192},{"__ignoreMap":7},[193],{"type":20,"value":188},{"type":14,"tag":179,"props":195,"children":197},{"id":196},"store-player-preferences",[198],{"type":20,"value":199},"Store player preferences:",{"type":14,"tag":51,"props":201,"children":204},{"className":202,"code":203,"language":56,"meta":7},[54],"[\"settings\", [true, 30, \"normal\"]] call dragonfly_db_fnc_hashSet;\n",[205],{"type":14,"tag":36,"props":206,"children":207},{"__ignoreMap":7},[208],{"type":20,"value":203},{"type":14,"tag":179,"props":210,"children":212},{"id":211},"store-data-from-a-client",[213],{"type":20,"value":214},"Store data from a client:",{"type":14,"tag":51,"props":216,"children":219},{"className":217,"code":218,"language":56,"meta":7},[54],"[\"clientInfo\", [name player, getPlayerUID player]] remoteExecCall [\"dragonfly_db_fnc_hashSet\", 2, false];\n",[220],{"type":14,"tag":36,"props":221,"children":222},{"__ignoreMap":7},[223],{"type":20,"value":218},{"type":14,"tag":23,"props":225,"children":227},{"id":226},"notes",[228],{"type":20,"value":229},"Notes",{"type":14,"tag":231,"props":232,"children":233},"ul",{},[234,240,259,264,269,274,286,291,296],{"type":14,"tag":235,"props":236,"children":237},"li",{},[238],{"type":20,"value":239},"Stores a single field-value pair in the current client's hash table",{"type":14,"tag":235,"props":241,"children":242},{},[243,245,250,252,257],{"type":20,"value":244},"Both the ",{"type":14,"tag":36,"props":246,"children":248},{"className":247},[],[249],{"type":20,"value":116},{"type":20,"value":251}," and ",{"type":14,"tag":36,"props":253,"children":255},{"className":254},[],[256],{"type":20,"value":143},{"type":20,"value":258}," parameters are required and validated",{"type":14,"tag":235,"props":260,"children":261},{},[262],{"type":20,"value":263},"If the field already exists, its value will be overwritten",{"type":14,"tag":235,"props":265,"children":266},{},[267],{"type":20,"value":268},"Supports various data types: arrays, strings, numbers, and booleans",{"type":14,"tag":235,"props":270,"children":271},{},[272],{"type":20,"value":273},"This function automatically determines which hash table to use based on the caller's identity",{"type":14,"tag":235,"props":275,"children":276},{},[277,279,284],{"type":20,"value":278},"Use ",{"type":14,"tag":36,"props":280,"children":282},{"className":281},[],[283],{"type":20,"value":41},{"type":20,"value":285}," when you need to specify a particular hash table by ID",{"type":14,"tag":235,"props":287,"children":288},{},[289],{"type":20,"value":290},"Complex data structures should be serialized into arrays",{"type":14,"tag":235,"props":292,"children":293},{},[294],{"type":20,"value":295},"The operation is executed immediately and synchronously",{"type":14,"tag":235,"props":297,"children":298},{},[299],{"type":20,"value":300},"All operations are logged for debugging purposes",{"type":14,"tag":23,"props":302,"children":304},{"id":303},"links",[305],{"type":20,"value":306},"Links",{"type":14,"tag":30,"props":308,"children":309},{},[310,317,319,325,326,332,333,339,340,344,345,351,352,358,359],{"type":14,"tag":311,"props":312,"children":314},"a",{"href":313},"/dragonfly/hashes/hashget",[315],{"type":20,"value":316},"Hash Get",{"type":20,"value":318}," |\n",{"type":14,"tag":311,"props":320,"children":322},{"href":321},"/dragonfly/hashes/hashgetid",[323],{"type":20,"value":324},"Hash Get ID",{"type":20,"value":318},{"type":14,"tag":311,"props":327,"children":329},{"href":328},"/dragonfly/hashes/hashgetall",[330],{"type":20,"value":331},"Hash Get All",{"type":20,"value":318},{"type":14,"tag":311,"props":334,"children":336},{"href":335},"/dragonfly/hashes/hashgetallid",[337],{"type":20,"value":338},"Hash Get All ID",{"type":20,"value":318},{"type":14,"tag":311,"props":341,"children":342},{"href":4},[343],{"type":20,"value":21},{"type":20,"value":318},{"type":14,"tag":311,"props":346,"children":348},{"href":347},"/dragonfly/hashes/hashsetid",[349],{"type":20,"value":350},"Hash Set ID",{"type":20,"value":318},{"type":14,"tag":311,"props":353,"children":355},{"href":354},"/dragonfly/hashes/hashsetbulk",[356],{"type":20,"value":357},"Hash Set Bulk",{"type":20,"value":318},{"type":14,"tag":311,"props":360,"children":362},{"href":361},"/dragonfly/hashes/hashsetbulkid",[363],{"type":20,"value":364},"Hash Set Bulk ID",{"title":7,"searchDepth":366,"depth":366,"links":367},2,[368,369,370,371,372,378,379],{"id":25,"depth":366,"text":28},{"id":46,"depth":366,"text":49},{"id":64,"depth":366,"text":67},{"id":163,"depth":366,"text":166},{"id":174,"depth":366,"text":177,"children":373},[374,376,377],{"id":181,"depth":375,"text":184},3,{"id":196,"depth":375,"text":199},{"id":211,"depth":375,"text":214},{"id":226,"depth":366,"text":229},{"id":303,"depth":366,"text":306},"markdown","content:dragonfly:hashes:hashSet.md","content","dragonfly/hashes/hashSet.md","dragonfly/hashes/hashSet","md",1742777962529]