21.04.2013, 02:42
Quote:
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); |