Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Players Can Aim & Shoot When Inside UI #15

Closed
yiruzu opened this issue Mar 21, 2024 · 3 comments
Closed

Players Can Aim & Shoot When Inside UI #15

yiruzu opened this issue Mar 21, 2024 · 3 comments

Comments

@yiruzu
Copy link
Contributor

yiruzu commented Mar 21, 2024

(also steer but its not a big deal and maybe even helpful for some people)

@yiruzu
Copy link
Contributor Author

yiruzu commented Mar 21, 2024

I would just use the SetNuiFocusKeepInput native and when the player clicks on preview it gets set to true, but it should be false by default so they can't do stupid stuff when inside the UI:

@yiruzu
Copy link
Contributor Author

yiruzu commented Mar 21, 2024

this would also obv fix the map from opening when pressing esc

@Frowmza
Copy link
Contributor

Frowmza commented Mar 22, 2024

Fixed! 6e3150e

@Frowmza Frowmza closed this as completed Mar 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants