DarkRP Installed models, but still show ERROR's.

But when i choose job or buy weapon on which i see “ERROR” in preview, it’s ok and no ERROR’s. Only in Preview tabs.
I uploaded workshop.vdf to server


"addons"
{
	"1"	"115753588"
	"2"	"145276873"
	"3"	"104482086"
	"4"	"104996105"
	"5"	"130223869"
	"6"	"133342076"
	"7"	"121961644"
	"8"	"115093479"
	"9"	"149491742"
}


And in start.bat



+host_workshop_collection 195871591 -authkey ********************************


But when i start server, few addon’s show “DOWNLOAD FAILED!” On 20%-50% of downloaded.

What’s problem? Sorry for bad english.
I have no idea in what problem.

[editline]17th November 2013[/editline]

http://gifok.net/images/2013/11/17/P1At3.png

I’ve uploaded .gma files from my game “addons” dir to server and now i don’t see “DOWNLOAD FAILED ERRORS”.



Mounting Addon 'NYPD 1940's Model-Group' (121961644)
Mounting Addon 'M9K Weapons for DarkRP' (145276873)
Mounting Addon 'rp_downtown_v2_fiend_v2b' (115093479)
Mounting Addon 'Mafia Player Models' (149491742)
Mounting Addon 'Police player model' (133342076)


But as client i still have errors :frowning:

http://gifok.net/images/2013/11/17/tRZAX.png

Please, help me.

I’d hide the authkey with *'s if I were you.
Show what shipments.lua and jobs.lua includes, could be wrong model path.

It’s was ok on my local dedicated server, and when i was have all models/materials as client. But i try to delete and called my friends, everyone see error on previvew and few models in hands/jobs. I’ll make video tomorrow about this problem. Problem in that when players connect he don’t download workshop addons, but should. I don’t know why.

Now i show my shipments and jobs lua’s.

Shipments



//-----------------Rifles

DarkRP.createShipment("m416", {
	model = "models/weapons/w_hk_416.mdl",
	entity = "m9k_m416_drp",
	price = 5900,
	amount = 10,
	seperate = false,
	pricesep = nil,
	noship = false,
	allowed = {TEAM_ADMIN}
})

DarkRP.createShipment("AK-47", {
	model = "models/weapons/w_ak47_m9k.mdl",
	entity = "m9k_ak47_drp",
	price = 3750,
	amount = 10,
	seperate = false,
	pricesep = nil,
	noship = false,
	allowed = {TEAM_GUN}
})

DarkRP.createShipment("MP5", {
	model = "models/weapons/w_hk_mp5.mdl",
	entity = "m9k_mp5_drp",
	price = 2900,
	amount = 10,
	seperate = false,
	pricesep = nil,
	noship = false,
	allowed = {TEAM_ADMIN}
})

DarkRP.createShipment("UMP45", {
	model = "models/weapons/w_hk_ump45.mdl",
	entity = "m9k_ump45_drp",
	price = 2500,
	amount = 10,
	seperate = false,
	pricesep = nil,
	noship = false,
	allowed = {TEAM_GUN, TEAM_ADMIN}
})

DarkRP.createShipment("UZI", {
	model = "models/weapons/w_uzi_imi.mdl",
	entity = "m9k_uzi_drp",
	price = 1700,
	amount = 10,
	seperate = false,
	pricesep = nil,
	noship = false,
	allowed = {TEAM_GUN, TEAM_ADMIN}
})

//----------------Shotguns

DarkRP.createShipment("Benelli M3", {
	model = "models/weapons/w_benelli_m3.mdl",
	entity = "m9k_m3_drp",
	price = 1900,
	amount = 10,
	seperate = false,
	pricesep = nil,
	noship = false,
	allowed = {TEAM_GUN, TEAM_ADMIN}
})

//----------------Snipers

DarkRP.createShipment("Remington7615P", {
	model = "models/weapons/w_remington_7615p.mdl",
	entity = "m9k_remington7615p_drp",
	price = 4750,
	amount = 10,
	seperate = false,
	pricesep = nil,
	noship = false,
	allowed = {TEAM_GUN, TEAM_ADMIN}
})

//----------------Pistols

