C# DrawText3D not rendering?

help

#1

Hi!
So I am experimenting a bit with C# and this is my DrawText3D function:

        private void RenderText(int X, int Y, int R, int G, int B, int A, string Text)
        {
            API.SetTextFont(4);
            API.SetTextProportional(true);
            API.SetTextScale(0.5f, 0.5f);
            API.SetTextColour(R, G, B, A);
            API.SetTextDropshadow(0, 0, 0, 0, 255);
            API.SetTextEdge(1, 0, 0, 0, 255);
            API.SetTextDropShadow();
            API.SetTextOutline();
            API.SetTextEntry("STRING");
            API.AddTextComponentString(Text);
            API.DrawText(X, Y);
        }

And this is how I use it:

RenderText(100, 100, 240, 200, 80, 255, "Test");
But for some reason its not rendering anything, any ideas?