Try changing this.mode = 1;
I'm under the impression setEffectMode() changes the mode for setEffect which affects the entire screen, not setColorEffect.
When you use setColorEffect this is basically what happens:
PHP Code:
//#CLIENTSIDE
function setColorEffect(r, g, b, a) {
this.red = r;
this.green = b;
this.blue = b;
this.alpha = a;
}
So try using this instead.
PHP Code:
//#CLIENTSIDE
function onCreated() {
setColorEffect(1, 1, 1, 0.7);
this.mode = 1;
}