[BUG]GUI label invisible!!

Started by Kenneth Law, Feb 15, 2020, 02:40 AM

Previous topic - Next topic

Kenneth Law

Description
Some labels with certain text and font sizes do not show up.
For instance:
label = GUILabel();
label.Pos = VectorScreen(300, 200);
label.TextColour = Colour(255, 255, 255);
label.Text = "test";
label.FontSize = 14;
But if I change the text to "testtesttest" or set the font size to 18, it becomes visible again.

Reproducible
always

What you were doing when the bug happened
Not doing anything

What you think caused the bug
I don't know. It's very strange.

DizzasTeR


Kenneth Law

Quote from: Doom_Kill3R on Feb 15, 2020, 10:31 AMhttps://forum.vc-mp.org/?topic=5978.0
I was using the empty GUILabel() as he said in the topic however the problem still exists

MatheuS

Change your label fontsize to 12
if( !sucess ) tryAgain();
Thanks to the VCMP community. It was the happiest period of my life.