mekadoom Posted December 12, 2014 Share Posted December 12, 2014 Hola, yo estuve viendo un video en un canal, para poder hacer una gui, lo que pasa, es que al del video, le funcionan bien los botones y todo, pero a mi, no me funciona, no se ve el mouse (aun que haya puesto: showCursor (true)), si me lo pueden arreglar, por favor, se los agradeceria y tambien los pondria en el Memo Bueno, aca esta el code del client.lua function Panelabusivo() Panelabusivo = guiCreateWindow(238, 185, 959, 358, "Panel abusivo", false) guiWindowSetSizable(Panelabusivo, false) guiSetProperty(Panelabusivo, "CaptionColour", "FF0EFCFE") AK47 = guiCreateButton(9, 22, 123, 40, "AK-47", false, Panelabusivo) guiSetFont(AK47, "default-bold-small") guiSetProperty(AK47, "NormalTextColour", "FFFE0000") LanzamisilesHS = guiCreateButton(153, 23, 121, 39, "Lanza misiles HS", false, Panelabusivo) guiSetFont(LanzamisilesHS, "default-bold-small") guiSetProperty(LanzamisilesHS, "NormalTextColour", "FFFE0000") Uzi = guiCreateButton(9, 76, 120, 40, "Uzi", false, Panelabusivo) guiSetFont(Uzi, "default-bold-small") guiSetProperty(Uzi, "NormalTextColour", "FFFE0000") Sniper = guiCreateButton(154, 76, 120, 40, "Sniper", false, Panelabusivo) guiSetFont(Sniper, "default-bold-small") guiSetProperty(Sniper, "NormalTextColour", "FFFE0000") DesertDeagle = guiCreateButton(11, 125, 118, 42, "Desert Deagle", false, Panelabusivo) guiSetFont(DesertDeagle, "default-bold-small") guiSetProperty(DesertDeagle, "NormalTextColour", "FFFE0000") Cuchillo = guiCreateButton(156, 129, 118, 38, "Cuchillo", false, Panelabusivo) guiSetFont(Cuchillo, "default-bold-small") guiSetProperty(Cuchillo, "NormalTextColour", "FFFE0000") Spaz12 = guiCreateButton(11, 177, 118, 42, "Spaz12", false, Panelabusivo) guiSetFont(Spaz12, "default-bold-small") guiSetProperty(Spaz12, "NormalTextColour", "FFFE0000") Satchel = guiCreateButton(156, 177, 118, 42, "Satchel", false, Panelabusivo) guiSetFont(Satchel, "default-bold-small") guiSetProperty(Satchel, "NormalTextColour", "FFFE0000") Paracaidas = guiCreateButton(11, 229, 118, 42, "Paracaidas", false, Panelabusivo) guiSetFont(Paracaidas, "default-bold-small") guiSetProperty(Paracaidas, "NormalTextColour", "FFFE0000") HPIeni = guiCreateButton(156, 229, 118, 42, "H.P.Ieni", false, Panelabusivo) guiSetFont(HPIeni, "default-bold-small") guiSetProperty(HPIeni, "NormalTextColour", "FFFE0000") Brassknucles = guiCreateButton(11, 281, 118, 42, "Brassknucles", false, Panelabusivo) guiSetFont(Brassknucles, "default-bold-small") guiSetProperty(Brassknucles, "NormalTextColour", "FFFE0000") Molotov = guiCreateButton(156, 281, 118, 42, "Molotov", false, Panelabusivo) guiSetFont(Molotov, "default-bold-small") guiSetProperty(Molotov, "NormalTextColour", "FFFE0000") NRG500 = guiCreateButton(825, 23, 121, 39, "NRG-500", false, Panelabusivo) guiSetFont(NRG500, "default-bold-small") guiSetProperty(NRG500, "NormalTextColour", "FF48FE0F") BMX = guiCreateButton(681, 23, 121, 39, "BMX", false, Panelabusivo) guiSetFont(BMX, "default-bold-small") guiSetProperty(BMX, "NormalTextColour", "FF48FE0F") Infernus = guiCreateButton(681, 76, 121, 39, "Infernus", false, Panelabusivo) guiSetFont(Infernus, "default-bold-small") guiSetProperty(Infernus, "NormalTextColour", "FF48FE0F") Hydra = guiCreateButton(825, 76, 121, 39, "Hydra", false, Panelabusivo) guiSetFont(Hydra, "default-bold-small") guiSetProperty(Hydra, "NormalTextColour", "FF48FE0F") Speeder = guiCreateButton(681, 125, 121, 39, "Speeder", false, Panelabusivo) guiSetFont(Speeder, "default-bold-small") guiSetProperty(Speeder, "NormalTextColour", "FF48FE0F") Hunter = guiCreateButton(825, 125, 121, 39, "Hunter", false, Panelabusivo) guiSetFont(Hunter, "default-bold-small") guiSetProperty(Hunter, "NormalTextColour", "FF48FE0F") Rhino = guiCreateButton(681, 174, 121, 39, "Rhino", false, Panelabusivo) guiSetFont(Rhino, "default-bold-small") guiSetProperty(Rhino, "NormalTextColour", "FF48FE0F") Monster2 = guiCreateButton(825, 174, 121, 39, "Monster 2", false, Panelabusivo) guiSetFont(Monster2, "default-bold-small") guiSetProperty(Monster2, "NormalTextColour", "FF48FE0F") Bandito = guiCreateButton(681, 223, 121, 39, "Bandito", false, Panelabusivo) guiSetFont(Bandito, "default-bold-small") guiSetProperty(Bandito, "NormalTextColour", "FF48FE0F") BFInjection = guiCreateButton(826, 223, 120, 39, "BF Injection", false, Panelabusivo) guiSetFont(BFInjection, "default-bold-small") guiSetProperty(BFInjection, "NormalTextColour", "FF48FE0F") Hotknife = guiCreateButton(681, 272, 121, 39, "Hotknife", false, Panelabusivo) guiSetFont(Hotknife, "default-bold-small") guiSetProperty(Hotknife, "NormalTextColour", "FF48FE0F") Kart = guiCreateButton(825, 272, 121, 39, "Kart", false, Panelabusivo) guiSetFont(Kart, "default-bold-small") guiSetProperty(Kart, "NormalTextColour", "FF48FE0F") Salir = guiCreateButton(300, 70, 356, 250, "Salir", false, Panelabusivo) guiSetFont(Salir, "default-bold-small") guiSetProperty(Salir, "NormalTextColour", "FF0EFCFE") Texto = guiCreateMemo(534, 205, 360, 47, "Este panel fue hecho por: Tr3F0rW4r/Seyer. Si lo usan, dejen los creditos.", false) guiMemoSetReadOnly(GUIEditor.memo[1], true) showCursor (true) addEventHandler ( "onClientGUIClick", AK47, arma1, false) end addCommandHandler ("pp", Panelabusivo) function Arma1 () showCursor (true) triggerServerEvent ( "Arma1", getLocalPlayer () ) end y aca, el del server.lua: function Arma1 () giveWeapon ( source, 30, 200 ) end addEvent( "arma1", true ) addEventHandler( "arma1", getRootElement (), Arma1 ) Pongo los 2, ya que, no se cual es el que siempre arreglan Saludos, y gracias de ante mano Link to comment
TheOskar Posted December 12, 2014 Share Posted December 12, 2014 Clientside: Panelabusivo = guiCreateWindow(238, 185, 959, 358, "Panel abusivo", false) guiWindowSetSizable(Panelabusivo, false) guiSetProperty(Panelabusivo, "CaptionColour", "FF0EFCFE") guiSetProperty(Panelabusivo, "CaptionColour", "FF0EFCFE") AK47 = guiCreateButton(9, 22, 123, 40, "AK-47", false, Panelabusivo) guiSetFont(AK47, "default-bold-small") guiSetProperty(AK47, "NormalTextColour", "FFFE0000") LanzamisilesHS = guiCreateButton(153, 23, 121, 39, "Lanza misiles HS", false, Panelabusivo) guiSetFont(LanzamisilesHS, "default-bold-small") guiSetProperty(LanzamisilesHS, "NormalTextColour", "FFFE0000") Uzi = guiCreateButton(9, 76, 120, 40, "Uzi", false, Panelabusivo) guiSetFont(Uzi, "default-bold-small") guiSetProperty(Uzi, "NormalTextColour", "FFFE0000") Sniper = guiCreateButton(154, 76, 120, 40, "Sniper", false, Panelabusivo) guiSetFont(Sniper, "default-bold-small") guiSetProperty(Sniper, "NormalTextColour", "FFFE0000") DesertDeagle = guiCreateButton(11, 125, 118, 42, "Desert Deagle", false, Panelabusivo) guiSetFont(DesertDeagle, "default-bold-small") guiSetProperty(DesertDeagle, "NormalTextColour", "FFFE0000") Cuchillo = guiCreateButton(156, 129, 118, 38, "Cuchillo", false, Panelabusivo) guiSetFont(Cuchillo, "default-bold-small") guiSetProperty(Cuchillo, "NormalTextColour", "FFFE0000") Spaz12 = guiCreateButton(11, 177, 118, 42, "Spaz12", false, Panelabusivo) guiSetFont(Spaz12, "default-bold-small") guiSetProperty(Spaz12, "NormalTextColour", "FFFE0000") Satchel = guiCreateButton(156, 177, 118, 42, "Satchel", false, Panelabusivo) guiSetFont(Satchel, "default-bold-small") guiSetProperty(Satchel, "NormalTextColour", "FFFE0000") Paracaidas = guiCreateButton(11, 229, 118, 42, "Paracaidas", false, Panelabusivo) guiSetFont(Paracaidas, "default-bold-small") guiSetProperty(Paracaidas, "NormalTextColour", "FFFE0000") HPIeni = guiCreateButton(156, 229, 118, 42, "H.P.Ieni", false, Panelabusivo) guiSetFont(HPIeni, "default-bold-small") guiSetProperty(HPIeni, "NormalTextColour", "FFFE0000") Brassknucles = guiCreateButton(11, 281, 118, 42, "Brassknucles", false, Panelabusivo) guiSetFont(Brassknucles, "default-bold-small") guiSetProperty(Brassknucles, "NormalTextColour", "FFFE0000") Molotov = guiCreateButton(156, 281, 118, 42, "Molotov", false, Panelabusivo) guiSetFont(Molotov, "default-bold-small") guiSetProperty(Molotov, "NormalTextColour", "FFFE0000") NRG500 = guiCreateButton(825, 23, 121, 39, "NRG-500", false, Panelabusivo) guiSetFont(NRG500, "default-bold-small") guiSetProperty(NRG500, "NormalTextColour", "FF48FE0F") BMX = guiCreateButton(681, 23, 121, 39, "BMX", false, Panelabusivo) guiSetFont(BMX, "default-bold-small") guiSetProperty(BMX, "NormalTextColour", "FF48FE0F") Infernus = guiCreateButton(681, 76, 121, 39, "Infernus", false, Panelabusivo) guiSetFont(Infernus, "default-bold-small") guiSetProperty(Infernus, "NormalTextColour", "FF48FE0F") Hydra = guiCreateButton(825, 76, 121, 39, "Hydra", false, Panelabusivo) guiSetFont(Hydra, "default-bold-small") guiSetProperty(Hydra, "NormalTextColour", "FF48FE0F") Speeder = guiCreateButton(681, 125, 121, 39, "Speeder", false, Panelabusivo) guiSetFont(Speeder, "default-bold-small") guiSetProperty(Speeder, "NormalTextColour", "FF48FE0F") Hunter = guiCreateButton(825, 125, 121, 39, "Hunter", false, Panelabusivo) guiSetFont(Hunter, "default-bold-small") guiSetProperty(Hunter, "NormalTextColour", "FF48FE0F") Rhino = guiCreateButton(681, 174, 121, 39, "Rhino", false, Panelabusivo) guiSetFont(Rhino, "default-bold-small") guiSetProperty(Rhino, "NormalTextColour", "FF48FE0F") Monster2 = guiCreateButton(825, 174, 121, 39, "Monster 2", false, Panelabusivo) guiSetFont(Monster2, "default-bold-small") guiSetProperty(Monster2, "NormalTextColour", "FF48FE0F") Bandito = guiCreateButton(681, 223, 121, 39, "Bandito", false, Panelabusivo) guiSetFont(Bandito, "default-bold-small") guiSetProperty(Bandito, "NormalTextColour", "FF48FE0F") BFInjection = guiCreateButton(826, 223, 120, 39, "BF Injection", false, Panelabusivo) guiSetFont(BFInjection, "default-bold-small") guiSetProperty(BFInjection, "NormalTextColour", "FF48FE0F") Hotknife = guiCreateButton(681, 272, 121, 39, "Hotknife", false, Panelabusivo) guiSetFont(Hotknife, "default-bold-small") guiSetProperty(Hotknife, "NormalTextColour", "FF48FE0F") Kart = guiCreateButton(825, 272, 121, 39, "Kart", false, Panelabusivo) guiSetFont(Kart, "default-bold-small") guiSetProperty(Kart, "NormalTextColour", "FF48FE0F") Salir = guiCreateButton(300, 70, 356, 250, "Salir", false, Panelabusivo) guiSetFont(Salir, "default-bold-small") guiSetProperty(Salir, "NormalTextColour", "FF0EFCFE") Texto = guiCreateMemo(534, 205, 360, 47, "Este panel fue hecho por: Tr3F0rW4r/Seyer. Si lo usan, dejen los creditos.", false) guiMemoSetReadOnly(GUIEditor.memo[1], true) guiSetVisible(Panelabusivo,false) showCursor (true) addEventHandler ( "onClientGUIClick", AK47, arma1, false) function VerVentana ( ) if guiGetVisible(Panelabusivo) == true then guiSetVisible(Panelabusivo, false) showCursor(false) guiSetInputEnabled(false) else guiSetVisible(Panelabusivo, true) showCursor(true) guiSetInputEnabled(true) end end addCommandHandler ("pp", VerVentana) function Arma1 () showCursor (true) triggerServerEvent ( "Arma1", getLocalPlayer () ) end Disculpa si tiene algún error, Lo vi desde el teléfono... Link to comment
mekadoom Posted December 13, 2014 Author Share Posted December 13, 2014 No me funciono , gracias igualmente, por el intento de ayuda PD: Hay veces que hasta se buggea el comando , o sea, no abre el panel Link to comment
TheOskar Posted December 13, 2014 Share Posted December 13, 2014 Disculpa, como te dije anteriormente, lo vi desde el telefono, Prueba Ahora: Clientside: Panelabusivo = guiCreateWindow(238, 185, 959, 358, "Panel abusivo", false) guiSetVisible(Panelabusivo,false) guiWindowSetSizable(Panelabusivo, false) guiSetProperty(Panelabusivo, "CaptionColour", "FF0EFCFE") guiSetProperty(Panelabusivo, "CaptionColour", "FF0EFCFE") AK47 = guiCreateButton(9, 22, 123, 40, "AK-47", false, Panelabusivo) guiSetFont(AK47, "default-bold-small") guiSetProperty(AK47, "NormalTextColour", "FFFE0000") LanzamisilesHS = guiCreateButton(153, 23, 121, 39, "Lanza misiles HS", false, Panelabusivo) guiSetFont(LanzamisilesHS, "default-bold-small") guiSetProperty(LanzamisilesHS, "NormalTextColour", "FFFE0000") Uzi = guiCreateButton(9, 76, 120, 40, "Uzi", false, Panelabusivo) guiSetFont(Uzi, "default-bold-small") guiSetProperty(Uzi, "NormalTextColour", "FFFE0000") Sniper = guiCreateButton(154, 76, 120, 40, "Sniper", false, Panelabusivo) guiSetFont(Sniper, "default-bold-small") guiSetProperty(Sniper, "NormalTextColour", "FFFE0000") DesertDeagle = guiCreateButton(11, 125, 118, 42, "Desert Deagle", false, Panelabusivo) guiSetFont(DesertDeagle, "default-bold-small") guiSetProperty(DesertDeagle, "NormalTextColour", "FFFE0000") Cuchillo = guiCreateButton(156, 129, 118, 38, "Cuchillo", false, Panelabusivo) guiSetFont(Cuchillo, "default-bold-small") guiSetProperty(Cuchillo, "NormalTextColour", "FFFE0000") Spaz12 = guiCreateButton(11, 177, 118, 42, "Spaz12", false, Panelabusivo) guiSetFont(Spaz12, "default-bold-small") guiSetProperty(Spaz12, "NormalTextColour", "FFFE0000") Satchel = guiCreateButton(156, 177, 118, 42, "Satchel", false, Panelabusivo) guiSetFont(Satchel, "default-bold-small") guiSetProperty(Satchel, "NormalTextColour", "FFFE0000") Paracaidas = guiCreateButton(11, 229, 118, 42, "Paracaidas", false, Panelabusivo) guiSetFont(Paracaidas, "default-bold-small") guiSetProperty(Paracaidas, "NormalTextColour", "FFFE0000") HPIeni = guiCreateButton(156, 229, 118, 42, "H.P.Ieni", false, Panelabusivo) guiSetFont(HPIeni, "default-bold-small") guiSetProperty(HPIeni, "NormalTextColour", "FFFE0000") Brassknucles = guiCreateButton(11, 281, 118, 42, "Brassknucles", false, Panelabusivo) guiSetFont(Brassknucles, "default-bold-small") guiSetProperty(Brassknucles, "NormalTextColour", "FFFE0000") Molotov = guiCreateButton(156, 281, 118, 42, "Molotov", false, Panelabusivo) guiSetFont(Molotov, "default-bold-small") guiSetProperty(Molotov, "NormalTextColour", "FFFE0000") NRG500 = guiCreateButton(825, 23, 121, 39, "NRG-500", false, Panelabusivo) guiSetFont(NRG500, "default-bold-small") guiSetProperty(NRG500, "NormalTextColour", "FF48FE0F") BMX = guiCreateButton(681, 23, 121, 39, "BMX", false, Panelabusivo) guiSetFont(BMX, "default-bold-small") guiSetProperty(BMX, "NormalTextColour", "FF48FE0F") Infernus = guiCreateButton(681, 76, 121, 39, "Infernus", false, Panelabusivo) guiSetFont(Infernus, "default-bold-small") guiSetProperty(Infernus, "NormalTextColour", "FF48FE0F") Hydra = guiCreateButton(825, 76, 121, 39, "Hydra", false, Panelabusivo) guiSetFont(Hydra, "default-bold-small") guiSetProperty(Hydra, "NormalTextColour", "FF48FE0F") Speeder = guiCreateButton(681, 125, 121, 39, "Speeder", false, Panelabusivo) guiSetFont(Speeder, "default-bold-small") guiSetProperty(Speeder, "NormalTextColour", "FF48FE0F") Hunter = guiCreateButton(825, 125, 121, 39, "Hunter", false, Panelabusivo) guiSetFont(Hunter, "default-bold-small") guiSetProperty(Hunter, "NormalTextColour", "FF48FE0F") Rhino = guiCreateButton(681, 174, 121, 39, "Rhino", false, Panelabusivo) guiSetFont(Rhino, "default-bold-small") guiSetProperty(Rhino, "NormalTextColour", "FF48FE0F") Monster2 = guiCreateButton(825, 174, 121, 39, "Monster 2", false, Panelabusivo) guiSetFont(Monster2, "default-bold-small") guiSetProperty(Monster2, "NormalTextColour", "FF48FE0F") Bandito = guiCreateButton(681, 223, 121, 39, "Bandito", false, Panelabusivo) guiSetFont(Bandito, "default-bold-small") guiSetProperty(Bandito, "NormalTextColour", "FF48FE0F") BFInjection = guiCreateButton(826, 223, 120, 39, "BF Injection", false, Panelabusivo) guiSetFont(BFInjection, "default-bold-small") guiSetProperty(BFInjection, "NormalTextColour", "FF48FE0F") Hotknife = guiCreateButton(681, 272, 121, 39, "Hotknife", false, Panelabusivo) guiSetFont(Hotknife, "default-bold-small") guiSetProperty(Hotknife, "NormalTextColour", "FF48FE0F") Kart = guiCreateButton(825, 272, 121, 39, "Kart", false, Panelabusivo) guiSetFont(Kart, "default-bold-small") guiSetProperty(Kart, "NormalTextColour", "FF48FE0F") Salir = guiCreateButton(300, 70, 356, 250, "Salir", false, Panelabusivo) guiSetFont(Salir, "default-bold-small") guiSetProperty(Salir, "NormalTextColour", "FF0EFCFE") Texto = guiCreateMemo(534, 205, 360, 47, "Este panel fue hecho por: Tr3F0rW4r/Seyer. Si lo usan, dejen los creditos.", false,Panelabusivo) addEventHandler ( "onClientGUIClick", AK47, arma1, false) function VerVentana ( ) if guiGetVisible(Panelabusivo) == true then guiSetVisible(Panelabusivo, false) showCursor(false) else guiSetVisible(Panelabusivo, true) showCursor(true) end end addCommandHandler ("pp", VerVentana) function Arma1 () showCursor (true) triggerServerEvent ( "Arma1", getLocalPlayer () ) end Link to comment
mekadoom Posted December 15, 2014 Author Share Posted December 15, 2014 No he podido entrar, pero, ahora lo pruebo, edito el mensaje (este) y te digo, si me funciono o no Gracias de antemano Saludos ----- EDIT: No, no me funciono , le doy clic a las opciones y nada , si podes agregarle la funcion para cerrar la ventana, mejor , si no, podes, despues me fijo como hacer Saludos y gracias de antemano Link to comment
Recommended Posts