- HashTable.Save( location )
- location - The file path and name of the file to save the hash table too.
- function onPlayerPart( pPlayer, iReasonID )
- pDataHash.Save( "Scripts/LUScript/Hashes/DataHash.hsh" );
This example will save the data in the datahash to Scripts/LUScript/Hashes/DataHash.hsh.
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.