0 Üye ve 1 Ziyaretçi konuyu incelemekte.
gui.lua'dan yapabilirsin
function mainWndShow()
function setlabelcolor()--guiSetProperty(getControl( wndMain, "BUTON İDSİ"),"NormalTextColour","FFFEA100") -- renk örnek 990000 kırmızı renk hex kodu diyelim eklerken FF99000 şeklinde ekliceksin. guiSetProperty(getControl( wndMain, "kill"),"NormalTextColour","FFFF4444") gguiSetProperty(getControl( wndMain, "skin"),"NormalTextColour","FFFED100") endfunction mainWndShow() setlabelcolor() if not getPedOccupiedVehicle(localPlayer) then hideControls(wndMain, 'repair', 'flip', 'upgrades', 'color', 'paintjob', 'lightson', 'lightsoff') end updateTimer = updateTimer or setTimer(updateGUI, 2000, 0) updateGUI(true)end
Kod: luafunction mainWndShow()bul ve şu şekilde yapKod: luafunction setlabelcolor()--guiLabelSetColor( getControl( wndMain, "buttonun idsi"), r, g,b ) guiLabelSetColor( getControl( wndMain, "kill"), 200, 0, 0 ) guiLabelSetColor( getControl( wndMain, "skin"), 200, 200, 0 ) endfunction mainWndShow() setlabelcolor() if not getPedOccupiedVehicle(localPlayer) then hideControls(wndMain, 'repair', 'flip', 'upgrades', 'color', 'paintjob', 'lightson', 'lightsoff') end updateTimer = updateTimer or setTimer(updateGUI, 2000, 0) updateGUI(true)end
function setlabelcolor()--guiLabelSetColor( getControl( wndMain, "buttonun idsi"), r, g,b ) guiLabelSetColor( getControl( wndMain, "kill"), 200, 0, 0 ) guiLabelSetColor( getControl( wndMain, "skin"), 200, 200, 0 ) endfunction mainWndShow() setlabelcolor() if not getPedOccupiedVehicle(localPlayer) then hideControls(wndMain, 'repair', 'flip', 'upgrades', 'color', 'paintjob', 'lightson', 'lightsoff') end updateTimer = updateTimer or setTimer(updateGUI, 2000, 0) updateGUI(true)end
kodları güncelledim tekrar dene
biryerde hata yapıyor olmasın