Bean666 Posted July 9, 2016 Share Posted July 9, 2016 how can i make onElementDataChange work on a certain data only? ex: it will only trigger if he changed his "Job" data. ex: he changed his Job "Fisherman" to "Mechanic". so that it will not work on other data changes. only on the "Job" data. Link to comment
Captain Cody Posted July 9, 2016 Share Posted July 9, 2016 function outputChange(dataName,oldValue) if dataName == "Job" then -- Continue on end end addEventHandler("onElementDataChange",element,outputChange) Link to comment
Bean666 Posted July 12, 2016 Author Share Posted July 12, 2016 yeah i already fixed it days ago, thanks anyway! 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