SetObjectMaterialText
#1

I don't understand where's problem.. Same text in all object. I want only 1 time to write this text.



Код:
uzrasasdm = CreateObject(3095, 1352.82, 1799.89, 3316.94,   90.00, 0.00, 90.00);
SetObjectMaterialText(uzrasasdm, "SA-MP {FFFFFF}0.3{008500}e {FF8200}RC7", 0, OBJECT_MATERIAL_SIZE_256x128,\
	"Arial", 28, 0, 0xFFFF8200, 0xFF000000, OBJECT_MATERIAL_TEXT_ALIGN_CENTER);
Reply
#2

Just a guess, but I think It has something to do with the material size, try changing it to OBJECT_MATERIAL_SIZE_512x512
Reply
#3

Quote:
Originally Posted by BenzoAMG
Посмотреть сообщение
Just a guess, but I think It has something to do with the material size, try changing it to OBJECT_MATERIAL_SIZE_512x512
Indeed it is. The size of the MaterialText is too low to spread out on the entire object, thus making it repeat. Increaseing the material size will fix this without doubt.
Reply
#4

I try'ed many material sizes, but same..
Reply
#5

Try increasing the font size until it fits one on the object, with the most appropriate material size as well.
Reply
#6

Any solutions?
Reply
#7

The object that you want your text to be applied at is even larger than the largest possible texture size (512x512) for SetObjectMaterialText. It's not possible to have a direct fix, because it's how GTA:SA loads its textures.

I suggest you not to directly apply your text on the object and leaving the object in black. Then you create another transparent object (provided in 0.3e objects) which is smaller in size that you can apply your text on it. Finally, put the text on the black board object.
Reply


Forum Jump:


Users browsing this thread: 4 Guest(s)