Scripting/Server/Functions/HashTable

Named key/value store shared by all scripts. HashTable returns the existing one if the name is taken. Max 64.

Syntax

HashTable("name")
FindHashTable("name")

Arguments

Returns

HashTable or null

Example

function onPlayerCommand( player, cmd, params )
{
	if ( cmd == "hashtable" )
	{
		local result = HashTable( 0 );
		MessagePlayer( "HashTable returned: " + result, player );
	}
}

This sample was generated from the signature – adapt the values to your gamemode.

Section: Constructors for helper objects

Categories: Server functions | Constructors for helper objects