Jump to content

Help - Logo


manve1

Recommended Posts

Well, i am trying to create a logo on a command so it gets destroyed or created.

local logo = guiCreateStaticImage( 0, 0.8, 0.6, 0.2, 'no.png', true ) 
  
addCommandHandler('hah', 
function() 
if ( isElement(logo) == false ) then 
showPlayerHudComponent ( 'radar', true ) 
destroyElement( logo ) 
elseif ( isElement(logo) == true ) then 
showPlayerHudComponent ( 'radar', false ) 
local logo = guiCreateStaticImage( 0, 0.8, 0.6, 0.2, 'no.png', true ) 
end 
end 
) 

Link to comment
local logo = guiCreateStaticImage ( 0, 0.8, 0.6, 0.2, 'no.png', true ) 
  
addCommandHandler ( 'hah', 
    function ( ) 
        if ( isElement ( logo ) ) then 
            showPlayerHudComponent ( 'radar', true ) 
            destroyElement ( logo ) 
        else 
            showPlayerHudComponent ( 'radar', false ) 
            logo = guiCreateStaticImage ( 0, 0.8, 0.6, 0.2, 'no.png', true ) 
        end 
    end 
) 

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