Jump to content

F1 panel problem


jorko99

Recommended Posts

Posted

Hello viewers,

How can I enable the F1 panel only for admims.I mean if you are added in the acl group you can open the F1 panel.

Thanks for your attention.

Posted

Simplest solution would be to check if he's in particular ACL group on onPlayerLogin and if so set some element data (eg. admin) to true. Then on the client just check if getElementData(localPlayer, "admin") then and that's it.

Posted
function heckACL() 
    if isObjectInACLGroup("user."..getAccountName(getPlayerAccount(player)), aclGetGroup("Admin")) then 
    --Here the code 
    end 
end 

Posted
isObjectInACLGroup 

works only on server side , the only way to do this is using a Trigger which would show the freeroam GUI without using element data.

Posted
function heckACL() 
    if isObjectInACLGroup("user."..getAccountName(getPlayerAccount(player)), aclGetGroup("Admin")) then 
    --Here the code 
    end 
end 

What code?

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...