Bullyn Posted June 5, 2020 Share Posted June 5, 2020 Como eu posso adicionar esse comando na ACL. local Superman = {} -- Static global values local rootElement = getRootElement() local thisResource = getThisResource() -- Resource events addEvent("voar:start", true) addEvent("voar:stop", true) -- -- Start/stop functions -- function Superman.Start() accName = getAccountName(getPlayerAccount(hit)) if not isObjectInACLGroup("user."..accName,aclGetGroup("Voar")) then outputChatBox("Você não tem permissão", player, 255,255,255, true) local self = Superman addEventHandler("voar:start", rootElement, self.clientStart) addEventHandler("voar:stop", rootElement, self.clientStop) end addEventHandler("onResourceStart", getResourceRootElement(thisResource), Superman.Start, false) function Superman.clientStart() setElementData(client, "superman:flying", true) end function Superman.clientStop() setElementData(client, "superman:flying", false) end end O erro é esse. Link to comment
MrKAREEM Posted June 7, 2020 Share Posted June 7, 2020 o problema é que não há evento chamado superman:start no lado do servidor 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