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=604520)
SetObjectMaterialText -
JaKe Elite - 06.04.2016
I am having a hard time on placing the text on the center.
The word keeps repeating on loop instead of my intended plans.
Any idea why?
SS:
Code:
PHP код:
new doc_text = CreateDynamicObject(19463, -2455.37061, -584.37286, 131.22034, 0.00000, 0.00000, 60.00000);
SetDynamicObjectMaterialText(doc_text, 0, "Department of Corrections", OBJECT_MATERIAL_SIZE_256x256, "Arial", 42, 1, 0xFFFFFFFF, 0xFF000000, OBJECT_MATERIAL_TEXT_ALIGN_CENTER);
Re: SetObjectMaterialText -
Harty - 06.04.2016
Bad reply.
Max font size 255.
Regards.
Re: SetObjectMaterialText -
Harty - 06.04.2016
Set bold as '0' and let me know if fixed or no.
Regards.
Re: SetObjectMaterialText -
JaKe Elite - 06.04.2016
That didn't fixed it, There are at least 3 "Department of Corrections" written on the object with spaces on it.
Respuesta: SetObjectMaterialText -
Harty - 06.04.2016
All seems right i checked many times function format, r u sure thats the bugged code?
Re: SetObjectMaterialText -
Darkwood17 - 06.04.2016
<Removed>
Re: SetObjectMaterialText -
IstuntmanI - 06.04.2016
This is because the texture on that object is repeated over and over again. You have to find an object model which isn't repeating its texture. AFAIK, these aren't repeating the texture:
Quote:
19475 Plane001
19476 Plane002
19477 Plane003
19478 Plane004
19479 Plane005
19480 Plane006
19481 Plane007
19482 Plane008
19483 Plane009
|
They have different sizes, so just play around with them to get what you want.
Re: SetObjectMaterialText -
JaKe Elite - 07.04.2016
Quote:
Originally Posted by IstuntmanI
This is because the texture on that object is repeated over and over again. You have to find an object model which isn't repeating its texture. AFAIK, these aren't repeating the texture:
They have different sizes, so just play around with them to get what you want.
|
Cheers mate, Gonna try it out
Edit; Are these object invisible? I can't seem to see them on SA-MP map editor when inserting them.
Re: SetObjectMaterialText -
IstuntmanI - 07.04.2016
Quote:
Originally Posted by JaKe Elite
Cheers mate, Gonna try it out
Edit; Are these object invisible? I can't seem to see them on SA-MP map editor when inserting them.
|
Yes, they are. To see them you have to change their material.