I made a panel vip by GUIEditor, but I can not open when using this form:
(PS: after then I put the functions of each button)
GUIEditor = {
staticimage = {},
tabpanel = {},
label = {}
}
function paineldovip(player)
local accName = getAccountName ( getPlayerAccount ( player ) )
painelvip = guiCreateWindow(270, 120, 488, 504, "Painel Vip", false)
guiWindowSetSizable(painelvip, false)
botaofechar = guiCreateButton(641, 124, 107, 15, "Fechar", false)
GUIEditor.tabpanel[1] = guiCreateTabPanel(10, 154, 468, 340, false, painelvip)
if isObjectInACLGroup ("user."..accName, aclGetGroup ( "Vip" ) ) then
tabvipbasic = guiCreateTab("Vip Basic", GUIEditor.tabpanel[1])
kitbasic1 = guiCreateButton(12, 10, 439, 15, "Kit Vip 1", false, tabvipbasic)
kitbasic2 = guiCreateButton(10, 60, 443, 15, "Kit Vip 2", false, tabvipbasic)
kitmedic = guiCreateButton(8, 110, 443, 15, "Kit Vip Medic", false, tabvipbasic)
GUIEditor.label[1] = guiCreateLabel(22, 35, 421, 15, "1xMP5 1xCountry Rifle 300xSmg Ammo 20xSniper Ammo", false, tabvipbasic)
GUIEditor.label[2] = guiCreateLabel(18, 135, 421, 15, "1xMedic Kit 1xPizza 1xMilk", false, tabvipbasic)
GUIEditor.label[3] = guiCreateLabel(20, 85, 421, 15, "1xM4 1xSniper Rifle 300xAssault Ammo 100xSniperr Ammo", false, tabvipbasic)
bike = guiCreateButton(10, 160, 443, 15, "Bike Vip", false, tabvipbasic)
GUIEditor.label[4] = guiCreateLabel(18, 185, 421, 15, "1xBike", false, tabvipbasic)
elseif isObjectInACLGroup ("user."..accName, aclGetGroup ( "VipGold" ) ) then
tabvipgold = guiCreateTab("Vip Gold", GUIEditor.tabpanel[1])
kitgold1 = guiCreateButton(10, 10, 443, 15, "Kit Gold 1", false, tabvipgold)
kitgold2 = guiCreateButton(10, 60, 443, 15, "Kit Gold 2", false, tabvipgold)
kitmedicogold = guiCreateButton(10, 110, 443, 15, "Kit Medico", false, tabvipgold)
kitgolditens = guiCreateButton(6, 160, 443, 15, "Kit Itens", false, tabvipgold)
GUIEditor.label[5] = guiCreateLabel(10, 35, 434, 15, "1xMP5 | 1xSniper Amno | 300xSmg Ammo | 20xSniper Ammo", false, tabvipgold)
GUIEditor.label[6] = guiCreateLabel(10, 235, 434, 15, "1xBike", false, tabvipgold)
GUIEditor.label[7] = guiCreateLabel(10, 185, 434, 15, "1xGPS | 1xMap | 1xToolbox | 1xWatch | 1xRadio Devide", false, tabvipgold)
GUIEditor.label[8] = guiCreateLabel(9, 85, 434, 15, "1xM4 | 1xSniper Rifle | 300xAssault Ammo | 100xSniper Ammo", false, tabvipgold)
GUIEditor.label[9] = guiCreateLabel(10, 135, 434, 15, "1xMedic Kit | 1xMorphine | 1xPizza | 1xMilk", false, tabvipgold)
bikevipgold = guiCreateButton(6, 210, 443, 15, "Bike Vip", false, tabvipgold)
elseif isObjectInACLGroup ("user."..accName, aclGetGroup ( "VipPremiun" ) ) then
tabvippremiun = guiCreateTab("Vip Premiun", GUIEditor.tabpanel[1])
kitpremiunitens = guiCreateButton(10, 260, 448, 15, "Kit Itens", false, tabvippremiun)
kitpremiunbolsas = guiCreateButton(10, 210, 448, 15, "Kit Bolsas", false, tabvippremiun)
kitpremiunmedico = guiCreateButton(10, 160, 448, 15, "Kit Medico", false, tabvippremiun)
kitpremiunsniper = guiCreateButton(10, 110, 448, 15, "Kit Sniper", false, tabvippremiun)
kitpremiun2 = guiCreateButton(10, 60, 448, 15, "Kit Premiun 2", false, tabvippremiun)
GUIEditor.label[10] = guiCreateLabel(10, 285, 438, 15, "1xGPS | 1xToolbox | 1xMap | 1xWatch | 1xInfrared Google | 1xRadio Devide", false, tabvippremiun)
GUIEditor.label[11] = guiCreateLabel(10, 235, 438, 15, "1xAlice Backpack | 1xTent", false, tabvippremiun)
GUIEditor.label[12] = guiCreateLabel(10, 185, 438, 15, "1xMedic Kit | 1xMorphine | 1xPizza | 1xMilk", false, tabvippremiun)
GUIEditor.label[13] = guiCreateLabel(10, 135, 438, 15, "1xSniper | 1xSniper Skin | 100xSniper Ammo", false, tabvippremiun)
GUIEditor.label[14] = guiCreateLabel(10, 85, 438, 15, "1xM4 | 1xSniper Rifle | 300xAssault Ammo | 100xSniper Ammo", false, tabvippremiun)
kitpremiun1 = guiCreateButton(10, 10, 448, 15, "Kit Premiun 1", false, tabvippremiun)
GUIEditor.label[15] = guiCreateLabel(10, 35, 438, 15, "1xMP5 | 1xSniper Rifle | 300xSmg Ammo | 20xSniper Ammo", false, tabvippremiun)
tabvippremiun2 = guiCreateTab("Vip Premiun pagina 2", GUIEditor.tabpanel[1])
kitpremiuindustrial = guiCreateButton(9, 11, 448, 15, "Kit Industrial", false, tabvippremiun2)
motopremiun = guiCreateButton(9, 111, 448, 15, "Moto Vip", false, tabvippremiun2)
GUIEditor.label[16] = guiCreateLabel(11, 136, 447, 15, "1xSanchez", false, tabvippremiun2)
GUIEditor.label[17] = guiCreateLabel(10, 86, 447, 15, "1xBike", false, tabvippremiun2)
bikevippremiun = guiCreateButton(10, 61, 448, 15, "Bike Vip", false, tabvippremiun2)
GUIEditor.label[18] = guiCreateLabel(9, 36, 447, 15, "1xEngine | 2xTire", false, tabvippremiun2)
GUIEditor.staticimage[1] = guiCreateStaticImage(10, 28, 468, 116, ":vip.png", false, painelvip)
else
outputChatBox ( "#ff0000 Voce nao e um VIP!", player, 255,0,0, true)
end
end
addCommandHandler("painelvip",paineldovip)