• How Do I add modification color pointshop followers addon?
    0 replies, posted
Tried finding a way to do this to color the ballon dog for the addon pointshop pet followers [url]https://www.youtube.com/watch?v=vTqoEhm9vfQ[/url] video showing what I want just for pet followers would DModelPanel:SetColor work or Entity:SetColor? pls help [CODE] ITEM.Name = 'Dog' ITEM.Price = 1000 ITEM.Model = 'models/balloons/balloon_dog.mdl' ITEM.Follower = 'dog' ITEM.AllowedUserGroups = { "donator", "admin", "superadmin" } function ITEM:OnEquip(ply, modifications) ply:Fo_CreateFollower( self.Follower ) end function ITEM:OnHolster(ply) ply:Fo_RemoveFollower( self.Follower ) end[/CODE] I know this is a stupid question but could I use the code similar below for the playermodel modifcation color and replace ply:SetPlayerColor or something similar? [CODE] function ITEM:OnEquip(ply, modifications) if not ply._OldModel then ply._OldModel = ply:GetModel() end if modifications.color ~= nil then borkolor = modifications.color ply:SetPlayerColor(Vector( borkolor.r / 255, borkolor.g / 255, borkolor.b / 255)) 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) ply:SetPlayerColor(Vector(0.24, 0.34, 0.41)) --Default color, according to my research end end function ITEM:Modify(modifications) PS:ShowColorChooser(self, modifications) end function ITEM:OnModify(ply, modifications) self:OnHolster(ply) self:OnEquip(ply, modifications) -- adds the item back again, with new mods end [/CODE]
Sorry, you need to Log In to post a reply to this thread.