Jump to content

Help :( :(


Anubhav

Recommended Posts

  
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
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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...