5150 Posted May 16, 2016 Share Posted May 16, 2016 excuse the multiple topics in one day, but how can i convert this from "allow only players that can ban" to allow anyone in the PMG acl group? basically i want to change this into allowACLaccess addCommandHandler ( Command, -- Adding The Command Handler function ( player, cmd ) if hasObjectPermissionTo ( player, "function.banPlayer" ) then triggerClientEvent(player,"jailShow",player) else outputChatBox(" Access Denied ",player,255,0,0) end end ) Link to comment
swedishboy Posted May 16, 2016 Share Posted May 16, 2016 If i understood you right addCommandHandler ( Command, -- Adding The Command Handler function ( player, cmd ) local accName = getAccountName(getPlayerAccount(player)) if isObjectInACLGroup ("user."..accName, aclGetGroup ("PMG")) then triggerClientEvent(player,"jailShow",player) else outputChatBox(" Access Denied ",player,255,0,0) end end ) Link to comment
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now