Anubhav Posted September 28, 2014 Share Posted September 28, 2014 addEvent("toggleDrawing", true) addEventHandler('toggleDrawing', root, function(bo) if bo == true then addEventHandler("onClientRender", root, draw) else removeEventHandler("onClientRender", root, draw) end end ) It doesn't add the handler? Why? The draw function is up and created no error. Link to comment
#DRAGON!FIRE Posted September 28, 2014 Share Posted September 28, 2014 test this and tell me if u see this msg in chat addEvent("toggleDrawing", true) addEventHandler('toggleDrawing', root, function(bo) if bo == true then outputChatBox ( "bo val is true" ) end end ) Link to comment
Anubhav Posted September 28, 2014 Author Share Posted September 28, 2014 test this and tell me if u see this msg in chat addEvent("toggleDrawing", true) addEventHandler('toggleDrawing', root, function(bo) if bo == true then outputChatBox ( "bo val is true" ) end end ) Thanks, but I that thing I fixed it myself. Please lock the topic 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