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

Closed
HazeBeats opened this issue May 20, 2024 · 5 comments
Closed

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

HazeBeats opened this issue May 20, 2024 · 5 comments
Labels
invalid This doesn't seem right

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

@Ehbw Ehbw added the invalid This doesn't seem right label Jan 20, 2025
@Ehbw
Copy link
Member

Ehbw commented Jan 20, 2025

You can check within canInteract to check. Check the ESX Documentation for how to retrieve that information

@Ehbw Ehbw closed this as completed Jan 20, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
invalid This doesn't seem right
Projects
None yet
Development

No branches or pull requests

4 participants