RangeR.. Posted April 14, 2015 Posted April 14, 2015 Hi guys, idk what happened to my GUI window of help panel script, it's not working. The code is written below GUIEditor = { label = {}, window = {}, staticimage = {}, memo = {} } addEventHandler("onClientResourceStart", resourceRoot, function() GUIEditor.window[1] = guiCreateWindow(136, 22, 533, 505, "Help System - F1", false) guiWindowSetSizable(GUIEditor.window[1], false) GUIEditor.label[1] = guiCreateLabel(0.17, 0.05, 0.67, 0.10, "Help System by Robin", true, GUIEditor.window[1]) guiSetFont(GUIEditor.label[1], "sa-gothic") GUIEditor.memo[1] = guiCreateMemo(-8, 57, 83, 109, "", false, GUIEditor.label[1]) GUIEditor.memo[2] = guiCreateMemo(92, 82, 355, 328, "HELP SYSTEM\n\nRules:\nNo Cheating.\nNo Bad Words.\nRespect Staff.\n\nCommands:\n\n/kill\n\nBinds:\n\nF1 - Freeroam\nF3 - Help", false, GUIEditor.window[1]) GUIEditor.staticimage[1] = guiCreateStaticImage(92, 415, 355, 80, ":guieditor/images/examples/mtalogo.png", false, GUIEditor.window[1]) guiSetVisible(guiEditor.window[1], false) end ) function guiToggleVisible ( ) if ( guiGetVisible ( GUIEditor.window[1] ) == true ) then guiSetVisible ( GUIEditor.window[1], false ) else guiSetVisible ( GUIEditor.window[1], true ) end end bindKey ( "F1", "down", guiToggleVisible ) MTA PLAYER SINCE 2008 Staff at UGC - [uGC]Robin|GIGN Ex Staff AND MEMBER OF WGS(RACE CLAN) EX-OWNER AT POWER-GAMING EX-Leading Staff at SGC EX-FOUNDER of CIG EX-FOUNDER of Sm [stealth] EX-Staff of The Matrix My Community Scripts Private Interiors TIME PLAYED [TAB] Job Command Private Pickups
Mr.unpredictable. Posted April 14, 2015 Posted April 14, 2015 (edited) - my bad Edited April 14, 2015 by Guest
RangeR.. Posted April 14, 2015 Author Posted April 14, 2015 Error WARNING: help/script.lua:23: bad argument @ 'bindKey' [Expected player at argument 1, got string '1' MTA PLAYER SINCE 2008 Staff at UGC - [uGC]Robin|GIGN Ex Staff AND MEMBER OF WGS(RACE CLAN) EX-OWNER AT POWER-GAMING EX-Leading Staff at SGC EX-FOUNDER of CIG EX-FOUNDER of Sm [stealth] EX-Staff of The Matrix My Community Scripts Private Interiors TIME PLAYED [TAB] Job Command Private Pickups
Mr.unpredictable. Posted April 14, 2015 Posted April 14, 2015 ErrorWARNING: help/script.lua:23: bad argument @ 'bindKey' [Expected player at argument 1, got string '1' GUIEditor = { label = {}, window = {}, staticimage = {}, memo = {} } addEventHandler("onClientResourceStart", resourceRoot, function() GUIEditor.window[1] = guiCreateWindow(136, 22, 533, 505, "Help System - F1", false) guiWindowSetSizable(GUIEditor.window[1], false) GUIEditor.label[1] = guiCreateLabel(0.17, 0.05, 0.67, 0.10, "Help System by Robin", true, GUIEditor.window[1]) guiSetFont(GUIEditor.label[1], "sa-gothic") GUIEditor.memo[1] = guiCreateMemo(-8, 57, 83, 109, "", false, GUIEditor.label[1]) GUIEditor.memo[2] = guiCreateMemo(92, 82, 355, 328, "HELP SYSTEM\n\nRules:\nNo Cheating.\nNo Bad Words.\nRespect Staff.\n\nCommands:\n\n/kill\n\nBinds:\n\nF1 - Freeroam\nF3 - Help", false, GUIEditor.window[1]) GUIEditor.staticimage[1] = guiCreateStaticImage(92, 415, 355, 80, ":guieditor/images/examples/mtalogo.png", false, GUIEditor.window[1]) end ) bindKey ( "F1", "down", function ( ) local state = ( not guiGetVisible ( GUIEditor.window[1] ) ) guiSetVisible ( GUIEditor.window[1], state ) showCursor ( state ) end ) also change the directory of the image.
RangeR.. Posted April 14, 2015 Author Posted April 14, 2015 still not working. same error MTA PLAYER SINCE 2008 Staff at UGC - [uGC]Robin|GIGN Ex Staff AND MEMBER OF WGS(RACE CLAN) EX-OWNER AT POWER-GAMING EX-Leading Staff at SGC EX-FOUNDER of CIG EX-FOUNDER of Sm [stealth] EX-Staff of The Matrix My Community Scripts Private Interiors TIME PLAYED [TAB] Job Command Private Pickups
#DRAGON!FIRE Posted April 14, 2015 Posted April 14, 2015 Post meta Please To Contact Me at Skype : [email protected]
3B00DG4MER Posted April 14, 2015 Posted April 14, 2015 so dumb -.- Put it in client and not SERVER or put type="client" in the meta (where do script added) SAF/SAO - 30% Skype: Themerzoug2020 in-game name:3B00DG4MER
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