Detecting Strafe Boost & Optimization Mods on FiveM Servers
FiveM server administrator V3SC recently discovered players on their server using "strafe boost & opti" mods that provide unfair advantages. These mods modify sprint times and stamina values, giving players extended running abilities.
What These Mods Do
Strafe boost and optimization mods typically:
- Increase sprint time from normal ~10 seconds to 5000+ seconds
- Modify stamina drain and regeneration rates
- Enhance movement and strafe speeds
Simple Detection Method
V3SC shared a straightforward way to detect these mods by checking sprint time values:
if GetPlayerSprintTimeRemaining(PlayerId()) > 200 then print("Strafe boost detected")
-- Add your anti-cheat actions here
end
The normal sprint time is around 9-10 seconds, so checking for values over 200 will catch players using these modifications.
Why This Works
Since the default GetPlayerSprintTimeRemaining()
value is about 10 seconds, any player showing 200+ seconds is clearly using a mod. The high threshold of 200 prevents false positives while still catching cheaters.
Implementation Tips
- Run this check regularly on your server
- Log detected players for evidence
- Consider warnings before banning
- Keep your detection methods updated
Credit: Thanks to V3SC for discovering this issue and sharing the detection method with the FiveM community.