Turbesz Posted July 22, 2016 Share Posted July 22, 2016 (edited) this window doesn't work but why? Code: outputChatBox("#52FF52Egyedi #ff0000élet#52ff52feltöltő panel: /elet !",0,255,255,true) GUIEditor.window[1] = guiCreateWindow(502, 266, 514, 105, "Élet és életpajzs kérő panel | TELJESEN TURBESZ ÁLTAL", false) guiWindowSetSizable(GUIEditor.window[1], false) guiSetProperty(GUIEditor.window[1], "CaptionColour", "FFFF0000") GUIEditor.button[1] = guiCreateButton(10, 53, 234, 42, "ÉLET FELTÖLTÉSE MAXRA", false, GUIEditor.window[1]) guiSetProperty(GUIEditor.button[1], "NormalTextColour", "FFFF0000") GUIEditor.button[2] = guiCreateButton(267, 53, 237, 42, "ÉLETPAJZS FELTÖLTÉSE MAXRA", false, GUIEditor.window[1]) guiSetProperty(GUIEditor.button[2], "NormalTextColour", "FF0023FE") GUIEditor.button[3] = guiCreateButton(433, 20, 71, 27, "x", false, GUIEditor.window[1]) guiSetFont(GUIEditor.button[3], "sa-header") function OpenWin() if guiGetVisible ( GUIEditor.window[1] ) == false then guiSetVisible ( GUIEditor.window[1], true ) showCursor(true) end end bindKey ( "F2", "down", OpenWin) Edited July 22, 2016 by Guest Link to comment
EstrategiaGTA Posted July 22, 2016 Share Posted July 22, 2016 Debugscript 3? Is that the full code? If that's the full code, you create the GUI whenever the resource starts for the client... So it'll always open without even having to press "F2". Link to comment
Turbesz Posted July 22, 2016 Author Share Posted July 22, 2016 Debugscript 3?Is that the full code? If that's the full code, you create the GUI whenever the resource starts for the client... So it'll always open without even having to press "F2". yes, this is the full code but debugscript3: ERROR: heal\heal.lua:3: attempt to index global 'GUIEditor' (a nil value) Link to comment
EstrategiaGTA Posted July 22, 2016 Share Posted July 22, 2016 outputChatBox("#52FF52Egyedi #ff0000élet#52ff52feltöltő panel: /elet !",0,255,255,true) local GUIEditor = { window = {}, button = {} } GUIEditor.window[1] = guiCreateWindow(502, 266, 514, 105, "Élet és életpajzs kérő panel | TELJESEN TURBESZ ÁLTAL", false) guiWindowSetSizable(GUIEditor.window[1], false) guiSetProperty(GUIEditor.window[1], "CaptionColour", "FFFF0000") GUIEditor.button[1] = guiCreateButton(10, 53, 234, 42, "ÉLET FELTÖLTÉSE MAXRA", false, GUIEditor.window[1]) guiSetProperty(GUIEditor.button[1], "NormalTextColour", "FFFF0000") GUIEditor.button[2] = guiCreateButton(267, 53, 237, 42, "ÉLETPAJZS FELTÖLTÉSE MAXRA", false, GUIEditor.window[1]) guiSetProperty(GUIEditor.button[2], "NormalTextColour", "FF0023FE") GUIEditor.button[3] = guiCreateButton(433, 20, 71, 27, "x", false, GUIEditor.window[1]) guiSetFont(GUIEditor.button[3], "sa-header") guiSetVisible(GUIEditor.window[1], false) function OpenWin() if guiGetVisible ( GUIEditor.window[1] ) == false then guiSetVisible ( GUIEditor.window[1], true ) showCursor(true) end end bindKey ( "F2", "down", OpenWin) Link to comment
Turbesz Posted July 22, 2016 Author Share Posted July 22, 2016 outputChatBox("#52FF52Egyedi #ff0000élet#52ff52feltöltő panel: /elet !",0,255,255,true) local GUIEditor = { window = {}, button = {} } GUIEditor.window[1] = guiCreateWindow(502, 266, 514, 105, "Élet és életpajzs kérő panel | TELJESEN TURBESZ ÁLTAL", false) guiWindowSetSizable(GUIEditor.window[1], false) guiSetProperty(GUIEditor.window[1], "CaptionColour", "FFFF0000") GUIEditor.button[1] = guiCreateButton(10, 53, 234, 42, "ÉLET FELTÖLTÉSE MAXRA", false, GUIEditor.window[1]) guiSetProperty(GUIEditor.button[1], "NormalTextColour", "FFFF0000") GUIEditor.button[2] = guiCreateButton(267, 53, 237, 42, "ÉLETPAJZS FELTÖLTÉSE MAXRA", false, GUIEditor.window[1]) guiSetProperty(GUIEditor.button[2], "NormalTextColour", "FF0023FE") GUIEditor.button[3] = guiCreateButton(433, 20, 71, 27, "x", false, GUIEditor.window[1]) guiSetFont(GUIEditor.button[3], "sa-header") guiSetVisible(GUIEditor.window[1], false) function OpenWin() if guiGetVisible ( GUIEditor.window[1] ) == false then guiSetVisible ( GUIEditor.window[1], true ) showCursor(true) end end bindKey ( "F2", "down", OpenWin) Many thanks! Link to comment
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