Warning: vgui.Create failed to create the VGUI component ([Vgui Name])

Hello guys,

When I run my gamemode on my own computer, everything is working greatly.
Unfortunately, when I run it on a dedicated server that I bought from a well known seller, Verygames; I am having this error:

Warning: vgui.Create failed to create the VGUI component ([Vgui Name])

I would be happy if someone could help me out with this.

Thanks.

You’ll have to show us some code if you want more help with this, but it means there’s an error in one of your custom VGUI panels I think.

For example, the F1 menu:



function GM.ToggleHelp ( )	
	vgui.Create("test_help")
end




local PANEL = {}

function PANEL:Init ( )
	self:SetTitle("Test")
	self:MakePopup()
	self.PropertySheet = vgui.Create("DPropertySheet", self)
	self.PropertySheet:SetShowIcons(false)
	self.Menu_Settings = vgui.Create("DPanelList");
	self.Menu_Settings:EnableHorizontal(false)
	self.Menu_Settings:EnableVerticalScrollbar(true)
	self.Menu_Settings:SetPadding(7);
	self.Menu_Settings:SetSpacing(13);
	self.PropertySheet:AddSheet("Settings", self.Menu_Settings)
end

function PANEL:PerformLayout ( )	
	self.BaseClass.PerformLayout(self)
	self:SetSize(ScrW() * 0.25, ScrH() * 0.5)
	self:SetPos(ScrW() * 0.375, ScrH() * 0.25)
	self.PropertySheet:StretchToParent(5, 30, 5, 5)
end

vgui.Register("test_help", PANEL, "DFrame")


Did you AddCSLuaFile the custom vgui file? A common reason for this error to pop up is that the file that defines the component is missing on the client.

It works on your local machine as you are the client and server but on the dedicated server, each clients needs to receive the file from the server.

Thanks _nonSENSE, when I did it exactly like you said it worked.