DarkRP.createShipment("USP", {
	model = "models/weapons/w_pist_fokkususp.mdl",
	entity = "m9k_usp_drp",
	price = 970,
	amount = 10,
	seperate = false,
	pricesep = nil,
	noship = false,
	allowed = {TEAM_ADMIN}
})

DarkRP.createShipment("HK45", {
	model = "models/weapons/w_hk45c.mdl",
	entity = "m9k_hk45_drp",
	price = 1,
	amount = 10,
	seperate = false,
	pricesep = nil,
	noship = false,
	allowed = {TEAM_ADMIN}
})

DarkRP.createShipment("Colt1911", {
	model = "models/weapons/s_dmgf_co1911.mdl",
	entity = "m9k_colt1911_drp",
	price = 1150,
	amount = 10,
	seperate = false,
	pricesep = nil,
	noship = false,
	allowed = {TEAM_GUN, TEAM_ADMIN}
})

DarkRP.createShipment("Python", {
	model = "models/weapons/w_colt_python.mdl",
	entity = "m9k_coltpython_drp",
	price = 1150,
	amount = 10,
	seperate = false,
	pricesep = nil,
	noship = false,
	allowed = {TEAM_ADMIN, TEAM_ADMIN}
})

DarkRP.createShipment("M92Beretta", {
	model = "models/weapons/w_beretta_m92.mdl",
	entity = "m9k_m92beretta_drp",
    price = 500,
    amount = 10,
    seperate = false,
    pricesep = nil,
    noship = false,
	allowed = {TEAM_GUN, TEAM_ADMIN}
})

DarkRP.createShipment("M92FS", {
	model = "models/weapons/w_pist_m9f.mdl",
	entity = "m9k_m92fs_drp",
	price = 1550,
	amount = 10,
	seperate = false,
	pricesep = nil,
	noship = false,
	allowed = {TEAM_GUN, TEAM_ADMIN}
})

DarkRP.createShipment("Honey Badger", {
	model = "models/weapons/w_aac_honeybadger.mdl",
	entity = "m9k_honeybadger_drp",
	price = 2850,
	amount = 10,
	seperate = false,
	pricesep = nil,
	noship = false,
	allowed = {TEAM_GUN}
})

DarkRP.createShipment("M24", {
	model = "models/weapons/w_snip_m24_6.mdl",
	entity = "m9k_m24_drp",
	price = 5750,
	amount = 10,
	seperate = false,
	pricesep = nil,
	noship = false,
	allowed = {TEAM_GUN}
})


Jobs



TEAM_CITIZEN = AddExtraTeam("Гражданин", {
	color = Color(20, 150, 20, 255),
	model = {
		"models/player/Group01/Female_01.mdl",
		"models/player/Group01/Female_02.mdl",
		"models/player/Group01/Female_03.mdl",
		"models/player/Group01/Female_04.mdl",
		"models/player/Group01/Female_06.mdl",
		"models/player/Group01/Male_02.mdl",
		"models/player/Group01/Male_04.mdl",
		"models/player/Group01/Male_05.mdl",
		"models/player/Group01/Male_06.mdl",
		"models/player/Group01/Male_07.mdl",
		"models/player/Group01/Male_08.mdl",
		"models/player/Group01/Male_09.mdl"
	},
	description = [[
	Обычный гражданин 
	У этой роли нет никаких особенностей
	]],
	weapons = {},
	command = "citizen",
	max = 0,
	salary = 45,
	admin = 0,
	vote = false,
	hasLicense = false,
	candemote = false
})

TEAM_RUGANG = AddExtraTeam("Русский Мафиози", {
	color = Color(255, 128, 0, 255),
	model = "models/humans/mafia/male_08.mdl",
	description = [[
	Член Русской мафии, подчиняется Боссу Русской Мафии.
	Вы никогда не работаете один, за исключением случаев
	когда вы получили личиное задание от Босса.
	]],
	weapons = {},
	command = "rusmaf",
	max = 8,
	salary = 45,
	admin = 0,
	vote = false,
	hasLicense = false
})

