• Force Download for player models [Help!]
    2 replies, posted
So I've been trying to add in custom player models, but so far people just see a giant error sign for the model. I've put the resources in garrysmod/lua/autorun/server/resources.lua (Its a dedicated server, through FileZilla) Here's the code for the custom model I did for it : --billy mays resource.AddFile( "models/player/billymays.mdl" ) resource.AddFile( "models/player/billymays.dx80.vtx" ) resource.AddFile( "models/player/billymays.dx90.vtx" ) resource.AddFile( "models/player/billymays.phy" ) resource.AddFile( "models/player/billymays.sw.vtx" ) resource.AddFile( "models/player/billymays.vvd" ) resource.AddFile( "materials/models/player/Billy/arms.vmt" ) resource.AddFile( "materials/models/player/Billy/arms.vtf" ) resource.AddFile( "materials/models/player/Billy/citizen_sheet.vmt" ) resource.AddFile( "materials/models/player/Billy/citizen_sheet.vtf" ) resource.AddFile( "materials/models/player/Billy/ted_facemap.vmt" ) resource.AddFile( "materials/models/player/Billy/ted_facemap.vtf" ) resource.AddFile( "materials/models/BILLYMAYS/arms.vmt" ) resource.AddFile( "materials/models/BILLYMAYS/arms.vtf" ) resource.AddFile( "materials/models/BILLYMAYS/citizen_sheet.vmt" ) resource.AddFile( "materials/models/BILLYMAYS/citizen_sheet.vtf" ) resource.AddFile( "materials/models/BILLYMAYS/ted_facemap.vmt" ) resource.AddFile( "materials/models/BILLYMAYS/ted_facemap.vtf" ) Please help :(
Put this in lua/autorun/server: [code]if SERVER then resource.AddFile("models/player/billymays.mdl") resource.AddFile("models/player/billymays.dx80.vtx") resource.AddFile("models/player/billymays.dx90.vtx") resource.AddFile("models/player/billymays.phy" ) resource.AddFile("models/player/billymays.sw.vtx") resource.AddFile("models/player/billymays.vvd") resource.AddFile("materials/models/player/Billy/arms.vmt") resource.AddFile("materials/models/player/Billy/arms.vtf") resource.AddFile("materials/models/player/Billy/citizen_sheet.vmt") resource.AddFile("materials/models/player/Billy/citizen_sheet.vtf") resource.AddFile("materials/models/player/Billy/ted_facemap.vmt") resource.AddFile("materials/models/player/Billy/ted_facemap.vtf") resource.AddFile("materials/models/BILLYMAYS/arms.vmt") resource.AddFile("materials/models/BILLYMAYS/arms.vtf") resource.AddFile("materials/models/BILLYMAYS/citizen_sheet.vmt") resource.AddFile("materials/models/BILLYMAYS/citizen_sheet.vtf") resource.AddFile("materials/models/BILLYMAYS/ted_facemap.vmt") resource.AddFile("materials/models/BILLYMAYS/ted_facemap.vtf") end[/code]
[QUOTE=Im_Drew;41865717]Put this in lua/autorun/server: [code]if SERVER then resource.AddFile("models/player/billymays.mdl") resource.AddFile("models/player/billymays.dx80.vtx") resource.AddFile("models/player/billymays.dx90.vtx") resource.AddFile("models/player/billymays.phy" ) resource.AddFile("models/player/billymays.sw.vtx") resource.AddFile("models/player/billymays.vvd") resource.AddFile("materials/models/player/Billy/arms.vmt") resource.AddFile("materials/models/player/Billy/arms.vtf") resource.AddFile("materials/models/player/Billy/citizen_sheet.vmt") resource.AddFile("materials/models/player/Billy/citizen_sheet.vtf") resource.AddFile("materials/models/player/Billy/ted_facemap.vmt") resource.AddFile("materials/models/player/Billy/ted_facemap.vtf") resource.AddFile("materials/models/BILLYMAYS/arms.vmt") resource.AddFile("materials/models/BILLYMAYS/arms.vtf") resource.AddFile("materials/models/BILLYMAYS/citizen_sheet.vmt") resource.AddFile("materials/models/BILLYMAYS/citizen_sheet.vtf") resource.AddFile("materials/models/BILLYMAYS/ted_facemap.vmt") resource.AddFile("materials/models/BILLYMAYS/ted_facemap.vtf") end[/code][/QUOTE]It works :D thank you, but the thing is only some people are downloading it and some see errors for player model and some see it perfectly. Do you know the problem ?
Sorry, you need to Log In to post a reply to this thread.