Jump to content

Ayuda como poner codigo a un boton


Recommended Posts

Hola, alguien podria hacerme un codigo que al hacer click en un boton "teletransportase" el jugador local a esta ubicación (mas abajo),y que despues se cerrase la ventana

X = 3168.16

Y= -1401.482

Z= 130.72

Tambien les dejo el codigo de la ventana

GUIEditor = { 
    button = {}, 
    window = {}, 
    staticimage = {}, 
    label = {} 
} 
addEventHandler("onClientResourceStart", resourceRoot, 
    function() 
        GUIEditor.window[1] = guiCreateWindow(319, 23, 449, 490, "Censurado xD", false) 
        guiWindowSetSizable(GUIEditor.window[1], false) 
        guiSetAlpha(GUIEditor.window[1], 1.00) 
  
        GUIEditor.staticimage[1] = guiCreateStaticImage(10, 32, 427, 420, "Censurado xD", false, GUIEditor.window[1]) 
  
        GUIEditor.button[1] = guiCreateButton(317, 136, 86, 34, "Censurado xD", false, GUIEditor.staticimage[1]) 
        GUIEditor.button[2] = guiCreateButton(108, 319, 64, 38, "Censurado xD", false, GUIEditor.staticimage[1]) 
        GUIEditor.button[3] = guiCreateButton(162, 225, 53, 25, "Censurado xD", false, GUIEditor.staticimage[1]) 
        GUIEditor.button[4] = guiCreateButton(212, 140, 41, 30, "Censurado xD", false, GUIEditor.staticimage[1]) 
        GUIEditor.button[5] = guiCreateButton(133, 142, 65, 28, "Censurado xD", false, GUIEditor.staticimage[1]) 
  
        GUIEditor.label[1] = guiCreateLabel(9, 462, 428, 28, "Censurado xD", false, GUIEditor.window[1])     
    end 
) 
  

Link to comment
  • 3 weeks later...
  • Recently Browsing   0 members

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