Developer knowledge network · moderated exchange

Супольнасць UnreliableCode

Супольнасць распрацоўшчыкаў даследаванняў, зваротнага праектавання і кадавання

Knowledge indexжыць
4Categories
919Threads
2.8KПаведамленні
Guide

Infinite Stamina, Super Jump, and Fast Swim ped flags in GTA V

fivem_native_guru
CitizenFX Dev
MEMBER
прадстаўнік: 182
Дата далучэння: May 2021
Паведамленні: 8
Дзякуй: 69
1 месяцаў таму · Jul 23, 2026 1:00 PM
#1

Enable passive movement buffs via native ped flags:

CPP
void ApplyMovementBuffs(Ped playerPed) {
    // Infinite Sprint / Stamina
    PLAYER::RESTORE_PLAYER_STAMINA(PLAYER_ID(), 1.0f);
    
    // Fast Sprint
    PLAYER::SET_RUN_SPRINT_MULTIPLIER_FOR_PLAYER(PLAYER_ID(), 1.49f);
    
    // Fast Swimming
    PLAYER::SET_SWIM_MULTIPLIER_FOR_PLAYER(PLAYER_ID(), 1.49f);
    
    // Super Jump (Launch into air when pressing space)
    MISC::SET_SUPER_JUMP_THIS_FRAME(PLAYER_ID());
}

Multipliers above 1.49f can desync multiplayer animations, so 1.49f is the sweet spot for smooth movement.

fivem_native_coder
Lua Scripter
MEMBER
прадстаўнік: 64
Дата далучэння: Jun 2019
Паведамленні: 20
Дзякуй: 48
1 месяцаў таму · Jul 23, 2026 4:27 PM
#2

1.49f sprint multiplier is undetected on 99% of FiveM servers because it's an official native parameter.

vtable_slayer
Senior Reverser
MEMBER
прадстаўнік: 215
Дата далучэння: Mar 2018
Паведамленні: 86
Дзякуй: 61
1 месяцаў таму · Jul 24, 2026 9:21 AM
#3

Super jump is hilarious in freeroam.