Up
  • Mods and files
    • All files
    • Exclusives
    • Author files
    • Best files of the week
    • Upload file
  • News
  • Cheats
  • Articles
  • Guides
  • EN
New comments
GTA 6 GTA 5 GTA San Andreas GTA 4 GTA Vice City GTA 3 Red Dead Redemption 2 Red Dead Redemption Other games Mod Development Miscellaneous
  • Mods and files
  • Resources
  • Script sources
  • Ready-made solutions for working with player statistics (GTA 5 SP, C#)

Ready-made solutions for working with player statistics (GTA 5 SP, C#)

  • Ready-made solutions for working with player statistics (GTA 5 SP, C#) / Resources
Resources / Script sources
Author:
andre500
More details
Uploaded:
andre500 Subscribe You are subscribed
Size:
11.83 Kb
Uploaded:
13 August 2020
Downloads:
27
Total downloads: 27
Unique downloads: 14
10 / 10
3 people rated the file
xam_xam
Kiriller12
daniel 360
No one has rated the file yet.
Download Download in Telegram Download in Discord
To favorites In favorites
  • 1597315653_stats.rar
    Virus check from Virustotal: the file is safe (view report)
    Download (0.01 MB)

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

The file name and description have been translated. Show original (RU)Show translation (EN)
Готовые решения для работы со статистикой игроков (GTA 5 SP, C#)

Готовые решения для работы со статистикой персонажей в одиночном режиме 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 - Тревор

Comments 1
© 2008- LibertyCity
Creator and developer: Evgenii Sokolov
Copying materials without the permission of the administration or the respective owners is strictly prohibited.
Contact us
Mobile version Desktop version
Mods and files News and articles Cheats and guides Users
Click here for advanced file search