Jump to content

How use dxcreatefont


iiv03

Recommended Posts

Posted
myFont = dxCreateFont( "FONTNAME", 20 )
addEventHandler( "onClientRender", root,
    function()
        if myFont then
            dxDrawText( "dxDrawText", 100, 350, 300, 350, tocolor(255,255,0), 1, myFont )
        end
    end

@liwahadri

Posted
24 minutes ago, KnucklesSAEG said:

myFont = dxCreateFont( "FONTNAME", 20 )
addEventHandler( "onClientRender", root,
    function()
        if myFont then
            dxDrawText( "dxDrawText", 100, 350, 300, 350, tocolor(255,255,0), 1, myFont )
        end
    end

@liwahadri

Thanks its working, but how do I make it in the center?

Posted
2 minutes ago, KnucklesSAEG said:

Edit  the positions

 

Yes, but the font will not appear with the panel and I want it to be reflected in the panel. How do I mean if you press the button, the font comes with the panel how?

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...