getgetautotoc_md23title: ArmaRAMDb - Get Key icon: mdi:file-text-outline excerpt: Get the value of stored key from RAMDb.ramdb_db_fnc_getDescriptionRetrieves 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.Syntax[_key, _function, _call, _netId] call ramdb_db_fnc_get
ParametersParameter Type Description _keyString Name of the stored key to retrieve from the database _functionString Name of the function to call when data is retrieved _callBoolean Whether to call the function directly (true) or spawn (false) _netIdString (Optional) NetID of the player to whom the data should be returned Return ValueNone. When data is retrieved, it will be passed to the specified function. The operation runs asynchronously.ExamplesRetrieve data in singleplayer or on the server:[getPlayerUID player, "ramdb_db_fnc_test"] call ramdb_db_fnc_get;
Retrieve data on the server and send to a specific client:[getPlayerUID player, "ramdb_db_fnc_test", false, netId player] remoteExecCall ["ramdb_db_fnc_get", 2, false];
NotesThe function exit with an error if the key or function parameters are emptyData is processed through the scheduler system, which manages callback responsesFor large data that exceeds buffer limits, it will be automatically chunked and reassembledThe callback function must be defined to accept the retrieved dataThe _call parameter determines whether the callback is executed directly or spawned in a separate threadRelated Functionsramdb_db_fnc_set: Stores a value by keyramdb_db_fnc_delete: Removes a value by keyramdb_db_fnc_scheduler: Processes the callback responseLinksDelete Key | Get Key | Set Key