\chapter{hash\+Get\+All\+Id}
\hypertarget{md_docs_2hash_2hash_get_all_id}{}\label{md_docs_2hash_2hash_get_all_id}\index{hashGetAllId@{hashGetAllId}}
\hypertarget{md_docs_2hash_2hash_get_all_id_autotoc_md232}{}\doxysubsection{\texorpdfstring{autotoc\+\_\+md232}{autotoc\+\_\+md232}}\label{md_docs_2hash_2hash_get_all_id_autotoc_md232}
title\+: Arma\+RAMDb -\/ Hash Get All ID icon\+: mdi\+:file-\/text-\/outline \hypertarget{md_docs_2hash_2hash_get_all_id_autotoc_md233}{}\doxysubsection{\texorpdfstring{excerpt\+: Get all fields and values from the hash stored at key from RAMDb.}{excerpt\+: Get all fields and values from the hash stored at key from RAMDb.}}\label{md_docs_2hash_2hash_get_all_id_autotoc_md233}
\hypertarget{md_docs_2hash_2hash_get_all_id_autotoc_md234}{}\doxysection{\texorpdfstring{ramdb\+\_\+db\+\_\+fnc\+\_\+hash\+Get\+All\+Id}{ramdb\+\_\+db\+\_\+fnc\+\_\+hash\+Get\+All\+Id}}\label{md_docs_2hash_2hash_get_all_id_autotoc_md234}
\hypertarget{md_docs_2hash_2hash_get_all_id_autotoc_md235}{}\doxysubsection{\texorpdfstring{Description}{Description}}\label{md_docs_2hash_2hash_get_all_id_autotoc_md235}
Retrieves all fields and values from a specific hash table identified by its key. This function returns the complete hash table data for a specific ID through a callback function, allowing access to all stored key-\/value pairs associated with that ID. It\textquotesingle{}s particularly useful for retrieving player-\/specific or entity-\/specific hash data.\hypertarget{md_docs_2hash_2hash_get_all_id_autotoc_md236}{}\doxysubsection{\texorpdfstring{Syntax}{Syntax}}\label{md_docs_2hash_2hash_get_all_id_autotoc_md236}

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

\end{DoxyCode}
\hypertarget{md_docs_2hash_2hash_get_all_id_autotoc_md237}{}\doxysubsection{\texorpdfstring{Parameters}{Parameters}}\label{md_docs_2hash_2hash_get_all_id_autotoc_md237}
\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 to retrieve   &"{}"{}    \\\cline{1-4}
{\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_id_autotoc_md238}{}\doxysubsection{\texorpdfstring{Return Value}{Return Value}}\label{md_docs_2hash_2hash_get_all_id_autotoc_md238}
None. The retrieved data is passed to the specified callback function asynchronously.\hypertarget{md_docs_2hash_2hash_get_all_id_autotoc_md239}{}\doxysubsection{\texorpdfstring{Examples}{Examples}}\label{md_docs_2hash_2hash_get_all_id_autotoc_md239}
\hypertarget{md_docs_2hash_2hash_get_all_id_autotoc_md240}{}\doxysubsubsection{\texorpdfstring{Retrieve a player\textquotesingle{}s complete hash data\+:}{Retrieve a player\textquotesingle{}s complete hash data\+:}}\label{md_docs_2hash_2hash_get_all_id_autotoc_md240}

\begin{DoxyCode}{0}
\DoxyCodeLine{[getPlayerUID\ player,\ "{}ramdb\_db\_fnc\_test"{}]\ call\ ramdb\_db\_fnc\_hashGetAllId;}

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

\begin{DoxyCode}{0}
\DoxyCodeLine{["{}vehicle\_123"{},\ "{}ramdb\_db\_fnc\_processVehicleData"{},\ true]\ call\ ramdb\_db\_fnc\_hashGetAllId;}

\end{DoxyCode}
\hypertarget{md_docs_2hash_2hash_get_all_id_autotoc_md242}{}\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_id_autotoc_md242}

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

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

\begin{DoxyItemize}
\item Returns the complete hash table with all fields and values as a nested array
\item Both the key and callback function parameters are required and validated
\item The data is retrieved asynchronously through the extension\textquotesingle{}s callback system
\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 retrieves from a specific hash table identified by {\ttfamily \+\_\+key} -\/ use {\ttfamily hash\+Get\+All} for the global hash table
\item Player UIDs are commonly used as keys to store player-\/specific data
\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_id_autotoc_md244}{}\doxysubsection{\texorpdfstring{Related Functions}{Related Functions}}\label{md_docs_2hash_2hash_get_all_id_autotoc_md244}

\begin{DoxyItemize}
\item {\ttfamily ramdb\+\_\+db\+\_\+fnc\+\_\+hash\+Get\+All}\+: Retrieves all fields from the global 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\+Get}\+: Retrieves a specific field value from the global hash table
\item {\ttfamily ramdb\+\_\+db\+\_\+fnc\+\_\+hash\+Set\+Id}\+: Sets a field value in a specific hash table
\item {\ttfamily ramdb\+\_\+db\+\_\+fnc\+\_\+scheduler}\+: Processes the callback from the database extension
\end{DoxyItemize}\hypertarget{md_docs_2hash_2hash_get_all_id_autotoc_md245}{}\doxysubsection{\texorpdfstring{Links}{Links}}\label{md_docs_2hash_2hash_get_all_id_autotoc_md245}
\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} 