Difference between revisions of "Functions/DarkRP/Server/createQuestion"

From Official DarkRP Wiki
Jump to navigation Jump to search
(Wikibot updated DarkRP documentation)
 
m (Wikibot updated DarkRP documentation)
 
Line 6: Line 6:
 
arguments = {{Type|string}} question, {{Type|string}} quesid, {{Type|Player}} target, {{Type|number}} delay, {{Type|function}} callback, {{Type|Player}} fromPly, {{Type|Player}} toPly, {{Type|any}} ... |
 
arguments = {{Type|string}} question, {{Type|string}} quesid, {{Type|Player}} target, {{Type|number}} delay, {{Type|function}} callback, {{Type|Player}} fromPly, {{Type|Player}} toPly, {{Type|any}} ... |
 
description = Ask someone a question. |
 
description = Ask someone a question. |
 +
deprecated =  |
 
returns = {{Type|nil}} |
 
returns = {{Type|nil}} |
 
library = {{Type|DarkRP}} |
 
library = {{Type|DarkRP}} |

Latest revision as of 14:14, 31 October 2015

Function
Function name DarkRP.createQuestion(string question, string quesid, Player target, number delay, function callback, Player fromPly, Player toPly, any ...)
Description:
Ask someone a question.
Returns: nil
Part of Library: DarkRP
Realm: NewerServer.png
BBCode Link: [b][url=http://wiki.darkrp.com/index.php?title=Functions/DarkRP/Server/createQuestion]DarkRP.createQuestion[/url][/b]

Function parameters

  1. question (string)
  2. The question to ask.

  3. quesid (string)
  4. A unique question id.

  5. target (Player)
  6. Who to ask the question.

  7. delay (number)
  8. For how long the player will be able to answer.

  9. callback (function)
  10. The function that gets called after the question.

  11. fromPly (Player) (optional)
  12. The player who asked the question.

  13. toPly (Player) (optional)
  14. A third involved player.

  15. ... (any) (optional)
  16. Any other information.


Function return values

This function does not return any value.