What is the function called again?
#1

Hello,

First of, I don't know if it's the right place or not, to post this. But I need to know what is the function called to create Texts. Its not 3DTextLabels, but its more likely like a text object which you can set the text to anything you want.?

Tell me if this is a right place or not to post this kind of help request (it's still is scripting help I guess), because my old one were deleted a few hours ago o.o.

Thanks.
Reply
#2

Maybe SetObjectMaterial? Or TextDrawCreate?
Reply
#3

SetObjectMaterial, tell me more about it please?
Reply
#4

read from here
https://sampwiki.blast.hk/wiki/SetObjectMaterial
Reply
#5

Well, I have never used it, and I know less things.
But Wiki will help you understand something: SetObjectMaterial and SetObjectMaterialText
Reply
#6

Thank you kind sir.

EDIT: Could anybody explain what is the Materialsize for and how to use it ?
Reply
#7

That depends on what function you are using.
If you use SetObjectMaterial, the last color must have after the 0x two zeros for the transparency. Like this "0x00FFFFFF".
If you are using SetObjectMaterialText, just find the penultimate color and replace the it like above.
Note that the format for these functions have trnasparency before RGB colors.
So if you use 0xFF0000FF for red, here you must use 0x00FF0000.
Reply
#8

Nope, doesnt work? why
Reply
#9

Figured it out, set it to 0 if you want to hide the object!
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)