Scripting/Server/Classes/HashTable/Load

Loads a table from a key=value file; the table is named after the file (without extension). Numbers are restored as numbers, everything else as strings.

Syntax

HashTableClass.Load("file.txt")

Arguments

Example

function onPlayerCommand( player, cmd, params )
{
	if ( cmd == "load" )
	{
		// hashtableclass is a HashTableClass handle (see HashTable)
		hashtableclass.Load( 0 );
	}
}

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

Section: HashTable

Categories: Server methods | HashTable