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: panelek
1. Panelek
GUIEditor = {
    
button = {},
    
window = {}
}
addEventHandler("onClientResourceStart", resourceRoot,
    function()
local screenW, screenH = guiGetScreenSize()
        
LSF = guiCreateWindow((screenW - 545) / 2, (screenH - 315) / 2, 545, 315, "Bilety", false)
        
guiWindowSetSizable(GUIEditor.window[1], false)

        
GUIEditor.button[1] = guiCreateButton(68, 104, 161, 89, "Bilet do Los Santos - 750z?", false, GUIEditor.window[1])
        
guiSetProperty(GUIEditor.button[1], "NormalTextColour", "FFAAAAAA")
        
GUIEditor.button[2] = guiCreateButton(304, 104, 161, 89, "Bilet do Las Venturas - 800z?", false, GUIEditor.window[1])
        
guiSetProperty(GUIEditor.button[2], "NormalTextColour", "FFAAAAAA")
        
GUIEditor.button[3] = guiCreateButton(493, 279, 42, 26, "X", false, GUIEditor.window[1])    
    
end
)

LSF = createMarker (xx.xx,xx,"cylinder",xx,xx,xx)

function 
panell (thePlayer)
    
onPlayerMarkerHit then
    guiSetVisible LSF 
(thePlayer)
end


onClientGUIClick 
( GUIEditor.button[1] ) then
takePlayerMoney 
(source, 750)
setElementPosiotion (thePlayer, xx,xx,xx)

Chodzi mi o to zeby po wejsciu w marker otwiera?o sie gui + dzia?aj?ca myszka oraz zabieranie kasy po kliknieciu w button. Jeden button ma funkcje zamykania. Ide w dobrym kierunku? Je?li nie to prosze o poprawe. Staffiam :piwo: