I need help with making the mouse show up with derma menu
2 replies, posted
[CODE]
concommand.Add( "showplayers", function( ply )
local menu = DermaMenu()
for _, ply in ipairs( player.GetAll() ) do
menu:AddOption( ply:Nick(), function() chat.AddText( ply:Nick() .. ", " .. ply:SteamID() ) end )
end
menu:AddSpacer()
menu:AddOption( "Close", function() chat.AddText( Color( 100, 255, 100 ), "Menu Closed" ) end )
end)
[/CODE]
The menu opens and shows the players but I don't know how to get the mouse to show up so you can select a option.
Tried your code, and I think [img]http://wiki.garrysmod.com/favicon.ico[/img] [url=http://wiki.garrysmod.com/page/DMenu/Open]DMenu/Open[/url] would make it work
[editline]19th March 2016[/editline]
Also, with your concommand, you're doing
[CODE]
function( ply )
[/CODE]
at the top when you're doing
[CODE]
menu:AddOption( ply:Nick(), function() chat.AddText( ply:Nick() .. ", " .. ply:SteamID() ) end )
[/CODE]
later in your code. It probably wouldn't use the wrong ply, but you might want to change that just in case.
It works @MPan1 Thank You!
Sorry, you need to Log In to post a reply to this thread.