I am making a scoreboard gui on a tv screen.
But I don´t know how to add the gui to the TV itself. Plz help.
Here is the cl_init.lua file:
[CODE]include( 'shared.lua' )
ENT.RenderGroup = RENDERGROUP_BOTH
local Table = {}
local p
local o
local fout
function ENT:Draw( )
self:DrawModel()
end
local DermaPanel = vgui.Create( "DFrame" )
DermaPanel:SetPos( 50,50 )
DermaPanel:SetSize( 500, 700 )
DermaPanel:SetTitle( "Testing Derma Stuff" )
DermaPanel:SetVisible( true )
DermaPanel:SetDraggable( true )
DermaPanel:ShowCloseButton( true )
DermaPanel:MakePopup()
local DermaListView = vgui.Create("DListView")
DermaListView:SetParent(DermaPanel)
DermaListView:SetPos(25, 50)
DermaListView:SetSize(450, 625)
DermaListView:SetMultiSelect(false)
DermaListView:AddColumn("Name"),
DermaListView:AddColumn("Amount of kills")
for k,v in pairs(player.GetAll()) do
DermaListView:AddLine(v:Nick(),v:Frags())
end
Hello. I am making a script to add a gui to a tv.
But I don´t know how to add the gui on the tv.
Here is the cl_init.lua file
include( 'shared.lua' )
ENT.RenderGroup = RENDERGROUP_BOTH
local Table = {}
local p
local o
local fout
function ENT:Draw( )
self:DrawModel()
end
local DermaPanel = vgui.Create( "DFrame" )
DermaPanel:SetPos( 50,50 )
DermaPanel:SetSize( 500, 700 )
DermaPanel:SetTitle( "Testing Derma Stuff" )
DermaPanel:SetVisible( true )
DermaPanel:SetDraggable( true )
DermaPanel:ShowCloseButton( true )
DermaPanel:MakePopup()
local DermaListView = vgui.Create("DListView")
DermaListView:SetParent(DermaPanel)
DermaListView:SetPos(25, 50)
DermaListView:SetSize(450, 625)
DermaListView:SetMultiSelect(false)
DermaListView:AddColumn("Name"),
DermaListView:AddColumn("Amount of kills")
for k,v in pairs(player.GetAll()) do
DermaListView:AddLine(v:Nick(),v:Frags())
end[/CODE]
I need help what I should add next to make it appear on my tv screen.
[editline]19th May 2014[/editline]
Whops just saw I wrote Hello. I am making a script to add a gui to a tv in the script thing. Sorry xD
[editline]19th May 2014[/editline]
Here is the one without
[CODE]include( 'shared.lua' )
ENT.RenderGroup = RENDERGROUP_BOTH
local Table = {}
local p
local o
local fout
function ENT:Draw( )
self:DrawModel()
end
local DermaPanel = vgui.Create( "DFrame" )
DermaPanel:SetPos( 50,50 )
DermaPanel:SetSize( 500, 700 )
DermaPanel:SetTitle( "Testing Derma Stuff" )
DermaPanel:SetVisible( true )
DermaPanel:SetDraggable( true )
DermaPanel:ShowCloseButton( true )
DermaPanel:MakePopup()
local DermaListView = vgui.Create("DListView")
DermaListView:SetParent(DermaPanel)
DermaListView:SetPos(25, 50)
DermaListView:SetSize(450, 625)
DermaListView:SetMultiSelect(false)
DermaListView:AddColumn("Name"),
DermaListView:AddColumn("Amount of kills")
for k,v in pairs(player.GetAll()) do
DermaListView:AddLine(v:Nick(),v:Frags())
end[/CODE]
Sorry, you need to Log In to post a reply to this thread.