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 screenWscreenH guiGetScreenSize()
        
LSF guiCreateWindow((screenW 545) / 2, (screenH 315) / 2545315"Bilety"false)
        
guiWindowSetSizable(GUIEditor.window[1], false)

        
GUIEditor.button[1] = guiCreateButton(6810416189"Bilet do Los Santos - 750z?"falseGUIEditor.window[1])
        
guiSetProperty(GUIEditor.button[1], "NormalTextColour""FFAAAAAA")
        
GUIEditor.button[2] = guiCreateButton(30410416189"Bilet do Las Venturas - 800z?"falseGUIEditor.window[1])
        
guiSetProperty(GUIEditor.button[2], "NormalTextColour""FFAAAAAA")
        
GUIEditor.button[3] = guiCreateButton(4932794226"X"falseGUIEditor.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 
(source750)
setElementPosiotion (thePlayerxx,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: