Garry's Mod

[Request] Help me with my player model in pointshop

Submitted by JN Pudding, , Thread ID: 190492

Thread Closed
14-12-2020, 05:31 PM
#1
I have a problem that when I unequip a playermodel, the hand of the previous model remains the same, I will leave the code below for those who want to help me.



This is what is happening:
[Image: qJA2A7x.png]



playermodel.lua:

ITEM.Name = 'Dat Boi'
ITEM.Price = 250
ITEM.Model = 'models/datboi/datboi_reference.mdl'

function ITEM:OnEquip(ply, modifications)
if not ply._OldModel then
ply._OldModel = ply:GetModel()
end

timer.Simple(2, function() ply:SetModel(self.Model) ply:SetupHands() end)
end

function ITEM:OnHolster(ply)
if ply._OldModel then
ply:SetModel(ply._OldModel)
end
end

function ITEMTonguelayerSetModel(ply)
ply:SetModel(self.Model)
end




Please, I need your help !!

Users browsing this thread: 1 Guest(s)