[RELEASE] FPS Booster for FiveM
Hey everyone!
I’m excited to introduce the FPS Booster for FiveM! This script is designed to improve your in-game performance while playing GTA V on FiveM servers by adapting in real-time. Now, your graphics settings will automatically adjust based on your FPS, providing you with a smoother and more optimized experience regardless of your PC specifications!
Key Features:
- Dynamic Graphics Adjustments: Graphics settings are automatically adjusted based on the FPS detected. If FPS drops too low, the settings will lower to improve performance. If FPS is high, the graphics will enhance for better visual quality.
- Real-Time Optimization: FPS is monitored in real-time every few seconds, ensuring your settings are always tuned to match your hardware’s performance.
- Flexible Settings: You can set your target FPS to balance between maximum performance or higher-quality visuals.
- Easy to Use: The script automatically applies the best settings when players join the game, so no need for manual adjustments every time.
How It Works:
- Low FPS: If FPS drops below 30, the script lowers settings like LOD bias, particle effects, and reduces render distance to boost performance.
- Optimal FPS: If FPS is around 60, the script applies balanced settings between performance and quality.
- High FPS: If FPS is above 80, graphics are optimized for higher quality without affecting performance.
Installation:
- Download the script.
- Extract it into your server’s
resources
folder. - Add the following line to your
server.cfg
:
ensure lsi-fpsbooster
- Restart your server, and enjoy the performance boost!
How to Use:
- No additional configuration needed: Simply install the script and let it run in the background. The graphics settings will automatically adjust based on the in-game FPS.
Feedback and Suggestions:
I’m open to feedback and suggestions from the community to further improve this script. If you encounter any issues or have ideas for future development, feel free to comment below or message me!
Download Script:
[OLD] - v1.0.0
lsi-fpsbooster.zip (1.6 KB)
[OLD] - v1.0.1
lsi-fpsbooster.zip (1.8 KB)
[OLD] - v1.0.2
lsi-fpsbooster.zip (2.2 KB)
[NEW] - v1.0.3
lsi-fpsbooster.zip (2.8 KB)
Thank you for feedback,
I’m sorry, I forgot to add a ’ in the fxmanifest, but it’s now fixed.
With this release, I hope to help everyone have a smoother experience on FiveM servers. Thank you for trying it out, and I hope you enjoy the performance boost!
Best regards,
ReactZIP
– Changelog for version 1.0.1 [Thank you, @Jester4x for the feedback.]
- Fixed SetParticleFxLoDScale error issue
- Added new logic for FPS booster
–Changelog for version 1.0.2 [Thank you @ApolloStudios for your idea to develop more code about ai system]
- Addition of NPC Density Control (Pedestrian & Vehicle Density):
- New variables
currentPedDensity
andcurrentVehicleDensity
were added to control pedestrian and vehicle density in the game. - New target variables
targetPedDensity
andtargetVehicleDensity
were added to manage NPC density adjustments based on FPS changes. - The functions
SetPedDensityMultiplierThisFrame
andSetVehicleDensityMultiplierThisFrame
were introduced to adjust NPC density in each frame.
- AI Adjustments for NPC Density:
- In cases of very low FPS (<20), pedestrian and vehicle density are reduced to 0 (NPCs are disabled).
- For low FPS, NPC density is gradually reduced in sync with the FPS drop.
- For high and stable FPS, NPC density is increased again.
- Player Notifications System:
- A new function
notifyPlayer
was added to send in-game notifications to the player when graphics and NPC settings are adjusted. Notifications display messages such as “Very low FPS detected”, “Significant FPS drop detected”, and more. - A maximum of two active notifications is allowed at a time. If more than two are active, the oldest notification is automatically removed.
- AI Log Message Changes:
- Messages that were previously printed to the console using
print()
are now replaced with in-game notifications vianotifyPlayer
, providing more direct feedback to the player.
- Enhancements to Graphics Settings Transition Function:
- Transitions, which previously only adjusted graphics quality (LOD, bias, and multiplier), now also adjust NPC density.
- The
transitionGraphicsSettings
function now handles smooth transitions for pedestrian and vehicle density usinglerp()
.
- Notification Optimization:
- Notifications now appear with the “CHAR_LIFEINVADER” icon and the title “Graphics AI Notification”, providing better visual context when changes occur.
–Changelog for version 1.0.3
- Fixed potential issues with notification timing, ensuring players receive updates without spam.
- Resolved edge cases where graphics settings may not revert correctly after unauthorized changes.
Summary:
These changes improve AI adaptation to FPS conditions by adding NPC density management and delivering direct feedback to the player via on-screen notifications, making the system’s performance adjustments more responsive to the player’s experience.