Hallo,
ich habe mir ein GUI erstellt, dass sich mit de Befehl /vip öffnen soll, aber immer wenn ich den Befehl eingebe erscheint folgende Meldung: ERROR: VIP-Panel\VIP-Panel.lua:27: attempt to call global "guiSetVisiblee" (a nil value")
Lua
addEventHandler("onClientResourceStart", resourceRoot,
function()
GUIEditor.window = guiCreateWindow(620, 205, 683, 553, "VIP-Panel by [LoD]Mr.K3kZ", false)
guiWindowSetMovable(GUIEditor.window, false)
guiWindowSetSizable(GUIEditor.window, false)
guiSetAlpha(GUIEditor.window, 1.00)
GUIEditor.edit[1] = guiCreateEdit(0.05, 0.08, 0.61, 0.16, "You are a LoD-VIP. Gratz.", true, GUIEditor.window)
guiEditSetReadOnly(GUIEditor.edit[1], true)
GUIEditor.button[1] = guiCreateButton(0.05, 0.37, 0.47, 0.10, "VIP-Skin", true, GUIEditor.window)
guiSetProperty(GUIEditor.button[1], "NormalTextColour", "FFAAAAAA")
GUIEditor.button[2] = guiCreateButton(0.05, 0.54, 0.47, 0.10, "VIP-Equip", true, GUIEditor.window)
guiSetProperty(GUIEditor.button[2], "NormalTextColour", "FFAAAAAA")
GUIEditor.button[3] = guiCreateButton(0.05, 0.70, 0.47, 0.10, "13500 Blood", true, GUIEditor.window)
guiSetProperty(GUIEditor.button[3], "NormalTextColour", "FFAAAAAA")
GUIEditor.staticimage[1] = guiCreateStaticImage(0.76, 0.08, 0.17, 0.16, ":guipro/images/examples/mtalogo.png", true, GUIEditor.window)
guiSetAlpha(GUIEditor.staticimage[1], 0.65)
guiSetVisible(GUIEditor.window, false)
end
)
function showVIP()
if (guiGetVisible(GUIEditor.button) == false) then
guiSetVisible(GUIEditor.button, true)
showCursor(true)
end
end
addCommandHandler('vip',showVIP)
Alles anzeigen