TEAM_RUMOB = AddExtraTeam("Босс Русской Мафии", {
	color = Color(215, 110, 255),
	model = "models/humans/mafia/male_07.mdl",
	description = [[
	Босс Русской Мафии, под его контролем все Русские
	мафиози штата, он даёт им задания, имеет право
	наказать за неподчинение или же неуспешное выпол-
	нение задания вплоть до убийства. Так же он
	владеет навыками взлома и может взламывать на-
	ручники и двери.
	]],
	weapons = {"lockpick", "unarrest_stick"},
	command = "rusboss",
	max = 1,
	salary = 60,
	admin = 0,
	vote = false,
	hasLicense = false,
	help = LANGUAGE.bosshelp,
	PlayerDeath = function(ply, weapon, killer)
         if( ply:Team() == TEAM_RUMOB ) then
            ply:changeTeam( GAMEMODE.DefaultTeam, true )
            for k,v in pairs( player.GetAll() ) do
				v:SendLua("GAMEMODE:AddNotify(\"Босс Русской Мафии был убит!\", NOTIFY_GENERIC, 5)")
            end
		ply:SendLua("GAMEMODE:AddNotify(\"Вы умерли!\", NOTIFY_ERROR, 10)")
		ply:SendLua("GAMEMODE:AddNotify(\"Не забывайте о правиле новой жизни(NLR)!\", NOTIFY_GENERIC, 15)")
		end
	end
})

TEAM_ITAGANG = AddExtraTeam("Итальянский Мафиози", {
	color = Color(75, 75, 75, 255),
	model = "models/humans/mafia/male_04.mdl",
	description = [[
	Член Итальянской мафии, подчиняется Боссу Италь-
	янской Мафии. Вы никогда не работаете один, за ислючением 
	случаев когда вы получили личиное задание от Босса.
	]],
	weapons = {},
	command = "itamaf",
	max = 8,
	salary = 45,
	admin = 0,
	vote = false,
	hasLicense = false
})

TEAM_ITAMOB = AddExtraTeam("Босс Итальянской мафии", {
	color = Color(25, 25, 25, 255),
	model = "models/humans/mafia/male_06.mdl",
	description = [[
	Босс Итальянской Мафии, под его контролем все 
	Итальянские мафиози штата, он даёт им задания, имеет право
	наказать за неподчинение или же неуспешное выпол-
	нение задания вплоть до убийства. Так же он
	владеет навыками взлома и может взламывать на-
	ручники и двери.
	]],
	weapons = {"lockpick", "unarrest_stick"},
	command = "itaboss",
	max = 1,
	salary = 60,
	admin = 0,
	vote = false,
	hasLicense = false,
	help = LANGUAGE.bosshelp,
	PlayerDeath = function(ply, weapon, killer)
         if( ply:Team() == TEAM_ITAMOB ) then
            ply:changeTeam( GAMEMODE.DefaultTeam, true )
            for k,v in pairs( player.GetAll() ) do
				v:SendLua("GAMEMODE:AddNotify(\"Босс Итальянской Мафии был убит!\", NOTIFY_GENERIC, 5)")
            end
		ply:SendLua("GAMEMODE:AddNotify(\"Вы умерли!\", NOTIFY_ERROR, 10)")
		ply:SendLua("GAMEMODE:AddNotify(\"Не забывайте о правиле новой жизни(NLR)!\", NOTIFY_GENERIC, 15)")
		end
	end
})

TEAM_MAYOR = AddExtraTeam("Мэр", {
	color = Color(150, 20, 20, 255),
	model = "models/player/breen.mdl",
	description = [[
	Мэр устанавливает в городе законы, управляет эконо-
	микой, даёт особые задания Шефу, Офицерам и Спецназу города.
	Так же он может подтверждать, давать ордеры на обыск и
	устанавливать комендантский час.
	]],
	weapons = {},
	command = "mayor",
	max = 1,
	salary = 85,
	admin = 0,
	vote = true,
	hasLicense = false,
	mayor = true,
	help = LANGUAGE.mayorhelp,
	PlayerDeath = function(ply, weapon, killer)
         if( ply:Team() == TEAM_MAYOR ) then
            ply:changeTeam( GAMEMODE.DefaultTeam, true )
            for k,v in pairs( player.GetAll() ) do
				v:SendLua("GAMEMODE:AddNotify(\"Мэр был убит!\", NOTIFY_ERROR, 5)")
            end
		ply:SendLua("GAMEMODE:AddNotify(\"Вы умерли!\", NOTIFY_ERROR, 10)")
		ply:SendLua("GAMEMODE:AddNotify(\"Не забывайте о правиле новой жизни(NLR)!\", NOTIFY_GENERIC, 15)")
		end
	end
})

