[{"data":1,"prerenderedAt":401},["ShallowReactive",2],{"content-query-dwHukGUs2g":3},{"_path":4,"_dir":5,"_draft":6,"_partial":6,"_locale":7,"title":8,"description":7,"icon":9,"body":10,"_type":395,"_id":396,"_source":397,"_file":398,"_stem":399,"_extension":400},"/ramdb/hashes/hashset","hashes",false,"","ArmaRAMDb - Hash Set","mdi:file-text-outline",{"type":11,"children":12,"toc":380},"root",[13,22,29,44,50,62,68,161,167,172,178,185,194,200,209,215,224,230,287,293],{"type":14,"tag":15,"props":16,"children":18},"element","h1",{"id":17},"ramdb_db_fnc_hashset",[19],{"type":20,"value":21},"text","ramdb_db_fnc_hashSet",{"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 ramdb_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 ramdb_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 ramdb_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 [\"ramdb_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,245,250,255,260,272,277,282],{"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],{"type":20,"value":244},"Both the field name and data parameters are required and validated",{"type":14,"tag":235,"props":246,"children":247},{},[248],{"type":20,"value":249},"If the field already exists, its value will be overwritten",{"type":14,"tag":235,"props":251,"children":252},{},[253],{"type":20,"value":254},"Supports various data types: arrays, strings, numbers, and booleans",{"type":14,"tag":235,"props":256,"children":257},{},[258],{"type":20,"value":259},"This function automatically determines which hash table to use based on the caller's identity",{"type":14,"tag":235,"props":261,"children":262},{},[263,265,270],{"type":20,"value":264},"Use ",{"type":14,"tag":36,"props":266,"children":268},{"className":267},[],[269],{"type":20,"value":41},{"type":20,"value":271}," when you need to specify a particular hash table by ID",{"type":14,"tag":235,"props":273,"children":274},{},[275],{"type":20,"value":276},"Complex data structures should be serialized into arrays",{"type":14,"tag":235,"props":278,"children":279},{},[280],{"type":20,"value":281},"The operation is executed immediately and synchronously",{"type":14,"tag":235,"props":283,"children":284},{},[285],{"type":20,"value":286},"All operations are logged for debugging purposes",{"type":14,"tag":23,"props":288,"children":290},{"id":289},"links",[291],{"type":20,"value":292},"Links",{"type":14,"tag":30,"props":294,"children":295},{},[296,303,305,311,312,318,319,325,326,332,333,339,340,346,347,353,354,359,360,366,367,373,374],{"type":14,"tag":297,"props":298,"children":300},"a",{"href":299},"/ramdb/hashes/hashdelete",[301],{"type":20,"value":302},"Hash Delete",{"type":20,"value":304}," |\n",{"type":14,"tag":297,"props":306,"children":308},{"href":307},"/ramdb/hashes/hashdeleteid",[309],{"type":20,"value":310},"Hash Delete ID",{"type":20,"value":304},{"type":14,"tag":297,"props":313,"children":315},{"href":314},"/ramdb/hashes/hashget",[316],{"type":20,"value":317},"Hash Get",{"type":20,"value":304},{"type":14,"tag":297,"props":320,"children":322},{"href":321},"/ramdb/hashes/hashgetall",[323],{"type":20,"value":324},"Hash Get All",{"type":20,"value":304},{"type":14,"tag":297,"props":327,"children":329},{"href":328},"/ramdb/hashes/hashgetallid",[330],{"type":20,"value":331},"Hash Get All ID",{"type":20,"value":304},{"type":14,"tag":297,"props":334,"children":336},{"href":335},"/ramdb/hashes/hashgetid",[337],{"type":20,"value":338},"Hash Get ID",{"type":20,"value":304},{"type":14,"tag":297,"props":341,"children":343},{"href":342},"/ramdb/hashes/hashremove",[344],{"type":20,"value":345},"Hash Remove",{"type":20,"value":304},{"type":14,"tag":297,"props":348,"children":350},{"href":349},"/ramdb/hashes/hashremoveid",[351],{"type":20,"value":352},"Hash Remove ID",{"type":20,"value":304},{"type":14,"tag":297,"props":355,"children":356},{"href":4},[357],{"type":20,"value":358},"Hash Set",{"type":20,"value":304},{"type":14,"tag":297,"props":361,"children":363},{"href":362},"/ramdb/hashes/hashsetbulk",[364],{"type":20,"value":365},"Hash Set Bulk",{"type":20,"value":304},{"type":14,"tag":297,"props":368,"children":370},{"href":369},"/ramdb/hashes/hashsetid",[371],{"type":20,"value":372},"Hash Set ID",{"type":20,"value":304},{"type":14,"tag":297,"props":375,"children":377},{"href":376},"/ramdb/hashes/hashsetidbulk",[378],{"type":20,"value":379},"Hash Set ID Bulk",{"title":7,"searchDepth":381,"depth":381,"links":382},2,[383,384,385,386,387,393,394],{"id":25,"depth":381,"text":28},{"id":46,"depth":381,"text":49},{"id":64,"depth":381,"text":67},{"id":163,"depth":381,"text":166},{"id":174,"depth":381,"text":177,"children":388},[389,391,392],{"id":181,"depth":390,"text":184},3,{"id":196,"depth":390,"text":199},{"id":211,"depth":390,"text":214},{"id":226,"depth":381,"text":229},{"id":289,"depth":381,"text":292},"markdown","content:ramdb:hashes:hashSet.md","content","ramdb/hashes/hashSet.md","ramdb/hashes/hashSet","md",1742777962005]