I have a problem!
I changed the model of skin in PointShop (items)
[URL=http://google.kz][IMG]http://i12.pixs.ru/storage/4/9/6/Bezimyanff_3376967_24694496.jpg[/IMG][/URL]
My item in PointShop :
[URL=http://pixs.ru/showimage/Bezimyanff_2983972_24694506.jpg][IMG]http://i12.pixs.ru/storage/5/0/6/Bezimyanff_2983972_24694506.jpg[/IMG][/URL]
Code :
[CODE]/* ───────────────────────────────────────────────────────────────
This Item is Created by RocketMania's Pointshop Item Maker
─────────────────────────────────────────────────────────────── */
ITEM.Name = 'Write Item Name here'
ITEM.Price = 200
ITEM.Model = 'models/sal/halloween/headwrap1.mdl'
ITEM.Skin = 3
ITEM.Bone = 'ValveBiped.Bip01_Head1'
function ITEM:OnEquip(ply, modifications)
ply:PS_AddClientsideModel(self.ID)
end
function ITEM:OnHolster(ply)
ply:PS_RemoveClientsideModel(self.ID)
end
function ITEM:ModifyClientsideModel(ply, model, pos, ang)
local Size = Vector(1,1,1)
local mat = Matrix()
mat:Scale(Size)
model:EnableMatrix('RenderMultiply', mat)
local MAngle = Angle(267.64999389648,0,278.60998535156)
local MPos = Vector(0,0,0)
pos = pos + (ang:Forward() * MPos.x) + (ang:Up() * MPos.z) + (ang:Right() * MPos.y)
ang:RotateAroundAxis(ang:Forward(), MAngle.p)
ang:RotateAroundAxis(ang:Up(), MAngle.y)
ang:RotateAroundAxis(ang:Right(), MAngle.r)
return model, pos, ang
end
/* ───────────────────────────────────────────────────────────────
Item Maker has finished work. Copy to here.
─────────────────────────────────────────────────────────────── */[/CODE]
but skin 3 :
[URL=http://pixs.ru/showimage/1yjpg_7211413_24694540.jpg][IMG]http://i12.pixs.ru/storage/5/4/0/1yjpg_7211413_24694540.jpg[/IMG][/URL]
Skin model does not change
[QUOTE=Moat;51643354]The Skin variable sets the skin of the item in the pointshop menu. (not when it is on the player)
Use [img]http://wiki.garrysmod.com/favicon.ico[/img] [url=http://wiki.garrysmod.com/page/Entity/SetSkin]Entity:SetSkin[/url] on the model argument in your ModifyClientsideModel function.[/QUOTE]
Entity:SetSkin(3)? yeah?
[editline]11th January 2017[/editline]
[QUOTE=Moat;51643354]The Skin variable sets the skin of the item in the pointshop menu. (not when it is on the player)
Use [img]http://wiki.garrysmod.com/favicon.ico[/img] [url=http://wiki.garrysmod.com/page/Entity/SetSkin]Entity:SetSkin[/url] on the model argument in your ModifyClientsideModel function.[/QUOTE]
thanks man! You awesome!! I love you
Sorry, you need to Log In to post a reply to this thread.