Recently i added a addon called point shop, the problem is that when i install the models onto the server, it will show up as big huge errors. I have created the lua files needed for the player models to load and i have also used resource.add so that people can download the models needed.
This is on of the lua files
ITEM.Name = 'Carnage Jamis'
ITEM.Price = 8
ITEM.Model = 'models/player/slow/jamis/slow.mdl'
function ITEM:OnEquip(ply, modifications)
if not ply._OldModel then
ply._OldModel = ply:GetModel()
end
timer.Simple(1, function() ply:SetModel(self.Model) end)
end
function ITEM:OnHolster(ply)
if ply._OldModel then
ply:SetModel(ply._OldModel)
end
end
function ITEM:PlayerSetModel(ply)
ply:SetModel(self.Model)
end
And the is one of the resource.lua
resource.AddFile("models/player/slow/jamis/slow.mdl") //carnage
You need to add the file to your FastDL server.
[QUOTE=code_gs;42836606]You need to add the file to your FastDL server.[/QUOTE]
The file downloads and everything but it just shows up as errors.
[QUOTE=monstermega10;42839009]The file downloads and everything but it just shows up as errors.[/QUOTE]
Just because its in your FastDL does not mean its downloading,
You have to create a lua. ('lua/autorun/') and create a file called 'fastdl.lua' and put the following.
[QUOTE]
if SERVER then
resource.AddFile("models/players/derp.mdl")
resource.AddFile("models/players/derp.phy")
resource.AddFile("materials/players/derp/right_eye.vtf")
end[/QUOTE]
The reason we do this is to add the resource to the servers registry (aka making it download) but it shall download to whatever URL is selected as FastDL.
The resource.AddFile() can be generated by a program called 'Fox Warrior Resource Generator'
[QUOTE=Tehepicford;42839586]Just because its in your FastDL does not mean its downloading,
You have to create a lua. ('lua/autorun/') and create a file called 'fastdl.lua' and put the following.
The reason we do this is to add the resource to the servers registry (aka making it download) but it shall download to whatever URL is selected as FastDL.
The resource.AddFile() can be generated by a program called 'Fox Warrior Resource Generator'[/QUOTE]
He already said he had a resource.lua file. Also, he doesn't need to use Fox Warrior's generator for 1 file.
[QUOTE=code_gs;42839610]He already said he had a resource.lua file. Also, he doesn't need to use Fox Warrior's generator for 1 file.[/QUOTE]
I didn't read the whole thing, I do that a lot :/
I only read the title ._.
I've had this problem with Star Wars Characters, I don't think it's curable, because I've tried every method possible, yet I haven't got anywhere. It's possibly a model error? (I'm not an expert when it comes to modelling.)
Can you send me a link to the model? I'll put it on my test server and see of it works.
If someone has this working may you please help me? I currently have 6 player models and they each have a lua file. But shows up as errors
[QUOTE=monstermega10;42842713]If someone has this working may you please help me? I currently have 6 player models and they each have a lua file. But shows up as errors[/QUOTE]
Send me the models and I'll test them and give you the code necessary.
[QUOTE=code_gs;42842789]Send me the models and I'll test them and give you the code necessary.[/QUOTE]
Does those files work by any chance or..
bump
when i tried adding the extra items, it also shows up as error. It downloads and everything but just big red errors
[url]http://facepunch.com/showthread.php?t=1228438[/url]
This post is dead, i guess i should close it
Sorry, you need to Log In to post a reply to this thread.