par4doxon Posted July 31, 2013 Share Posted July 31, 2013 Hey guys, my problem is, that I want to remove an element data in client side, and I don't know how to do that. I know, that removeElementData is a server-side function, but I need an alternate option in client-side. I tried this, but it didn't work: setElementData(localPlayer, "job.lastMarker", nil) setElementData(localPlayer, "job.thMarker", nil) Any ideas to do this without calling the server? Link to comment
Moderators IIYAMA Posted July 31, 2013 Moderators Share Posted July 31, 2013 There is nothing wrong with this. Link to comment
par4doxon Posted July 31, 2013 Author Share Posted July 31, 2013 I made it. The problem was the 4th arg. So the working code is: setElementData(localPlayer, "job.lastMarker", nil, true) setElementData(localPlayer, "job.thMarker", nil, true) Link to comment
arezu Posted July 31, 2013 Share Posted July 31, 2013 I made it.The problem was the 4th arg. So the working code is: setElementData(localPlayer, "job.lastMarker", nil, true) setElementData(localPlayer, "job.thMarker", nil, true) the 4th argument is true by default, so you must have been doing something wrong before. Link to comment
Moderators IIYAMA Posted July 31, 2013 Moderators Share Posted July 31, 2013 Any ideas to do this without calling the server? It must be false 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