\chapter{get}
\hypertarget{md__g_1_2ids_2dragonfly_2docs_2basic_2get}{}\label{md__g_1_2ids_2dragonfly_2docs_2basic_2get}\index{get@{get}}
\hypertarget{md__g_1_2ids_2dragonfly_2docs_2basic_2get_autotoc_md23}{}\doxysubsection{\texorpdfstring{autotoc\+\_\+md23}{autotoc\+\_\+md23}}\label{md__g_1_2ids_2dragonfly_2docs_2basic_2get_autotoc_md23}
title\+: Arma\+Dragonfly\+Client -\/ Get Key icon\+: mdi\+:file-\/text-\/outline \hypertarget{md__g_1_2ids_2dragonfly_2docs_2basic_2get_autotoc_md24}{}\doxysubsection{\texorpdfstring{excerpt\+: Get the value of stored key from Dragonfly\+Client.}{excerpt\+: Get the value of stored key from Dragonfly\+Client.}}\label{md__g_1_2ids_2dragonfly_2docs_2basic_2get_autotoc_md24}
\hypertarget{md__g_1_2ids_2dragonfly_2docs_2basic_2get_autotoc_md25}{}\doxysection{\texorpdfstring{dragonfly\+\_\+db\+\_\+fnc\+\_\+get}{dragonfly\+\_\+db\+\_\+fnc\+\_\+get}}\label{md__g_1_2ids_2dragonfly_2docs_2basic_2get_autotoc_md25}
\hypertarget{md__g_1_2ids_2dragonfly_2docs_2basic_2get_autotoc_md26}{}\doxysubsection{\texorpdfstring{Description}{Description}}\label{md__g_1_2ids_2dragonfly_2docs_2basic_2get_autotoc_md26}
Retrieves the value of a stored key from the database. This function performs an asynchronous request to the database and passes the retrieved data to the specified callback function.\hypertarget{md__g_1_2ids_2dragonfly_2docs_2basic_2get_autotoc_md27}{}\doxysubsection{\texorpdfstring{Syntax}{Syntax}}\label{md__g_1_2ids_2dragonfly_2docs_2basic_2get_autotoc_md27}

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

\end{DoxyCode}
\hypertarget{md__g_1_2ids_2dragonfly_2docs_2basic_2get_autotoc_md28}{}\doxysubsection{\texorpdfstring{Parameters}{Parameters}}\label{md__g_1_2ids_2dragonfly_2docs_2basic_2get_autotoc_md28}
\tabulinesep=1mm
\begin{longtabu}spread 0pt [c]{*{3}{|X[-1]}|}
\hline
\PBS\centering \cellcolor{\tableheadbgcolor}\textbf{ Parameter   }&\PBS\centering \cellcolor{\tableheadbgcolor}\textbf{ Type   }&\PBS\centering \cellcolor{\tableheadbgcolor}\textbf{ Description    }\\\cline{1-3}
\endfirsthead
\hline
\endfoot
\hline
\PBS\centering \cellcolor{\tableheadbgcolor}\textbf{ Parameter   }&\PBS\centering \cellcolor{\tableheadbgcolor}\textbf{ Type   }&\PBS\centering \cellcolor{\tableheadbgcolor}\textbf{ Description    }\\\cline{1-3}
\endhead
{\ttfamily \+\_\+key}   &String   &Name of the stored key to retrieve from the database    \\\cline{1-3}
{\ttfamily \+\_\+function}   &String   &Name of the function to call when data is retrieved    \\\cline{1-3}
{\ttfamily \+\_\+call}   &Boolean   &Whether to call the function directly (true) or spawn (false)    \\\cline{1-3}
{\ttfamily \+\_\+net\+Id}   &String   &(Optional) Net\+ID of the player to whom the data should be returned   \\\cline{1-3}
\end{longtabu}
\hypertarget{md__g_1_2ids_2dragonfly_2docs_2basic_2get_autotoc_md29}{}\doxysubsection{\texorpdfstring{Return Value}{Return Value}}\label{md__g_1_2ids_2dragonfly_2docs_2basic_2get_autotoc_md29}
None. When data is retrieved, it will be passed to the specified function. The operation runs asynchronously.\hypertarget{md__g_1_2ids_2dragonfly_2docs_2basic_2get_autotoc_md30}{}\doxysubsection{\texorpdfstring{Examples}{Examples}}\label{md__g_1_2ids_2dragonfly_2docs_2basic_2get_autotoc_md30}
\hypertarget{md__g_1_2ids_2dragonfly_2docs_2basic_2get_autotoc_md31}{}\doxysubsubsection{\texorpdfstring{Retrieve data in singleplayer or on the server\+:}{Retrieve data in singleplayer or on the server\+:}}\label{md__g_1_2ids_2dragonfly_2docs_2basic_2get_autotoc_md31}

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

\end{DoxyCode}
\hypertarget{md__g_1_2ids_2dragonfly_2docs_2basic_2get_autotoc_md32}{}\doxysubsubsection{\texorpdfstring{Retrieve data on the server and send to a specific client\+:}{Retrieve data on the server and send to a specific client\+:}}\label{md__g_1_2ids_2dragonfly_2docs_2basic_2get_autotoc_md32}

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

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

\begin{DoxyItemize}
\item The function exit with an error if the key or function parameters are empty
\item Data is processed through the scheduler system, which manages callback responses
\item For large data that exceeds buffer limits, it will be automatically chunked and reassembled
\item The callback function must be defined to accept the retrieved data
\item The {\ttfamily \+\_\+call} parameter determines whether the callback is executed directly or spawned in a separate thread
\end{DoxyItemize}\hypertarget{md__g_1_2ids_2dragonfly_2docs_2basic_2get_autotoc_md34}{}\doxysubsection{\texorpdfstring{Related Functions}{Related Functions}}\label{md__g_1_2ids_2dragonfly_2docs_2basic_2get_autotoc_md34}

\begin{DoxyItemize}
\item {\ttfamily dragonfly\+\_\+db\+\_\+fnc\+\_\+set}\+: Stores a value by key
\item {\ttfamily dragonfly\+\_\+db\+\_\+fnc\+\_\+delete}\+: Removes a value by key
\item {\ttfamily dragonfly\+\_\+db\+\_\+fnc\+\_\+scheduler}\+: Processes the callback response
\end{DoxyItemize}\hypertarget{md__g_1_2ids_2dragonfly_2docs_2basic_2get_autotoc_md35}{}\doxysubsection{\texorpdfstring{Links}{Links}}\label{md__g_1_2ids_2dragonfly_2docs_2basic_2get_autotoc_md35}
\doxysectlink{md__g_1_2ids_2dragonfly_2docs_2basic_2delete}{Delete Key}{0} \texorpdfstring{$\vert$}{|} \doxysectlink{md__g_1_2ids_2dragonfly_2docs_2basic_2get}{Get Key}{0} \texorpdfstring{$\vert$}{|} \doxysectlink{md__g_1_2ids_2dragonfly_2docs_2basic_2set}{Set Key}{0} 