Grass texture. - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Grass texture. (
/showthread.php?tid=389222)
Grass texture. -
budelis - 01.11.2012
Hi,
I want to change my object material to grass texture.
Код:
SetObjectMaterial(OBJECT1, 0, 11297, "none", "none", 0);
But it's no change, i think i need to add grass texture name, but now i use "none".
Map Construction is not working for me, maybe anybody can write name of grass texture?
Re: Grass texture. -
budelis - 01.11.2012
I want to ask what need use material index?
Код:
OBJEKT = CreateObject(11340, -2079.9531, 159.2031, 30.8672, 0.0000,0.0000,0.0000);
OBJEKT2 = CreateObject(10983, -2076.6484, 222.8516, 31.2188, 0.0000,0.0000,0.0000);
SetObjectMaterial(OBJEKT, 0, 10972, "groundbit_sfse", "desgreengrass", 0);
SetObjectMaterial(OBJEKT2, 1, 10972, "groundbit_sfse", "desgreengrass", 0);
I remove global objects and create my self them all is okey, but no material happin..