SA-MP Forums Archive
Why is the object material not changing help please? - 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: Why is the object material not changing help please? (/showthread.php?tid=664271)



Why is the object material not changing help please? - CobraWoW - 23.02.2019

This is the code:

Код:
	new object2811 = CreateDynamicObject(19166, 627.834412, -549.397278, 18.111732, 90.000008, 90.000000, 0.000000);
	SetDynamicObjectMaterial(object2811, 0, 6052, "law_doontoon", "sf_window_mod1");
I don't know why it doesn't change the texture
the object id is the map object while the texture is a window


Re: Why is the object material not changing help please? - Jeffry - 23.02.2019

Try another materialindex (possible is 0-15), other than 0 in SetDynamicObjectMaterial.