TEAM_POLICE = AddExtraTeam("Офицер полиции", {
	color = Color(25, 25, 170, 255),
		model = {
		"models/humans/nypd1940/male_01.mdl",
		"models/humans/nypd1940/male_02.mdl",
		"models/humans/nypd1940/male_03.mdl",
		"models/humans/nypd1940/male_09.mdl",
		"models/humans/nypd1940/male_05.mdl",
		"models/humans/nypd1940/male_07.mdl",
		"models/humans/nypd1940/male_06.mdl",
		"models/humans/nypd1940/male_04.mdl",
		"models/humans/nypd1940/male_08.mdl"
	},
	description = [[
	Офицер полиции, это рядовой сотрудник правоохрани-
	тельных органов. Главной задачей Офицера является 
	поддержание порядка на улицах города.
	Он подчиняется Шефу полиции или Мэру города.
	]],
	weapons = {"arrest_stick", "unarrest_stick", "m9k_usp_drp", "stunstick", "weaponchecker"},
	command = "cp",
	max = 8,
	salary = 65,
	admin = 0,
	vote = false,
	hasLicense = true,
	help = LANGUAGE.cophelp
})

TEAM_SWAT = AddExtraTeam("Спецназ", {
	color = Color(25, 25, 170, 255),
	model = {"models/player/gasmask.mdl",
	"models/player/swat.mdl"
	},
	description = [[
	Коминг сун...
	]],
	weapons = {"door_ram", "m9k_usp_drp", "m9k_m416_drp","weaponchecker"},
	command = "swat",
	max = 4,
	salary = 65,
	admin = 0,
	vote = true,
	hasLicense = true,
	NeedToChangeFrom = TEAM_POLICE,
	help = LANGUAGE.cophelp
})

TEAM_CHIEF = AddExtraTeam("Шеф полиции", {
	color = Color(20, 20, 255, 255),
	model = "models/elispolice/police.mdl",
	description = [[
	Шеф полиции является высшим должностым лицом пра-
	воохранительных органов города. Он координирует действия
	офицеров и выполняет задачи поставленные мэром.
	]],
	weapons = {"arrest_stick", "unarrest_stick", "m9k_hk45_drp", "m9k_mp5_drp","stunstick", "door_ram", "weaponchecker"},
	command = "chief",
	max = 1,
	salary = 75,
	admin = 0,
	vote = true,
	hasLicense = true,
	NeedToChangeFrom = TEAM_POLICE,
	help = LANGUAGE.cophelp,
	chief = true
})

TEAM_MEDIC = AddExtraTeam("Доктор", {
	color = Color(47, 79, 79, 255),
	model = "models/player/kleiner.mdl",
	description = [[
	Задача доктора лечить людей, без него в городе никто
	не сможет вылечиться от болезней.
	]],
	weapons = {"med_kit"},
	command = "medic",
	max = 4,
	salary = 45,
	admin = 0,
	vote = false,
	hasLicense = false,
	medic = true
})

TEAM_GUN = AddExtraTeam("Торговец оружием", {
	color = Color(255, 140, 0, 255),
	model = "models/player/monk.mdl",
	description = [[
	Торговец Оружием, единственный человек в городе который
	может продавать оружие, однако не стоит забывать, что
	торговля оружием без лицензии является нелегальной.
	]],
	weapons = {},
	command = "gundealer",
	max = 3,
	salary = 45,
	admin = 0,
	vote = false,
	hasLicense = false
})

TEAM_HOBO = AddExtraTeam("Бомж", {
	color = Color(80, 45, 0, 255),
	model =	{"models/player/Group01/Male_01.mdl",
		"models/player/Group01/Male_03.mdl"},
	description = [[
	Бомж, бедный человек не имеющий крыши над головой.
	Вы можете построить домик из мусора или коробок на улице,
	попрашайничайте у прохожих, можете спеть им или станцевать.
	Не смотря на то, что бомж не имеет дома, он получает от го-
	рода регулярные выплаты, в помощь бедным.
	]],
	weapons = {"weapon_bugbait"},
	command = "hobo",
	max = 0,
	salary = 5,
	admin = 0,
	vote = false,
	hasLicense = false,
	candemote = false,
	hobo = true
})

