Jump to content

Ayuda con panel Freeroam y panel Teleport.


~Nico~

Recommended Posts

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

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
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
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...