So, I’m attempting something along these lines. Unfortunately, it doesn’t trigger the part for moderators… Funny thing is that moderator is set correctly, because it works fine with vMenu restrictions on the same server.
Any idea what I did wrong?
if IsPlayerAceAllowed(source, "admin") then
TriggerClientEvent("esx_admin:admincheck", source)
TriggerClientEvent("esx_admin:ownerMessage", source)
print('testADMIN')
end
if IsPlayerAceAllowed(source, "moderator") then
TriggerClientEvent("esx_admin:moderatorcheck", source)
print('testMOD')
end
1 Like