Sehr geehrte Community,
wenn ich mein Script hier mit dem LUA-Code einbinden will, kommt bei mir sowas raus!
Lua
----------------------Major-Team--------Clientside-------by[MRLoudly----------------------
addEventHandler("onClientResourceStart",resourceRoot, function() GUIEditor_Window = {} GUIEditor_Button = {} GUIEditor_Label = {}
GUIEditor_Window[1] = guiCreateWindow(378,122,788,581,"",false) Major_Close_Button = guiCreateButton(325,523,138,45,"Schließen",false,GUIEditor_Window[1]) guiSetFont(Major_Close_Button,"default-bold-small") GUIEditor_Button[1] = guiCreateButton(439,334,5,5,"",false,GUIEditor_Window[1]) GUIEditor_Label[1] = guiCreateLabel(239,35,312,53,"Major-Reallife",false,GUIEditor_Window[1]) guiSetFont(GUIEditor_Label[1],"sa-header") GUIEditor_Label[2] = guiCreateLabel(293,81,202,47,"Teamliste",false,GUIEditor_Window[1]) guiSetFont(GUIEditor_Label[2],"sa-header") Major_Memo = guiCreateMemo(83,148,622,359,"",false,GUIEditor_Window[1]) guiMemoSetReadOnly(Major_Memo,true) GUIEditor_Label[3] = guiCreateLabel(146,11,309,17,"Hier findest du alle Teammitglieder von Major-Reallife!",false,Major_Memo) guiLabelSetColor(GUIEditor_Label[3],0,0,0) guiSetFont(GUIEditor_Label[3],"default-bold-small") GUIEditor_Label[4] = guiCreateLabel(146,97,308,16,"Projektvorstand: [MR]Loudly",false,Major_Memo) guiLabelSetColor(GUIEditor_Label[4],0,0,0) guiSetFont(GUIEditor_Label[4],"default-bold-small") GUIEditor_Label[5] = guiCreateLabel(57,186,5,5,"",false,GUIEditor_Label[4]) GUIEditor_Label[6] = guiCreateLabel(146,114,321,15,"Projektmanager: [MR]soapmctavish und [MR]Killer4Live",false,Major_Memo) guiLabelSetColor(GUIEditor_Label[6],0,0,0) guiSetFont(GUIEditor_Label[6],"default-bold-small") GUIEditor_Label[7] = guiCreateLabel(145,132,312,15,"Admin m. V.: [MR]Kylee und [MR]Metax",false,Major_Memo) guiLabelSetColor(GUIEditor_Label[7],0,0,0) guiSetFont(GUIEditor_Label[7],"default-bold-small") GUIEditor_Label[8] = guiCreateLabel(145,151,223,16,"Admin: /",false,Major_Memo) guiLabelSetColor(GUIEditor_Label[8],0,0,0) guiSetFont(GUIEditor_Label[8],"default-bold-small") GUIEditor_Label[9] = guiCreateLabel(146,169,308,16,"Supermoderator: /",false,Major_Memo) guiLabelSetColor(GUIEditor_Label[9],0,0,0) guiSetFont(GUIEditor_Label[9],"default-bold-small") GUIEditor_Label[10] = guiCreateLabel(57,186,5,5,"",false,GUIEditor_Label[9]) GUIEditor_Label[11] = guiCreateLabel(146,187,210,16,"Moderator: /",false,Major_Memo) guiLabelSetColor(GUIEditor_Label[11],0,0,0) guiSetFont(GUIEditor_Label[11],"default-bold-small") GUIEditor_Label[12] = guiCreateLabel(146,204,210,16,"Supporter: [MR]Loudly",false,Major_Memo) guiLabelSetColor(GUIEditor_Label[12],0,0,0) guiSetFont(GUIEditor_Label[12],"default-bold-small") GUIEditor_Label[13] = guiCreateLabel(9,555,106,17,"Stand: 15.09.2012",false,GUIEditor_Window[1]) end)
function Major_on_Resource_Start () guiSetVisible(GUIEditor_Window[1], false)endaddEventHandler("onClientResourceStart", getResourceRootElement(getThisResource()), Major_on_Resource_Start)
function show_GUIEditor_Window () local IsWindowVisible = guiGetVisible(GUIEditor_Window[1]) if (IsWindowVisible == true) then guiSetVisible(GUIEditor_Window, false) guiSetInputEnabled(false) showCursor(false) end if (IsWindowVisible == false) then guiSetVisible(GUIEditor_Window, true) guiSetInputEnabled(true) showCursor(true) endendbindKey("F2", "down", show_GUIEditor_Window)addCommandHandler("team", show_GUIEditor_Window)
Und obwohl das Script +80 Zeilen hat! Die sind einfach nicht in Zeilen geordnet
Kann mir einer sagen, wie ich das richtig einbinden soll? Dankeschön!