1 か月前 · Jul 23, 2026 1:00 PM
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.