SA-MP Forums Archive
Can't get setObjectMaterialText to work properly - 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: Can't get setObjectMaterialText to work properly (/showthread.php?tid=492392)



Can't get setObjectMaterialText to work properly - davve95 - 03.02.2014

Hi!


I recently played around with setObjectMaterialText, but it just comes same text again on whole object
I just want in the middle..

I'm also not fully sure on what size I should use so I can have a big text on about the whole object.
Object id: 8661.

I have tired with different font sizes and OBJECT_MATERIAL_TEXT_ALIGN sizes

But all text won't appear.

Are the object too big?.

Code:

pawn Код:
mso = CreateObject(8661, 1974.24, 1210.57, 41.50,   90.00, 0.00, 90.00);
   
    SetObjectMaterialText(mso,"Maniacs of LV. MSO of LV", 0, OBJECT_MATERIAL_SIZE_512x512, \
    "Arial", 100, 0, 0xFF740AFF, 0xFFFF0A27, OBJECT_MATERIAL_TEXT_ALIGN_CENTER);



Re: Can't get setObjectMaterialText to work properly - Sawalha - 03.02.2014

I guess yes, object is too big, or maybe it's in a place inside the object but cannot be seen