Jump to content

Acl Group


Recommended Posts

Posted (edited)

Hi guys, i'm trying add some data for the players that went in determinate acl group but without success.

function aclpm (thePlayer)
	accName = getAccountName (getPlayerAccount (thePlayer))
    if isObjectInACLGroup("user."..accName, aclGetGroup ("PM")) and getElementType(thePlayer) == "player" then
		thePlayer:setData("Venda:Police.Job", true);
		thePlayer:getAccount():setData("Venda:Police.Job", thePlayer:getData("Venda:Police.Job"));
	end
end

What is wrong?

Thanks in advance for any help ❤️ 

Edited by GodKraken

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...