Jump to content

Destroy a function?


Fist

Recommended Posts

Posted

Hello everyone.

Just askin or it is possible to destroy function?

Like if key Z is executed and it executes EXAMPLE function and if i press again Z it destroys that function, and over again same process.

Posted
Take a look at unbindKey

That would not fix my problem, i need exaclty what destroys function, cause i need it so in background doesnt run a useless gui when its not used.

  • Moderators
Posted
function myFunctionName () 
  
end 
  
  
myFunctionName = nil -- delete 

Do you want to improve your Lua programming skills and make less mistakes?   Start with Lua Language Server!   🙀

 

  Useful functions  3x 

  Tutorials  4x 

 

Posted
There's no such thing as "destroying" a function. Once it's bound to a command or a key, even nullifying the function's variable won't stop its execution.

Ok, thanks anyway.

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