Guad / NativeUI

UI library for Grand Theft Auto V
MIT License
272 stars 113 forks source link

Menu can be opened during a Cutscene or on top of the Interaction Menu #101

Closed tomilovsenya closed 5 years ago

tomilovsenya commented 5 years ago

The title is self-explanatory. I heard there's no good way of determining whether a cutscene is playing or the interaction menu is active, but can't be sure.

tomilovsenya commented 5 years ago

20190226145625_1

Here's a screen if needed.

justalemon commented 5 years ago

Enabling a menu during a cutscene can be useful for some some mods.

If you really don't want to enable the menu during a cutscene, use something like Game.Player.CanControlCharacter.

tomilovsenya commented 5 years ago

Oh, yeah, I simply forgot that such native exists. But what about the collision with the Interaction Menu opened?

justalemon commented 5 years ago

Well, I don't know how you can avoid collisions with the interaction menu because as far as I know the same Scaleform's are used. You can't do a check with _HAS_NAMED_SCALEFORM_MOVIE_LOADED or HAS_SCALEFORM_MOVIE_LOADED.

If you really don't want the menus to open when there is a cutscene active, use IS_CUTSCENE_ACTIVE or IS_CUTSCENE_PLAYING.

justalemon commented 5 years ago

This question appears to be answered. If you need more help, open another issue or reopen the existing one.