Jump to content

BriGhtx3

Members
  • Posts

    378
  • Joined

  • Last visited

Everything posted by BriGhtx3

  1. Now my Script looks like this : addEventHandler("onClientResourceStart", getResourceRootElement(getThisResource()),toggleWindowVis) function toggleWindowVis(key,keyState) if guiGetVisible(StatusW) then guiSetVisible ( StatusW, false) else guiSetVisible ( StatusW, true) end end bindKey ( "F1", "down", Status) It doesn't work either
  2. You mean sth. like this? guiSetVisible ( StatusW, false) end addEventHandler("onClientResourceStart",resourceRoot,Status) addEventHandler("onClientResourceStart", getResourceRootElement(getThisResource()), function () Status() end )
  3. Hey Guys, i have a little question : Why can't I see the window in the Ingame? Is there any error in the Code? function Status() local sWidth, sHeight = guiGetScreenSize() local Width,Height = 800,45 local X = (sWidth/2) - (Width/2) local Y = sHeight - (Height/2) local StatusW = guiCreateWindow ( X, Y, Width, Height, "SoLA-Status", true ) guiWindowSetMovable ( StatusW, true ) guiWindowSetSizable ( StatusW, false ) local tabPanel = guiCreateTabPanel ( 0, 0.1, 1, 1, true, StatusW ) local tabAll = guiCreateTab( "Allgemein", tabPanel ) local tabBed = guiCreateTab( "Bedürfnisse", tabPanel ) local tabRel = guiCreateTab( "Regeln", tabPanel ) guiCreateButton(0.02, 0.04, 0.94, 0.2, "JOB", true, tabAll) guiCreateLabel(0.02, 0.04, 0.94, 0.2, "Die Bedürfnisse : ", true, tabBed) guiCreateLabel(0.02, 0.04, 0.94, 0.2, "Keine unnötigen ADs, Kein Töten (ohne Grund), kein Flaming, kein Spamming", true, tabRel) guiSetVisible(StatusW, false) end addEventHandler("onClientResourceStart",resourceRoot,Status) Help would be really nice (This is my first self-made script ) Greetz Edit : I forgot to say whether I see any errors or if the console shows any errors : Really quick : No
×
×
  • Create New...