Jump to content

guiCreateFont


Recommended Posts

addEventHandler("onClientResourceStart", resourceRoot,  
function() 
cs_regular = guiCreateFont("cs_regular.ttf", 15) 
cs_regular2 = guiCreateFont("cs_regular.ttf", 15.5) 
cs_big = guiCreateFont("cs_regular.ttf", 20) 
end 
) 
  

This is my code, but still doesn't work...

Link to comment
addEventHandler("onClientResourceStart", resourceRoot,  
function() 
    showCursor(true) 
    guiSetInputEnabled(true) 
    login["Login-Window"] = guiCreateWindow( (screenWidth/2)-150, (screenHeight/2)-117.5, 300, 235,"LOL", false ) 
    --guiSetVisible(login["Login-Window"], false ) 
    guiSetAlpha( login["Login-Window"], 0.50 ) 
    login["Label"] = guiCreateLabel( 20, 20, 260, 15, "Login", false, login["Login-Window"]) 
    guiSetFont(login["Label"], cs_big) 
end 
) 

Link to comment
addEventHandler ( "onClientResourceStart", resourceRoot, 
    function ( ) 
        cs_regular = guiCreateFont("cs_regular.ttf", 15) 
        cs_regular2 = guiCreateFont("cs_regular.ttf", 15.5) 
        cs_big = guiCreateFont("cs_regular.ttf", 20) 
        showCursor(true) 
        guiSetInputEnabled(true) 
        login["Login-Window"] = guiCreateWindow( (screenWidth/2)-150, (screenHeight/2)-117.5, 300, 235,"LOL", false ) 
        --guiSetVisible(login["Login-Window"], false ) 
        guiSetAlpha( login["Login-Window"], 0.50 ) 
        login["Label"] = guiCreateLabel( 20, 20, 260, 15, "Login", false, login["Login-Window"]) 
        guiSetFont(login["Label"], cs_big) 
    end 
) 

Try that.

Link to comment
cs_regular = guiCreateFont("cs_regular.ttf", 15) 
if (not cs_regular) then 
    cs_regular = guiCreateFont("cs_regular.ttf", 15) 
    if (not cs_regular) then 
        cs_regular = guiCreateFont("cs_regular.ttf", 15) 
        if (not cs_regular) then 
            cs_regular = guiCreateFont("cs_regular.ttf", 15) 
            if (not cs_regular) then 
                cs_regular = guiCreateFont("cs_regular.ttf", 15) 
                if (not cs_regular) then 
                    cs_regular = guiCreateFont("cs_regular.ttf", 15) 
                    if (not cs_regular) then 
                        cs_regular = guiCreateFont("cs_regular.ttf", 15) 
                        if (not cs_regular) then 
                        cs_regular = guiCreateFont("cs_regular.ttf", 15) 
                        end 
                    end 
                end 
            end 
        end 
    end 
end 

It's working rofl -.- :lol:

Link to comment

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...