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

How do I add the admin group to the interaction? #150

Open
HazeBeats opened this issue May 20, 2024 · 4 comments
Open

How do I add the admin group to the interaction? #150

HazeBeats opened this issue May 20, 2024 · 4 comments

Comments

@HazeBeats
Copy link

image

@HazeBeats
Copy link
Author

please help ?

@nwvh
Copy link

nwvh commented May 24, 2024

As the documentation says:

Groups are framework dependent, and may refer to jobs, gangs, etc.

And when you read the source code, you can see that the groups option only accepts jobs, not player groups. If you're using ESX, you can obtain the player's group from ESX.GetPlayerData()

@Corrypted
Copy link

You would use the canInteract function to check the group via Ace Permissions (or any other method). Me personally, I would add a localized "allowedAccess" table with the identifiers of who you want to have access and use that as the check.

@nwvh
Copy link

nwvh commented Jun 22, 2024

You would use the canInteract function to check the group via Ace Permissions (or any other method). Me personally, I would add a localized "allowedAccess" table with the identifiers of who you want to have access and use that as the check.

No you wouldnt, because both methods you stated are server sided

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

3 participants