Set the holding item color||doc135485

September 20, 2022

Format

 Entity:setHoldModelARGBStrength(r, g, b, a) 
  • The class to which the function belongs:Entity

Description

Sets the RGBA color factor for the held item model.


Parameters

Variable name type Description
r float Red, the value range is 0 ~ 1
g float Green, the value range is 0 ~ 1
b float Blue, the value range is 0 ~ 1
a float Transparency, the value range is 0 ~ 1


Code Samples

On the player entity clientmount script, set the RGBA color coefficient of the held item model

this:setHoldModelARGBStrength(0.5, 0.5, 0.5, 0.5)