Hello !
I wonder if i can change a prop color from the SWEP CONSTRUCTION KIT on click
Here is my code
function SWEP:SecondaryAttack()
if not IsFirstTimePredicted() then return end
self.WElements["clock"].color = Color(255,255,255,0)
self.WElements["clock+"].color = Color(255,255,255,0)
end
But it’s only changing it clientside, i can see the change if i look at myself with thirdperson/or witha camera but other players don’t see any change.
This script is supposed to make the clock and clock+ element transparent, it does for me but not for the others people on my server.
I tried to surround my code with
if CLIENT then
end
and i got the same result then i triedto surround the same code with
if SERVER then
end
and got not result…
Does it means that i can only change the color clientside ?
Thanks in advance