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

[suggestion] locked to a job #10

Closed
menkzy opened this issue Oct 28, 2021 · 2 comments
Closed

[suggestion] locked to a job #10

menkzy opened this issue Oct 28, 2021 · 2 comments

Comments

@menkzy
Copy link

menkzy commented Oct 28, 2021

Would be nice to have an option to set something job only, for example;

 {
            header = "Header",
            isMenuHeader = true, -- Set to true to make a nonclickable title
        },
        {
            header = "pd/ems only",
            params = {
                event = "randomevent",
            }
      job = {'ambulance','police'},
        },
        {
            header = "public option",
            params = {
                event = "randomevent2",
            }
            
        },
        }
@JericoFX
Copy link

you can check the job before the openMenu() trigger

@menkzy
Copy link
Author

menkzy commented Oct 31, 2021

But if you have multiple options on one menu, other people NOT in that job can use it

@GhzGarage GhzGarage added this to Issues in QBCore Development Nov 16, 2021
QBCore Development automation moved this from Issues to Done Jan 1, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
No open projects
Development

No branches or pull requests

3 participants