\chapter{hash\+Set\+Id}
\hypertarget{md_docs_2hash_2hash_set_id}{}\label{md_docs_2hash_2hash_set_id}\index{hashSetId@{hashSetId}}
\hypertarget{md_docs_2hash_2hash_set_id_autotoc_md315}{}\doxysubsection{\texorpdfstring{autotoc\+\_\+md315}{autotoc\+\_\+md315}}\label{md_docs_2hash_2hash_set_id_autotoc_md315}
title\+: Arma\+RAMDb -\/ Hash Set ID icon\+: mdi\+:file-\/text-\/outline \hypertarget{md_docs_2hash_2hash_set_id_autotoc_md316}{}\doxysubsection{\texorpdfstring{excerpt\+: Set the specified field to the respective value in the hash stored at key from RAMDb.}{excerpt\+: Set the specified field to the respective value in the hash stored at key from RAMDb.}}\label{md_docs_2hash_2hash_set_id_autotoc_md316}
\hypertarget{md_docs_2hash_2hash_set_id_autotoc_md317}{}\doxysection{\texorpdfstring{ramdb\+\_\+db\+\_\+fnc\+\_\+hash\+Set\+Id}{ramdb\+\_\+db\+\_\+fnc\+\_\+hash\+Set\+Id}}\label{md_docs_2hash_2hash_set_id_autotoc_md317}
\hypertarget{md_docs_2hash_2hash_set_id_autotoc_md318}{}\doxysubsection{\texorpdfstring{Description}{Description}}\label{md_docs_2hash_2hash_set_id_autotoc_md318}
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.\hypertarget{md_docs_2hash_2hash_set_id_autotoc_md319}{}\doxysubsection{\texorpdfstring{Syntax}{Syntax}}\label{md_docs_2hash_2hash_set_id_autotoc_md319}

\begin{DoxyCode}{0}
\DoxyCodeLine{[\_key,\ \_keyField,\ \_data]\ call\ ramdb\_db\_fnc\_hashSetId}

\end{DoxyCode}
\hypertarget{md_docs_2hash_2hash_set_id_autotoc_md320}{}\doxysubsection{\texorpdfstring{Parameters}{Parameters}}\label{md_docs_2hash_2hash_set_id_autotoc_md320}
\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}   &String   &Identifier of the hash table   &"{}"{}    \\\cline{1-4}
{\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_docs_2hash_2hash_set_id_autotoc_md321}{}\doxysubsection{\texorpdfstring{Return Value}{Return Value}}\label{md_docs_2hash_2hash_set_id_autotoc_md321}
None. The operation runs synchronously to store the data.\hypertarget{md_docs_2hash_2hash_set_id_autotoc_md322}{}\doxysubsection{\texorpdfstring{Examples}{Examples}}\label{md_docs_2hash_2hash_set_id_autotoc_md322}
\hypertarget{md_docs_2hash_2hash_set_id_autotoc_md323}{}\doxysubsubsection{\texorpdfstring{Store a player\textquotesingle{}s loadout under their UID\+:}{Store a player\textquotesingle{}s loadout under their UID\+:}}\label{md_docs_2hash_2hash_set_id_autotoc_md323}

\begin{DoxyCode}{0}
\DoxyCodeLine{[getPlayerUID\ player,\ "{}loadout"{},\ [getUnitLoadout\ player]]\ call\ ramdb\_db\_fnc\_hashSetId;}

\end{DoxyCode}
\hypertarget{md_docs_2hash_2hash_set_id_autotoc_md324}{}\doxysubsubsection{\texorpdfstring{Store vehicle data\+:}{Store vehicle data\+:}}\label{md_docs_2hash_2hash_set_id_autotoc_md324}

\begin{DoxyCode}{0}
\DoxyCodeLine{["{}vehicle\_123"{},\ "{}status"{},\ [true,\ 100,\ 75,\ "{}active"{}]]\ call\ ramdb\_db\_fnc\_hashSetId;}

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

\begin{DoxyCode}{0}
\DoxyCodeLine{[getPlayerUID\ player,\ "{}stats"{},\ [rank\ player,\ score\ player,\ name\ player]]\ remoteExecCall\ ["{}ramdb\_db\_fnc\_hashSetId"{},\ 2,\ false];}

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

\begin{DoxyItemize}
\item Stores a single field-\/value pair in a specific hash table identified by {\ttfamily \+\_\+key}
\item All three parameters (key, key\+Field, and data) are required and validated
\item If the hash table doesn\textquotesingle{}t exist, it will be created automatically
\item If the field already exists in the hash table, its value will be overwritten
\item Supports various data types\+: arrays, strings, numbers, and booleans
\item Player UIDs are commonly used as keys to store player-\/specific data
\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_docs_2hash_2hash_set_id_autotoc_md327}{}\doxysubsection{\texorpdfstring{Related Functions}{Related Functions}}\label{md_docs_2hash_2hash_set_id_autotoc_md327}

\begin{DoxyItemize}
\item {\ttfamily ramdb\+\_\+db\+\_\+fnc\+\_\+hash\+Set}\+: Sets a field value in the global hash table
\item {\ttfamily ramdb\+\_\+db\+\_\+fnc\+\_\+hash\+Get\+Id}\+: Retrieves a field value from a specific hash table
\item {\ttfamily ramdb\+\_\+db\+\_\+fnc\+\_\+hash\+Get\+All\+Id}\+: Retrieves all fields from a specific hash table
\item {\ttfamily ramdb\+\_\+db\+\_\+fnc\+\_\+hash\+Set\+Id\+Bulk}\+: Sets multiple field-\/value pairs in multiple hash tables
\item {\ttfamily ramdb\+\_\+db\+\_\+fnc\+\_\+hash\+Delete\+Id}\+: Removes a specific hash table
\end{DoxyItemize}\hypertarget{md_docs_2hash_2hash_set_id_autotoc_md328}{}\doxysubsection{\texorpdfstring{Links}{Links}}\label{md_docs_2hash_2hash_set_id_autotoc_md328}
\doxysectlink{md_docs_2hash_2hash_delete}{Hash Delete}{0} \texorpdfstring{$\vert$}{|} \doxysectlink{md_docs_2hash_2hash_delete_id}{Hash Delete ID}{0} \texorpdfstring{$\vert$}{|} \doxysectlink{md_docs_2hash_2hash_get}{Hash Get}{0} \texorpdfstring{$\vert$}{|} \doxysectlink{md_docs_2hash_2hash_get_all}{Hash Get All}{0} \texorpdfstring{$\vert$}{|} \doxysectlink{md_docs_2hash_2hash_get_all_id}{Hash Get All ID}{0} \texorpdfstring{$\vert$}{|} \doxysectlink{md_docs_2hash_2hash_get_id}{Hash Get ID}{0} \texorpdfstring{$\vert$}{|} \doxysectlink{md_docs_2hash_2hash_remove}{Hash Remove}{0} \texorpdfstring{$\vert$}{|} \doxysectlink{md_docs_2hash_2hash_remove_id}{Hash Remove ID}{0} \texorpdfstring{$\vert$}{|} \doxysectlink{md_docs_2hash_2hash_set}{Hash Set}{0} \texorpdfstring{$\vert$}{|} \doxysectlink{md_docs_2hash_2hash_set_bulk}{Hash Set Bulk}{0} \texorpdfstring{$\vert$}{|} \doxysectlink{md_docs_2hash_2hash_set_id}{Hash Set ID}{0} \texorpdfstring{$\vert$}{|} \doxysectlink{md_docs_2hash_2hash_set_id_bulk}{Hash Set ID Bulk}{0} 