Player Paint?

Post Reply
HardForBrandon
New to forums
New to forums
Posts: 11
https://www.youtube.com/channel/UC40BgXanDqOYoVCYFDSTfHA
Joined: Mon Apr 06, 2015 10:30 pm

Player Paint?

Post by HardForBrandon »

I've searched and I've searched. I've asked many, many people. I cannot seem to find player paint ANYWHERE for the pointshop.
Can someone PLEASE help me?
HardForBrandon
New to forums
New to forums
Posts: 11
Joined: Mon Apr 06, 2015 10:30 pm

Re: Player Paint?

Post by HardForBrandon »

Nevermind, I just coded it myself.

Code: Select all

ITEM.Name = 'Player Paint'
ITEM.Price = 250
ITEM.Model = 'models/props_junk/metal_paintcan001a.mdl'
ITEM.Attachment = 'eyes'


function ITEM:OnEquip(ply, modifications)
	
	if modifications.color ~= nil then
		newcolor = modifications.color
	ply:SetPlayerColor(Vector( newcolor.r / 255, newcolor.g / 255, newcolor.b / 255))
	end
end

function ITEM:OnHolster(ply)
	local colDefault = Color(255,255,255,255)
	ply:SetColor(colDefault)
end

function ITEM:Modify(modifications)
		PS:ShowColorChooser(self, modifications)
end

function ITEM:OnModify(ply, modifications)
    self:OnHolster(ply)
    self:OnEquip(ply, modifications) end
Post Reply