Jump to content

help (remove trigger)


Hugos

Recommended Posts

I have such trigger:

triggerEvent("tigger", root)


addEvent("tigger", true)
function tigger()
  label = guiCreateLabel(...)
  addEventHandler("onClientGUIClick", label, function_label)
end
addEventHandler("tigger", root, tigger)

How to me to remove this trigger?

Link to comment
function trigger()
  label = guiCreateLabel(...)
  addEventHandler("onClientGUIClick", label, function_label)
end

-- and now call the function like this:

trigger()

Idk if thats what you want but if so.. Instead of the triggerEvent just call the function itself
Also you are talking about trigger in your post but in the code snipped you have "tigger" everywhere

Edited by Ceeser
Link to comment
59 minutes ago, Ceeser said:

function trigger()
  label = guiCreateLabel(...)
  addEventHandler("onClientGUIClick", label, function_label)
end

-- and now call the function like this:

trigger()

Idk if thats what you want but if so.. Instead of the triggerEvent just call the function itself
Also you are talking about trigger in your post but in the code snipped you have "tigger" everywhere

The name is just for example, but I need to REMOVE the trigger

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