onClientCashChange
From Liberty Unleashed Wiki
This is called when the clients cash changes.
Syntax
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.
function onClientCashChange( oldcash, newcash ) { Message( "You now have $" + newcash ); return 1; }
Notes
The function Message was used in this example. More info about it can be found in the corresponding page.
Related Events
- onClientArmourChange
- onClientCashChange
- onClientCollideWithPlayer
- onClientCommand
- onClientDeath
- onClientFall
- onClientHealthChange
- onClientHurt
- onClientKill
- onClientKeyStateChange
- onClientRequestClass
- onClientRequestSpawn
- onClientShot
- onClientSpawn
- onClientUseDetonator
- onClientWeaponChange
- onPlayerDeath
- onPlayerJoin
- onPlayerKill
- onPlayerPart
- onPlayerSpawn