0 Üye ve 1 Ziyaretçi konuyu incelemekte.
sGenislik,sUzunluk = guiGetScreenSize()Genislik,Uzunluk = 660,600X = (sGenislik/2) - (Genislik/2)Y = (sUzunluk/2) - (Uzunluk/2)-- PANEL --panelim = guiCreateWindow(X, Y, Genislik, Uzunluk, "GUİ PANEL", false)guiSetProperty(panelim, "CaptionColour", "FFFFFFFF")guiWindowSetSizable(panelim, false)guiSetVisible(panelim, false) bindKey("F5", "down", ---- PANELİ AÇMA TUŞU!function() if getElementInterior(localPlayer) == 0 and getElementDimension(localPlayer) == 0 then guiSetVisible(panelim, not guiGetVisible(panelim)) showCursor(guiGetVisible(panelim)) endend)
styleData = { -- Название стиля/Нумерация. {"Stil #1",1}, {"Stil #2",2}, {"Stil #3",3}, {"Stil #4",4},}function centerWindow(center_window) local screenW,screenH=guiGetScreenSize() local windowW,windowH=guiGetSize(center_window,false) local x,y = (screenW-windowW)/2,(screenH-windowH)/2 guiSetPosition(center_window,x,y,false)end windowStyle = guiCreateWindow(15,175,250,385,"Yürüyüş Stilleri",false)centerWindow(windowStyle)guiSetVisible(windowStyle, false) grid = guiCreateGridList(10, 25, 230, 265, false, windowStyle)local column1 = guiGridListAddColumn(grid, "Tüm Stiller", 0.8) for i, data in ipairs (styleData) do local row = guiGridListAddRow(grid) guiGridListSetItemText(grid, row, column1, data[1], false, false) guiGridListSetItemData(grid, row, column1, data[2])end buttonStyle1 = guiCreateButton(10,300,300,35,"Stili Kullan",false,windowStyle)buttonStyle2 = guiCreateButton(10,340,300,35,"İptal",false,windowStyle)addEventHandler("onClientGUIClick", root, function () if ( source == buttonStyle1 ) then if guiGridListGetSelectedItem(grid) ~= -1 then local textName = guiGridListGetItemText(grid, guiGridListGetSelectedItem(grid), column1) local dataName = guiGridListGetItemData(grid, guiGridListGetSelectedItem(grid), column1) guiSetVisible(windowStyle, false) showCursor(false) triggerServerEvent("giveStyle", getRootElement(), getLocalPlayer(), dataName) outputChatBox("#00FF00[Yürüyüş Stili] #FFFFFFSeçilen yürüyüş stili. *"..textName.."*.", 255, 255, 255, true) else outputChatBox("#00FF00[Yürüyüş Stili] #FFFFFFStil seç.",255,255,255,true) end elseif ( source == buttonStyle2 ) then guiSetVisible(windowStyle,false) showCursor(false) endend)bindKey("F5", "down", ---- PANELİ AÇMA TUŞU!function() if getElementInterior(localPlayer) == 0 and getElementDimension(localPlayer) == 0 then guiSetVisible(windowStyle, not guiGetVisible(windowStyle)) showCursor(guiGetVisible(windowStyle)) endend)