• Problem with a DFrame and a weapon
    1 replies, posted
I made a weapon and his prmiary attack open a DFrame the frame open correctly but it open 3 time can you help me self:SetNextPrimaryFire( CurTime() + self:SequenceDuration() + 0.1 ) function SWEP:PrimaryAttack()     local AttackOne = vgui.Create( "DFrame" )     AttackOne:SetPos( 100, 100 )     AttackOne:SetSize( 300, 200 )     AttackOne:SetTitle( "Test1" )     AttackOne:SetDraggable( true )     AttackOne:     AttackOne:MakePopup() end
The code is not complete, you got "AttackOne:" on ur "lastline-2"
Sorry, you need to Log In to post a reply to this thread.