What is the function called again? -
Ahrim - 16.09.2013
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.
Re: What is the function called again? -
Dragonsaurus - 16.09.2013
Maybe SetObjectMaterial? Or TextDrawCreate?
Re: What is the function called again? -
Ahrim - 16.09.2013
SetObjectMaterial, tell me more about it please?
Re: What is the function called again? -
IceBilizard - 16.09.2013
read from here
https://sampwiki.blast.hk/wiki/SetObjectMaterial
Re: What is the function called again? -
Dragonsaurus - 16.09.2013
Well, I have never used it, and I know less things.
But Wiki will help you understand something:
SetObjectMaterial and
SetObjectMaterialText
Re: What is the function called again? -
Ahrim - 16.09.2013
Thank you kind sir.
EDIT: Could anybody explain what is the Materialsize for and how to use it ?
Re: What is the function called again? -
Dragonsaurus - 16.09.2013
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.
Re: What is the function called again? -
Ahrim - 16.09.2013
Nope, doesnt work? why
Re: What is the function called again? -
Ahrim - 16.09.2013
Figured it out, set it to 0 if you want to hide the object!