0 Üye ve 1 Ziyaretçi konuyu incelemekte.
function ackapa()if (guiGetVisible (wnd) == true) then --> Paneli aktifleştirme.guiSetVisible(wnd, false) --> Paneli aktifleştirme.showCursor(false)elseif (guiGetVisible (wnd) == false) then --> Paneli aktifleştirme.guiSetVisible(wnd, true) --> Paneli aktifleştirme.showCursor(true)endendbindKey("F9", "down", ackapa) --> Panelin açma kapama tuşu.addCommandHandler("wnd", ackapa) --> Panelin açma kapama komutu.
addEvent("Freeroam:addOpenedWindows",true)addEventHandler("Freeroam:addOpenedWindows",root,function(bool) if bool then local wnd = {element=source} g_openedWindows[wnd] = {} else for wnd,_ in pairs(g_openedWindows) do if wnd.element == source then g_openedWindows[wnd] = nil end end end end)
addEvent("WndAc_Kapa",true)addEventHandler("WndAc_Kapa",root,function()guiSetVisible(wnd,not guiGetVisible(wnd))showCursor(guiGetVisible(wnd))triggerEvent("Freeroam:addOpenedWindows",wnd,guiGetVisible(wnd))end)--[[function ackapa()if (guiGetVisible (wnd) == true) then --> Paneli aktifleştirme.guiSetVisible(wnd, false) --> Paneli aktifleştirme.showCursor(false)elseif (guiGetVisible (wnd) == false) then --> Paneli aktifleştirme.guiSetVisible(wnd, true) --> Paneli aktifleştirme.showCursor(true)endendbindKey("F9", "down", ackapa) --> Panelin açma kapama tuşu.addCommandHandler("wnd", ackapa) --> Panelin açma kapama komutu.--]]
--fr_client.luafunction wndackapa()triggerEvent("WndAc_Kapa",resourceRoot)end-- wndMain kısmı{'btn', id='wndpanel', text='Butonismi', onclick=wndackapa, width=97},
il olarak freeroam/gui.lua içinde ortalra bi yerlere şu kodu ekle;KodaddEvent("Freeroam:addOpenedWindows",true)addEventHandler("Freeroam:addOpenedWindows",root,function(bool) if bool then local wnd = {element=source} g_openedWindows[wnd] = {} else for wnd,_ in pairs(g_openedWindows) do if wnd.element == source then g_openedWindows[wnd] = nil end end end end)KodaddEvent("WndAc_Kapa",true)addEventHandler("WndAc_Kapa",root,function()guiSetVisible(wnd,not guiGetVisible(wnd))showCursor(guiGetVisible(wnd))triggerEvent("Freeroam:addOpenedWindows",wnd,guiGetVisible(wnd))end)--[[function ackapa()if (guiGetVisible (wnd) == true) then --> Paneli aktifleştirme.guiSetVisible(wnd, false) --> Paneli aktifleştirme.showCursor(false)elseif (guiGetVisible (wnd) == false) then --> Paneli aktifleştirme.guiSetVisible(wnd, true) --> Paneli aktifleştirme.showCursor(true)endendbindKey("F9", "down", ackapa) --> Panelin açma kapama tuşu.addCommandHandler("wnd", ackapa) --> Panelin açma kapama komutu.--]]Kod--fr_client.luafunction wndackapa()triggerEvent("WndAc_Kapa",resourceRoot)end-- wndMain kısmı{'btn', id='wndpanel', text='Butonismi', onclick=wndackapa, width=97},
imlec kapanmıyor f1 kapanınca sadece kamber bölümü acıkken böyle yapıyor