ramdb/docs/hash/hashRemoveId.md
Jacob Schmidt 8c0e8144e5 docs: Update documentation links and function references
This commit updates the documentation to reflect the current function names and link structure. Specifically, it addresses the following:

*   Corrected internal links within the documentation to point to the correct markdown files (e.g., `hashDelete.md` instead of `hashDelete`).
*   Updated related function references to reflect the current function names and include missing functions.
*   Removed outdated function references.
*   Added `ramdb_db_fnc_scheduler` to related functions where appropriate.
*   Updated the links section to use the correct markdown file names.
2025-03-22 16:53:30 -05:00

2.5 KiB

title, icon, excerpt
title icon excerpt
ArmaRAMDb - Hash Remove ID mdi:file-text-outline Remove a field from a specific hash table.

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

Parameter Type Description Default
_key String Identifier of the hash table ""
_keyField String Name 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
  • ramdb_db_fnc_hashRemove: Removes a specific field from the global hash table
  • ramdb_db_fnc_hashDeleteId: Removes an entire specific hash table
  • ramdb_db_fnc_hashDelete: Removes all hash tables
  • ramdb_db_fnc_hashSetId: Sets a field value in a specific hash table
  • ramdb_db_fnc_hashGetId: Retrieves a field value from a specific hash table

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