\chapter{hash\+Get\+Id}
\hypertarget{md__g_1_2ids_2dragonfly_2docs_2hash_2hash_get_id}{}\label{md__g_1_2ids_2dragonfly_2docs_2hash_2hash_get_id}\index{hashGetId@{hashGetId}}
\hypertarget{md__g_1_2ids_2dragonfly_2docs_2hash_2hash_get_id_autotoc_md205}{}\doxysubsection{\texorpdfstring{autotoc\+\_\+md205}{autotoc\+\_\+md205}}\label{md__g_1_2ids_2dragonfly_2docs_2hash_2hash_get_id_autotoc_md205}
title\+: Arma\+Dragonfly\+Client -\/ Hash Get ID icon\+: mdi\+:file-\/text-\/outline \hypertarget{md__g_1_2ids_2dragonfly_2docs_2hash_2hash_get_id_autotoc_md206}{}\doxysubsection{\texorpdfstring{excerpt\+: Get the value associated with field in hash stored at key from Dragonfly\+Client.}{excerpt\+: Get the value associated with field in hash stored at key from Dragonfly\+Client.}}\label{md__g_1_2ids_2dragonfly_2docs_2hash_2hash_get_id_autotoc_md206}
\hypertarget{md__g_1_2ids_2dragonfly_2docs_2hash_2hash_get_id_autotoc_md207}{}\doxysection{\texorpdfstring{dragonfly\+\_\+db\+\_\+fnc\+\_\+hash\+Get\+Id}{dragonfly\+\_\+db\+\_\+fnc\+\_\+hash\+Get\+Id}}\label{md__g_1_2ids_2dragonfly_2docs_2hash_2hash_get_id_autotoc_md207}
\hypertarget{md__g_1_2ids_2dragonfly_2docs_2hash_2hash_get_id_autotoc_md208}{}\doxysubsection{\texorpdfstring{Description}{Description}}\label{md__g_1_2ids_2dragonfly_2docs_2hash_2hash_get_id_autotoc_md208}
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__g_1_2ids_2dragonfly_2docs_2hash_2hash_get_id_autotoc_md209}{}\doxysubsection{\texorpdfstring{Syntax}{Syntax}}\label{md__g_1_2ids_2dragonfly_2docs_2hash_2hash_get_id_autotoc_md209}

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

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

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

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

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

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

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

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

\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__g_1_2ids_2dragonfly_2docs_2hash_2hash_get_id_autotoc_md217}{}\doxysubsection{\texorpdfstring{Related Functions}{Related Functions}}\label{md__g_1_2ids_2dragonfly_2docs_2hash_2hash_get_id_autotoc_md217}

\begin{DoxyItemize}
\item {\ttfamily dragonfly\+\_\+db\+\_\+fnc\+\_\+hash\+Get}\+: Retrieves a field value from the global hash table
\item {\ttfamily dragonfly\+\_\+db\+\_\+fnc\+\_\+hash\+Get\+All\+Id}\+: Retrieves all fields from a specific hash table
\item {\ttfamily dragonfly\+\_\+db\+\_\+fnc\+\_\+hash\+Get\+All}\+: Retrieves all fields from the global hash table
\item {\ttfamily dragonfly\+\_\+db\+\_\+fnc\+\_\+hash\+Set\+Id}\+: Sets a field value in a specific hash table
\item {\ttfamily dragonfly\+\_\+db\+\_\+fnc\+\_\+scheduler}\+: Processes the callback from the database extension
\end{DoxyItemize}\hypertarget{md__g_1_2ids_2dragonfly_2docs_2hash_2hash_get_id_autotoc_md218}{}\doxysubsection{\texorpdfstring{Links}{Links}}\label{md__g_1_2ids_2dragonfly_2docs_2hash_2hash_get_id_autotoc_md218}
\doxysectlink{md__g_1_2ids_2dragonfly_2docs_2hash_2hash_get}{Hash Get}{0} \texorpdfstring{$\vert$}{|} \doxysectlink{md__g_1_2ids_2dragonfly_2docs_2hash_2hash_get_all}{Hash Get All}{0} \texorpdfstring{$\vert$}{|} \doxysectlink{md__g_1_2ids_2dragonfly_2docs_2hash_2hash_get_all_id}{Hash Get All ID}{0} \texorpdfstring{$\vert$}{|} \doxysectlink{md__g_1_2ids_2dragonfly_2docs_2hash_2hash_get_id}{Hash Get ID}{0} \texorpdfstring{$\vert$}{|} \doxysectlink{md__g_1_2ids_2dragonfly_2docs_2hash_2hash_set}{Hash Set}{0} \texorpdfstring{$\vert$}{|} \doxysectlink{md__g_1_2ids_2dragonfly_2docs_2hash_2hash_set_bulk}{Hash Set Bulk}{0} \texorpdfstring{$\vert$}{|} \doxysectlink{md__g_1_2ids_2dragonfly_2docs_2hash_2hash_set_id}{Hash Set ID}{0} \texorpdfstring{$\vert$}{|} \doxysectlink{md__g_1_2ids_2dragonfly_2docs_2hash_2hash_set_id_bulk}{Hash Set ID Bulk}{0} 