samedi 10 mai 2014

SetObjectMaterial() Help

Hello friends,

As you see in my pictures, i added new walls on LSPD parking place. Now i want to change the texture of the new walls to those which near, but how can i get the tecture lib if i know only object id?




Code:



new Float:X, Float:Y, Float:Z;

new myobject;

GetPlayerPos(playerid, X, Y, Z);

myobject = CreateObject(19392,...);

SetObjectMaterial(myobject, 0, 3975, "???", "???", 0xFFFFFFFF);







Attached Images













File Type: jpg 0.jpg (188.1 KB)
File Type: jpg 1.jpg (190.5 KB)
File Type: jpg 2.jpg (189.4 KB)






Aucun commentaire:

Enregistrer un commentaire