Unpaused: Game Pause Control [.Lua] 2.0
1 120
39
1 120
39
Ever wish that you could check the pause menu map to maybe set a waypoint while your chauffeur (or someone) drives you around or maybe adjust some settings or interact with some elements of the pause menu while some event happens to be going around or happening in the background, without the game actually pausing/freezing? Well, here you go, the solution that'll allow you to do this!
How it works - by default, with a quick press (and release) of your pause button, your pause menu will open without pausing the game; however, should you decide that you want the game to actually pause this time around in the menu, pressing and holding the pause button for a (1) second will pause the game in the menu like normal.
This script requires ScriptHookV and JM36 Lua Plugin.
Put "PauseMenuGamePauseControl.lua" into your JM36 Lua Plugin "ScriptsDir-Lua/Modules" directory.
Changelog:
v2.0:
- Changed/Improved the internal logic of how "pausing" the game works
- No longer needs to "unpause" to "repause" for full/freeze pause
- Poorly written scripts might have timing related issues (and/aka not work very well) with this version if they fail to check for whether the pause menu is active; use an older/legacy version of this script if this issue affects/impacts you (and let me know about the problematic script as well too).
v1.1:
- Improved and simplified code to be both more readable and more efficient.
- Renamed from "Pause Menu Game Pause Control [.Lua]"
How it works - by default, with a quick press (and release) of your pause button, your pause menu will open without pausing the game; however, should you decide that you want the game to actually pause this time around in the menu, pressing and holding the pause button for a (1) second will pause the game in the menu like normal.
This script requires ScriptHookV and JM36 Lua Plugin.
Put "PauseMenuGamePauseControl.lua" into your JM36 Lua Plugin "ScriptsDir-Lua/Modules" directory.
Changelog:
v2.0:
- Changed/Improved the internal logic of how "pausing" the game works
- No longer needs to "unpause" to "repause" for full/freeze pause
- Poorly written scripts might have timing related issues (and/aka not work very well) with this version if they fail to check for whether the pause menu is active; use an older/legacy version of this script if this issue affects/impacts you (and let me know about the problematic script as well too).
v1.1:
- Improved and simplified code to be both more readable and more efficient.
- Renamed from "Pause Menu Game Pause Control [.Lua]"
Първо качено на: 19 май 2022
Последно обновено на: 10 октомври 2023
Последно изтеглено: преди 20 часа
17 Коментари
More mods by JayMontana36:
Ever wish that you could check the pause menu map to maybe set a waypoint while your chauffeur (or someone) drives you around or maybe adjust some settings or interact with some elements of the pause menu while some event happens to be going around or happening in the background, without the game actually pausing/freezing? Well, here you go, the solution that'll allow you to do this!
How it works - by default, with a quick press (and release) of your pause button, your pause menu will open without pausing the game; however, should you decide that you want the game to actually pause this time around in the menu, pressing and holding the pause button for a (1) second will pause the game in the menu like normal.
This script requires ScriptHookV and JM36 Lua Plugin.
Put "PauseMenuGamePauseControl.lua" into your JM36 Lua Plugin "ScriptsDir-Lua/Modules" directory.
Changelog:
v2.0:
- Changed/Improved the internal logic of how "pausing" the game works
- No longer needs to "unpause" to "repause" for full/freeze pause
- Poorly written scripts might have timing related issues (and/aka not work very well) with this version if they fail to check for whether the pause menu is active; use an older/legacy version of this script if this issue affects/impacts you (and let me know about the problematic script as well too).
v1.1:
- Improved and simplified code to be both more readable and more efficient.
- Renamed from "Pause Menu Game Pause Control [.Lua]"
How it works - by default, with a quick press (and release) of your pause button, your pause menu will open without pausing the game; however, should you decide that you want the game to actually pause this time around in the menu, pressing and holding the pause button for a (1) second will pause the game in the menu like normal.
This script requires ScriptHookV and JM36 Lua Plugin.
Put "PauseMenuGamePauseControl.lua" into your JM36 Lua Plugin "ScriptsDir-Lua/Modules" directory.
Changelog:
v2.0:
- Changed/Improved the internal logic of how "pausing" the game works
- No longer needs to "unpause" to "repause" for full/freeze pause
- Poorly written scripts might have timing related issues (and/aka not work very well) with this version if they fail to check for whether the pause menu is active; use an older/legacy version of this script if this issue affects/impacts you (and let me know about the problematic script as well too).
v1.1:
- Improved and simplified code to be both more readable and more efficient.
- Renamed from "Pause Menu Game Pause Control [.Lua]"
Първо качено на: 19 май 2022
Последно обновено на: 10 октомври 2023
Последно изтеглено: преди 20 часа
i love the option to have both fully paused and nonpaused depending on how long you hold! great work!
This file has been approved automatically. If you think this file should not be here for any reason please report it.
@v1r Thanks! Originally I created it just to see if I could, then decided to go and release it but then immediately thought "what about when someone actually does want/need to pause for some reason, this'll be something that is kinda useless and gets in the way and whatnot if it completely prevents you from being able to fully pause in some good or decent way" and then came up with that as my solution for this lol
An absolute must have. Fantastic work!
Huh... that's pretty damn cool! Only just discovering your mods & it seems you've made some pretty unique stuff.
@mitto_backup Thanks, sorry I didn't see this until now but yeah I have a lot of pretty crazy things that I've made over the years and haven't released, and I may start releasing more of that stuff over time and/or releasing more stuff that I see is being requested
Amazing mod. This is genius. I could totally see the base game having this feature
@Wevvie Thanks, and yeah honestly it should lol I don't think the base game really needs this as much just because it lacks a lot of the dynamics that mods bring but it definitely should have been an option
Dosent work for me i know i installed everything right any help?
Love this mod, I would also love to see a unpaused death screen go with this too!
@JayMontana36 I feel like it should be the opposite, where the game pauses normally unless you hold pause. My reasoning for this is that you would want the game to actually pause everything far more often than you would want it to keep going in the background. That's just an idea anyway.
@Think_Tank Ehh, I could make an inverted variation now that I've created version 2.0 which works a lot better/cleaner (no longer unpause to then repause), but I feel like someone/anyone wanting/using this sort of thing would like/prefer it to be the way it is now (or maybe a shorter hold delay if anything)
bro,What mod is used to move the aircraft on the map in your video demonstration?
@JoyLucien It is a script mod that I originally created back in 2019 in FiveM; I've never released it however.
im confused, your last update files extension is .luac and when i install it alone nothing happens, even if i change the extention back to lua. Should i keep the previous version plus install this?
Yea, ignore my first comment, your mod is great, my files got randomly deleted from my lua scripts, weirdly... but i fixed it
@JayMontana36 can you released