New 0.3E Feature - Text On Object
#1

So i see many people making topics about how to make Words appear on Object, So below i will be posting the Code for you to use to be able to actually see it.

First off, Never do this using CreateDynamicObject in this text. Due to it will just show the Object, You must use CreateObject. Also You need to get the X,Y,Z Cords for the Object and then the rest is basically simple from wiki.
All you have to do, is first Define the New text names. Then place these under your Map Items Either CreateDynamicObject Or CreateObject

Код:
new text = CreateObject(19355, 1422.34, -1178.02, 31.75, 0.00, 0.00, 90.00);
    SetObjectMaterialText(text, "\nLos Santos\nPolice Department", 0, OBJECT_MATERIAL_SIZE_256x128, "Arial", 30, 1, 0xFF919191, 0xFF000000, OBJECT_MATERIAL_TEXT_ALIGN_CENTER);
    new text1 = CreateObject(19355, 1310.01, -1369.42, 19.05,   0.00, 0.00, 90.00);
    SetObjectMaterialText(text1, "Verona Beach\nCentral Bank", 0, OBJECT_MATERIAL_SIZE_256x128, "Arial", 30, 1, 0xFF919191, 0xFF000000, OBJECT_MATERIAL_TEXT_ALIGN_CENTER);
Do not ask me questions on what each part is, due to i cant be bothered typing it in, since its almost 1 am for me here. Just follow these Lists on what each part does.


objectid The ID of the object to replace the texture of with text.

text The text to show on the object.

materialindex The object's material index to replace with text.

materialsize The size of the material.

fontface The font to use.

fontsize The size of the text (MAX 255).

bold Bold text. Set to 1 for bold, 0 for not.

fontcolor The color of the text, in ARGB format.

backcolor The background color, in ARGB format.

textalignment The alignment of the text (default: left).

Returns This function doesn't return a specific value

Reply
#2

If you can't be bothered to describe it, then why did you make this post?
Also, this is the wrong section.. Post this in Scripting Tutorials.
Reply
#3

As you can see, It was a joke. Read the Bottom it is described and this isnt a tutorial bud. This is a server support to aid people on a feature they can use. No tutorial Given
Reply
#4

You really don't know what this board is for, do you?
You ask for help regarding SA-MP server related issues in here, you don't post these kinds of things.

Also, how is it a joke? I don't get it...
Reply
#5

This is not an argument Section Bud, if you continue to post replys you will be flagged for spam. If you have an issue here then Message the Forum staff. Until they tell me to move it, it will stay [Last post towards This Man]
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)