undefined Posted September 27, 2014 Share 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) Link to comment
Castillo Posted September 27, 2014 Share 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 Link to comment
undefined Posted September 27, 2014 Author Share Posted September 27, 2014 It's work. Thank you Castillo! 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