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

Groups property equivalent for active groups #165

Open
Skryptific opened this issue Sep 25, 2024 · 0 comments
Open

Groups property equivalent for active groups #165

Skryptific opened this issue Sep 25, 2024 · 0 comments

Comments

@Skryptific
Copy link
Contributor

Now with ox_core's groups, I think it would be nice to have an activeGroups (or whatever) property (or any other solution) to check if the player has the group as active or not. Currently, you can do this in canInteract, but repeating the logic everywhere is less nice.

Example, if a player has not set their group police to active, you don't want them to be able to do certain actions. If this is not desired, then we can continue using canInteract, but just a suggestion.

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

1 participant