SA-MP Forums Archive
SetObjectMaterialText - 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: SetObjectMaterialText (/showthread.php?tid=563841)



SetObjectMaterialText - Banditukas - 17.02.2015

Hi,

When i setobjectmaterialtext object material is that what was before setting setobjectmaterialtext? because i need to getobjectmaterial in some ways, i use icognito streamer also.


Re: SetObjectMaterialText - PaulDinam - 17.02.2015

Your wording didn't make sense at all but there's a function which returns the object's material if you use icognito's streamer.

pawn Код:
new model, txdname[45], texturename[45], color;
GetDynamicObjectMaterial(objectid, 0, model, txdname, texturename, color, 45, 45);



Re: SetObjectMaterialText - Banditukas - 17.02.2015

I mean when you use this function

SetDynamicObjectMaterialText

Object material still left the same i mean if i use

Код:
new model, txdname[45], texturename[45], color;
GetDynamicObjectMaterial(objectid, 0, model, txdname, texturename, color, 45, 45);
SetDynamicObjectMaterialText( ... );
GetDynamicObjectMaterial(objectid, 0, model, txdname, texturename, color, 45, 45);



Re: SetObjectMaterialText - PaulDinam - 17.02.2015

So you want to reset the material upon setting the text?