Developer knowledge network · moderated exchange

Сообщество UnreliableCode

Сообщество разработчиков, обратного проектирования и кодирования

Guide

Infinite Stamina & Sprint Multiplier via PLAYER::SET_RUN_SPRINT_MULTIPLIER_FOR_PLAYER [v2.4 Technical Discussion]

fivem_native_coder
Lua Scripter
MEMBER
Представитель: 64
Дата присоединения: Jun 2019
Сообщения: 20
Спасибо: 48
1 месяцев назад · Jul 24, 2026 5:28 AM
#1

How to unlock super sprint speed and infinite stamina in GTA V:

CPP
void UpdatePlayerBuffs(Player player) {
    // Set sprint speed multiplier (default 1.0f, max stable 1.49f)
    PLAYER::SET_RUN_SPRINT_MULTIPLIER_FOR_PLAYER(player, 1.49f);
    PLAYER::SET_SWIM_MULTIPLIER_FOR_PLAYER(player, 1.49f);
    
    // Restore stamina level every tick
    PLAYER::RESET_PLAYER_STAMINA(player);
    PLAYER::SET_PLAYER_MELEE_WEAPON_DAMAGE_MODIFIER(player, 2.0f);
}

Values above 1.49f trigger server-side speed check kicks, making 1.49f the sweet spot for smooth super speed!

ptr_arithmetic
C++ Wizard
MEMBER
Представитель: 162
Дата присоединения: May 2018
Сообщения: 73
Спасибо: 42
1 месяцев назад · Jul 24, 2026 7:56 AM
#2

1.49f is indeed the maximum multiplier that doesn't trigger server desync. Great tip.

vtable_slayer
Senior Reverser
MEMBER
Представитель: 215
Дата присоединения: Mar 2018
Сообщения: 86
Спасибо: 61
1 месяцев назад · Jul 24, 2026 10:40 PM
#3

Works across all FiveM roleplay servers.