HashTable.Save

From Liberty Unleashed Wiki
Jump to: navigation, search
Home   |   Squirrel Scripting   |   Server Functions   |   Server Events   |   Client Functions   |   Client Events


Syntax

  1. HashTable.Save( location )

Arguments

  • location - The file path and name of the file to save the hash table too.

Example

  1.  
  2. function onPlayerPart( pPlayer, iReasonID )
  3. {
  4. pDataHash.Save( "Scripts/LUScript/Hashes/DataHash.hsh" );
  5. }
  6.  

This example will save the data in the datahash to Scripts/LUScript/Hashes/DataHash.hsh.

Notes

The function onPlayerPart was used in this example, more info about it in the corresponding page.

You must make sure that Scripts/LUScript/Hashes directory exists before attempting to save/load from it.

Related Functions

Personal tools
Namespaces

Variants
Actions
Navigation
scripting
Toolbox