When i open Derma menu on ent it opens about 100 menus

Hello,
So when i press e on my ENT this causes about 100 Derma Menus to open.
Please could someone help with this?

Here is the code

cl_init.lua

local function DrawTheMenu()


	local Panel = vgui.Create('DFrame')
    Panel:SetSize(500, 500)
    Panel:Center()
    Panel:SetTitle('Title')
    Panel:ShowCloseButton(true)
    Panel:SetSizable(false)
    Panel:MakePopup()
    Panel:SetDraggable(false)

init.lua


function ENT:Use( ply, caller )
    umsg.Start( "DrawTheMenu", ply ) 
        umsg.Short( "1" ) 
    umsg.End() 
end

If someone could help with this that would be great!

Many thanks

use self:SetUseType(SIMPLE_USE) on Initialize

I have done that, nothing worked. I will try again.

[editline]23rd November 2016[/editline]

Solved :smiley:

[editline]23rd November 2016[/editline]

Hello, need someone to tell me if it is possible for me to grab all online players and put them in the derma?

Yep,

[lua]

for k,v in pairs(player.GetHumans())do
DLabel:SetText(v:Nick())
end
[/lua]