Hello everyone! I decided to write a script that adds a running indicator to Gta. The indicator does not work when the player is in the car / in the water. With normal running, it decreases slowly, with sprinting a little faster. When jumping, 20% of the indicator is taken away. When the indicator is zero, the player cannot move for 5 seconds. After the indicator is restored, you can continue to move. To restore the indicator, you need to either just stop or drink any drink.
Решил написать скрипт, который добавляет индикатор бега в Gta. Индикатор не работает когда игрок в авто/в воде. При обычном беге он уменьшается медленно, при спринте чуть быстрее. При прыжке отнимается 20% индикатора. Когда индикатор равен нулю, игрок не может двигаться 5 секунд. После того, как индикатор восстановится, можно будет продолжать двигаться. Что бы восстановить индикатор вам нужно либо просто остановиться, либо выпить любой напиток.