G.Derma_Query

From GMod Wiki

Revision as of 15:23, 25 January 2010 by MulleDK13 (Talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
Function
Syntax G.Derma_Query( String text, String title, String button1, Function button1func, String button2, Function button2func, String button3, Function button3func, String button4, Function button4func )
Where is this used?
Description:
Prompts the user with a message and up to four buttons
Returns: nil
Part of Library: Global Functions
Realm: NewerClient.png
BBCode Link: [b][url=http://wiki.garrysmod.com/?title=G.Derma Query]G.Derma Query [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b]



Examples

DescriptionThis will ask the user of something and make them say their answer
Used onNewerClient.png
Code
 
Derma_Query("What's your favorite drink?", "Vote",
			"Cola", function() RunConsoleCommand("say", "I voted Cola") end,
			"Fanta", function() RunConsoleCommand("say", "I voted Fanta") end,
			"Sprite", function() RunConsoleCommand("say", "I voted Sprite") end,
			"Other", function() RunConsoleCommand("say", "I voted Other") end)
 
OutputN/A


See Also

Personal tools
Namespaces
Variants
Actions
Navigation
Lua Scripting
Functions
Hooks
Toolbox