SetObjectMaterial
#1

Someone tells me how they use SetObjectMaterial
Reply
#2

https://sampwiki.blast.hk/wiki/SetObjectMaterial
Reply
#3

More explain i don't understand
Reply
#4

I read a tutorial and there tells me that I need "Texture" and here's my show:
Reply
#5

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);
Reply
#6

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
Reply
#7

Please tell me what are the things needed to use SetObjectMaterial. Takes object 964 and give me all the data to have an example
Reply
#8

Please
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)