Results 1 to 4 of 4

Thread: Check if player has a specific menu open

  1. #1
    Private
    Join Date
    Jul 2012
    Posts
    76
    Thanks
    9
    Thanked 56 Times in 38 Posts

    Check if player has a specific menu open

    Hi there,

    As the title says I am wondering if there was any way to check if a player has a menu open.
    So for example one player is in the weapon_american menu. Can you test in a script if he is in it?

    Hope you get what I mean

  2. #2
    Private
    Join Date
    Jan 2013
    Location
    Hungary
    Posts
    113
    Thanks
    10
    Thanked 74 Times in 45 Posts
    You can only check indirect. For example the player sends a response if the menu is opened, and a response if closed.

  3. The Following 2 Users Say Thank You to randall For This Useful Post:

    kung foo man (17th June 2013),Peterlankton (16th June 2013)

  4. #3
    Private
    Join Date
    Jul 2012
    Posts
    76
    Thanks
    9
    Thanked 56 Times in 38 Posts
    I know onClose{} is available for the .menu file. So you say there is a onOpen{} as well?
    If that is true then that is the solution for my problem.

    Cheers buddy!

  5. #4
    Global Mossaderator Mitch's Avatar
    Join Date
    Nov 2012
    Posts
    654
    Thanks
    204
    Thanked 450 Times in 305 Posts
    Quote Originally Posted by Peterlankton View Post
    I know onClose{} is available for the .menu file. So you say there is a onOpen{} as well?
    If that is true then that is the solution for my problem.

    Cheers buddy!
    Yes, menus have 3 on functions: onOpen, onClose, onEsc.

  6. The Following 2 Users Say Thank You to Mitch For This Useful Post:

    kung foo man (17th June 2013),Peterlankton (16th June 2013)

Posting Permissions

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