ArmaDragonflyClient - Hash Get All ID

Hash Get All ID

Description

Retrieves all fields and values from a specific hash table identified by its key. This function returns the complete hash table data for a specific ID through a callback function, allowing access to all stored key-value pairs associated with that ID. It's particularly useful for retrieving player-specific or entity-specific hash data.

Syntax

[_key, _function, _call, _netId] call dragonfly_db_fnc_hashGetAllId

Parameters

ParameterTypeDescriptionDefault
_keyStringIdentifier of the hash table to retrieve""
_functionStringName of the function to receive the retrieved data""
_callBooleanWhether to call the function directly (true) or spawn (false)false
_netIdString(Optional) NetID of the player to receive the datanil

Return Value

None. The retrieved data is passed to the specified callback function asynchronously.

Examples

Retrieve a player's complete hash data:

[getPlayerUID player, "dragonfly_db_fnc_test"] call dragonfly_db_fnc_hashGetAllId;

Retrieve vehicle data with synchronous callback:

["vehicle_123", "dragonfly_db_fnc_processVehicleData", true] call dragonfly_db_fnc_hashGetAllId;

Retrieve data and send it to a specific client:

[getPlayerUID player, "dragonfly_db_fnc_test", false, netId player] remoteExecCall ["dragonfly_db_fnc_hashGetAllId", 2, false];

Notes

  • Returns the complete hash table with all fields and values as a nested array
  • The _key and _function parameters are required and validated
  • The data is retrieved asynchronously through the extension's callback system
  • When a netId is provided, the data is sent to that specific client
  • The _call parameter determines whether the function is called directly (synchronous) or spawned (asynchronous)
  • This function retrieves from a specific hash table identified by _key - use hashGetAll for the current client's hash table
  • Player UIDs are commonly used as keys to store player-specific data
  • For large data that exceeds buffer limits, it will be automatically chunked and reassembled
  • All operations are logged for debugging purposes

Hash Get | Hash Get ID | Hash Get All | Hash Get All ID | Hash Set | Hash Set ID | Hash Set Bulk | Hash Set Bulk ID