Community
All Features
Overview of all exisiting features.
Arcade
Play various games in the arcade.
Awards
Earn awards for different tasks.
Bug Tracker
Report site related bugs the right way.
Credits
Everything related to credits.
Groups
A list of user run groups you can join.
Help Center
Official regulations and help documents.
Member List
A list of all registered members.
Latest Announcements
Staff Recruitment | September 2022
Changelog #34 - 03/04/2022
April Update - Index Redesign and Unlock Content Experiment
Support
Shop
Upgrade
Log In
Create Account
NulledBB
General
Gaming
Garry's Mod
[Request] Help me with my player model in pointshop
Create an account
Login
USE CODE
BLACKFRIDAY
DURING CHECKOUT FOR
25% OFF ON ALL PURCHASES
—
ONLY 100 COUPONS AVAILABLE
PrivateAlps.net - Offshore Cloud Services | VPS/RDP/VPN - Dedicated Servers - Webhosting - TOR Services - Auto Deploy
Garry's Mod
[Request] Help me with my player model in pointshop
Submitted by JN Pudding,
14-12-2020, 05:31 PM
, Thread ID: 190492
Thread Closed
Reply
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:
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 ITEM
layerSetModel(ply)
ply:SetModel(self.Model)
end
Please, I need your help !!
More
Users browsing this thread: 1 Guest(s)