title: ArmaRAMDb - List Set icon: mdi:file-text-outline
Updates or sets the value of a specific element at a given index in a list stored at a specified key in the RAMDb database. This function allows for precise modification of list contents by targeting individual elements without affecting other elements in the list. It is particularly useful for updating record information, modifying configuration data, or correcting entries.
Parameter | Type | Description | Default |
---|---|---|---|
_key | String | The key identifying the list in which to set an element | "" |
_index | Number | The zero-based index of the element to set in the list | -1 |
_data | Array/String/Number/Boolean | The value to set at the specified index | [] |
None. The operation runs synchronously to update the element immediately.
Update an event log entry:
Modify player statistics:
Update configuration in multiplayer:
_key
parameter and _data
parameter must be valid (non-empty string for key, non-nil for data), otherwise the function will exit without performing any action.ramdb_db_fnc_listAdd
: Adds an element to a listramdb_db_fnc_listGet
: Retrieves a specific element from a listramdb_db_fnc_listLoad
: Retrieves a range of elements from 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