Results 1 to 1 of 1

Thread: How do i get a reference from the button i pressed?

  1. #1

    How do i get a reference from the button i pressed?

    Hello everyone,

    Say i have an object with LOTS of .createbutton() on it.

    Do i have to make a single function for each button even though their resolution is similar? Couldn't we get a "function_parameters" on it to pass info so the function would know what to do?

    Yeah i know the click_function automatically runs the function with "Object" and "Player Who Clicked" as both parameters, but the object one only returns userdata from the actual object i have the button on, not the button itself, this doesn't seem to help my case.

    If anyone have managed to workaround this, please share with me your secrets of trade.UC browser SHAREit Appvn

    Thank you!
    Last edited by david77; 05-12-2019 at 02:43 PM.

Similar Threads

  1. Replies: 6
    Last Post: 11-11-2017, 08:40 AM
  2. SteamOS version (Linux) doesn't zoom when 'M' is pressed
    By jlineberry in forum Technical Support
    Replies: 0
    Last Post: 05-11-2017, 10:21 PM
  3. Show List of All Stacked Counters When Alt is Pressed
    By CounterFactorian in forum Suggestions
    Replies: 0
    Last Post: 09-29-2016, 06:23 PM
  4. Way to get button pressed?
    By allencoded in forum Scripting
    Replies: 10
    Last Post: 06-05-2016, 07:19 AM
  5. Replies: 1
    Last Post: 08-17-2015, 05:02 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts