Jump to content

remove event from table


Fabioxps

Recommended Posts

the event is not being removed

  
lol = {} 
  
function lol:lal() 
outputChatBox("remove event from table ") 
end 
addEventHandler("onClientRender", root, function() lol:lal() end) 
  
setTimer(function() 
     
    removeEventHandler("onClientRender", root, function() lol:lal() end) 
     
    end,1000,1) 

Link to comment

try this:

local lol = { 
    lal = function() 
        outputChatBox("remove event from table ") 
    end 
} 
addEventHandler("onClientRender", root,lol.lal) 
  
setTimer( 
    function() 
        removeEventHandler("onClientRender", root,lol.lal) 
    end 
,1000,1) 

Edited by Guest
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...