Player classserver
Part of Active UI
Summary
Methods
close_tab_menu()server
Closes the tab menu of the player, if they have it open.
open_tab_menu(panel_id)server
Opens the tab menu of the player.
Asks the player a yes or no question.
Asks the player to type a text.
Methods
Player:request_confirmation(title, message, callback, options)
server packages/active_ui/lib/sh_prompt.lua:212Asks 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
niltimeout 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:201Asks 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
nildefault, max_length, timeout and arguments, see Flux.Prompt#request_string
Returns
- Number request ID, nil if the player cannot be asked