Help is appreciated, just need to know whats wrong with my code:
[lua]
Models = {}
Models[“models/player/Kleiner.mdl”] = {COST = 5000, NAME = “Kleiner”, DESCRIP = “Unlock your inner mingebag”}
Models[“models/player/mossman.mdl” = {COST = 10000, NAME = “Mossman”, DESCRIP = “Be a traitor”}
Models[“models/player/alyx.mdl” = {COST = 10000, NAME = “Alyx”, DESCRIP = “The lead of the rebel force”}
Models[“models/player/barney.mdl” = {COST = 15000, NAME = “Barney”, DESCRIP = “Be a none-Animal Lover”}
Models[“models/player/breen.mdl” = {COST = 50000, NAME = “Dr Breen”, DESCRIP = “Control Earth”}
Models[“models/player/odessa.mdl” = {COST = 15000, NAME = “Odessa”, DESCRIP = “Be a fisherman”}
Models[“models/player/monk.mdl” = {COST = 10000, NAME = “Monk”, DESCRIP = “To Ravenholm”}
Models[“models/player/eli.mdl” = {COST = 10000, NAME = “Eli”, DESCRIP = “You are one wierd fellow”}
Models[“models/player/corpse1.mdl” = {COST = 15000, NAME = “Corpse”, DESCRIP = “I lold”}
Models[“models/player/classic.mdl” = {COST = 15000, NAME = “Zombie”, DESCRIP = “Brains”}
Models[“models/player/charple01.mdl” = {COST = 20000, NAME = “Charple”, DESCRIP = “Hail to the almighty Charple”}
Models[“models/player/combine_soldier.mdl” = {COST = 25000, NAME = “Combine Soldier”, DESCRIP = “Be awesome”}
Models[“models/player/combine_soldier_prisonguard.mdl” = {COST = 20000, NAME = “Combine Soldier Prison Guard”, DESCRIP = “Be awesome”}
Models[“models/player/combine_super_soldier.mdl” = {COST = 30000, NAME = “Combine Super Soldier”, DESCRIP = “Nice”}
Models[“models/player/gman_high.mdl” = {COST = 80000, NAME = “Gman”, DESCRIP = “You are the almighty Gman”}
Models[“models/player/soldier_stripped.mdl” = {COST = 1000, NAME = “Wierd Guy”, DESCRIP = “You are the lowest level of society”}
Models[“models/player/zombie_soldier.mdl” = {COST = 1000000, NAME = “Zombine”, DESCRIP = “You are a zombie god if you can afford this WHOA”}
Models[“models/player/Zombiefast.mdl” = {COST = 18000, NAME = “Fast Zombie”, DESCRIP = “Unlock your inner puff-face”}
Models[“models/player/Group01/female_01.mdl” = {COST = 5000, NAME = “Female 1”, DESCRIP = “I lold”}
Models[“models/player/Group01/female_02.mdl” = {COST = 5000, NAME = “Female 2”, DESCRIP = “I lold”}
Models[“models/player/Group01/female_03.mdl” = {COST = 5000, NAME = “Female 3”, DESCRIP = “I lold”}
Models[“models/player/Group01/female_04.mdl” = {COST = 5000, NAME = “Female 4”, DESCRIP = “I lold”}
Models[“models/player/Group01/female_05.mdl” = {COST = 5000, NAME = “Female 5”, DESCRIP = “I lold”}
Models[“models/player/Group01/female_06.mdl” = {COST = 5000, NAME = “Female 6”, DESCRIP = “I lold”}
Models[“models/player/Group01/female_07.mdl” = {COST = 5000, NAME = “Female 7”, DESCRIP = “I lold”}
Models[“models/player/Group03/female_01.mdl” = {COST = 5000, NAME = “Female 8”, DESCRIP = “I lold”}
Models[“models/player/Group03/female_02.mdl” = {COST = 5000, NAME = “Female 9”, DESCRIP = “I lold”}
Models[“models/player/Group03/female_03.mdl” = {COST = 5000, NAME = “Female 10”, DESCRIP = “I lold”}
Models[“models/player/Group03/female_04.mdl” = {COST = 5000, NAME = “Female 11”, DESCRIP = “I lold”}
Models[“models/player/Group03/female_05.mdl” = {COST = 5000, NAME = “Female 12”, DESCRIP = “I lold”}
Models[“models/player/Group03/female_06.mdl” = {COST = 5000, NAME = “Female 13”, DESCRIP = “I lold”}
Models[“models/player/Group03/female_07.mdl” = {COST = 5000, NAME = “Female 14”, DESCRIP = “I lold”}
Models[“models/player/Group01/male_01.mdl” = {COST = 5000, NAME = “Male 1”, DESCRIP = “I lold”}
Models[“models/player/Group01/male_02.mdl” = {COST = 5000, NAME = “Male 2”, DESCRIP = “I lold”}
Models[“models/player/Group01/male_03.mdl” = {COST = 5000, NAME = “Male 3”, DESCRIP = “I lold”}
Models[“models/player/Group01/male_04.mdl” = {COST = 5000, NAME = “Male 4”, DESCRIP = “I lold”}
Models[“models/player/Group01/male_05.mdl” = {COST = 5000, NAME = “Male 5”, DESCRIP = “I lold”}
Models[“models/player/Group01/male_06.mdl” = {COST = 5000, NAME = “Male 6”, DESCRIP = “I lold”}
Models[“models/player/Group01/male_07.mdl” = {COST = 5000, NAME = “Male 7”, DESCRIP = “I lold”}
Models[“models/player/Group01/male_08.mdl” = {COST = 5000, NAME = “Male 8”, DESCRIP = “I lold”}
Models[“models/player/Group01/male_09.mdl” = {COST = 5000, NAME = “Male 9”, DESCRIP = “I lold”}
Models[“models/player/Group03/male_01.mdl” = {COST = 5000, NAME = “Male 10”, DESCRIP = “I lold”}
Models[“models/player/Group03/male_02.mdl” = {COST = 5000, NAME = “Male 11”, DESCRIP = “I lold”}
Models[“models/player/Group03/male_03.mdl” = {COST = 5000, NAME = “Male 12”, DESCRIP = “I lold”}
Models[“models/player/Group03/male_04.mdl” = {COST = 5000, NAME = “Male 13”, DESCRIP = “I lold”}
Models[“models/player/Group03/male_05.mdl” = {COST = 5000, NAME = “Male 14”, DESCRIP = “I lold”}
Models[“models/player/Group03/male_06.mdl” = {COST = 5000, NAME = “Male 15”, DESCRIP = “I lold”}
Models[“models/player/Group03/male_07.mdl” = {COST = 5000, NAME = “Male 16”, DESCRIP = “I lold”}
Models[“models/player/Group03/male_08.mdl” = {COST = 5000, NAME = “Male 17”, DESCRIP = “I lold”}
Models[“models/player/Group03/male_09.mdl” = {COST = 5000, NAME = “Male 18”, DESCRIP = “I lold”}
Models[“models/player/gasmask.mdl” = {COST = 30000, NAME = “Gasmask Guy”, DESCRIP = “Nice suit you have there”}
Models[“models/player/riot.mdl” = {COST = 35000, NAME = “Riot Patrol”, DESCRIP = “Nice suit you have there”}
Models[“models/player/swat.mdl” = {COST = 40000, NAME = “Swat”, DESCRIP = “Sir yes sir”}
Models[“models/player/urban.mdl” = {COST = 15000, NAME = “Urban Terrorist”, DESCRIP = “Your a psycho”}
Models[“models/player/phoenix.mdl” = {COST = 15000, NAME = “Phoenix Terrorist”, DESCRIP = “Your a psycho”}
Models[“models/player/arctic.mdl” = {COST = 25000, NAME = “Ninja”, DESCRIP = “Nice model”}
Models[“models/player/guerilla.mdl” = {COST = 10000, NAME = “Guerilla Terrorist”, DESCRIP = “Your a psycho”}
Models[“models/player/leet.mdl” = {COST = 150000, NAME = “Leet Haxor”, DESCRIP = “HAX!!”}
Models[“models/player/hostage/hostage_01.mdl” = {COST = 20000, NAME = “Citizen 1”, DESCRIP = “Your average citizen”}
Models[“models/player/hostage/hostage_02.mdl” = {COST = 20000, NAME = “Citizen 2”, DESCRIP = “Your average citizen”}
Models[“models/player/hostage/hostage_03.mdl” = {COST = 20000, NAME = “Citizen 3”, DESCRIP = “Your average citizen”}
Models[“models/player/hostage/hostage_04.mdl” = {COST = 20000, NAME = “Citizen 4”, DESCRIP = “Your average citizen”}
Models[“models/player/zelda.mdl” = {COST = 300000, NAME = “Zelda”, DESCRIP = “Hail to Zelda”}
Models[“models/player/left4dead/zoey.mdl” = {COST = 500000, NAME = “Zoey”, DESCRIP = “Cure the world of infection”}
function SettingsFrame()
gui.EnableScreenClicker(true)
local frame = vgui.Create(“DFrame”)
frame:SetSize(510,440)
frame:SetPos(ScrW()/2 - 205,ScrH()/2 - 215)
frame:SetTitle(“Settings Menu”)
frame:SetMouseInputEnabled(true)
frame.Close = function()
frame:Remove()
gui.EnableScreenClicker(false)
end
local sheet = vgui.Create( "DPropertySheet" )
sheet:SetParent( frame )
sheet:SetPos( 5, 30 )
sheet:SetSize( 500, 400 )
local tab1 = vgui.Create( "DPanel" )
tab1:SetVisible(true)
local tab2 = vgui.Create( "DPanel" )
tab2:SetVisible(true)
//Playermodel Menu
local plist = vgui.Create("DPanelList",tab1)
plist:SetPos(40,30)
plist:SetSize(410, 325)
plist:SetSpacing( 1 )
plist:EnableHorizontal( true )
plist:EnableVerticalScrollbar( true )
for k,v in pairs(Models) do
local icon = vgui.Create( "SpawnIcon", plist )
icon:SetModel(k)
icon:SetSize( 64, 64 )
icon:SetToolTip("Name: " .. v.NAME .. "
Price: " … v.COST … "
Description: " … v.DESCRIP)
icon.OnMousePressed = function(mc)
local mdl = k
frame:Remove()
RunConsoleCommand(“setplayermodel”,k)
surface.PlaySound(Sound(“buttons/button14.wav”))
end
plist:AddItem(icon)
end
sheet:AddSheet( "Models", tab1, "gui/silkicons/user", false, false, "Buy a Player Model" )
end
concommand.Add( “colz_settings”, SettingsFrame )
[/lua]
Thank you so much!
oh and if you need the setplayermodel command just ask
Also, no errors are in the console and the file is not even downloaded (I know thats an issue with my derma code as it was downloaded before the edit)