\chapter{list\+Get}
\hypertarget{md_docs_2list_2list_get}{}\label{md_docs_2list_2list_get}\index{listGet@{listGet}}
\hypertarget{md_docs_2list_2list_get_autotoc_md372}{}\doxysubsection{\texorpdfstring{autotoc\+\_\+md372}{autotoc\+\_\+md372}}\label{md_docs_2list_2list_get_autotoc_md372}
title\+: Arma\+RAMDb -\/ List Get icon\+: mdi\+:file-\/text-\/outline \hypertarget{md_docs_2list_2list_get_autotoc_md373}{}\doxysubsection{\texorpdfstring{excerpt\+: Get element of list stored at key from RAMDb.}{excerpt\+: Get element of list stored at key from RAMDb.}}\label{md_docs_2list_2list_get_autotoc_md373}
\hypertarget{md_docs_2list_2list_get_autotoc_md374}{}\doxysection{\texorpdfstring{ramdb\+\_\+db\+\_\+fnc\+\_\+list\+Get}{ramdb\+\_\+db\+\_\+fnc\+\_\+list\+Get}}\label{md_docs_2list_2list_get_autotoc_md374}
\hypertarget{md_docs_2list_2list_get_autotoc_md375}{}\doxysubsection{\texorpdfstring{Description}{Description}}\label{md_docs_2list_2list_get_autotoc_md375}
Retrieves a specific element from a list stored in the database by its index. This function accesses a single item from a list using its position number and returns the data through a callback function. It\textquotesingle{}s useful for accessing individual pieces of data from a sequence without retrieving the entire list.\hypertarget{md_docs_2list_2list_get_autotoc_md376}{}\doxysubsection{\texorpdfstring{Syntax}{Syntax}}\label{md_docs_2list_2list_get_autotoc_md376}

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

\end{DoxyCode}
\hypertarget{md_docs_2list_2list_get_autotoc_md377}{}\doxysubsection{\texorpdfstring{Parameters}{Parameters}}\label{md_docs_2list_2list_get_autotoc_md377}
\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   &Name of the list   &"{}"{}    \\\cline{1-4}
{\ttfamily \+\_\+index}   &Number   &Index position of the element to retrieve (0-\/based)   &-\/1    \\\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_2list_2list_get_autotoc_md378}{}\doxysubsection{\texorpdfstring{Return Value}{Return Value}}\label{md_docs_2list_2list_get_autotoc_md378}
None. The retrieved data is passed to the specified callback function asynchronously.\hypertarget{md_docs_2list_2list_get_autotoc_md379}{}\doxysubsection{\texorpdfstring{Examples}{Examples}}\label{md_docs_2list_2list_get_autotoc_md379}
\hypertarget{md_docs_2list_2list_get_autotoc_md380}{}\doxysubsubsection{\texorpdfstring{Retrieve a specific event log entry\+:}{Retrieve a specific event log entry\+:}}\label{md_docs_2list_2list_get_autotoc_md380}

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

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

\begin{DoxyCode}{0}
\DoxyCodeLine{["{}messages"{},\ 5,\ "{}ramdb\_db\_fnc\_processMessage"{},\ true]\ call\ ramdb\_db\_fnc\_listGet;}

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

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

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

\begin{DoxyItemize}
\item Retrieves a single element from a list by its index position
\item The key, index, and function parameters are required and validated
\item Index is zero-\/based (the first element is at index 0)
\item If the index is out of bounds or the list doesn\textquotesingle{}t exist, no data will be returned
\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 For retrieving multiple elements, use {\ttfamily list\+Load} instead
\item All operations are logged for debugging purposes
\end{DoxyItemize}\hypertarget{md_docs_2list_2list_get_autotoc_md384}{}\doxysubsection{\texorpdfstring{Related Functions}{Related Functions}}\label{md_docs_2list_2list_get_autotoc_md384}

\begin{DoxyItemize}
\item {\ttfamily ramdb\+\_\+db\+\_\+fnc\+\_\+list\+Add}\+: Adds an element to a list
\item {\ttfamily ramdb\+\_\+db\+\_\+fnc\+\_\+list\+Load}\+: Retrieves a range of elements from a list
\item {\ttfamily ramdb\+\_\+db\+\_\+fnc\+\_\+list\+Set}\+: Replaces a specific element in a list
\item {\ttfamily ramdb\+\_\+db\+\_\+fnc\+\_\+list\+Remove}\+: Removes a specific element from a list
\item {\ttfamily ramdb\+\_\+db\+\_\+fnc\+\_\+list\+Delete}\+: Deletes an entire list
\item {\ttfamily ramdb\+\_\+db\+\_\+fnc\+\_\+scheduler}\+: Processes the callback from the database extension
\end{DoxyItemize}\hypertarget{md_docs_2list_2list_get_autotoc_md385}{}\doxysubsection{\texorpdfstring{Links}{Links}}\label{md_docs_2list_2list_get_autotoc_md385}
\doxysectlink{md_docs_2list_2list_add}{List Add}{0} \texorpdfstring{$\vert$}{|} \doxysectlink{md_docs_2list_2list_delete}{List Delete}{0} \texorpdfstring{$\vert$}{|} \doxysectlink{md_docs_2list_2list_get}{List Get}{0} \texorpdfstring{$\vert$}{|} \doxysectlink{md_docs_2list_2list_load}{List Load}{0} \texorpdfstring{$\vert$}{|} \doxysectlink{md_docs_2list_2list_remove}{List Remove}{0} \texorpdfstring{$\vert$}{|} \doxysectlink{md_docs_2list_2list_set}{List Set}{0} 