Hey,
Ich hatte vor ein kleines GUI zu erstellen doch es erscheint nicht und es kommen folgende Warnings :
Spoiler anzeigen
Das GUI-
Lua
GUIEditor = {
button = {},
staticimage = {},
edit = {}
}
addEventHandler("onClientResourceStart", resourceRoot,
function()
GUIEditor.staticimage[1] = guiCreateStaticImage(-3, 0, 1920, 1080, "images/background.png", false, "")
GUIEditor.staticimage[2] = guiCreateStaticImage(284, 118, 1395, 800, "images/panel.png", false, GUIEditor.staticimage[1],"")
GUIEditor.button[1] = guiCreateButton(363, 543, 117, 40, "Login", false, GUIEditor.staticimage[2], "" )
guiSetProperty(GUIEditor.button[1], "NormalTextColour", "FFAAAAAA")
GUIEditor.button[2] = guiCreateButton(297, 598, 258, 40, "Create Account", false, GUIEditor.staticimage[2], "" )
guiSetProperty(GUIEditor.button[2], "NormalTextColour", "FFAAAAAA")
GUIEditor.edit[1] = guiCreateEdit(332, 327, 185, 57, "", false, GUIEditor.staticimage[2], "" )
GUIEditor.edit[2] = guiCreateEdit(332, 443, 185, 57, "", false, GUIEditor.staticimage[2], "" )
GUIEditor.staticimage[3] = guiCreateStaticImage(0, 960, 1919, 120, "images/grau.png", false, GUIEditor.staticimage[1], "" )
GUIEditor.staticimage[4] = guiCreateStaticImage(0, 0, 1919, 120, "images/grau.png", false, GUIEditor.staticimage[1], "")
end
)
Alles anzeigen
Die Warnings-
Code
lua:8 Bad file path@ 'guiCreateStaticImage' []
lua:10: Bad argument 'guiCreateStaticImage' [expected gui element at argument 7,got boolean]
lua:12: Bad argument @'guiCreateButton' [expected gui element at argument 7,got boolean]
lua:13: Bad dargument 'guiSetProperty' [expected gui element at argument 7,got boolean]
lua:14: Bad argument 'guiCreateButton' [expected gui element at argument 7,got boolean]
lua:15: Bad argument @ 'guiSetProperty' [expected gui element at argument 7,got boolean]
lua:16 Bad argument @ 'guiCreateEdit' [expected gui element at argument 7,got boolean]
lua 17: Bad argument @ 'guiCreateEdit' [expected gui element at argument 7,got boolean]
lua:19: Bad argument @'guiCreateStaticImage' [expected gui element at argument 7,got boolean]
lua:20: Bad argument @'guiCreateStaticImage' [expected gui element at argument 7,got boolean]
XML:
Danke im Vorraus