Player Models in Point shop.

Post Reply
xXSammiXx
New to forums
New to forums
Posts: 9
https://www.youtube.com/channel/UC40BgXanDqOYoVCYFDSTfHA
Joined: Mon Apr 22, 2013 8:48 am

Player Models in Point shop.

Post by xXSammiXx »

So I can get the basic models to show up into the pointshop. The pictures work the price is set. you click buy and yes to confirm your buy, but then nothing happens from there. My lua for the Alyx skin is.

ITEM.Name = 'Alyx'
ITEM.Price = 10000
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)
endend


Any thing wrong with this? or is there something else i need to do to get it to work. I know the files for Alyx are in the game i can access the model files and material files.
Swagga
New to forums
New to forums
Posts: 4
Joined: Sun Apr 28, 2013 9:06 am

Re: Player Models in Point shop.

Post by Swagga »

Oh yes please, someone has got to make a guide to the pointshop addon :D
I think it will be very helpful to everyone. :wink:
Post Reply