0 Üye ve 1 Ziyaretçi konuyu incelemekte.
Merhaba Mahlukatın paylaşmıs oldugu event sistemını kullanıyorum fakat eventte B F1 ve sp komutları veyatta panelleri açılıyor bunları nasıl engelleyebilirim yardımcı olurmusunuz Linki görebilmek için Kayıt olun yada Giriş yapın.
function toggleFRWindow() if getElementData(getLocalPlayer(),'NGEvents:IsPlayerInEvent') then return false end if isWindowOpen(wndMain) then showCursor(false) hideAllWindows() colorPicker.closeSelect() else showCursor(true) showAllWindows() endend
Scriptte fr.client dosyası yok. Event-server.lua dosyası var
Freeroam scriptinin içindeki fr_client.lua dosyasından bahsetmiştim Linki görebilmek için Kayıt olun yada Giriş yapın.
butons = { {"NGEvents:IsPlayerInEvent", -- görevin datası { ["F1"] = true, -- iptal edilcek tuş ["B"] = true, } }, }addEventHandler("onClientKey", root, function(button, press) -- oyuncu herhangi bir tuşa bastığında for i,v in pairs(butons) do -- butons tablosunu döndür local veri, tus = unpack(v) -- tablodaki verileri dğeişkene koy if tus[button] and getElementData(localPlayer, veri) then -- eğer basılan uton tusların içinde varsa ve oyuncunun datası bellirtilen data ise cancelEvent() -- iptal et end end end)
client.luaKodbutons = { {"NGEvents:IsPlayerInEvent", -- görevin datası { ["F1"] = true, -- iptal edilcek tuş ["B"] = true, } }, }addEventHandler("onClientKey", root, function(button, press) -- oyuncu herhangi bir tuşa bastığında for i,v in pairs(butons) do -- butons tablosunu döndür local veri, tus = unpack(v) -- tablodaki verileri dğeişkene koy if tus[button] and getElementData(localPlayer, veri) then -- eğer basılan uton tusların içinde varsa ve oyuncunun datası bellirtilen data ise cancelEvent() -- iptal et end end end)herhangi bir scripte koyabilirsin