ArmaRAMDb - Hash Remove ID

ramdb_db_fnc_hashRemoveId

Description

Removes a specific field from a specific hash table identified by its key. This function deletes a single field and its associated value from a targeted hash table without affecting other fields. It's ideal for managing player-specific or entity-specific data when only certain attributes need to be removed.

Syntax

[_key, _keyField] call ramdb_db_fnc_hashRemoveId

Parameters

ParameterTypeDescriptionDefault
_keyStringIdentifier of the hash table""
_keyFieldStringName of the field in the hash to be removed""

Return Value

None. The operation runs synchronously to remove the field.

Examples

Remove a player's loadout field:

[getPlayerUID player, "loadout"] call ramdb_db_fnc_hashRemoveId;

Remove a vehicle property:

["vehicle_123", "cargo"] call ramdb_db_fnc_hashRemoveId;

Remove a field remotely:

[getPlayerUID player, "stats"] remoteExecCall ["ramdb_db_fnc_hashRemoveId", 2, false];

Notes

  • Removes a single field from a specific hash table identified by _key
  • Both the key and key field parameters are required and validated
  • Does not affect other fields in the hash table
  • If the hash table or field doesn't exist, the operation has no effect
  • Player UIDs are commonly used as keys to identify player-specific hash tables
  • The operation is executed immediately and synchronously
  • All operations are logged for debugging purposes

Hash 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