ox_target icon indicating copy to clipboard operation
ox_target copied to clipboard

Groups property equivalent for active groups

Open Skryptific opened this issue 1 year ago • 0 comments

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.

Skryptific avatar Sep 25 '24 10:09 Skryptific