[FilterScript] Jbobjects
#9

Quote:
Originally Posted by [uL]Pottus
View Post
https://sampwiki.blast.hk/wiki/SetObjectMaterial

For color you use

SetObjectMaterial(myobject, 0, -1, "none", "none", 0xFF00FF00); // Sets the object color on material slot 0 to green

It won't set a solid color it's just a color filter, there are two ways to get a solid color you can use
https://sampwiki.blast.hk/wiki/SetObjectMaterialText the second color parameter is the background color or you can use this.

This will set the material to a solid white and the color parameter will set the color giving you a solid color which would be green in this case.
SetObjectMaterial(myobject, 0, 2707, "Shopping", "white", 0xFF00FF00);
Thanks I should use SetDynamicObjectMaterial since I am useing streamer
Reply


Messages In This Thread
Jbobjects 1.6 - by horsemeat - 20.04.2013, 22:43
Re: Jbobjects - by BigGroter - 20.04.2013, 23:26
Re: Jbobjects - by horsemeat - 20.04.2013, 23:31
Re: Jbobjects - by Pottus - 21.04.2013, 00:09
Re: Jbobjects - by horsemeat - 21.04.2013, 00:29
Re: Jbobjects - by Pottus - 21.04.2013, 01:09
Re: Jbobjects - by horsemeat - 21.04.2013, 01:52
Re: Jbobjects - by Pottus - 21.04.2013, 02:03
Re: Jbobjects - by horsemeat - 21.04.2013, 02:42
Re: Jbobjects - by horsemeat - 21.04.2013, 15:43

Forum Jump:


Users browsing this thread: 1 Guest(s)