[{"data":1,"prerenderedAt":416},["ShallowReactive",2],{"content-query-IpNdyHOlT2":3},{"_path":4,"_dir":5,"_draft":6,"_partial":6,"_locale":7,"title":8,"description":7,"icon":9,"body":10,"_type":410,"_id":411,"_source":412,"_file":413,"_stem":414,"_extension":415},"/ramdb/hashes/hashsetid","hashes",false,"","ArmaRAMDb - Hash Set ID","mdi:file-text-outline",{"type":11,"children":12,"toc":395},"root",[13,22,29,35,41,54,60,178,184,189,195,202,211,217,226,232,241,247,302,308],{"type":14,"tag":15,"props":16,"children":18},"element","h1",{"id":17},"ramdb_db_fnc_hashsetid",[19],{"type":20,"value":21},"text","ramdb_db_fnc_hashSetId",{"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},"Sets the value of a specified field in a specific hash table identified by its key. This function allows storing various data types (arrays, strings, numbers, or booleans) in a targeted hash table, making it ideal for player-specific or entity-specific data storage. It provides a way to organize related data under a common identifier.",{"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, _data] call ramdb_db_fnc_hashSetId\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],{"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 set",{"type":14,"tag":100,"props":146,"children":147},{},[148],{"type":20,"value":123},{"type":14,"tag":69,"props":150,"children":151},{},[152,161,166,171],{"type":14,"tag":100,"props":153,"children":154},{},[155],{"type":14,"tag":50,"props":156,"children":158},{"className":157},[],[159],{"type":20,"value":160},"_data",{"type":14,"tag":100,"props":162,"children":163},{},[164],{"type":20,"value":165},"Array, String, Number, or Boolean",{"type":14,"tag":100,"props":167,"children":168},{},[169],{"type":20,"value":170},"The value to store in the hash field",{"type":14,"tag":100,"props":172,"children":173},{},[174],{"type":14,"tag":175,"props":176,"children":177},"span",{},[],{"type":14,"tag":23,"props":179,"children":181},{"id":180},"return-value",[182],{"type":20,"value":183},"Return Value",{"type":14,"tag":30,"props":185,"children":186},{},[187],{"type":20,"value":188},"None. The operation runs synchronously to store the data.",{"type":14,"tag":23,"props":190,"children":192},{"id":191},"examples",[193],{"type":20,"value":194},"Examples",{"type":14,"tag":196,"props":197,"children":199},"h3",{"id":198},"store-a-players-loadout-under-their-uid",[200],{"type":20,"value":201},"Store a player's loadout under their UID:",{"type":14,"tag":42,"props":203,"children":206},{"className":204,"code":205,"language":47,"meta":7},[45],"[getPlayerUID player, \"loadout\", [getUnitLoadout player]] call ramdb_db_fnc_hashSetId;\n",[207],{"type":14,"tag":50,"props":208,"children":209},{"__ignoreMap":7},[210],{"type":20,"value":205},{"type":14,"tag":196,"props":212,"children":214},{"id":213},"store-vehicle-data",[215],{"type":20,"value":216},"Store vehicle data:",{"type":14,"tag":42,"props":218,"children":221},{"className":219,"code":220,"language":47,"meta":7},[45],"[\"vehicle_123\", \"status\", [true, 100, 75, \"active\"]] call ramdb_db_fnc_hashSetId;\n",[222],{"type":14,"tag":50,"props":223,"children":224},{"__ignoreMap":7},[225],{"type":20,"value":220},{"type":14,"tag":196,"props":227,"children":229},{"id":228},"store-player-data-from-a-client",[230],{"type":20,"value":231},"Store player data from a client:",{"type":14,"tag":42,"props":233,"children":236},{"className":234,"code":235,"language":47,"meta":7},[45],"[getPlayerUID player, \"stats\", [rank player, score player, name player]] remoteExecCall [\"ramdb_db_fnc_hashSetId\", 2, false];\n",[237],{"type":14,"tag":50,"props":238,"children":239},{"__ignoreMap":7},[240],{"type":20,"value":235},{"type":14,"tag":23,"props":242,"children":244},{"id":243},"notes",[245],{"type":20,"value":246},"Notes",{"type":14,"tag":248,"props":249,"children":250},"ul",{},[251,262,267,272,277,282,287,292,297],{"type":14,"tag":252,"props":253,"children":254},"li",{},[255,257],{"type":20,"value":256},"Stores a single field-value pair in a specific hash table identified by ",{"type":14,"tag":50,"props":258,"children":260},{"className":259},[],[261],{"type":20,"value":108},{"type":14,"tag":252,"props":263,"children":264},{},[265],{"type":20,"value":266},"All three parameters (key, keyField, and data) are required and validated",{"type":14,"tag":252,"props":268,"children":269},{},[270],{"type":20,"value":271},"If the hash table doesn't exist, it will be created automatically",{"type":14,"tag":252,"props":273,"children":274},{},[275],{"type":20,"value":276},"If the field already exists in the hash table, its value will be overwritten",{"type":14,"tag":252,"props":278,"children":279},{},[280],{"type":20,"value":281},"Supports various data types: arrays, strings, numbers, and booleans",{"type":14,"tag":252,"props":283,"children":284},{},[285],{"type":20,"value":286},"Player UIDs are commonly used as keys to store player-specific data",{"type":14,"tag":252,"props":288,"children":289},{},[290],{"type":20,"value":291},"Complex data structures should be serialized into arrays",{"type":14,"tag":252,"props":293,"children":294},{},[295],{"type":20,"value":296},"The operation is executed immediately and synchronously",{"type":14,"tag":252,"props":298,"children":299},{},[300],{"type":20,"value":301},"All operations are logged for debugging purposes",{"type":14,"tag":23,"props":303,"children":305},{"id":304},"links",[306],{"type":20,"value":307},"Links",{"type":14,"tag":30,"props":309,"children":310},{},[311,318,320,326,327,333,334,340,341,347,348,354,355,361,362,368,369,375,376,382,383,388,389],{"type":14,"tag":312,"props":313,"children":315},"a",{"href":314},"/ramdb/hashes/hashdelete",[316],{"type":20,"value":317},"Hash Delete",{"type":20,"value":319}," |\n",{"type":14,"tag":312,"props":321,"children":323},{"href":322},"/ramdb/hashes/hashdeleteid",[324],{"type":20,"value":325},"Hash Delete ID",{"type":20,"value":319},{"type":14,"tag":312,"props":328,"children":330},{"href":329},"/ramdb/hashes/hashget",[331],{"type":20,"value":332},"Hash Get",{"type":20,"value":319},{"type":14,"tag":312,"props":335,"children":337},{"href":336},"/ramdb/hashes/hashgetall",[338],{"type":20,"value":339},"Hash Get All",{"type":20,"value":319},{"type":14,"tag":312,"props":342,"children":344},{"href":343},"/ramdb/hashes/hashgetallid",[345],{"type":20,"value":346},"Hash Get All ID",{"type":20,"value":319},{"type":14,"tag":312,"props":349,"children":351},{"href":350},"/ramdb/hashes/hashgetid",[352],{"type":20,"value":353},"Hash Get ID",{"type":20,"value":319},{"type":14,"tag":312,"props":356,"children":358},{"href":357},"/ramdb/hashes/hashremove",[359],{"type":20,"value":360},"Hash Remove",{"type":20,"value":319},{"type":14,"tag":312,"props":363,"children":365},{"href":364},"/ramdb/hashes/hashremoveid",[366],{"type":20,"value":367},"Hash Remove ID",{"type":20,"value":319},{"type":14,"tag":312,"props":370,"children":372},{"href":371},"/ramdb/hashes/hashset",[373],{"type":20,"value":374},"Hash Set",{"type":20,"value":319},{"type":14,"tag":312,"props":377,"children":379},{"href":378},"/ramdb/hashes/hashsetbulk",[380],{"type":20,"value":381},"Hash Set Bulk",{"type":20,"value":319},{"type":14,"tag":312,"props":384,"children":385},{"href":4},[386],{"type":20,"value":387},"Hash Set ID",{"type":20,"value":319},{"type":14,"tag":312,"props":390,"children":392},{"href":391},"/ramdb/hashes/hashsetidbulk",[393],{"type":20,"value":394},"Hash Set ID Bulk",{"title":7,"searchDepth":396,"depth":396,"links":397},2,[398,399,400,401,402,408,409],{"id":25,"depth":396,"text":28},{"id":37,"depth":396,"text":40},{"id":56,"depth":396,"text":59},{"id":180,"depth":396,"text":183},{"id":191,"depth":396,"text":194,"children":403},[404,406,407],{"id":198,"depth":405,"text":201},3,{"id":213,"depth":405,"text":216},{"id":228,"depth":405,"text":231},{"id":243,"depth":396,"text":246},{"id":304,"depth":396,"text":307},"markdown","content:ramdb:hashes:hashSetId.md","content","ramdb/hashes/hashSetId.md","ramdb/hashes/hashSetId","md",1742777962018]