\chapter{hash\+Get\+All}
\hypertarget{md_docs_2hash_2hash_get_all}{}\label{md_docs_2hash_2hash_get_all}\index{hashGetAll@{hashGetAll}}
\hypertarget{md_docs_2hash_2hash_get_all_autotoc_md218}{}\doxysubsection{\texorpdfstring{autotoc\+\_\+md218}{autotoc\+\_\+md218}}\label{md_docs_2hash_2hash_get_all_autotoc_md218}
title\+: Arma\+RAMDb -\/ Hash Get All icon\+: mdi\+:file-\/text-\/outline \hypertarget{md_docs_2hash_2hash_get_all_autotoc_md219}{}\doxysubsection{\texorpdfstring{excerpt\+: Get all fields from the current client\textquotesingle{}s hash table in RAMDb.}{excerpt\+: Get all fields from the current client\textquotesingle{}s hash table in RAMDb.}}\label{md_docs_2hash_2hash_get_all_autotoc_md219}
\hypertarget{md_docs_2hash_2hash_get_all_autotoc_md220}{}\doxysection{\texorpdfstring{ramdb\+\_\+db\+\_\+fnc\+\_\+hash\+Get\+All}{ramdb\+\_\+db\+\_\+fnc\+\_\+hash\+Get\+All}}\label{md_docs_2hash_2hash_get_all_autotoc_md220}
\hypertarget{md_docs_2hash_2hash_get_all_autotoc_md221}{}\doxysubsection{\texorpdfstring{Description}{Description}}\label{md_docs_2hash_2hash_get_all_autotoc_md221}
Retrieves all fields and values from 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\+Get\+All\+Id} which requires manually specifying an ID. It returns the entire hash table data through a callback function, allowing access to all stored key-\/value pairs at once.\hypertarget{md_docs_2hash_2hash_get_all_autotoc_md222}{}\doxysubsection{\texorpdfstring{Syntax}{Syntax}}\label{md_docs_2hash_2hash_get_all_autotoc_md222}

\begin{DoxyCode}{0}
\DoxyCodeLine{[\_function,\ \_call,\ \_netId]\ call\ ramdb\_db\_fnc\_hashGetAll}

\end{DoxyCode}
\hypertarget{md_docs_2hash_2hash_get_all_autotoc_md223}{}\doxysubsection{\texorpdfstring{Parameters}{Parameters}}\label{md_docs_2hash_2hash_get_all_autotoc_md223}
\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 \+\_\+function}   &String   &Name of the function to receive the retrieved data   &"{}"{}    \\\cline{1-4}
{\ttfamily \+\_\+call}   &Boolean   &Whether to call the function directly (true) or spawn (false)   &false    \\\cline{1-4}
{\ttfamily \+\_\+net\+Id}   &String   &(Optional) Net\+ID of the player to receive the data   &"{}"{}   \\\cline{1-4}
\end{longtabu}
\hypertarget{md_docs_2hash_2hash_get_all_autotoc_md224}{}\doxysubsection{\texorpdfstring{Return Value}{Return Value}}\label{md_docs_2hash_2hash_get_all_autotoc_md224}
None. The retrieved data is passed to the specified callback function asynchronously.\hypertarget{md_docs_2hash_2hash_get_all_autotoc_md225}{}\doxysubsection{\texorpdfstring{Examples}{Examples}}\label{md_docs_2hash_2hash_get_all_autotoc_md225}
\hypertarget{md_docs_2hash_2hash_get_all_autotoc_md226}{}\doxysubsubsection{\texorpdfstring{Retrieve all client hash data\+:}{Retrieve all client hash data\+:}}\label{md_docs_2hash_2hash_get_all_autotoc_md226}

\begin{DoxyCode}{0}
\DoxyCodeLine{["{}ramdb\_db\_fnc\_test"{}]\ call\ ramdb\_db\_fnc\_hashGetAll;}

\end{DoxyCode}
\hypertarget{md_docs_2hash_2hash_get_all_autotoc_md227}{}\doxysubsubsection{\texorpdfstring{Retrieve data with synchronous callback\+:}{Retrieve data with synchronous callback\+:}}\label{md_docs_2hash_2hash_get_all_autotoc_md227}

\begin{DoxyCode}{0}
\DoxyCodeLine{["{}ramdb\_db\_fnc\_processAllData"{},\ true]\ call\ ramdb\_db\_fnc\_hashGetAll;}

\end{DoxyCode}
\hypertarget{md_docs_2hash_2hash_get_all_autotoc_md228}{}\doxysubsubsection{\texorpdfstring{Retrieve data and send it to a specific client\+:}{Retrieve data and send it to a specific client\+:}}\label{md_docs_2hash_2hash_get_all_autotoc_md228}

\begin{DoxyCode}{0}
\DoxyCodeLine{["{}ramdb\_db\_fnc\_test"{},\ false,\ netId\ player]\ remoteExecCall\ ["{}ramdb\_db\_fnc\_hashGetAll"{},\ 2,\ false];}

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

\begin{DoxyItemize}
\item Returns the complete hash table for the current client with all fields and values as a nested array
\item The data is retrieved asynchronously through the extension\textquotesingle{}s callback system
\item The callback function name must be provided and is validated
\item When a net\+Id is provided, the data is sent to that specific client
\item The {\ttfamily \+\_\+call} parameter determines whether the function is called directly (synchronous) or spawned (asynchronous)
\item This function automatically determines which hash table to use based on the caller\textquotesingle{}s identity
\item Use {\ttfamily hash\+Get\+All\+Id} when you need to specify a particular hash table by ID
\item For large hash tables, retrieving all data may impact performance
\item All operations are logged for debugging purposes
\end{DoxyItemize}\hypertarget{md_docs_2hash_2hash_get_all_autotoc_md230}{}\doxysubsection{\texorpdfstring{Related Functions}{Related Functions}}\label{md_docs_2hash_2hash_get_all_autotoc_md230}

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