HashTable.Get
From Liberty Unleashed Wiki
Syntax
HashTable.Get( data )
Arguments
- data - The info that you wish to get from the hash table.
Example
function onPlayerCommand( pPlayer, szCommand, szText ) { if ( szCommand == "cash" ) Message( pPlayer.Name + " is currently holding $" + pDataHash.Get( pPlayer.Name + "Money" ); }
This example will fetch the reference (playnameMoney) to the players money value when they use /cash.
Notes
The function onPlayerCommand and Player.Name were used in this example, more info about them in the corresponding page.