\chapter{hash\+Set}
\hypertarget{md__g_1_2ids_2dragonfly_2docs_2hash_2hash_set}{}\label{md__g_1_2ids_2dragonfly_2docs_2hash_2hash_set}\index{hashSet@{hashSet}}
\hypertarget{md__g_1_2ids_2dragonfly_2docs_2hash_2hash_set_autotoc_md219}{}\doxysubsection{\texorpdfstring{autotoc\+\_\+md219}{autotoc\+\_\+md219}}\label{md__g_1_2ids_2dragonfly_2docs_2hash_2hash_set_autotoc_md219}
title\+: Arma\+Dragonfly\+Client -\/ Hash Set icon\+: mdi\+:file-\/text-\/outline \hypertarget{md__g_1_2ids_2dragonfly_2docs_2hash_2hash_set_autotoc_md220}{}\doxysubsection{\texorpdfstring{excerpt\+: Set a field value in the current client\textquotesingle{}s hash table in Dragonfly\+Client.}{excerpt\+: Set a field value in the current client\textquotesingle{}s hash table in Dragonfly\+Client.}}\label{md__g_1_2ids_2dragonfly_2docs_2hash_2hash_set_autotoc_md220}
\hypertarget{md__g_1_2ids_2dragonfly_2docs_2hash_2hash_set_autotoc_md221}{}\doxysection{\texorpdfstring{dragonfly\+\_\+db\+\_\+fnc\+\_\+hash\+Set}{dragonfly\+\_\+db\+\_\+fnc\+\_\+hash\+Set}}\label{md__g_1_2ids_2dragonfly_2docs_2hash_2hash_set_autotoc_md221}
\hypertarget{md__g_1_2ids_2dragonfly_2docs_2hash_2hash_set_autotoc_md222}{}\doxysubsection{\texorpdfstring{Description}{Description}}\label{md__g_1_2ids_2dragonfly_2docs_2hash_2hash_set_autotoc_md222}
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\textquotesingle{}s identity, making it more convenient than {\ttfamily hash\+Set\+Id} 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.\hypertarget{md__g_1_2ids_2dragonfly_2docs_2hash_2hash_set_autotoc_md223}{}\doxysubsection{\texorpdfstring{Syntax}{Syntax}}\label{md__g_1_2ids_2dragonfly_2docs_2hash_2hash_set_autotoc_md223}

\begin{DoxyCode}{0}
\DoxyCodeLine{[\_keyField,\ \_data]\ call\ dragonfly\_db\_fnc\_hashSet}

\end{DoxyCode}
\hypertarget{md__g_1_2ids_2dragonfly_2docs_2hash_2hash_set_autotoc_md224}{}\doxysubsection{\texorpdfstring{Parameters}{Parameters}}\label{md__g_1_2ids_2dragonfly_2docs_2hash_2hash_set_autotoc_md224}
\tabulinesep=1mm
\begin{longtabu}spread 0pt [c]{*{4}{|X[-1]}|}
\hline
\PBS\centering \cellcolor{\tableheadbgcolor}\textbf{ Parameter   }&\PBS\centering \cellcolor{\tableheadbgcolor}\textbf{ Type   }&\PBS\centering \cellcolor{\tableheadbgcolor}\textbf{ Description   }&\PBS\centering \cellcolor{\tableheadbgcolor}\textbf{ Default    }\\\cline{1-4}
\endfirsthead
\hline
\endfoot
\hline
\PBS\centering \cellcolor{\tableheadbgcolor}\textbf{ Parameter   }&\PBS\centering \cellcolor{\tableheadbgcolor}\textbf{ Type   }&\PBS\centering \cellcolor{\tableheadbgcolor}\textbf{ Description   }&\PBS\centering \cellcolor{\tableheadbgcolor}\textbf{ Default    }\\\cline{1-4}
\endhead
{\ttfamily \+\_\+key\+Field}   &String   &Name of the field in the hash to set   &"{}"{}    \\\cline{1-4}
{\ttfamily \+\_\+data}   &Array, String, Number, or Boolean   &The value to store in the hash field   &\mbox{[}\mbox{]}   \\\cline{1-4}
\end{longtabu}
\hypertarget{md__g_1_2ids_2dragonfly_2docs_2hash_2hash_set_autotoc_md225}{}\doxysubsection{\texorpdfstring{Return Value}{Return Value}}\label{md__g_1_2ids_2dragonfly_2docs_2hash_2hash_set_autotoc_md225}
None. The operation runs synchronously to store the data.\hypertarget{md__g_1_2ids_2dragonfly_2docs_2hash_2hash_set_autotoc_md226}{}\doxysubsection{\texorpdfstring{Examples}{Examples}}\label{md__g_1_2ids_2dragonfly_2docs_2hash_2hash_set_autotoc_md226}
\hypertarget{md__g_1_2ids_2dragonfly_2docs_2hash_2hash_set_autotoc_md227}{}\doxysubsubsection{\texorpdfstring{Store a player\textquotesingle{}s loadout\+:}{Store a player\textquotesingle{}s loadout\+:}}\label{md__g_1_2ids_2dragonfly_2docs_2hash_2hash_set_autotoc_md227}

