SetPlayerStat

From Multi Theft Auto: Wiki
Revision as of 00:14, 9 June 2006 by MrJax (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

This function allows you to set the float value of a specific statistic for a player.

Syntax

bool setPlayerStat ( player player, stat, float value )

Required Arguments

  • player: the player whose statistic you want to modify.
  • stat: A whole number determining the stat ID.
  • value: A float number the stat will be set to.

Returns

Returns true if the statistic was changed succesfully. Returns false if an invalid player is specified, or the stat-id/value is out of acceptable range.

See Also