I have been trying and trying to get these to work on my server and they just don't. I have tried every possible solution and nothing works, looked up walkthroughs and follow them to the letter.
Here is the code I use for my weapon:
[CODE]if SERVER then
AddCSLuaFile( "shared.lua" )
resource.AddFile("materials/VGUI/ttt/icon_adrenaline.vtf")
resource.AddFile("materials/VGUI/ttt/icon_adrenaline.vmt")
end
if CLIENT then
SWEP.PrintName = "Adrenaline"
SWEP.Slot = 7
SWEP.ViewModelFOV = 10
SWEP.EquipMenuData = {
type = "item_weapon",
desc = "Use this for a quick speed boost. Made by Fortune"
};
SWEP.Icon = "VGUI/ttt/icon_adrenaline"
adrenaline = 0
end[/CODE]
I have the material in the right spot, right name, I have quintople checked.
Here is the VMT code I am using:
[CODE]"UnlitGeneric"
{
"$basetexture" "VGUI/ttt/icon_adrenaline"
"$translucent" 1
"$vertexalpha" 1
"$vertexcolor" 1
}[/CODE]
I have the files in my garrysmod/gamemodes/terrortown/content/materials/VGUI/ttt filepath.
Any and all help is appreaciated
Lowercase your VGUI folder, so it looks like vgui.
[QUOTE=Robotboy655;42301989]Lowercase your VGUI folder, so it looks like vgui.[/QUOTE]
When I try doing that through FTP it gives me this error:
[CODE]Renaming '/119.252.191.42_27015/garrysmod/gamemodes/terrortown/content/materials/VGUI' to '/119.252.191.42_27015/garrysmod/gamemodes/terrortown/content/materials/vgui'
Command: RNFR VGUI
Response: 350 Requested file action pending further information.
Command: RNTO vgui
Response: 500 Syntax error, command unrecognized.[/CODE]
Are the files on your server
Are the files on your fastdl
Are the files in your fastdl compressed
Have you tried testing this on a local server, to see if the issue is with downloading or the material itself
Yes they are on the server.
Yes they are on the Fast Dl
No they are not compressed.
I haven't tried that, but I have been trying to fix it for hours and have completely remade it several times.
Are you sure the files even download? Change the VGUI in your resource.addfile to vgui.
Also, I'm not entirely sure if this'll change anything, but with my custom icons, I only did a resource.addfile for the vmt file and it works perfectly fine.
"$basetexture" "VGUI/ttt/icon_adrenaline"
fairly sure its
"$basetexture" "VGUI/ttt/icon_adrenaline.vtf"
Sorry, you need to Log In to post a reply to this thread.