overextended / ox_target

Standalone "third-eye" targeting resource.
https://overextended.dev/ox_target
MIT License
144 stars 182 forks source link

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

Open HazeBeats opened 3 months ago

HazeBeats commented 3 months ago

image

HazeBeats commented 3 months ago

please help ?

nwvh commented 3 months ago

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 commented 2 months ago

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 commented 2 months ago

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