title: ArmaRAMDb - List Get icon: mdi:file-text-outline
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's useful for accessing individual pieces of data from a sequence without retrieving the entire list.
Parameter | Type | Description | Default |
---|---|---|---|
_key | String | Name of the list | "" |
_index | Number | Index position of the element to retrieve (0-based) | -1 |
_function | String | Name of the function to receive the retrieved data | "" |
_call | Boolean | Whether to call the function directly (true) or spawn (false) | false |
_netId | String | (Optional) NetID of the player to receive the data | "" |
None. The retrieved data is passed to the specified callback function asynchronously.
_call
parameter determines whether the function is called directly (synchronous) or spawned (asynchronous)listLoad
insteadramdb_db_fnc_listAdd
: Adds an element to a listramdb_db_fnc_listLoad
: Retrieves a range of elements from a listramdb_db_fnc_listSet
: Replaces a specific element in a listramdb_db_fnc_listRemove
: Removes a specific element from a listramdb_db_fnc_listDelete
: Deletes an entire listramdb_db_fnc_scheduler
: Processes the callback from the database extensionList Add | List Delete | List Get | List Load | List Remove | List Set