title: ArmaRAMDb - Hash Set ID icon: mdi:file-text-outline
Sets the value of a specified field in a specific hash table identified by its key. This function allows storing various data types (arrays, strings, numbers, or booleans) in a targeted hash table, making it ideal for player-specific or entity-specific data storage. It provides a way to organize related data under a common identifier.
Parameter | Type | Description | Default |
---|---|---|---|
_key | String | Identifier of the hash table | "" |
_keyField | String | Name of the field in the hash to set | "" |
_data | Array, String, Number, or Boolean | The value to store in the hash field | [] |
None. The operation runs synchronously to store the data.
_key
ramdb_db_fnc_hashSet
: Sets a field value in the global hash tableramdb_db_fnc_hashGetId
: Retrieves a field value from a specific hash tableramdb_db_fnc_hashGetAllId
: Retrieves all fields from a specific hash tableramdb_db_fnc_hashSetIdBulk
: Sets multiple field-value pairs in multiple hash tablesramdb_db_fnc_hashDeleteId
: Removes a specific hash tableHash Delete | Hash Delete ID | Hash Get | Hash Get All | Hash Get All ID | Hash Get ID | Hash Remove | Hash Remove ID | Hash Set | Hash Set Bulk | Hash Set ID | Hash Set ID Bulk