Jump to content

guiCreateFont Help


brad

Recommended Posts

Hello friends scripters: D I'm trying to prove up new server but I am ami ffuente noob and not very well how to hold the goal or the script that shows this is the wiki

local myLabel = guiCreateLabel( 120, 200, 120, 100, "GUI label", false ) 
  
-- Use 'toggle' command to switch custom font on and off 
addCommandHandler( "toggle", 
    function() 
        if not myFont then 
            myFont = guiCreateFont( "ferrari.ttf", 20 )  -- Create GUI custom font 
            guiSetFont( myLabel, myFont )                -- Apply font to a widget 
        else         
            destroyElement( myFont )                     -- Destroy custom font 
            myFont = nil 
        end 
    end 
  

and the meta.xml

"brad" description="cinema" info="mod" type="script"/> 
    

thanks :D :D

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