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



[HELP] SetObjectMaterialText - Th3N0oB - 21.12.2016

Hello good afternoon.
I'm trying to create a SetObjectMaterialText, but I can not create it as I want, the text repeats itself, and it's not what I want.

pawn Код:
new Text = CreateObject(19460, 2057.3251, 823.2698, 14.5131, 0.0000, 0.0000, 89.3610);
SetObjectMaterialText(Text, "example", 0, 140, "Arial", 255, 0, -16730675, 0, 1);



Re: [HELP] SetObjectMaterialText - CutX - 21.12.2016

Quote:
Originally Posted by Th3N0oB
Посмотреть сообщение
Hello good afternoon.
I'm trying to create a SetObjectMaterialText, but I can not create it as I want, the text repeats itself, and it's not what I want.

pawn Код:
new Text = CreateObject(19460, 2057.3251, 823.2698, 14.5131, 0.0000, 0.0000, 89.3610);
SetObjectMaterialText(Text, "example", 0, 140, "Arial", 255, 0, -16730675, 0, 1);
it repeats exactly 3 times and there's no way of changing that,
since that's just how the textures were created for that object.

it's that 1 wall sprite and they just repeated it 3 times to make the wall bigger
instead of jsut one texture covering the whole thing

just find another object, there are plenty and i remember there being some plain ones too,
perfect for text n stuff like that. im not sure if it's the right one,
but i think this object 19371 is perfect for what you need, material index can stay 0 too on that object

//EDIT: I just tested it with the object i had in mind + adjusted the textsize accordingly
PHP код:
    new Text CreateObject(193710050.00000.000089.3610);
    
SetObjectMaterialText(Text"example"0140"Arial"1200, -1673067501); 
that's what it looks like: http://pasteboard.co/cBmCUPGig.png
it's lil bit smaller of an object, like exactly 1/3 of the one you originally used.
text is max size for that object i.e. both 'e' s touch the objects borers


Respuesta: Re: [HELP] SetObjectMaterialText - Th3N0oB - 21.12.2016

Quote:
Originally Posted by CutX
Посмотреть сообщение
it repeats exactly 3 times and there's no way of changing that,
since that's just how the textures were created for that object.

it's that 1 wall sprite and they just repeated it 3 times to make the wall bigger
instead of jsut one texture covering the whole thing

just find another object, there are plenty and i remember there being some plain ones too,
perfect for text n stuff like that. im not sure if it's the right one,
but i think this object 19371 is perfect for what you need, material index can stay 0 too on that object

//EDIT: I just tested it with the object i had in mind + adjusted the textsize accordingly
PHP код:
    new Text CreateObject(193710050.00000.000089.3610);
    
SetObjectMaterialText(Text"example"0140"Arial"1200, -1673067501); 
that's what it looks like: http://pasteboard.co/cBmCUPGig.png
it's lil bit smaller of an object, like exactly 1/3 of the one you originally used.
text is max size for that object i.e. both 'e' s touch the objects borers
The truth that I left very small size and words are cut, I put Las Venturas, but it was like this:



Re: [HELP] SetObjectMaterialText - Pottus - 21.12.2016

There is plenty of tools to do this in seconds.


Respuesta: Re: [HELP] SetObjectMaterialText - Th3N0oB - 21.12.2016

Quote:
Originally Posted by Pottus
Посмотреть сообщение
There is plenty of tools to do this in seconds.
Like which, for example?


Re: [HELP] SetObjectMaterialText - Karolukas123 - 22.12.2016

just use bigger object... to make space for words