//ADD CUSTOM TEAMS UNDER THIS LINE:
/*
TEAM_ADMIN = AddExtraTeam("Админ", {
	color = Color(25, 25, 25, 255),
	model = "models/player/Group01/Male_09.mdl",
	description = [[
	Не участвует в RP режиме, занимается разработкой мода...
	]],
	weapons = {"lockpick", "unarrest_stick"},
	command = "adminjobReich",
	max = 1,
	salary = 1000,
	admin = 1,
	vote = false,
	hasLicense = false,
})
*/

TEAM_SECURITY = AddExtraTeam("Охранник", {
	color = Color(0, 80, 0, 255),
	model = "models/player/barney.mdl",
	description = [[
	Вы можете создать агенство безопасности, некий
	союз всех Охранников города и предлагать свои ус-
	луги за некую оплату, или же работать в одиночку.
	]],
	weapons = {"stunstick", "weaponchecker"},
	command = "securityjob",
	max = 0,
	salary = 80,
	admin = 0,
	vote = false,
	hasLicense = true
})

TEAM_SECURITY = AddExtraTeam("Адвокат", {
	color = Color(100, 100, 100, 255),
	model = "models/gman.mdl",
	description = [[
	Задача адвоката защищать права заключённых,
	разоблачать правительственных коррупционеров и
	любыми способами добиваться каких бы то ни было
	поблажек для заключённых.
	]],
	weapons = {},
	command = "advokatthejob",
	max = 1,
	salary = 90,
	admin = 0,
	vote = false,
	hasLicense = false
})

TEAM_BANKIR = AddExtraTeam("Банкир", {
	color = Color(180, 90, 35, 255),
	model = "models/player/hostage/hostage_02.mdl",
	description = [[
	Вы можете создать собственный банк, и собственно выполнять его функции или
	же например получать на хранение MoneyPrinter'ы горожан, 
	забирая процент от напечатанных денег.
	]],
	weapons = {},
	command = "bankirthejob",
	max = 2,
	salary = 90,
	admin = 0,
	vote = false,
	hasLicense = false
})

TEAM_ROBBER = AddExtraTeam("Вор", {
	color = Color(155, 155, 155, 255),
	model = "models/player/arctic.mdl",
	description = [[
	Вы вор, можете работать на одну из сторон гангстеров или правительство, 
	а можете работать в одиночку.
	]],
	weapons = { "lockpick" },
	command = "robberthejob",
	max = 3,
	salary = 30,
	admin = 0,
	vote = false,
	hasLicense = false
})

TEAM_HITMAN = AddExtraTeam("Наёмный убийца", {
	color = Color(155, 50, 0, 255),
	model = "models/player/leet.mdl",
	description = [[
	Вы человек, который знает цену жизни, принимаете заказы и выполняете их.
	Только не забывайте о правилах Role Play режима.
	]],
	weapons = {},
	command = "hitmanthejob",
	max = 1,
	salary = 150,
	admin = 0,
	vote = false,
	hasLicense = false,
	customCheck = function(ply) return ply:GetUserGroup() == "donator" or ply:IsAdmin() end,
	CustomCheckFailMsg = "Только для V.I.P.!",
	PlayerDeath = function(ply, weapon, killer)
         if( ply:Team() == TEAM_RUMOB ) then
            ply:changeTeam( GAMEMODE.DefaultTeam, true )
            for k,v in pairs( player.GetAll() ) do
				v:SendLua("GAMEMODE:AddNotify(\"Наёмный убийца был убит!\", NOTIFY_GENERIC, 5)")
            end
		ply:SendLua("GAMEMODE:AddNotify(\"Вы умерли!\", NOTIFY_ERROR, 10)")
		ply:SendLua("GAMEMODE:AddNotify(\"Не забывайте о правиле новой жизни(NLR)!\", NOTIFY_GENERIC, 15)")
		end
	end
})

