\chapter{hash\+Set\+Bulk}
\hypertarget{md_docs_2hash_2hash_set_bulk}{}\label{md_docs_2hash_2hash_set_bulk}\index{hashSetBulk@{hashSetBulk}}
\hypertarget{md_docs_2hash_2hash_set_bulk_autotoc_md301}{}\doxysubsection{\texorpdfstring{autotoc\+\_\+md301}{autotoc\+\_\+md301}}\label{md_docs_2hash_2hash_set_bulk_autotoc_md301}
title\+: Arma\+RAMDb -\/ Hash Set Bulk icon\+: mdi\+:file-\/text-\/outline \hypertarget{md_docs_2hash_2hash_set_bulk_autotoc_md302}{}\doxysubsection{\texorpdfstring{excerpt\+: Set multiple fields in the current client\textquotesingle{}s hash table in RAMDb.}{excerpt\+: Set multiple fields in the current client\textquotesingle{}s hash table in RAMDb.}}\label{md_docs_2hash_2hash_set_bulk_autotoc_md302}
\hypertarget{md_docs_2hash_2hash_set_bulk_autotoc_md303}{}\doxysection{\texorpdfstring{ramdb\+\_\+db\+\_\+fnc\+\_\+hash\+Set\+Bulk}{ramdb\+\_\+db\+\_\+fnc\+\_\+hash\+Set\+Bulk}}\label{md_docs_2hash_2hash_set_bulk_autotoc_md303}
\hypertarget{md_docs_2hash_2hash_set_bulk_autotoc_md304}{}\doxysubsection{\texorpdfstring{Description}{Description}}\label{md_docs_2hash_2hash_set_bulk_autotoc_md304}
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\textquotesingle{}s identity, making it more convenient than {\ttfamily hash\+Set\+Id\+Bulk} which requires manually specifying an ID. It allows efficiently storing multiple related fields at once, reducing the number of separate database calls required.\hypertarget{md_docs_2hash_2hash_set_bulk_autotoc_md305}{}\doxysubsection{\texorpdfstring{Syntax}{Syntax}}\label{md_docs_2hash_2hash_set_bulk_autotoc_md305}

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

\end{DoxyCode}
\hypertarget{md_docs_2hash_2hash_set_bulk_autotoc_md306}{}\doxysubsection{\texorpdfstring{Parameters}{Parameters}}\label{md_docs_2hash_2hash_set_bulk_autotoc_md306}
\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 of alternating field names and values to store   &\mbox{[}\mbox{]}   \\\cline{1-4}
\end{longtabu}
\hypertarget{md_docs_2hash_2hash_set_bulk_autotoc_md307}{}\doxysubsection{\texorpdfstring{Return Value}{Return Value}}\label{md_docs_2hash_2hash_set_bulk_autotoc_md307}
None. The operation runs synchronously to store all the data.\hypertarget{md_docs_2hash_2hash_set_bulk_autotoc_md308}{}\doxysubsection{\texorpdfstring{Examples}{Examples}}\label{md_docs_2hash_2hash_set_bulk_autotoc_md308}
\hypertarget{md_docs_2hash_2hash_set_bulk_autotoc_md309}{}\doxysubsubsection{\texorpdfstring{Store player loadout and position\+:}{Store player loadout and position\+:}}\label{md_docs_2hash_2hash_set_bulk_autotoc_md309}

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

\end{DoxyCode}
\hypertarget{md_docs_2hash_2hash_set_bulk_autotoc_md310}{}\doxysubsubsection{\texorpdfstring{Store multiple player settings\+:}{Store multiple player settings\+:}}\label{md_docs_2hash_2hash_set_bulk_autotoc_md310}

\begin{DoxyCode}{0}
\DoxyCodeLine{[["{}difficulty"{},\ ["{}regular"{}],\ "{}respawn"{},\ [true],\ "{}tickets"{},\ [500]]]\ call\ ramdb\_db\_fnc\_hashSetBulk;}

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

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

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

\begin{DoxyItemize}
\item The data array must be structured as alternating field names and values\+: {\ttfamily \mbox{[}field1, value1, field2, value2, ...\mbox{]}}
\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 any of the fields already exist, their values will be overwritten
\item This function automatically determines which hash table to use based on the caller\textquotesingle{}s identity
\item Use {\ttfamily hash\+Set\+Id\+Bulk} when you need to specify a particular hash table by ID
\item More efficient than multiple individual {\ttfamily hash\+Set} calls when setting several fields
\item The operation is executed immediately and synchronously
\item All operations are logged for debugging purposes
\end{DoxyItemize}\hypertarget{md_docs_2hash_2hash_set_bulk_autotoc_md313}{}\doxysubsection{\texorpdfstring{Related Functions}{Related Functions}}\label{md_docs_2hash_2hash_set_bulk_autotoc_md313}

\begin{DoxyItemize}
\item {\ttfamily ramdb\+\_\+db\+\_\+fnc\+\_\+hash\+Set}\+: Sets a single field value in the current client\textquotesingle{}s hash table
\item {\ttfamily ramdb\+\_\+db\+\_\+fnc\+\_\+hash\+Set\+Id\+Bulk}\+: Sets multiple field-\/value pairs in a specific hash table (when you need to specify the ID)
\item {\ttfamily ramdb\+\_\+db\+\_\+fnc\+\_\+hash\+Get\+All}\+: Retrieves all fields from the current client\textquotesingle{}s hash table
\item {\ttfamily ramdb\+\_\+db\+\_\+fnc\+\_\+hash\+Get}\+: Retrieves a specific field value from the current client\textquotesingle{}s hash table
\item {\ttfamily ramdb\+\_\+db\+\_\+fnc\+\_\+hash\+Delete}\+: Removes the current client\textquotesingle{}s hash table
\end{DoxyItemize}\hypertarget{md_docs_2hash_2hash_set_bulk_autotoc_md314}{}\doxysubsection{\texorpdfstring{Links}{Links}}\label{md_docs_2hash_2hash_set_bulk_autotoc_md314}
\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} 