Thread: [PI] ItemOnObject to open Interface (with itemID)?

Results 1 to 1 of 1
  1. #1 [PI] ItemOnObject to open Interface (with itemID)? 
    It's time for change.
    Blazedroid's Avatar
    Join Date
    Jul 2019
    Posts
    43
    Thanks given
    0
    Thanks received
    1
    Discord
    View profile
    Rep Power
    11
    With ItemOnObject, I want it to open up an interface with a button (which it does), but I need that button to perform an action related to the item used. How can I pass the itemID to the interface? Or, better yet, get which item was used on the object when the button is pressed.

    My workflow is something like this:

    User uses ItemID 29672 on an object > and interface appears asking the user to confirm > User presses confirm and an action happens on the Item.


    I have it to the point of the interface appearing, but I'm not quite sure on how to check which Item was used.



    EDIT: Figured it out. I used ItemOnObject to set a client variable and called it back when I wanted the action performed.
    Last edited by Blazedroid; 09-16-2020 at 12:27 PM. Reason: Solved.
    Reply With Quote  
     


Thread Information
Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)


User Tag List

Similar Threads

  1. Replies: 0
    Last Post: 08-25-2013, 01:59 AM
  2. [PI] How to change price with items
    By GasMask in forum Help
    Replies: 2
    Last Post: 02-01-2011, 04:00 PM
  3. Replies: 10
    Last Post: 12-03-2010, 03:42 AM
  4. Replies: 7
    Last Post: 12-02-2010, 03:39 AM
  5. [508] Opening Interfaces with Objects!
    By tonypker13 in forum Tutorials
    Replies: 3
    Last Post: 01-17-2009, 09:34 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
  •