• Custom Models for DarkRP classes.
    1 replies, posted
So recently I was working on a editted version of darkrp, and wanted to use custom models. [url]http://www.garrysmod.org/downloads/?a=view&id=84826[/url] I downloaded the models, put them in my servers garrysmod folder and the darkrp content folder. Then I Bzipped the files and put them into my fastdl folder. Finally, I made a resource file in my lua/autorun to make sure they download. [code] if (SERVER) then resource.AddFile( "models/player/Group02/Tale_01.mdl" ) resource.AddFile( "models/player/Group02/tale_03.mdl" ) resource.AddFile( "models/player/Group02/tale_04.mdl" ) resource.AddFile( "models/player/Group02/tale_05.mdl" ) resource.AddFile( "models/player/Group02/tale_06.mdl" ) resource.AddFile( "models/player/Group02/tale_07.mdl" ) resource.AddFile( "models/player/Group02/tale_08.mdl" ) resource.AddFile( "models/player/Group02/tale_09.mdl" ) resource.AddFile( "models/player/Group02/Temale_01.mdl" ) resource.AddFile( "models/player/Group02/temale_02.mdl" ) resource.AddFile( "models/player/Group02/temale_07.mdl" ) resource.AddFile( "materials/models/player/male/group02/MaleSurvivor1.vmt" ) resource.AddFile( "materials/models/player/male/group02/MaleSurvivor1.vtf" ) resource.AddFile( "materials/models/player/male/group02/MaleSurvivor4.vmt" ) resource.AddFile( "materials/models/player/male/group02/MaleSurvivor4.vtf" ) resource.AddFile( "materials/models/player/male/group02/MaleSurvivor7.vmt" ) resource.AddFile( "materials/models/player/male/group02/MaleSurvivor7.vtf" ) resource.AddFile( "materials/models/player/male/group02/MaleSurvivor9.vmt" ) resource.AddFile( "materials/models/player/male/group02/MaleSurvivor9.vtf" ) resource.AddFile( "materials/models/player/male/group02/MaleSurvivord.vmt" ) resource.AddFile( "materials/models/player/male/group02/MaleSurvivord.vtf" ) resource.AddFile( "materials/models/player/male/group02/MaleSurvivore.vmt" ) resource.AddFile( "materials/models/player/male/group02/MaleSurvivore.vtf" ) resource.AddFile( "materials/models/player/male/group02/MaleSurvivorr.vmt" ) resource.AddFile( "materials/models/player/male/group02/MaleSurvivorr.vtf" ) resource.AddFile( "materials/models/player/male/group02/MaleSurvivors.vmt" ) resource.AddFile( "materials/models/player/male/group02/MaleSurvivors.vtf" ) resource.AddFile( "materials/models/player/male/group02/MaleSurvivorz.vmt" ) resource.AddFile( "materials/models/player/male/group02/MaleSurvivorz.vtf" ) resource.AddFile( "materials/models/player/female/group02/Fem_Survivor1.vmt" ) resource.AddFile( "materials/models/player/female/group02/Fem_Survivor1.vtf" ) resource.AddFile( "materials/models/player/female/group02/Fem_Survivor2.vmt" ) resource.AddFile( "materials/models/player/female/group02/Fem_Survivor2.vtf" ) resource.AddFile( "materials/models/player/female/group02/Fem_Survivor6.vmt" ) resource.AddFile( "materials/models/player/female/group02/Fem_Survivor6.vtf" ) resource.AddFile( "materials/models/player/female/group02/Fem_Survivor7.vmt" ) resource.AddFile( "materials/models/player/female/group02/Fem_Survivor7.vtf" ) end [/code] For the class part of the shared.lua, it looks like this: [code] TEAM_CITIZEN = AddExtraTeam("Citizen", { color = Color(20, 150, 20, 255), model = { "models/player/Group02/Tale_01.mdl", "models/player/Group01/Female_06.mdl", "models/player/group01/male_01.mdl", "models/player/Group01/Male_02.mdl", "models/player/Group01/male_03.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 = [[The Citizen is the most basic level of society you can hold besides being a hobo. You have no specific role in city life.]], weapons = {}, command = "citizen", max = 0, salary = 45, admin = 0, vote = false, hasLicense = false, candemote = false }) [/code] I started the server and the models download, but when I go to choose the class with that model, it's an error. I only set one model as an option for that class, just to test it. But it doesn't even work... Edit: Got the model to work, now they are stick figures only though :/ Help?
Which models are "stick figures"? Models are usually "T-Formed" when the model you are trying to use is not an actual "player model". Check your sources to see if it is a player model or not. Garrysmod was just updated recently, adding the civilian medic player models, and rebels player models. edit: Awkward, he was banned..
Sorry, you need to Log In to post a reply to this thread.