ox_target
ox_target copied to clipboard
Groups property equivalent for active groups
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.