Summary

Methods

Closes the tab menu of the player, if they have it open.
Opens the tab menu of the player.
Asks the player a yes or no question.
Asks the player to type a text.

Methods

Player:close_tab_menu()

server packages/active_ui/lib/sh_tab_menu.lua:138

Closes the tab menu of the player, if they have it open. Serverside variant.

See also

Player:open_tab_menu(panel_id)

server packages/active_ui/lib/sh_tab_menu.lua:132

Opens the tab menu of the player. Serverside variant.

Parameters

  • panel_id String optional, defaults to nil ID of the menu item to show; the item that was open the last time if nil

See also

Player:request_confirmation(title, message, callback, options)

server packages/active_ui/lib/sh_prompt.lua:212

Asks the player a yes or no question. Serverside only.

Parameters

  • title String title of the dialog, text or language phrase
  • message String question, text or language phrase
  • callback Function called with the player and the answer (Boolean)
  • options Map optional, defaults to nil timeout and arguments, see Flux.Prompt#request_confirmation

Returns

  • Number request ID, nil if the player cannot be asked

See also

Player:request_string(title, message, callback, options)

server packages/active_ui/lib/sh_prompt.lua:201

Asks the player to type a text. Serverside only.

Parameters

  • title String title of the dialog, text or language phrase
  • message String question shown above the text field, text or language phrase
  • callback Function called with the player and the answer (String, or false if there is none)
  • options Map optional, defaults to nil default, max_length, timeout and arguments, see Flux.Prompt#request_string

Returns

  • Number request ID, nil if the player cannot be asked

See also

Defined in