~Nico~ Posted October 29, 2014 Share Posted October 29, 2014 Hola, necesito que me ayuda con el panel freeroam y teleport, lo que yo quiero es que no aparezca el mapa del freeroam al conectarse al server y que no aparezca el panel de teleport al conectarse, porque puse un login panel y se abre todo junto y es muy molesto. Gracias espero que me ayuden. Les dejo el codigo del teleport. function Window ( ) if ( guiGetVisible ( myWindow ) == false ) then guiSetVisible ( myWindow, true ) showCursor ( false ) else guiSetVisible ( myWindow, false ) showCursor ( false ) end end myWindow = guiCreateWindow ( 0.16, 0.0, .7, .7, "Teleports.", true ) local tabPanel = guiCreateTabPanel ( 0, 0.1, 1, 1, true, myWindow ) local Teleports = guiCreateTab( "Teleports", tabPanel ) --GUI Buttons Close = guiCreateButton( -0.08, 0.94, 1.1, 0.063, "Cerrar 'F5'", true, Teleports ) guiSetFont ( Close, "default-bold-small" ) bindKey ( "F5", "down", Window ) guiSetAlpha ( myWindow, 1 ) guiWindowSetSizable ( myWindow, false ) --Label Color function changeLabelColor ( ) guiLabelSetColor ( One, math.random(0, 255), math.random(0, 255), math.random(0, 255) ) end setTimer ( changeLabelColor, 1000, 0 ) --Close addEventHandler ( "onClientGUIClick", getResourceRootElement(getThisResource()), function ( ) if (source == Close) then guiSetVisible( myWindow, false ) showCursor( false ) end end ) Link to comment
Guest Posted October 29, 2014 Share Posted October 29, 2014 Para los teleports utiliza: guiSetVisible Link to comment
~Nico~ Posted October 29, 2014 Author Share Posted October 29, 2014 Para los teleports utiliza: guiSetVisible Modifico el que ya vienen en el resource o creo otro? yo probé modificando los que ya trae pero no funciona. Link to comment
Guest Posted October 30, 2014 Share Posted October 30, 2014 Prueba con esto: function Window ( ) if ( guiGetVisible ( myWindow ) == false ) then guiSetVisible ( myWindow, true ) showCursor ( false ) else guiSetVisible ( myWindow, false ) showCursor ( false ) end end myWindow = guiCreateWindow ( 0.16, 0.0, .7, .7, "Teleports.", true ) guiSetVisible(myWindow, false) local tabPanel = guiCreateTabPanel ( 0, 0.1, 1, 1, true, myWindow ) local Teleports = guiCreateTab( "Teleports", tabPanel ) --GUI Buttons Close = guiCreateButton( -0.08, 0.94, 1.1, 0.063, "Cerrar 'F5'", true, Teleports ) guiSetFont ( Close, "default-bold-small" ) bindKey ( "F5", "down", Window ) guiSetAlpha ( myWindow, 1 ) guiWindowSetSizable ( myWindow, false ) --Label Color function changeLabelColor ( ) guiLabelSetColor ( One, math.random(0, 255), math.random(0, 255), math.random(0, 255) ) end setTimer ( changeLabelColor, 1000, 0 ) --Close addEventHandler ( "onClientGUIClick", getResourceRootElement(getThisResource()), function ( ) if (source == Close) then guiSetVisible( myWindow, false ) showCursor( false ) end end ) Link to comment
~Nico~ Posted November 3, 2014 Author Share Posted November 3, 2014 Prueba con esto: function Window ( ) if ( guiGetVisible ( myWindow ) == false ) then guiSetVisible ( myWindow, true ) showCursor ( false ) else guiSetVisible ( myWindow, false ) showCursor ( false ) end end myWindow = guiCreateWindow ( 0.16, 0.0, .7, .7, "Teleports.", true ) guiSetVisible(myWindow, false) local tabPanel = guiCreateTabPanel ( 0, 0.1, 1, 1, true, myWindow ) local Teleports = guiCreateTab( "Teleports", tabPanel ) --GUI Buttons Close = guiCreateButton( -0.08, 0.94, 1.1, 0.063, "Cerrar 'F5'", true, Teleports ) guiSetFont ( Close, "default-bold-small" ) bindKey ( "F5", "down", Window ) guiSetAlpha ( myWindow, 1 ) guiWindowSetSizable ( myWindow, false ) --Label Color function changeLabelColor ( ) guiLabelSetColor ( One, math.random(0, 255), math.random(0, 255), math.random(0, 255) ) end setTimer ( changeLabelColor, 1000, 0 ) --Close addEventHandler ( "onClientGUIClick", getResourceRootElement(getThisResource()), function ( ) if (source == Close) then guiSetVisible( myWindow, false ) showCursor( false ) end end ) Muchas gracias sirvió, y lo del freeroam lo solucione. Link to comment
Recommended Posts