Ready-made solutions for working with character statistics in GTA 5 single player mode in C#. The functions were brought to a clear and adequate form, so instead of
* StatSetInt(string statName, int statValue) - set integer value to statistics; * StatSetFloat(string statName, float statValue) - set a fractional value to statistics; * StatGetInt(string statName) - get an integer value from statistics; * StatGetFloat(string statName) - get a fractional value from statistics; * StatAddInt(string statName, int addValue) - add an integer to statistics; * StatAddFloat(string statName, float addValue) - add a fractional number to statistics; * StatDecreaseInt(string statName, int decreaseValue) - subtract an integer from statistics; * StatDecreaseFloat(string statName, float decreaseValue) - subtract a fractional number from the statistics
The archive also contains a complete list of statistic names from LazyGamer. Each stat name has a character-specific prefix: