I've made it further than usual before asking for help!
Basically, I'm in the works of a whitelist addon
I got that part working, but I want to add a derma window ingame where a player with a specific rank can view and edit the whitelist (which works via SteamID)
I have the window and rank check working fine
My problem lies with
DListViewMy list of SteamIDs is in a table called whitelist
I'm not sure how I would go about adding all values of that table into the DlistView, though I would imagine I use the for loop
Here's my derma window as it stands currently
net.Receive("OpenWhitelistWindow", function()
gui.EnableScreenClicker(true)
DF = vgui.Create("DFrame")
DF:Center()
DF:SetSize(300,300)
DF:SetTitle("Zee's Whitelist Menu")
DF:SetDraggable(true)
DF:ShowCloseButton(false)
DF:MakePopup()
DL = vgui.Create("DListView")
DL:SetMultiSelect(false)
DL:AddColumn("SteamIDs")
CloseButton = vgui.Create("DButton", DF)
CloseButton:SetPos(275)
CloseButton:SetText("X")
CloseButton:SetSize(20,20)
CloseButton.DoClick = function()
DF:Close()
gui.EnableScreenClicker(false)
end
end )