-- Compatibility for when default teams are disabled
TEAM_CITIZEN = TEAM_CITIZEN  or -1
TEAM_POLICE  = TEAM_POLICE   or -1
TEAM_GANG    = TEAM_GANG     or -1
TEAM_MOB     = TEAM_MOB      or -1
TEAM_GUN     = TEAM_GUN      or -1
TEAM_MEDIC   = TEAM_MEDIC    or -1
TEAM_CHIEF   = TEAM_CHIEF    or -1
TEAM_MAYOR   = TEAM_MAYOR    or -1
TEAM_HOBO    = TEAM_HOBO     or -1


/*
--------------------------------------------------------
HOW TO MAKE A DOOR GROUP
--------------------------------------------------------
AddDoorGroup("NAME OF THE GROUP HERE, you see this when looking at a door", Team1, Team2, team3, team4, etc.)


The default door groups, can also be used as examples:
*/
AddDoorGroup("Правительство города", TEAM_CHIEF, TEAM_POLICE, TEAM_MAYOR)
AddDoorGroup("Торговец оружия", TEAM_GUN)


/*
--------------------------------------------------------
HOW TO MAKE AN AGENDA
--------------------------------------------------------
AddAgenda(Title of the agenda, Manager (who edits it), Listeners (the ones who just see and follow the agenda))

The default agenda's, can also be used as examples:
*/
AddAgenda("Приказы Итальянского босса", TEAM_ITAMOB, {TEAM_ITAGANG})
AddAgenda("Приказы Русского босса", TEAM_RUMOB, {TEAM_RUGANG})
AddAgenda("Действующие приказы мэра", TEAM_MAYOR, {TEAM_CHIEF, TEAM_POLICE})


/*
---------------------------------------------------------------------------
HOW TO MAKE A GROUP CHAT
---------------------------------------------------------------------------
Pick one!
GAMEMODE:AddGroupChat(List of team variables separated by comma)

or

GAMEMODE:AddGroupChat(a function with ply as argument that returns whether a random player is in one chat group)
This one is for people who know how to script Lua.

*/
GM:AddGroupChat(function(ply) return ply:isCP() end)
GM:AddGroupChat(TEAM_RUMOB, TEAM_RUGANG)
GM:AddGroupChat(TEAM_ITAMOB, TEAM_ITAGANG)
/*---------------------------------------------------------------------------
Define which team joining players spawn into and what team you change to if demoted
---------------------------------------------------------------------------*/
GM.DefaultTeam = TEAM_CITIZEN

/*---------------------------------------------------------------------------
Define which teams belong to civil protection
Civil protection can set warrants, make people wanted and do some other police related things
---------------------------------------------------------------------------*/
GM.CivilProtection = {
	[TEAM_POLICE] = true,
	[TEAM_SWAT] = true,
	[TEAM_CHIEF] = true,
	[TEAM_MAYOR] = true,
}

/*---------------------------------------------------------------------------
Enable hitman goodies on this team
---------------------------------------------------------------------------*/
DarkRP.addHitmanTeam(TEAM_HITMAN)


Need heeeelp. :frowning:

you probably havent made add.resources?

It’s resource.AddFile and that’s not what he’s looking for as he uses Workshop.

OP, you want to take a look at resource.AddWorkshop

I will clarify the problem.

Look at image:
CLICK HERE TO SEE BIG IMAGE

Example: UZI.
Look at shipment.
You see that UZI is ok as “World Prop” and without “ERROR”'s.
But i don’t know why, in “F4” preview icon shows ERROR!?
And it’s happen with some other weapons but “Banelli M3” and “Colt”. I have no idea. I check model folder and etc. all ok.

Please, help.

Have you made a resource.AddWorkshop file yet?

Go to sandbox and rerender those icons.

He hasn’t sent those world models to clients though, so they won’t be able to see them anyways.

You read my last post?

I’ve added resource.AddWorkshop but it’s not fixed “ERROR” in icon preview.

http://gifok.net/images/2013/12/10/iIea9.png

Fixed/Solved.
Problem was in that my gmod was in old directory - “steamapps/USERNAME/garrysmod”. Reinstalled it.
Thank you all for help.