Cargando...

Engine Toggle & Persistence (EngineStateManager) 1.0

32

ScriptHookVDotNet mod that gives players full control over vehicle engine behavior across all vehicle types. By default, GTA V auto-starts and auto-shuts engines during enter/exit animations. This mod overrides these behaviors using native-level logic, allowing engines to persist while giving the player manual authority over engine state. Aircraft, helicopters, and ground vehicles are all supported.

Every feature is modular and fully configurable via INI.

[ NOTE ]
Plane engine persistence is experimental and not recommended use in a regular play through. This is planned to change with future updates.

[ FEATURES ]
- Prevents engines from shutting off when exiting vehicles
- Blocks GTA Vs automatic engine startup that works across all supported vehicle classes
- Eliminates RPM/audio dips during enter/exit animations
- Toggle vehicle engines on/off via hotkey that optionally includes animations
- Does not interfere with default controls unless enabled
- Includes native fail-safe handling (won't crash your game)
- Optional in-game notification when the mod loads
- Tracks vehicle engine state per entity
- Troubleshooting debug logging (if enabled)

[ Configuration Options ]
All features are configurable via: EngineStateManager ini

You can fully customize behavior without touching code.

Changes only apply on next script reload.

[ REQUIREMENTS ]
- Latest ScriptHookV
Enhanced:
- Latest ScriptHookVDotNet v3 Enhanced
Legacy:
- Latest ScriptHookVDotNet v3 Nightly

[ INSTALLATION ]
- Install ScriptHookV and ScriptHookVDotNet v3
- Place EngineStateManager.dll & EngineStateManager.ini into your GTA V/scripts/ folder
- (Optional) Edit EngineStateManager.ini to customize behavior
- Enjoy

[ Known Issues ]
Planes engine persistence works, but it has lots of inconsistencies that I haven't been able to fix yet. Exiting a plane with the engine running (whether it's a Jet or Prop plane) briefly dips engine RPM then picks the rpm back up again. Same goes for entering a plane that has it's engine running. Jet planes don't idle at they're idle speed when exiting them.

Natively prop planes are impossible to keep running when exiting them (unless a prop plane rotor hash exists but has been hidden by rockstar), so I've decided to do a temporary work around by spawning an invisible ped in the prop plane the player was last in to keep the engine idling.

These are the main reasons that the 'EnablePlanePersistence' ini option is false by default.

If you encounter any other issues, please let me know so that they can get investigated.

[ CHANGELOG ]
Patch v1.0.1
- Added proper instant engine toggle response
- Engine on/off now triggers on key press (KeyDown) instead of key release.
- Removes the noticeable delay when starting or shutting down vehicles.
- Fixed a very small safety guard that disarms entry enforcement if the target vehicles engine is actually ON at enforcement time.
- Added input debounce protection that prevents double-toggles when both event and polling paths fire.
- Fixed rare 'script loaded but not working' issue by implementing a fallback polling system

Release v1.0
-Initial Release

[ Credits & Acknowledgements ]
- Alexander Blade - for ScriptHookV
- crosire - for ScriptHookVDotNet
- Chiheb-Bacha - for ScriptHookVDotNet Enhanced

Without their foundational tools, this mod would not be possible.

Additional thanks to:
- The GTA V modding community for documentation, shared research, and reverse-engineering efforts
- Everyone who reports bugs or provides feedback - your input directly improves future updates

Github
Show Full Description

Subido por primera vez: hace 21 horas
Última actualización: hace 6 horas
Descarga más reciente: hace 5 minutos

All Versions

 1.0.1

0 descargas , 20 KB
hace 1 hora

 1.0 (current)

32 descargas , 20 KB
hace 21 horas

2 Comentarios