Moin Com,
Bei mein Gui wenn ich F7 klicke passiert nichts vorher ging immer es kommen auch keine Error bitte guckt mal drüber
Lua
GUIEditor = {
button = {},
window = {},
gridlist = {},
label = {}
}
addEventHandler("onClientResourceStart", resourceRoot,
function()
iFenster = guiCreateWindow(0.21, 0.26, 0.57, 0.54, "Willkommen auf GreenGaming Test Server", true)
guiWindowSetMovable(iFenster, false)
guiWindowSetSizable(iFenster, false)
Button11 = guiCreateButton(0.04, 0.07, 0.92, 0.17, "Was bedeuten die Radar Symbole?", true, iFenster)
Button12 = guiCreateButton(0.04, 0.28, 0.92, 0.17, "Welche Funktionen sind auf dem Server?", true, iFenster)
Button13 = guiCreateButton(0.04, 0.49, 0.92, 0.17, "Welche Funktionen kommen demnaechst?", true, iFenster)
Button14 = guiCreateButton(0.04, 0.69, 0.92, 0.17, "Alle Tastenkombinationen und Kommandos", true, iFenster)
Button15 = guiCreateButton(0.04, 0.90, 0.92, 0.07, "Schliessen", true, iFenster)
end
)
function offen ()
if guiGetVisible (iFenster) == true then
showCursor (false)
guiSetVisible (iFenster,false)
else
showCursor (true)
guiSetVisible (iFenster,true)
end
end
bindKey ( "F7", "down", offen )
addEventHandler ( "onClientGUIClick", getResourceRootElement(getThisResource()),
function ( )
if (source == Button11) then
showCursor (true)
guiSetVisible (iFenster, false)
guiSetVisible (GUIEditor.window[1], true)
end
end
)
addEventHandler ( "onClientGUIClick", getResourceRootElement(getThisResource()),
function ( )
if (source == Button12) then
showCursor (true)
guiSetVisible (iFenster, false)
guiSetVisible (funk, false)
end
end
)
addEventHandler ( "onClientGUIClick", getResourceRootElement(getThisResource()),
function ( )
if (source == Button14) then
showCursor (true)
guiSetVisible (iFenster, true)
outputChatBox("--------------------------")
outputChatBox("F7: Hilfspanel, F6: Adminpanel")
outputChatBox("F5: Teleportpanel, F4: Stuntpanel")
outputChatBox("F3: Driftpanel, F2: Waffentauschpanel")
outputChatBox("1 für Sprung mit Auto, /sv [Fahrzeugname] um ein Fahrzeug zu spawnen")
outputChatBox(" /savepoint | /loadpoint")
outputChatBox("Alt: NFS Speedbreaker | nochmal Alt um es zu Beenden")
outputChatBox("x: Motor an/aus, l: Licht an/aus, b: Maus")
outputChatBox("--------------------------")
end
end
)
addEventHandler ( "onClientGUIClick", getResourceRootElement(getThisResource()),
function ( )
if (source == Button13) then
showCursor (true)
guiSetVisible (iFenster, true)
outputChatBox("--------------------------")
outputChatBox("Demnaechst: Neues Radar")
outputChatBox("Demnaechst: Neue Lebensanzeige")
outputChatBox("--------------------------")
end
end
)
addEventHandler ( "onClientGUIClick", getResourceRootElement(getThisResource()),
function ( )
if (source == Button15) then
showCursor (false)
guiSetVisible (iFenster, false)
end
end
)
addEventHandler( "onClientResourceStart", getRootElement( ),
function ( )
guiSetVisible (iFenster, false)
end
)
----------------------------------------------------------------------------------------------------------------------
function()
GUIEditor.window[1] = guiCreateWindow(0.68, 0.22, 0.32, 0.78, "Was bedeuten die Radar Symbole?", true)
guiWindowSetMovable(GUIEditor.window[1], false)
guiWindowSetSizable(GUIEditor.window[1], false)
GUIEditor.gridlist[1] = guiCreateGridList(0.05, 0.06, 0.91, 0.92, true, GUIEditor.window[1])
GUIEditor.label[1] = guiCreateLabel(0.03, 0.03, 0.91, 0.07, "Auto Blip: Adminautos", true, GUIEditor.gridlist[1])
guiLabelSetHorizontalAlign(GUIEditor.label[1], "center", false)
guiLabelSetVerticalAlign(GUIEditor.label[1], "center")
GUIEditor.label[2] = guiCreateLabel(0.03, 0.12, 0.91, 0.07, "Auto Blip in LS: Pruefstand", true, GUIEditor.gridlist[1])
guiLabelSetHorizontalAlign(GUIEditor.label[2], "center", false)
guiLabelSetVerticalAlign(GUIEditor.label[2], "center")
GUIEditor.label[3] = guiCreateLabel(0.03, 0.37, 0.91, 0.07, "Schwarz - Grauer Kreis: Party Strand", true, GUIEditor.gridlist[1])
guiLabelSetHorizontalAlign(GUIEditor.label[3], "center", false)
guiLabelSetVerticalAlign(GUIEditor.label[3], "center")
GUIEditor.label[4] = guiCreateLabel(0.03, 0.29, 0.91, 0.07, "Dollar Blip: Autohausraub", true, GUIEditor.gridlist[1])
guiLabelSetHorizontalAlign(GUIEditor.label[4], "center", false)
guiLabelSetVerticalAlign(GUIEditor.label[4], "center")
GUIEditor.label[5] = guiCreateLabel(0.03, 0.20, 0.91, 0.07, "Pistolen Blip: Paintball Halle", true, GUIEditor.gridlist[1])
guiLabelSetHorizontalAlign(GUIEditor.label[5], "center", false)
guiLabelSetVerticalAlign(GUIEditor.label[5], "center")
GUIEditor.label[6] = guiCreateLabel(0.03, 0.43, 0.91, 0.07, "Rotes Kreuz: Leben", true, GUIEditor.gridlist[1])
guiLabelSetHorizontalAlign(GUIEditor.label[6], "center", false)
guiLabelSetVerticalAlign(GUIEditor.label[6], "center")
GUIEditor.button[1] = guiCreateButton(0.03, 0.89, 0.95, 0.08, "Schliessen", true, GUIEditor.gridlist[1])
end
)
addEventHandler ( "onClientGUIClick", getResourceRootElement(getThisResource()),
function ( )
if (source == GUIEditor.button[1]) then
showCursor (false)
guiSetVisible (GUIEditor.window[1], false)
end
end
)
---------------------------------------------------------------------------------------------------------------------------------
function()
funk = guiCreateWindow(0.68, 0.22, 0.32, 0.78, "Welche Funktionen sind auf dem Server?", true)
guiWindowSetMovable(funk, false)
guiWindowSetSizable(funk, false)
GUIEditor.gridlist[1] = guiCreateGridList(0.05, 0.06, 0.91, 0.92, true, funk)
c = guiCreateLabel(0.03, 0.03, 0.91, 0.07, "CarCrash, Pruefstand", true, GUIEditor.gridlist[1])
guiLabelSetHorizontalAlign(c, "center", false)
guiLabelSetVerticalAlign(c, "center")
d = guiCreateLabel(0.03, 0.12, 0.91, 0.07, "Adminautos, Adminhäuser", true, GUIEditor.gridlist[1])
guiLabelSetHorizontalAlign(d, "center", false)
guiLabelSetVerticalAlign(d, "center")
g = guiCreateLabel(0.03, 0.37, 0.91, 0.07, "Spawn|Respawn, Auto springen lassen", true, GUIEditor.gridlist[1])
guiLabelSetHorizontalAlign(g, "center", false)
guiLabelSetVerticalAlign(g, "center")
f = guiCreateLabel(0.03, 0.29, 0.91, 0.07, "Tacho, Autohausraub, Schussverlauf", true, GUIEditor.gridlist[1])
guiLabelSetHorizontalAlign(f, "center", false)
guiLabelSetVerticalAlign(f, "center")
e = guiCreateLabel(0.03, 0.20, 0.91, 0.07, "Waffen aufm Rueckentragen", true, GUIEditor.gridlist[1])
guiLabelSetHorizontalAlign(e, "center", false)
guiLabelSetVerticalAlign(e, "center")
h = guiCreateLabel(0.03, 0.43, 0.91, 0.07, "Save|Load Position, NFS Speedbreaker", true, GUIEditor.gridlist[1])
guiLabelSetHorizontalAlign(h, "center", false)
guiLabelSetVerticalAlign(h, "center")
funkzu = guiCreateButton(0.03, 0.89, 0.95, 0.08, "Schliessen", true, GUIEditor.gridlist[1])
i = guiCreateLabel(0.03, 0.52, 0.91, 0.07, "Waffentausch System, Spielerinfo", true, GUIEditor.gridlist[1])
guiLabelSetHorizontalAlign(i, "center", false)
guiLabelSetVerticalAlign(i, "center")
j = guiCreateLabel(0.03, 0.61, 0.91, 0.07, "FPS Hud", true, GUIEditor.gridlist[1])
guiLabelSetHorizontalAlign(j, "center", false)
guiLabelSetVerticalAlign(j, "center")
end
)
addEventHandler ( "onClientGUIClick", getResourceRootElement(getThisResource()),
function ( )
if (source == funkzu) then
showCursor (false)
guiSetVisible (funk, false)
end
end
)
Alles anzeigen