Scripting/Server/Functions/ToggleRealMoney

(v0.5.1+) Server-owner switch for the realistic money mode. On: every player.Cash is a float in dollars with cents (21.37), the stock money changes of the game (cash pickups, shops, Pay n Spray) are ignored on the clients and the HUD shows $21.37; the scripts own the cash. Off (default): whole dollars like the stock game. Switching sends the new mode to every player.

Syntax

ToggleRealMoney(bool)
IsRealMoney()

Arguments

Example

function onPlayerCommand( player, cmd, params )
{
	if ( cmd == "togglerealmoney" )
	{
		ToggleRealMoney( true );
	}
}

This sample was generated from the signature – adapt the values to your gamemode.

Section: World settings

Categories: Server functions | World settings