Zaloguj się by uzyskać pełen dostęp. Nie masz jeszcze konta? Założ je już teraz w kilka sekund.
GTAONLINE.PL
Tematy otagowane jako: buttona
1. usuwanie buttona
hey po kliknieciu button si? nie usuwa pomocy
client-side
        
ehhAnuluj 
guiCreateButton(98667621156"anuluj button"false)

function 
wylaczgui()
    
guiSetVisible(ehhAnulujfalse)
    
showCursor(false)
end
addEventHandler
("onClientGUIClick"ehhAnulujwylaczguifalse)
2. zmiana koloru buttona - dgs
Witam, przychodz? z pytaniem jak zmieni? kolor napisu z funkcji dgs?
Mam kod:

button 
gui:dgsCreateButton(88587515040"abc"falsetocolor(000255))

lecz kolor napisu (czcionki) si? nie zmienia i jest ca?y czas bia?y. Z g?ry dzi?ki za pomoc.

Mo?e ?le wype?niam argument?
3. nie widze buttona
nie widz? buttona , pomuszcie , widz? 2 ale nie widze 3 .
pierw caly kod :
[lua]
addEventHandler("onClientResourceStart", root, function()
napad = guiCreateWindow(438, 185, 467, 306, "Potwied? Napad na Bank", false)
guiSetVisible(napad, false)
guiWindowSetSizable(napad, false)
guiSetAlpha(napad, 0.58)
guiSetProperty(napad, "CaptionColour", "FFFEFEFE")
buttak = guiCreateButton(568, 321, 77, 30, "Ak 47", false, napad)
buttonEmpty = guiCreateButton(194, 129, 15, 15, "", false, napad)
buttonAccept = guiCreateButton(20, 233, 119, 52, "Akceptuj?", false, napad)
buttonRefuse = guiCreateButton(317, 234, 140, 61, "Odrzu?", false, napad)
end)

local marker = createMarker(1821.38318, -1683.33215, 13.38281 , "cylinder", 1, 255, 0, 0)

addEventHandler("onClientMarkerHit", marker,
function(hitElement, md)
if hitElement ~= localPlayer then return end
if not md then return end
guiSetVisible(napad, true)
showCursor(true, false)
end)

addEventHandler("onClientGUIClick", root, function(btn, state)
if btn == "left" and state == "up" then
if source == buttonRefuse then
guiSetVisible(napad, false)
showCursor(false)
end
end
end)

function getElementsWithinMarker(marker)
if (not isElement(marker) or getElementType(marker) ~= "marker") then
...