onClientCashChange

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

This is called when the clients cash changes.

Syntax

  1. function onClientCashChange( int oldcash, int newcash )

Arguments

  • oldcash - The player's old cash value
  • newcash - The player's new cash value

Returns

This event does not handle return values.

Example

This example will message the player when their cash changes.

  1.  
  2. function onClientCashChange( oldcash, newcash )
  3. {
  4. Message( "You now have $" + newcash );
  5. return 1;
  6. }
  7.  

Notes

The function Message was used in this example. More info about it can be found in the corresponding page.

Related Events

Personal tools
Namespaces

Variants
Actions
Navigation
scripting
Toolbox