Here is a short version of my question if someone doesn’t want to read the whole post. Give me the simplest way to force my players to download a player model, so it doesn’t show up as an error in the server. I have FastDL set up but I’m unsure how to use it properly (Where should I place the player model files etc.)
So far I have only managed to force players download the model files, but they are still errors.
So now to the detailed explanation…
Hey. Basically I’ve spent last 5 hrs trying to fix this problem on my TTT server and nothing seems to work.
I’m using the newest Pointshop (1.1.0) version and FastDL is not working properly. I’ve added many different hats,heads and masks and they’re fine but player models are errors.
I’ve added a file called c_arms_ryuko.lua to my garrysmod/addons/pointshop-1.1.0/lua/pointshop/items/playermodels folder
ITEM.Name = 'c_arms_ryuko' ITEM.Price = 0 ITEM.Model = 'models/weapons/c_arms_ryuko.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 if (SERVER) then player_manager.AddValidModel( "c_arms_ryuko", "models/weapons/c_arms_ryuko.mdl" ) AddCSLuaFile( "c_arms_ryuko.lua" ) end list.Set( "PlayerOptionsModel", "c_arms_ryuko", "models/weapons/c_arms_ryuko.mdl" )
I used fox-warriors resources generator to generate resource.AddFile’s and I created a lua file called forcedownloads.lua to garrysmod/lua/autorun/server folder.
I inserted the player model’s lua,materials and models folder to my garrysmod root directory and when anyone connects to my server it succesfully downloads the player model files but they are still errors for everyone.
player_manager.AddValidModel( "Ryuuko", "models/player/Ryuko.mdl" ) list.Set( "PlayerOptionsModel", "Ryuuko", "models/player/Ryuko.mdl") player_manager.AddValidHands( "Ryuuko", "models/weapons/c_arms_ryuko.mdl", 0, "11" )
Any help would be appreciated, I’ve run out of ideas so I decided to create a thread here. Thank you in advance.