To integrate ZeroTrust with an vRP-based server, you'll need to put your admin groups in Cfg.WhitelistedGroups inside config.lua with the following code to ensure proper compatibility:
Cfg= {}Cfg.WhitelistedGroups= { -- If you have created or edited any group, add it heregod=true,admin=true,superadmin=true}
This function ensures that ZeroTrust correctly retrieves the player's admin group, allowing it to recognize different permission levels (e.g., "god") within your vRP framework.
You can check your vrp/cfg/groups.lua file and search cfg.groups to see if there are differents groups, if so, add them to the Cfg.WhitelistedGroups
Make sure you have vRP installed and properly configured before making these changes.
You may have to add "@vrp/lib/utils.lua" in server_scripts inside the fxmanifest file of ZeroTrust.
ZeroTrust caches the result of the admin group after the first use per player. This ensures that each player's admin group is checked only once, minimizing unnecessary calls and avoiding potential spam.