• Garry's Mod TTT Point Shop Help.
    5 replies, posted
I would like to add new player models to my TTT server point shop. I have no idea how t, if you could help it would be much appreciated.
Take your item file. Fill it out. Here's an example from the actual pointshop itself that you are able to edit: [CODE]ITEM.Name = 'Kleiner' ITEM.Price = 250 ITEM.Model = 'models/player/kleiner.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[/CODE] Now, lets say you want to make it Alyx instead. [CODE]ITEM.Name = 'Alyx' ITEM.Price = 375 ITEM.Model = 'models/player/alyx.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[/CODE] That is all you have to do. Look between the two different codes and see what I changed only. Once you have it, take the .lua file and place it into pointshop/lua/items/playermodels/ Then just change the map and there you go, it's in the shop. [B]NOTE:[/B] If you are adding a custom player model like my server has, then you will need to add force-downloads. I'm assuming you know how to do this but just reminding you.
Wait, I thought TTT dose not let the user change there player model? When i ran TTT, the pointshop didn't change the user's player model. Hmm
Thanks for the help. How the fuck is this a dumb question to whoever said it was. xD
Before coming here I also tried add ALYX as a test ITEM.Model = 'models/player/alyx.mdl' That didnt work, you had to change it to, ITEM.Model = 'models/alyx.mdl'
This was very helpful. Thank you.
Sorry, you need to Log In to post a reply to this thread.