Developer knowledge network · moderated exchange

Społeczność UnreliableCode

Badania programistów, inżynieria wsteczna i społeczność programistów

Knowledge indexNa żywo
4Categories
919Threads
2.8KPosty
Guide

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

fivem_native_coder
Lua Scripter
MEMBER
Rozpustnik: 64
Data dołączenia: Jun 2019
Posty: 20
Dzięki: 48
1 miesięcy temu · 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
Rozpustnik: 162
Data dołączenia: May 2018
Posty: 73
Dzięki: 42
1 miesięcy temu · 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
Rozpustnik: 215
Data dołączenia: Mar 2018
Posty: 86
Dzięki: 61
1 miesięcy temu · Jul 24, 2026 10:40 PM
#3

Works across all FiveM roleplay servers.