• TTT Server Playermodels turning to default! HELP
    11 replies, posted
So on my garry's mod server, I have compressed up an gma with all the downloadable files players need for the playermodels to function properly. I have then uploaded that to an addon on the steam workshop. Players can see all the textures no problem and the models are working. Pre-round everyone has their models on and everything is normal. But then the round starts, and everyone's models go to the default terrorist model. If you slay yourself pre-round and spawn in the model seems to work fine, and when you use the TTT Admin !respawn command it works also. I figure this has something to do with the round-commencing functions but I have tried for a long period of time and can't seem to figure out the issue. [U]Please help[/U] [B]I am using the pointshop-master addon for my models.[/B]
How long ago did you update your pointshop? Can you post code from one of your playermodels?
[CODE]ITEM.Name = 'Combine Heavy' ITEM.Price = 5000 ITEM.Model = 'models/player/01ar_combine_soldier01.mdl' ITEM.AllowedUserGroups = {"operator", "admin", "superadmin", "manager", "developer"} 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[/CODE]
Add [code]function ITEM:PlayerSetModel(ply) ply:SetModel(self.Model) end[/code] to the bottom of that.
Would that be under the [CODE] end end[/CODE]?
Yes.
hmm [editline]31st March 2014[/editline] It seems that sometimes, one persons model stays and the others don't... this is quite confusing
Something could be possibly overriding your timer. Change the time in your timer.Simple to 3. That should be plenty of time.
That didn't want to work either [editline]1st April 2014[/editline] It stays for me but not for others.
Create a separate timer then.
How would one do that. Sorry I'm pretty bad at this stuff. [editline]1st April 2014[/editline] It's just the half life 2 models that don't stay, and when I try and add [CODE]function ITEM:PlayerSetModel(ply) ply:SetModel(self.Model) end[/CODE] it just removes it from the point shop.
When did you last update pointshop?
Sorry, you need to Log In to post a reply to this thread.