Captain07 Posted April 17, 2021 Share Posted April 17, 2021 Hello, I have a script that opens a panel when you click on a player/vehicle. The problem is that it detects the click on the player/vehicle even when something is in the way, the admin panel for example or the player/vehicle panel itself. So I am clicking in the admin panel, but if a player is "below" the panel and I click there, the player panel opens. How can I evade this? Link to comment
SpecT Posted April 17, 2021 Share Posted April 17, 2021 Hey, An idea is to use setElementData in the admin panel with the state of the panel. And in your panel you can make a check (getElementData) whether the admin panel is opened or not. If it's opened => ignore the clicks. 1 Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now