[url]http://steamcommunity.com/sharedfiles/filedetails/?id=107632279[/url]
I have tried adding the above black rock shooter skin to my TTT server pointshop, but when I do so the player model just T Poses, while it works fine in single player. I have used the same method to add GMod Tower skins to my pointshop, and they all worked fine, and this method is by adding the addon to a collection, that is downloaded to my game server, and using resource.AddWorkshop("id") to get the clients to downlaod it. Thanks for any help you can offer.
[code]ITEM.Name = 'Black Rock Shooter'
ITEM.Price = 25000
ITEM.Model = 'models/brs.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
[/code]
Iirc the BRS model also comes with a ragdoll. Make sure you're using the correct .mdl for the model and not the ragdoll.
I'm using the same model that the .lua file that came with it is using:
[code]local Category = "XenoAisam"
local NPC = {
Name = "BRS",
Class = "npc_citizen",
KeyValues = { citizentype = 4 },
Model = "models/brs.mdl",
Health = "500",
Category = Category
}
list.Set( "NPC", "npc_brs", NPC )
local NPC = {
Name = "BRS",
Class = "npc_citizen",
KeyValues = { citizentype = 4 },
Model = "models/brs_noc.mdl",
Health = "500",
Category = Category
}
list.Set( "NPC", "npc_brs_noc", NPC )[/code]
That's the model for NPC, not the player model. Open sandbox, and browse through addons.
Sorry, you need to Log In to post a reply to this thread.