[{"data":1,"prerenderedAt":364},["ShallowReactive",2],{"content-query-XrAIf3u6hy":3},{"_path":4,"_dir":5,"_draft":6,"_partial":6,"_locale":7,"title":8,"description":7,"icon":9,"body":10,"_type":358,"_id":359,"_source":360,"_file":361,"_stem":362,"_extension":363},"/dragonfly/hashes/hashsetbulk","hashes",false,"","ArmaDragonflyClient - Hash Set Bulk","mdi:file-text-outline",{"type":11,"children":12,"toc":343},"root",[13,22,29,44,50,62,68,134,140,145,151,158,167,173,182,188,197,203,279,285],{"type":14,"tag":15,"props":16,"children":18},"element","h1",{"id":17},"hash-set-bulk",[19],{"type":20,"value":21},"text","Hash Set Bulk",{"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 multiple field-value pairs in the hash table associated with the current client/player in a single operation. 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},"hashSetIdBulk",{"type":20,"value":43}," which requires manually specifying an ID. It allows efficiently storing multiple related fields at once, reducing the number of separate database calls required.",{"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","[_data] call dragonfly_db_fnc_hashSetBulk\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],{"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},"_data",{"type":14,"tag":108,"props":118,"children":119},{},[120],{"type":20,"value":121},"Array",{"type":14,"tag":108,"props":123,"children":124},{},[125],{"type":20,"value":126},"Array of alternating field names and values to store",{"type":14,"tag":108,"props":128,"children":129},{},[130],{"type":14,"tag":131,"props":132,"children":133},"span",{},[],{"type":14,"tag":23,"props":135,"children":137},{"id":136},"return-value",[138],{"type":20,"value":139},"Return Value",{"type":14,"tag":30,"props":141,"children":142},{},[143],{"type":20,"value":144},"None. The operation runs synchronously to store all the data.",{"type":14,"tag":23,"props":146,"children":148},{"id":147},"examples",[149],{"type":20,"value":150},"Examples",{"type":14,"tag":152,"props":153,"children":155},"h3",{"id":154},"store-player-loadout-and-position",[156],{"type":20,"value":157},"Store player loadout and position:",{"type":14,"tag":51,"props":159,"children":162},{"className":160,"code":161,"language":56,"meta":7},[54],"[[\"loadout\", [getUnitLoadout player], \"position\", [getPosASLVisual player]]] call dragonfly_db_fnc_hashSetBulk;\n",[163],{"type":14,"tag":36,"props":164,"children":165},{"__ignoreMap":7},[166],{"type":20,"value":161},{"type":14,"tag":152,"props":168,"children":170},{"id":169},"store-multiple-player-settings",[171],{"type":20,"value":172},"Store multiple player settings:",{"type":14,"tag":51,"props":174,"children":177},{"className":175,"code":176,"language":56,"meta":7},[54],"[[\"difficulty\", [\"regular\"], \"respawn\", [true], \"tickets\", [500]]] call dragonfly_db_fnc_hashSetBulk;\n",[178],{"type":14,"tag":36,"props":179,"children":180},{"__ignoreMap":7},[181],{"type":20,"value":176},{"type":14,"tag":152,"props":183,"children":185},{"id":184},"store-player-data-from-a-client",[186],{"type":20,"value":187},"Store player data from a client:",{"type":14,"tag":51,"props":189,"children":192},{"className":190,"code":191,"language":56,"meta":7},[54],"[[\"name\", [name player], \"uid\", [getPlayerUID player], \"score\", [score player]]] remoteExecCall [\"dragonfly_db_fnc_hashSetBulk\", 2, false];\n",[193],{"type":14,"tag":36,"props":194,"children":195},{"__ignoreMap":7},[196],{"type":20,"value":191},{"type":14,"tag":23,"props":198,"children":200},{"id":199},"notes",[201],{"type":20,"value":202},"Notes",{"type":14,"tag":204,"props":205,"children":206},"ul",{},[207,219,224,229,234,239,244,256,269,274],{"type":14,"tag":208,"props":209,"children":210},"li",{},[211,213],{"type":20,"value":212},"The data array must be structured as alternating field names and values: ",{"type":14,"tag":36,"props":214,"children":216},{"className":215},[],[217],{"type":20,"value":218},"[field1, [value1], field2, [value2], ...]",{"type":14,"tag":208,"props":220,"children":221},{},[222],{"type":20,"value":223},"Each field name must be a string",{"type":14,"tag":208,"props":225,"children":226},{},[227],{"type":20,"value":228},"Values can be arrays, strings, numbers, or booleans",{"type":14,"tag":208,"props":230,"children":231},{},[232],{"type":20,"value":233},"All field-value pairs are stored in a single database operation",{"type":14,"tag":208,"props":235,"children":236},{},[237],{"type":20,"value":238},"If any of the fields already exist, their values will be overwritten",{"type":14,"tag":208,"props":240,"children":241},{},[242],{"type":20,"value":243},"This function automatically determines which hash table to use based on the caller's identity",{"type":14,"tag":208,"props":245,"children":246},{},[247,249,254],{"type":20,"value":248},"Use ",{"type":14,"tag":36,"props":250,"children":252},{"className":251},[],[253],{"type":20,"value":41},{"type":20,"value":255}," when you need to specify a particular hash table by ID",{"type":14,"tag":208,"props":257,"children":258},{},[259,261,267],{"type":20,"value":260},"More efficient than multiple individual ",{"type":14,"tag":36,"props":262,"children":264},{"className":263},[],[265],{"type":20,"value":266},"hashSet",{"type":20,"value":268}," calls when setting several fields",{"type":14,"tag":208,"props":270,"children":271},{},[272],{"type":20,"value":273},"The operation is executed immediately and synchronously",{"type":14,"tag":208,"props":275,"children":276},{},[277],{"type":20,"value":278},"All operations are logged for debugging purposes",{"type":14,"tag":23,"props":280,"children":282},{"id":281},"links",[283],{"type":20,"value":284},"Links",{"type":14,"tag":30,"props":286,"children":287},{},[288,295,297,303,304,310,311,317,318,324,325,331,332,336,337],{"type":14,"tag":289,"props":290,"children":292},"a",{"href":291},"/dragonfly/hashes/hashget",[293],{"type":20,"value":294},"Hash Get",{"type":20,"value":296}," |\n",{"type":14,"tag":289,"props":298,"children":300},{"href":299},"/dragonfly/hashes/hashgetid",[301],{"type":20,"value":302},"Hash Get ID",{"type":20,"value":296},{"type":14,"tag":289,"props":305,"children":307},{"href":306},"/dragonfly/hashes/hashgetall",[308],{"type":20,"value":309},"Hash Get All",{"type":20,"value":296},{"type":14,"tag":289,"props":312,"children":314},{"href":313},"/dragonfly/hashes/hashgetallid",[315],{"type":20,"value":316},"Hash Get All ID",{"type":20,"value":296},{"type":14,"tag":289,"props":319,"children":321},{"href":320},"/dragonfly/hashes/hashset",[322],{"type":20,"value":323},"Hash Set",{"type":20,"value":296},{"type":14,"tag":289,"props":326,"children":328},{"href":327},"/dragonfly/hashes/hashsetid",[329],{"type":20,"value":330},"Hash Set ID",{"type":20,"value":296},{"type":14,"tag":289,"props":333,"children":334},{"href":4},[335],{"type":20,"value":21},{"type":20,"value":296},{"type":14,"tag":289,"props":338,"children":340},{"href":339},"/dragonfly/hashes/hashsetbulkid",[341],{"type":20,"value":342},"Hash Set Bulk ID",{"title":7,"searchDepth":344,"depth":344,"links":345},2,[346,347,348,349,350,356,357],{"id":25,"depth":344,"text":28},{"id":46,"depth":344,"text":49},{"id":64,"depth":344,"text":67},{"id":136,"depth":344,"text":139},{"id":147,"depth":344,"text":150,"children":351},[352,354,355],{"id":154,"depth":353,"text":157},3,{"id":169,"depth":353,"text":172},{"id":184,"depth":353,"text":187},{"id":199,"depth":344,"text":202},{"id":281,"depth":344,"text":284},"markdown","content:dragonfly:hashes:hashSetBulk.md","content","dragonfly/hashes/hashSetBulk.md","dragonfly/hashes/hashSetBulk","md",1742777962534]