\chapter{hash\+Set\+Id\+Bulk}
\hypertarget{md_docs_2hash_2hash_set_id_bulk}{}\label{md_docs_2hash_2hash_set_id_bulk}\index{hashSetIdBulk@{hashSetIdBulk}}
\hypertarget{md_docs_2hash_2hash_set_id_bulk_autotoc_md329}{}\doxysubsection{\texorpdfstring{autotoc\+\_\+md329}{autotoc\+\_\+md329}}\label{md_docs_2hash_2hash_set_id_bulk_autotoc_md329}
title\+: Arma\+RAMDb -\/ Hash Set ID Bulk icon\+: mdi\+:file-\/text-\/outline \hypertarget{md_docs_2hash_2hash_set_id_bulk_autotoc_md330}{}\doxysubsection{\texorpdfstring{excerpt\+: Set the specified fields to their respective values in the hash stored at key from RAMDb.}{excerpt\+: Set the specified fields to their respective values in the hash stored at key from RAMDb.}}\label{md_docs_2hash_2hash_set_id_bulk_autotoc_md330}
\hypertarget{md_docs_2hash_2hash_set_id_bulk_autotoc_md331}{}\doxysection{\texorpdfstring{ramdb\+\_\+db\+\_\+fnc\+\_\+hash\+Set\+Id\+Bulk}{ramdb\+\_\+db\+\_\+fnc\+\_\+hash\+Set\+Id\+Bulk}}\label{md_docs_2hash_2hash_set_id_bulk_autotoc_md331}
\hypertarget{md_docs_2hash_2hash_set_id_bulk_autotoc_md332}{}\doxysubsection{\texorpdfstring{Description}{Description}}\label{md_docs_2hash_2hash_set_id_bulk_autotoc_md332}
Sets multiple field-\/value pairs in a specific hash table identified by its key in a single operation. This function allows efficiently storing multiple related fields at once for a specific identifier, reducing the number of separate database calls required. It\textquotesingle{}s ideal for saving a collection of player-\/specific or entity-\/specific data.\hypertarget{md_docs_2hash_2hash_set_id_bulk_autotoc_md333}{}\doxysubsection{\texorpdfstring{Syntax}{Syntax}}\label{md_docs_2hash_2hash_set_id_bulk_autotoc_md333}

\begin{DoxyCode}{0}
\DoxyCodeLine{[\_data]\ call\ ramdb\_db\_fnc\_hashSetIdBulk}

\end{DoxyCode}
\hypertarget{md_docs_2hash_2hash_set_id_bulk_autotoc_md334}{}\doxysubsection{\texorpdfstring{Parameters}{Parameters}}\label{md_docs_2hash_2hash_set_id_bulk_autotoc_md334}
\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 \+\_\+data}   &Array   &Array with key followed by alternating field names and values   &\mbox{[}\mbox{]}   \\\cline{1-4}
\end{longtabu}
\hypertarget{md_docs_2hash_2hash_set_id_bulk_autotoc_md335}{}\doxysubsection{\texorpdfstring{Return Value}{Return Value}}\label{md_docs_2hash_2hash_set_id_bulk_autotoc_md335}
None. The operation runs synchronously to store all the data.\hypertarget{md_docs_2hash_2hash_set_id_bulk_autotoc_md336}{}\doxysubsection{\texorpdfstring{Examples}{Examples}}\label{md_docs_2hash_2hash_set_id_bulk_autotoc_md336}
\hypertarget{md_docs_2hash_2hash_set_id_bulk_autotoc_md337}{}\doxysubsubsection{\texorpdfstring{Store player loadout and position\+:}{Store player loadout and position\+:}}\label{md_docs_2hash_2hash_set_id_bulk_autotoc_md337}

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

\end{DoxyCode}
\hypertarget{md_docs_2hash_2hash_set_id_bulk_autotoc_md338}{}\doxysubsubsection{\texorpdfstring{Store multiple vehicle properties\+:}{Store multiple vehicle properties\+:}}\label{md_docs_2hash_2hash_set_id_bulk_autotoc_md338}

\begin{DoxyCode}{0}
\DoxyCodeLine{[["{}vehicle\_123"{},\ "{}fuel"{},\ [0.75],\ "{}damage"{},\ [0.2],\ "{}crew"{},\ [["{}player1"{},\ "{}player2"{}]]]]\ call\ ramdb\_db\_fnc\_hashSetIdBulk;}

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

\begin{DoxyCode}{0}
\DoxyCodeLine{[[getPlayerUID\ player,\ "{}stats"{},\ [score\ player],\ "{}inventory"{},\ [getAllGear\ player]]]\ remoteExecCall\ ["{}ramdb\_db\_fnc\_hashSetIdBulk"{},\ 2,\ false];}

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

\begin{DoxyItemize}
\item The data array must be structured with the key first, followed by alternating field names and values\+: {\ttfamily \mbox{[}key, field1, value1, field2, value2, ...\mbox{]}}
\item The key must be a string that identifies the specific hash table
\item Each field name must be a string
\item Values can be arrays, strings, numbers, or booleans
\item All field-\/value pairs are stored in a single database operation
\item If the hash table doesn\textquotesingle{}t exist, it will be created automatically
\item If any of the fields already exist in the hash table, their values will be overwritten
\item More efficient than multiple individual {\ttfamily hash\+Set\+Id} calls when setting several fields
\item Player UIDs are commonly used as keys to store player-\/specific data
\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_bulk_autotoc_md341}{}\doxysubsection{\texorpdfstring{Related Functions}{Related Functions}}\label{md_docs_2hash_2hash_set_id_bulk_autotoc_md341}

\begin{DoxyItemize}
\item {\ttfamily ramdb\+\_\+db\+\_\+fnc\+\_\+hash\+Set\+Id}\+: Sets a single field value in a specific hash table
\item {\ttfamily ramdb\+\_\+db\+\_\+fnc\+\_\+hash\+Set\+Bulk}\+: Sets multiple field-\/value pairs in the global 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\+Get\+Id}\+: Retrieves a specific field value from a specific hash table
\item {\ttfamily ramdb\+\_\+db\+\_\+fnc\+\_\+hash\+Delete\+Id}\+: Removes a specific hash table
\end{DoxyItemize}\hypertarget{md_docs_2hash_2hash_set_id_bulk_autotoc_md342}{}\doxysubsection{\texorpdfstring{Links}{Links}}\label{md_docs_2hash_2hash_set_id_bulk_autotoc_md342}
\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} 