Jump to content

onAccountDataChange - setElementData


undefined

Recommended Posts

Hi guys.

Im work on to clan system but i have problem.

When the accountData changed, im try this. So setElementData. But it's not work and not give error or warning on debug. Where is the problem?

addEventHandler("onAccountDataChange", root, function(account, key, value) 
    if (key == "clan") then 
        triggerClientEvent(root, "onAccountDataChange", root) 
        setElementData(source, tostring(key), tostring(value)) 
    end 
end) 

Link to comment

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