SetObjectMaterialText Problem
#1

Код:
	new autos = CreateObject(19906, 1413.19287, -1675.94067, 18.97230, 0.00, 0.00, 88.80);
 	SetObjectMaterialText(autos, "SA-MP", 0, OBJECT_MATERIAL_SIZE_256x128,
    "Arial", 28, 0, 0xFFFF8200, 0xFF000000, OBJECT_MATERIAL_TEXT_ALIGN_CENTER);
What wrong in this code ? object show and text but the object is no invisible .
Reply
#2

Quote:

new autos == CreateObject(19906, 1413.19287, -1675.94067, 18.97230, 0.00, 0.00, 88.80);
SetObjectMaterialText(autos, "SA-MP", 0, OBJECT_MATERIAL_SIZE_256x128,
"Arial", 28, 0, 0xFFFF8200, 0xFF000000, OBJECT_MATERIAL_TEXT_ALIGN_CENTER);

Try this.
Reply
#3

no working
Reply
#4

Quote:
Originally Posted by Adrianos
Посмотреть сообщение
no working
I think thats wrong from my understanding: https://sampwiki.blast.hk/wiki/CreateObject
Read that and you would get your answer....
Reply
#5

the object shows ! but not invisible and text show in object !
Reply
#6

@Adrianos

Mostly the object has more than one index. Look at my image. This triangle is your object, with 3 indexes. You want to show the text on index 1. The blue bar. Inside your code you have to select the right index, otherwise it wont show correctly. The index is called "materialindex".

You can find out the index by testing around.
Reply
#7

Ok, you need to be more specific.

Perhaps:
Do you want the object to have text on one of it's material indexes (see GangstaSunny's post)?
Using this function will replace all of the faces that have the specified material inex on the object.
Do you want the text background to be transparent? The color is in 0xAARRGGBB, not 0xRRGGBBAA.
Reply
#8

yes i want background transparent .
Reply
#9

If i will trust the wiki, you just have to set the background color to 0. Its standard and transparent.
Reply
#10

fix my code please ?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)