SA-MP Forums Archive
Attaching Text To Buildings - 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: Attaching Text To Buildings (/showthread.php?tid=407501)



Attaching Text To Buildings - Mattakil - 14.01.2013

Hi guys, the other day when I was playing in a RP server, I noticed that they had attached text to buildings, with backgrounds and everything! I looked on ****** to try and find what they had done but..no dice. Can someone help me out here? I would really like to have this in my server.


Re: Attaching Text To Buildings - AphexCCFC - 14.01.2013

You mean Create3DTextLabel?


Re: Attaching Text To Buildings - Mattakil - 14.01.2013

Im looking for this:


Re: Attaching Text To Buildings - Bruno_Cyra - 14.01.2013

this is my prefecture of my GM:


I will pass the code to you:

pawn Код:
new letreiro = CreateObject(19353, 353.5620, 173.9646, 1011.6215, 0.0000, 0.0000, -1.1830);//Creating the invisible object,  ID number 19353
SetObjectMaterialText(letreiro, "Prefeitura de San Fierro", 0, 140, "Arial", 53, 1, -1, 0, 1);//Set the material text of object with the text.
the wiki link of the SetObjectMaterialText is https://sampwiki.blast.hk/wiki/SetObjectMaterialText


Re: Attaching Text To Buildings - Mattakil - 14.01.2013

Thanks man, but is the invisible object required?


Re: Attaching Text To Buildings - Mattakil - 14.01.2013

looked at the code in better depth and using SAMP wiki..Lock this.


Re: Attaching Text To Buildings - Bruno_Cyra - 14.01.2013

yes because otherwise the object would be visible and would get ugly.


Re: Attaching Text To Buildings - Mattakil - 14.01.2013

I kinda got it, the text came up sideways, can you tell me what numbers are what? Like which is size, rotation etc


Re: Attaching Text To Buildings - Glad2BeHere - 14.01.2013

https://sampwiki.blast.hk/wiki/SetObjectMaterial
https://sampwiki.blast.hk/wiki/SetObjectMaterialText