undefined Posted September 27, 2014 Posted September 27, 2014 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)
Castillo Posted September 27, 2014 Posted September 27, 2014 Wiki quote: The source of this event is the root element. You must get the player online from the account. Example: local player = getAccountPlayer ( account ) if ( player ) then -- Set element data end San Andreas Utopia RPG (SAUR) Owner & Developer. Education is the most powerful weapon which you can use to change the world.
Castillo Posted September 27, 2014 Posted September 27, 2014 You're welcome. San Andreas Utopia RPG (SAUR) Owner & Developer. Education is the most powerful weapon which you can use to change the world.
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