\chapter{hash\+Get\+Id}
\hypertarget{md_docs_2hash_2hash_get_id}{}\label{md_docs_2hash_2hash_get_id}\index{hashGetId@{hashGetId}}
\hypertarget{md_docs_2hash_2hash_get_id_autotoc_md246}{}\doxysubsection{\texorpdfstring{autotoc\+\_\+md246}{autotoc\+\_\+md246}}\label{md_docs_2hash_2hash_get_id_autotoc_md246}
title\+: Arma\+RAMDb -\/ Hash Get ID icon\+: mdi\+:file-\/text-\/outline \hypertarget{md_docs_2hash_2hash_get_id_autotoc_md247}{}\doxysubsection{\texorpdfstring{excerpt\+: Get the value associated with field in hash stored at key from RAMDb.}{excerpt\+: Get the value associated with field in hash stored at key from RAMDb.}}\label{md_docs_2hash_2hash_get_id_autotoc_md247}
\hypertarget{md_docs_2hash_2hash_get_id_autotoc_md248}{}\doxysection{\texorpdfstring{ramdb\+\_\+db\+\_\+fnc\+\_\+hash\+Get\+Id}{ramdb\+\_\+db\+\_\+fnc\+\_\+hash\+Get\+Id}}\label{md_docs_2hash_2hash_get_id_autotoc_md248}
\hypertarget{md_docs_2hash_2hash_get_id_autotoc_md249}{}\doxysubsection{\texorpdfstring{Description}{Description}}\label{md_docs_2hash_2hash_get_id_autotoc_md249}
Retrieves the value of a specific field from a hash table identified by its key. This function allows targeted access to individual fields within a specific hash table, making it ideal for accessing particular attributes of player or entity data. The retrieved data is returned through a callback function.\hypertarget{md_docs_2hash_2hash_get_id_autotoc_md250}{}\doxysubsection{\texorpdfstring{Syntax}{Syntax}}\label{md_docs_2hash_2hash_get_id_autotoc_md250}

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

\end{DoxyCode}
\hypertarget{md_docs_2hash_2hash_get_id_autotoc_md251}{}\doxysubsection{\texorpdfstring{Parameters}{Parameters}}\label{md_docs_2hash_2hash_get_id_autotoc_md251}
\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 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_id_autotoc_md252}{}\doxysubsection{\texorpdfstring{Return Value}{Return Value}}\label{md_docs_2hash_2hash_get_id_autotoc_md252}
None. The retrieved data is passed to the specified callback function asynchronously.\hypertarget{md_docs_2hash_2hash_get_id_autotoc_md253}{}\doxysubsection{\texorpdfstring{Examples}{Examples}}\label{md_docs_2hash_2hash_get_id_autotoc_md253}
\hypertarget{md_docs_2hash_2hash_get_id_autotoc_md254}{}\doxysubsubsection{\texorpdfstring{Retrieve a player\textquotesingle{}s loadout field\+:}{Retrieve a player\textquotesingle{}s loadout field\+:}}\label{md_docs_2hash_2hash_get_id_autotoc_md254}

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

\end{DoxyCode}
\hypertarget{md_docs_2hash_2hash_get_id_autotoc_md255}{}\doxysubsubsection{\texorpdfstring{Retrieve a specific vehicle property with synchronous callback\+:}{Retrieve a specific vehicle property with synchronous callback\+:}}\label{md_docs_2hash_2hash_get_id_autotoc_md255}

\begin{DoxyCode}{0}
\DoxyCodeLine{["{}vehicle\_123"{},\ "{}fuel"{},\ "{}ramdb\_db\_fnc\_processFuelData"{},\ true]\ call\ ramdb\_db\_fnc\_hashGetId;}

\end{DoxyCode}
\hypertarget{md_docs_2hash_2hash_get_id_autotoc_md256}{}\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_id_autotoc_md256}

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

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

\begin{DoxyItemize}
\item Retrieves a single field value from a specific hash table
\item All three primary parameters (key, key\+Field, and function) 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 targets both a specific hash table ({\ttfamily \+\_\+key}) and a specific field ({\ttfamily \+\_\+key\+Field})
\item More efficient than retrieving all hash fields when only one is needed
\item Player UIDs are commonly used as keys to store player-\/specific data
\item All operations are logged for debugging purposes
\end{DoxyItemize}\hypertarget{md_docs_2hash_2hash_get_id_autotoc_md258}{}\doxysubsection{\texorpdfstring{Related Functions}{Related Functions}}\label{md_docs_2hash_2hash_get_id_autotoc_md258}

\begin{DoxyItemize}
\item {\ttfamily ramdb\+\_\+db\+\_\+fnc\+\_\+hash\+Get}\+: Retrieves a field value from 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\+All}\+: Retrieves all fields 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_id_autotoc_md259}{}\doxysubsection{\texorpdfstring{Links}{Links}}\label{md_docs_2hash_2hash_get_id_autotoc_md259}
\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} 