manve1 Posted December 22, 2012 Posted December 22, 2012 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 ) Looking for tutorials or information? check out: www.simpleask.co.uk
Castillo Posted December 22, 2012 Posted December 22, 2012 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 ) San Andreas Utopia RPG (SAUR) Owner & Developer. Education is the most powerful weapon which you can use to change the world.
manve1 Posted December 22, 2012 Author Posted December 22, 2012 I do the command once, it changes to radar ( this is working ), i do it second time it changes back to pic ( this is working ), i do the command to change back to radar and it creates another pic on top of the already existing one. Looking for tutorials or information? check out: www.simpleask.co.uk
Castillo Posted December 22, 2012 Posted December 22, 2012 So, the third time you use the command, it creates the image again, even when it's already there? San Andreas Utopia RPG (SAUR) Owner & Developer. Education is the most powerful weapon which you can use to change the world.
manve1 Posted December 22, 2012 Author Posted December 22, 2012 yes. Looking for tutorials or information? check out: www.simpleask.co.uk
Castillo Posted December 23, 2012 Posted December 23, 2012 I tested it and works perfectly fine. San Andreas Utopia RPG (SAUR) Owner & Developer. Education is the most powerful weapon which you can use to change the world.
manve1 Posted December 23, 2012 Author Posted December 23, 2012 sorry, i had something which should't of been thhere, worked, thank you. Looking for tutorials or information? check out: www.simpleask.co.uk
Castillo Posted December 23, 2012 Posted December 23, 2012 You're welcome. San Andreas Utopia RPG (SAUR) Owner & Developer. Education is the most powerful weapon which you can use to change the world.
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now