Scripting/Server/Classes/HashTable/Add

Set / read (returns null if missing) / remove.

Syntax

ht.Add(key, value)
ht.Get(key)
ht.Del(key)

Arguments

Example

function onPlayerCommand( player, cmd, params )
{
	if ( cmd == "add" )
	{
		// ht is a ht handle (see HashTable)
		ht.Add( "X", true );
	}
}

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

Section: HashTable

Categories: Server methods | HashTable