Ready-made solutions for working with player statistics (GTA 5 SP, C#)
-
Password for the archive: libertycity
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
Function.Call(Hash.STAt_SEt_INT, Game.GenerateHash(statName), statValue, true);
you can use
StatSetInt(string statName, int statValue);
Full list of functions:
* 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:
SP0 - Michael
SP1 - Franklin
SP2 - Trevor
Готовые решения для работы со статистикой персонажей в одиночном режиме GTA 5 на C#. Функции были приведены в понятный и адекватный вид, поэтому вместо
Function.Call(Hash.STAT_SET_INT, Game.GenerateHash(statName), statValue, true);
можно использовать
StatSetInt(string statName, int statValue);
Полный список функций:
* StatSetInt(string statName, int statValue) - установить целое значение в статистику;
* StatSetFloat(string statName, float statValue) - установить дробное значение в статистику;
* StatGetInt(string statName) - получить целое значение из статистики;
* StatGetFloat(string statName) - получить дробное значение из статистики;
* StatAddInt(string statName, int addValue) - добавить целое число в статистику;
* StatAddFloat(string statName, float addValue) - добавить дробное число в статистику;
* StatDecreaseInt(string statName, int decreaseValue) - отнять целое число из статистики;
* StatDecreaseFloat(string statName, float decreaseValue) - отнять дробное число из статистики
В архиве также лежит полный список названий статистик от LazyGamer. У каждого названия статистики есть префикс, обозначающий конкретного персонажа:
SP0 - Майкл
SP1 - Франклин
SP2 - Тревор
Recommended files

Scene Model

Cabinet from the anime Elfen Lied

CJED V0.3 (WIP)

Emission textures from S.T.A.L.K.E.R


Custom animations' playback in Vice City (example)


IFP Editor

Joker hairstyle for CJ

Cars from Vice City for Cinema 4D

9 Colors for Avatar Frames

Plugins for 3DS MAX

Useful functions and constants for mod developers on CLEO

Guardians of the Galaxy - Groot for XNALara/XPS

Guardians of the Galaxy - Rocket for XNALara/XPS

Bases for the trainer

Turbo_King's Mission Editing Files for GTA 1
