Author Topic: Change Paint Color via Server [Fail]  (Read 602 times)

Is there a way to make servercmdUseSprayCan(%client,8); change the color of a player's brick inventory previews?
Code: [Select]
function servercmdUseSprayCan(%client,%color)
{
%obj = %client.player;
%client.color = %color;
if(isObject(%obj))
%data = %obj.getDatablock();
if(%data.canComplex)
//Stuff Here!
else
Parent::servercmdUseSprayCan(%client,%color);
}
« Last Edit: February 16, 2014, 11:03:50 AM by tommybricksetti »

setColorIDTable(8, <color>) works for future players that join. For others, you'll need to transmit that somehow.

It's a clientside option.



Though, even with this option enabled you can't change it with serverCmdUseSprayCan. The function that modifies the color you have selected in your GUI is clientside, and that's the one that controls the inventory preview color.
« Last Edit: February 16, 2014, 02:14:27 AM by $trinick »

It's a clientside option.
Yeah that's what I was hoping it wasn't.