\begin{DoxyCode}{0}
\DoxyCodeLine{["{}loadout"{},\ [getUnitLoadout\ player]]\ call\ dragonfly\_db\_fnc\_hashSet;}

\end{DoxyCode}
\hypertarget{md__g_1_2ids_2dragonfly_2docs_2hash_2hash_set_autotoc_md228}{}\doxysubsubsection{\texorpdfstring{Store player preferences\+:}{Store player preferences\+:}}\label{md__g_1_2ids_2dragonfly_2docs_2hash_2hash_set_autotoc_md228}

\begin{DoxyCode}{0}
\DoxyCodeLine{["{}settings"{},\ [true,\ 30,\ "{}normal"{}]]\ call\ dragonfly\_db\_fnc\_hashSet;}

\end{DoxyCode}
\hypertarget{md__g_1_2ids_2dragonfly_2docs_2hash_2hash_set_autotoc_md229}{}\doxysubsubsection{\texorpdfstring{Store data from a client\+:}{Store data from a client\+:}}\label{md__g_1_2ids_2dragonfly_2docs_2hash_2hash_set_autotoc_md229}

\begin{DoxyCode}{0}
\DoxyCodeLine{["{}clientInfo"{},\ [name\ player,\ getPlayerUID\ player]]\ remoteExecCall\ ["{}dragonfly\_db\_fnc\_hashSet"{},\ 2,\ false];}

\end{DoxyCode}
\hypertarget{md__g_1_2ids_2dragonfly_2docs_2hash_2hash_set_autotoc_md230}{}\doxysubsection{\texorpdfstring{Notes}{Notes}}\label{md__g_1_2ids_2dragonfly_2docs_2hash_2hash_set_autotoc_md230}

\begin{DoxyItemize}
\item Stores a single field-\/value pair in the current client\textquotesingle{}s hash table
\item Both the field name and data parameters are required and validated
\item If the field already exists, its value will be overwritten
\item Supports various data types\+: arrays, strings, numbers, and booleans
\item This function automatically determines which hash table to use based on the caller\textquotesingle{}s identity
\item Use {\ttfamily hash\+Set\+Id} when you need to specify a particular hash table by ID
\item Complex data structures should be serialized into arrays
\item The operation is executed immediately and synchronously
\item All operations are logged for debugging purposes
\end{DoxyItemize}\hypertarget{md__g_1_2ids_2dragonfly_2docs_2hash_2hash_set_autotoc_md231}{}\doxysubsection{\texorpdfstring{Related Functions}{Related Functions}}\label{md__g_1_2ids_2dragonfly_2docs_2hash_2hash_set_autotoc_md231}

\begin{DoxyItemize}
\item {\ttfamily dragonfly\+\_\+db\+\_\+fnc\+\_\+hash\+Set\+Id}\+: Sets a field value in a specific hash table (when you need to specify the ID)
\item {\ttfamily dragonfly\+\_\+db\+\_\+fnc\+\_\+hash\+Get}\+: Retrieves a field value from the current client\textquotesingle{}s hash table
\item {\ttfamily dragonfly\+\_\+db\+\_\+fnc\+\_\+hash\+Get\+All}\+: Retrieves all fields from the current client\textquotesingle{}s hash table
\item {\ttfamily dragonfly\+\_\+db\+\_\+fnc\+\_\+hash\+Set\+Bulk}\+: Sets multiple fields in the current client\textquotesingle{}s hash table
\end{DoxyItemize}\hypertarget{md__g_1_2ids_2dragonfly_2docs_2hash_2hash_set_autotoc_md232}{}\doxysubsection{\texorpdfstring{Links}{Links}}\label{md__g_1_2ids_2dragonfly_2docs_2hash_2hash_set_autotoc_md232}
\doxysectlink{md__g_1_2ids_2dragonfly_2docs_2hash_2hash_get}{Hash Get}{0} \texorpdfstring{$\vert$}{|} \doxysectlink{md__g_1_2ids_2dragonfly_2docs_2hash_2hash_get_all}{Hash Get All}{0} \texorpdfstring{$\vert$}{|} \doxysectlink{md__g_1_2ids_2dragonfly_2docs_2hash_2hash_get_all_id}{Hash Get All ID}{0} \texorpdfstring{$\vert$}{|} \doxysectlink{md__g_1_2ids_2dragonfly_2docs_2hash_2hash_get_id}{Hash Get ID}{0} \texorpdfstring{$\vert$}{|} \doxysectlink{md__g_1_2ids_2dragonfly_2docs_2hash_2hash_set}{Hash Set}{0} \texorpdfstring{$\vert$}{|} \doxysectlink{md__g_1_2ids_2dragonfly_2docs_2hash_2hash_set_bulk}{Hash Set Bulk}{0} \texorpdfstring{$\vert$}{|} \doxysectlink{md__g_1_2ids_2dragonfly_2docs_2hash_2hash_set_id}{Hash Set ID}{0} \texorpdfstring{$\vert$}{|} \doxysectlink{md__g_1_2ids_2dragonfly_2docs_2hash_2hash_set_id_bulk}{Hash Set ID Bulk}{0} 