SetObjectMaterial - 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: SetObjectMaterial (
/showthread.php?tid=435631)
SetObjectMaterial -
radiobizza - 07.05.2013
Someone tells me how they use SetObjectMaterial

Re: SetObjectMaterial -
BigGroter - 07.05.2013
https://sampwiki.blast.hk/wiki/SetObjectMaterial
Re: SetObjectMaterial -
radiobizza - 07.05.2013
More explain i don't understand
Re: SetObjectMaterial -
radiobizza - 07.05.2013
I read a tutorial and there tells me that I need "Texture" and here's my show:
Re: SetObjectMaterial -
BigGroter - 07.05.2013
Please read this.
pawn Код:
SetObjectMaterial(objectid, materialinex, modelid, txdname, texturename, materialcolor);
pawn Код:
objectid The ID of the object to change the texture of
materialindex The material index on the object to change
modelid The modelid on which the replacement texture is located. Use 0 for alpha. Use -1 to change the material color without altering the texture.
txdname The name of the txd file which contains the replacement texture (use "none" if not required)
texturename The name of the texture to use as the replacement (use "none" if not required)
materialcolor The object color to set, as an integer or hex in ARGB color format. Using 0 keeps the existing material color.
Example:
pawn Код:
SetObjectMaterial(myobject, 0, 19341, "egg_texts", "easter_egg01", 0xFFFFFFFF);
Re: SetObjectMaterial -
Pottus - 07.05.2013
That won't show you what the textures are though (image), try using this map editor instead so you can see images of the textures.
http://www.gtagarage.com/mods/show.php?id=1053
Re: SetObjectMaterial -
radiobizza - 08.05.2013
Please tell me what are the things needed to use SetObjectMaterial. Takes object 964 and give me all the data to have an example
Re: SetObjectMaterial -
radiobizza - 08.05.2013
Please