Help with hp system for a printer

I need help with a hp function so this funstion can work?

if printer:HP() == 50 then
printer.SetColor(255,255,255,255)
end

Anyone can help?

Entity:Health

Entity:SetColor

It’s printer:Health() and printer:SetColor and also you pass a Color-table and not rgba values.



if printer:Health() == 50 then
   printer:SetColor(Color(255,255,255))
end


Notice: 255,255,255,255 is white, your printer will look normal.
Notice #2: You don’t need to pass alpha parameter as 255 is the default value.

Ohh thanks man!