Can you make a vgui menu and add items eg like this
[LUA]
DermaPanel:AddText("Can I help you?");
DermaPanel:AddOption("No Get Lost..");
[/LUA]
How would i set it out if i did it that way?
[lua]Derma_Query( "Can I help you?", "", "No Get Lost...", function() LocalPlayer( ):Remove( ) end )[/lua]
[url]http://wiki.garrysmod.com/?title=G.Derma_Query[/url]
I no how to do a derma but i want to add diffrent options when you click a button.
[editline]06:40AM[/editline]
[QUOTE=Salads;17223832][lua]Derma_Query( "Can I help you?", "", "No Get Lost...", function() LocalPlayer( ):Remove( ) end )[/lua]
[url]http://wiki.garrysmod.com/?title=G.Derma_Query[/url][/QUOTE]
With that there this is the eg on wiki
[LUA]
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)
[/LUA]
Does it show as What's your favorite drink and when you click it brings up a new one with Cola, Fanta ETC?
Also how can i add pics into a dpanel?
[editline]08:24AM[/editline]
-Bumpz- Help?
Help?
You have to make the DFrame on your own. You can't customize DQuery, it's just a simple easy way for coders to get input from the player.
thats not going to help me when i need to make it like darklands/perp for a food dealer
[QUOTE=bradmcco;17241802]thats not going to help me when i need to make it like darklands/perp for a food dealer[/QUOTE]then you will need to make your own system. It's not particularly hard, I'm making my own system for a post office.
i got no clue how to do that
[editline]10:19AM[/editline]
i no how to to dit so when you press a button it purchases food
i need to make a menu like this:
The drug dealer but with food
[url]http://www.youtube.com/watch?v=dZfAF5oZnkU[/url]
[editline]10:44AM[/editline]
btw lexic can u unban me im so bored.
[editline]10:44AM[/editline]
i have spent like 3 months banned
[QUOTE=bradmcco;17242713]i got no clue how to do that
[/quote]
Well, we have an extensive wiki with all the derma functions you need documented.
[QUOTE=bradmcco;17242713]
i no how to to dit so when you press a button it purchases food
i need to make a menu like this:
The drug dealer but with food
[url]http://www.youtube.com/watch?v=dZfAF5oZnkU[/url]
[/quote]
Really? What's the code?
[QUOTE=bradmcco;17242713]
btw lexic can u unban me im so bored.
[/quote]
No.
[QUOTE=bradmcco;17242713]
i have spent like 3 months banned[/QUOTE]
That's the thing about permanent bans. They go on for months and months and months.
can u give me a link for the wiki? like the pages that will help me
DCollapsibleCategory
Anyone no about that?
no info on wiki?
[QUOTE=Lexic;17243487][url]http://wiki.garrysmod.com/?title=Derma_Controls[/url][/QUOTE]
That. Seriously, We aren't here to baby sit you, Look on the wiki.
[QUOTE=bradmcco;17256922]DCollapsibleCategory
Anyone no about that?
no info on wiki?[/QUOTE]
It is now fully documented.
Sorry, you need to Log In to post a reply to this thread.