MTASA TÜRK
Türkiye'nin En Güncel MTA Platformu


[YARDIM] Panel Hakkında Sorun Var

0 Üye ve 1 Ziyaretçi konuyu incelemekte.

Çevrimdışı LaykSis

  • Yeni Üye
  • *
    • İleti: 47
: 29 Mayıs 2017, 00:49:40
Arkadaşlar Oyuna girer girmez panel açılıyor
Kod: lua
function Window ( )

        if ( guiGetVisible ( myWindow ) == true ) then   
       
                guiSetVisible ( myWindow, false )

                showCursor ( false )
        else     
                guiSetVisible ( myWindow, true )

                showCursor ( true )
        end
end


myWindow = guiCreateWindow ( 0.35, 0.0, .4, .5, "LC-Gaming.", true )



local tabPanel = guiCreateTabPanel ( 0, 0.1, 1, 1, true, myWindow )



local Teleports = guiCreateTab( "Işınlanma Paneli", tabPanel )



--GUI Buttons
LSAirport = guiCreateButton( 0.03, 0.01, 0.18, 0.12, "Doğma Bölgesi", true, Teleports )
guiSetFont ( LSAirport, "default-bold-small" )

LVAirport = guiCreateButton( 0.03, 0.13, 0.18, 0.12, "Doğma Bölgesi-2", true, Teleports )
guiSetFont ( LVAirport, "default-bold-small" )

AbandedAirstrip = guiCreateButton( 0.03, 0.25, 0.18, 0.12, "Desert Airstrip", true, Teleports )
guiSetFont ( AbandedAirstrip, "default-bold-small" )

SFAirport = guiCreateButton( 0.03, 0.37, 0.18, 0.12, "SF  Airport", true, Teleports )
guiSetFont ( SFAirport, "default-bold-small" )

MountChiliad = guiCreateButton( 0.03, 0.49, 0.18, 0.12, "Mount Chiliad", true, Teleports )
guiSetFont ( MountChiliad, "default-bold-small" )

WangCars = guiCreateButton( 0.03, 0.61, 0.18, 0.12, "Wang Cars", true, Teleports )
guiSetFont ( WangCars, "default-bold-small" )

Ottos = guiCreateButton( 0.4, 0.01, 0.18, 0.12, "Otto's Cars", true, Teleports )
guiSetFont ( Ottos, "default-bold-small" )

Area51 = guiCreateButton( 0.4, 0.13, 0.18, 0.12, "Area 51", true, Teleports )
guiSetFont ( Area51, "default-bold-small" )

BigEar = guiCreateButton( 0.4, 0.25, 0.18, 0.12, "Big Ear", true, Teleports )
guiSetFont ( BigEar, "default-bold-small" )

BlueBerry = guiCreateButton( 0.4, 0.37, 0.18, 0.12, "BlueBerry Acres", true, Teleports )
guiSetFont ( BlueBerry, "default-bold-small" )

Heli = guiCreateButton( 0.4, 0.49, 0.18, 0.12, "Heli Pad", true, Teleports )
guiSetFont ( Heli, "default-bold-small" )

Grove = guiCreateButton( 0.4, 0.61, 0.18, 0.12, "Grove Street", true, Teleports )
guiSetFont ( Grove, "default-bold-small" )

Dam = guiCreateButton( 0.77, 0.01, 0.18, 0.12, "Sherman Dam", true, Teleports )
guiSetFont ( Dam, "default-bold-small" )

BackBeyond = guiCreateButton( 0.77, 0.13, 0.18, 0.12, "Back O Beyond", true, Teleports )
guiSetFont ( BackBeyond, "default-bold-small" )

Quarry = guiCreateButton( 0.77, 0.25, 0.18, 0.12, "Quarry", true, Teleports )
guiSetFont ( Quarry, "default-bold-small" )

Bayside = guiCreateButton( 0.77, 0.37, 0.18, 0.12, "Bayside", true, Teleports )
guiSetFont ( Bayside, "default-bold-small" )

Pecker = guiCreateButton( 0.77, 0.49, 0.18, 0.12, "Las Payasadas", true, Teleports )
guiSetFont ( Pecker, "default-bold-small" )

Bridge = guiCreateButton( 0.77, 0.61, 0.18, 0.12, "Bridge Facts", true, Teleports )
guiSetFont ( Bridge, "default-bold-small" )

Close = guiCreateButton( -0.03, 0.94, 1.1, 0.063, "Çıkış 'F6'", true, Teleports )
guiSetFont ( Close, "default-bold-small" )


bindKey ( "F6", "down", Window )


guiSetAlpha ( myWindow, 1 )
guiWindowSetSizable ( myWindow, false )



--Create Labels

guiLabelSetColor ( One, math.random(0, 255), math.random(0, 255), math.random(0, 255) )

guiSetFont ( One, "sa-header" )

--Label Color
function changeLabelColor ( )

guiLabelSetColor ( One, math.random(0, 255), math.random(0, 255), math.random(0, 255) )
end

setTimer ( changeLabelColor, 1000, 0 )


--Close
addEventHandler ( "onClientGUIClick", getResourceRootElement(getThisResource()),
        function ( )
           if (source == Close) then
           guiSetVisible( myWindow, false )
           showCursor( false )
                end 

           end
)


--Teleports
addEventHandler ( "onClientGUIClick", getResourceRootElement(getThisResource()),
        function ( )
            if (source == MountChiliad) then
            local player = getLocalPlayer()
                    setElementPosition (player , -1968.8029785156, 137.68307495117, 27.6875  )
            end
          end
)

addEventHandler ( "onClientGUIClick", getResourceRootElement(getThisResource()),
        function ( )
            if (source == LSAirport) then
            local player = getLocalPlayer()
                        setElementPosition (player , -1967.6000976563, 138.28996276855, 27.6875  )
            end
         end
)

addEventHandler ( "onClientGUIClick", getResourceRootElement(getThisResource()),
        function ( )
            if (source == LVAirport) then
            local player = getLocalPlayer()
                  setElementPosition (player , 2629.4404296875, 1824.8934326172, 11.0234375  )
            end
         end
)

addEventHandler ( "onClientGUIClick", getResourceRootElement(getThisResource()),
        function ( )
            if (source == AbandedAirstrip) then
            local player = getLocalPlayer()
                  setElementPosition (player , 405.55480957031, 2537.8181152344, 15.9504671096  )
            end
         end
)

addEventHandler ( "onClientGUIClick", getResourceRootElement(getThisResource()),
        function ( )
            if (source == SFAirport) then
            local player = getLocalPlayer()
                  setElementPosition (player , -1223.4442138672, 43.506820678711, 13.541401863098  )
            end
         end
)

addEventHandler ( "onClientGUIClick", getResourceRootElement(getThisResource()),
        function ( )
            if (source == WangCars) then
            local player = getLocalPlayer()
                  setElementPosition (player , -1973.0573730469, 303.94955444336, 34.576179504395  )
            end
         end
)

addEventHandler ( "onClientGUIClick", getResourceRootElement(getThisResource()),
        function ( )
            if (source == Ottos) then
            local player = getLocalPlayer()
                  setElementPosition (player , -1643.1949462891, 1212.7462158203, 6.5843458175659  )
            end
         end
)

addEventHandler ( "onClientGUIClick", getResourceRootElement(getThisResource()),
        function ( )
            if (source == Area51) then
            local player = getLocalPlayer()
                  setElementPosition (player , 215.36633300781, 1919.0992431641, 17.04539108276  )
            end
         end
)

addEventHandler ( "onClientGUIClick", getResourceRootElement(getThisResource()),
        function ( )
            if (source == BigEar) then
            local player = getLocalPlayer()
                  setElementPosition (player , -294.39447021484, 1538.9415283203, 74.965629577637  )
            end
         end
)

addEventHandler ( "onClientGUIClick", getResourceRootElement(getThisResource()),
        function ( )
            if (source == BlueBerry) then
            local player = getLocalPlayer()
                  setElementPosition (player , -3.3661103248596, 36.78341293335, 2.5212655067444  )
            end
         end
)

addEventHandler ( "onClientGUIClick", getResourceRootElement(getThisResource()),
        function ( )
            if (source == Heli) then
            local player = getLocalPlayer()
                  setElementPosition (player , 1535.7916259766, -1353.4775390625, 328.86157226563  )
            end
         end
)

addEventHandler ( "onClientGUIClick", getResourceRootElement(getThisResource()),
        function ( )
            if (source == Grove) then
            local player = getLocalPlayer()
                  setElementPosition (player , 2495.3193359375, -1690.1716308594, 14.765625 )
            end
         end
)

addEventHandler ( "onClientGUIClick", getResourceRootElement(getThisResource()),
        function ( )
            if (source == Dam) then
            local player = getLocalPlayer()
                  setElementPosition (player , -887.02734375, 2000.9217529297, 60.654315948486 )
            end
         end
)

addEventHandler ( "onClientGUIClick", getResourceRootElement(getThisResource()),
        function ( )
            if (source == BackBeyond) then
            local player = getLocalPlayer()
                  setElementPosition (player , -938.93298339844, -2346.8010253906, 59.003288269043 )
            end
         end
)

addEventHandler ( "onClientGUIClick", getResourceRootElement(getThisResource()),
        function ( )
            if (source == Quarry) then
            local player = getLocalPlayer()
                  setElementPosition (player , 816.45257568359, 853.38360595703, 11.109794616699 )
            end
         end
)

addEventHandler ( "onClientGUIClick", getResourceRootElement(getThisResource()),
        function ( )
            if (source == Bayside) then
            local player = getLocalPlayer()
                  setElementPosition (player , -2244.837890625, 2307.1701660156, 4.9691247940063 )
            end
         end
)

addEventHandler ( "onClientGUIClick", getResourceRootElement(getThisResource()),
        function ( )
            if (source == Pecker) then
            local player = getLocalPlayer()
                  setElementPosition (player , -418.42318725586, 2710.0107421875, 62.473159790039 )
            end
         end
)

addEventHandler ( "onClientGUIClick", getResourceRootElement(getThisResource()),
        function ( )
            if (source == Bridge) then
            local player = getLocalPlayer()
                  setElementPosition (player , -2555.5734863281, 1217.0106201172, 42.1484375 )

            end
         end
)










« Son Düzenleme: 29 Mayıs 2017, 01:15:16 Gönderen: Narkoz »
 


MTASA TÜRK

[YARDIM] Panel Hakkında Sorun Var
« : 29 Mayıs 2017, 00:49:40 »

Çevrimdışı Paradox

  • Kurucu
  • *
    • İleti: 743
  • SH Gaming
Yanıtla #1 : 29 Mayıs 2017, 00:52:48
Kod: lua
function Window ( )
        if ( guiGetVisible ( myWindow ) == true ) then   
       
                guiSetVisible ( myWindow, false )
 
                showCursor ( false )
        else     
                guiSetVisible ( myWindow, true )
 
                showCursor ( true )
        end
end
 bindKey ( "F6", "down", Window )
 
myWindow = guiCreateWindow ( 0.35, 0.0, .4, .5, "LC-Gaming.", true )
 guiSetVisible(myWindow,false)
 
 
local tabPanel = guiCreateTabPanel ( 0, 0.1, 1, 1, true, myWindow )
local Teleports = guiCreateTab( "Işınlanma Paneli", tabPanel )
 
--GUI Buttons
LSAirport = guiCreateButton( 0.03, 0.01, 0.18, 0.12, "Doğma Bölgesi", true, Teleports )
guiSetFont ( LSAirport, "default-bold-small" )
 
LVAirport = guiCreateButton( 0.03, 0.13, 0.18, 0.12, "Doğma Bölgesi-2", true, Teleports )
guiSetFont ( LVAirport, "default-bold-small" )
 
AbandedAirstrip = guiCreateButton( 0.03, 0.25, 0.18, 0.12, "Desert Airstrip", true, Teleports )
guiSetFont ( AbandedAirstrip, "default-bold-small" )
 
SFAirport = guiCreateButton( 0.03, 0.37, 0.18, 0.12, "SF  Airport", true, Teleports )
guiSetFont ( SFAirport, "default-bold-small" )
 
MountChiliad = guiCreateButton( 0.03, 0.49, 0.18, 0.12, "Mount Chiliad", true, Teleports )
guiSetFont ( MountChiliad, "default-bold-small" )
 
WangCars = guiCreateButton( 0.03, 0.61, 0.18, 0.12, "Wang Cars", true, Teleports )
guiSetFont ( WangCars, "default-bold-small" )
 
Ottos = guiCreateButton( 0.4, 0.01, 0.18, 0.12, "Otto's Cars", true, Teleports )
guiSetFont ( Ottos, "default-bold-small" )
 
Area51 = guiCreateButton( 0.4, 0.13, 0.18, 0.12, "Area 51", true, Teleports )
guiSetFont ( Area51, "default-bold-small" )
 
BigEar = guiCreateButton( 0.4, 0.25, 0.18, 0.12, "Big Ear", true, Teleports )
guiSetFont ( BigEar, "default-bold-small" )
 
BlueBerry = guiCreateButton( 0.4, 0.37, 0.18, 0.12, "BlueBerry Acres", true, Teleports )
guiSetFont ( BlueBerry, "default-bold-small" )
 
Heli = guiCreateButton( 0.4, 0.49, 0.18, 0.12, "Heli Pad", true, Teleports )
guiSetFont ( Heli, "default-bold-small" )
 
Grove = guiCreateButton( 0.4, 0.61, 0.18, 0.12, "Grove Street", true, Teleports )
guiSetFont ( Grove, "default-bold-small" )
 
Dam = guiCreateButton( 0.77, 0.01, 0.18, 0.12, "Sherman Dam", true, Teleports )
guiSetFont ( Dam, "default-bold-small" )
 
BackBeyond = guiCreateButton( 0.77, 0.13, 0.18, 0.12, "Back O Beyond", true, Teleports )
guiSetFont ( BackBeyond, "default-bold-small" )
 
Quarry = guiCreateButton( 0.77, 0.25, 0.18, 0.12, "Quarry", true, Teleports )
guiSetFont ( Quarry, "default-bold-small" )
 
Bayside = guiCreateButton( 0.77, 0.37, 0.18, 0.12, "Bayside", true, Teleports )
guiSetFont ( Bayside, "default-bold-small" )
 
Pecker = guiCreateButton( 0.77, 0.49, 0.18, 0.12, "Las Payasadas", true, Teleports )
guiSetFont ( Pecker, "default-bold-small" )
 
Bridge = guiCreateButton( 0.77, 0.61, 0.18, 0.12, "Bridge Facts", true, Teleports )
guiSetFont ( Bridge, "default-bold-small" )
 
Close = guiCreateButton( -0.03, 0.94, 1.1, 0.063, "Çıkış 'F6'", true, Teleports )
guiSetFont ( Close, "default-bold-small" )
 
guiSetAlpha ( myWindow, 1 )
guiWindowSetSizable ( myWindow, false )
 
 
--Create Labels
 
guiLabelSetColor ( One, math.random(0, 255), math.random(0, 255), math.random(0, 255) )
 
guiSetFont ( One, "sa-header" )
 
--Label Color
function changeLabelColor ( )
 
        guiLabelSetColor ( One, math.random(0, 255), math.random(0, 255), math.random(0, 255) )
end
 
setTimer ( changeLabelColor, 1000, 0 )
 
 
--Close
addEventHandler ( "onClientGUIClick", getResourceRootElement(getThisResource()),
        function ( )
           if (source == Close) then
           guiSetVisible( myWindow, false )
           showCursor( false )
                end 
 
           end
)
 
 
--Teleports
addEventHandler ( "onClientGUIClick", getResourceRootElement(getThisResource()),
        function ( )
            if (source == MountChiliad) then
            local player = getLocalPlayer()
                    setElementPosition (player , -1968.8029785156, 137.68307495117, 27.6875  )
            end
          end
)
 
addEventHandler ( "onClientGUIClick", getResourceRootElement(getThisResource()),
        function ( )
            if (source == LSAirport) then
            local player = getLocalPlayer()
                        setElementPosition (player , -1967.6000976563, 138.28996276855, 27.6875  )
            end
         end
)
 
addEventHandler ( "onClientGUIClick", getResourceRootElement(getThisResource()),
        function ( )
            if (source == LVAirport) then
            local player = getLocalPlayer()
                  setElementPosition (player , 2629.4404296875, 1824.8934326172, 11.0234375  )
            end
         end
)
 
addEventHandler ( "onClientGUIClick", getResourceRootElement(getThisResource()),
        function ( )
            if (source == AbandedAirstrip) then
            local player = getLocalPlayer()
                  setElementPosition (player , 405.55480957031, 2537.8181152344, 15.9504671096  )
            end
         end
)
 
addEventHandler ( "onClientGUIClick", getResourceRootElement(getThisResource()),
        function ( )
            if (source == SFAirport) then
            local player = getLocalPlayer()
                  setElementPosition (player , -1223.4442138672, 43.506820678711, 13.541401863098  )
            end
         end
)
 
addEventHandler ( "onClientGUIClick", getResourceRootElement(getThisResource()),
        function ( )
            if (source == WangCars) then
            local player = getLocalPlayer()
                  setElementPosition (player , -1973.0573730469, 303.94955444336, 34.576179504395  )
            end
         end
)
 
addEventHandler ( "onClientGUIClick", getResourceRootElement(getThisResource()),
        function ( )
            if (source == Ottos) then
            local player = getLocalPlayer()
                  setElementPosition (player , -1643.1949462891, 1212.7462158203, 6.5843458175659  )
            end
         end
)
 
addEventHandler ( "onClientGUIClick", getResourceRootElement(getThisResource()),
        function ( )
            if (source == Area51) then
            local player = getLocalPlayer()
                  setElementPosition (player , 215.36633300781, 1919.0992431641, 17.04539108276  )
            end
         end
)
 
addEventHandler ( "onClientGUIClick", getResourceRootElement(getThisResource()),
        function ( )
            if (source == BigEar) then
            local player = getLocalPlayer()
                  setElementPosition (player , -294.39447021484, 1538.9415283203, 74.965629577637  )
            end
         end
)
 
addEventHandler ( "onClientGUIClick", getResourceRootElement(getThisResource()),
        function ( )
            if (source == BlueBerry) then
            local player = getLocalPlayer()
                  setElementPosition (player , -3.3661103248596, 36.78341293335, 2.5212655067444  )
            end
         end
)
 
addEventHandler ( "onClientGUIClick", getResourceRootElement(getThisResource()),
        function ( )
            if (source == Heli) then
            local player = getLocalPlayer()
                  setElementPosition (player , 1535.7916259766, -1353.4775390625, 328.86157226563  )
            end
         end
)
 
addEventHandler ( "onClientGUIClick", getResourceRootElement(getThisResource()),
        function ( )
            if (source == Grove) then
            local player = getLocalPlayer()
                  setElementPosition (player , 2495.3193359375, -1690.1716308594, 14.765625 )
            end
         end
)
 
addEventHandler ( "onClientGUIClick", getResourceRootElement(getThisResource()),
        function ( )
            if (source == Dam) then
            local player = getLocalPlayer()
                  setElementPosition (player , -887.02734375, 2000.9217529297, 60.654315948486 )
            end
         end
)
 
addEventHandler ( "onClientGUIClick", getResourceRootElement(getThisResource()),
        function ( )
            if (source == BackBeyond) then
            local player = getLocalPlayer()
                  setElementPosition (player , -938.93298339844, -2346.8010253906, 59.003288269043 )
            end
         end
)
 
addEventHandler ( "onClientGUIClick", getResourceRootElement(getThisResource()),
        function ( )
            if (source == Quarry) then
            local player = getLocalPlayer()
                  setElementPosition (player , 816.45257568359, 853.38360595703, 11.109794616699 )
            end
         end
)
 
addEventHandler ( "onClientGUIClick", getResourceRootElement(getThisResource()),
        function ( )
            if (source == Bayside) then
            local player = getLocalPlayer()
                  setElementPosition (player , -2244.837890625, 2307.1701660156, 4.9691247940063 )
            end
         end
)
 
addEventHandler ( "onClientGUIClick", getResourceRootElement(getThisResource()),
        function ( )
            if (source == Pecker) then
            local player = getLocalPlayer()
                  setElementPosition (player , -418.42318725586, 2710.0107421875, 62.473159790039 )
            end
         end
)
 
addEventHandler ( "onClientGUIClick", getResourceRootElement(getThisResource()),
        function ( )
            if (source == Bridge) then
            local player = getLocalPlayer()
                  setElementPosition (player , -2555.5734863281, 1217.0106201172, 42.1484375 )
 
            end
         end
)
Buyur.
 


Çevrimdışı LaykSis

  • Yeni Üye
  • *
    • İleti: 47
Yanıtla #2 : 29 Mayıs 2017, 00:54:16
Linki görebilmek için Kayıt olun yada Giriş yapın.
Kod: lua
function Window ( )
        if ( guiGetVisible ( myWindow ) == true ) then   
       
                guiSetVisible ( myWindow, false )
 
                showCursor ( false )
        else     
                guiSetVisible ( myWindow, true )
 
                showCursor ( true )
        end
end
 bindKey ( "F6", "down", Window )
 
myWindow = guiCreateWindow ( 0.35, 0.0, .4, .5, "LC-Gaming.", true )
 guiSetVisible(myWindow,false)
 
 
local tabPanel = guiCreateTabPanel ( 0, 0.1, 1, 1, true, myWindow )
local Teleports = guiCreateTab( "Işınlanma Paneli", tabPanel )
 
--GUI Buttons
LSAirport = guiCreateButton( 0.03, 0.01, 0.18, 0.12, "Doğma Bölgesi", true, Teleports )
guiSetFont ( LSAirport, "default-bold-small" )
 
LVAirport = guiCreateButton( 0.03, 0.13, 0.18, 0.12, "Doğma Bölgesi-2", true, Teleports )
guiSetFont ( LVAirport, "default-bold-small" )
 
AbandedAirstrip = guiCreateButton( 0.03, 0.25, 0.18, 0.12, "Desert Airstrip", true, Teleports )
guiSetFont ( AbandedAirstrip, "default-bold-small" )
 
SFAirport = guiCreateButton( 0.03, 0.37, 0.18, 0.12, "SF  Airport", true, Teleports )
guiSetFont ( SFAirport, "default-bold-small" )
 
MountChiliad = guiCreateButton( 0.03, 0.49, 0.18, 0.12, "Mount Chiliad", true, Teleports )
guiSetFont ( MountChiliad, "default-bold-small" )
 
WangCars = guiCreateButton( 0.03, 0.61, 0.18, 0.12, "Wang Cars", true, Teleports )
guiSetFont ( WangCars, "default-bold-small" )
 
Ottos = guiCreateButton( 0.4, 0.01, 0.18, 0.12, "Otto's Cars", true, Teleports )
guiSetFont ( Ottos, "default-bold-small" )
 
Area51 = guiCreateButton( 0.4, 0.13, 0.18, 0.12, "Area 51", true, Teleports )
guiSetFont ( Area51, "default-bold-small" )
 
BigEar = guiCreateButton( 0.4, 0.25, 0.18, 0.12, "Big Ear", true, Teleports )
guiSetFont ( BigEar, "default-bold-small" )
 
BlueBerry = guiCreateButton( 0.4, 0.37, 0.18, 0.12, "BlueBerry Acres", true, Teleports )
guiSetFont ( BlueBerry, "default-bold-small" )
 
Heli = guiCreateButton( 0.4, 0.49, 0.18, 0.12, "Heli Pad", true, Teleports )
guiSetFont ( Heli, "default-bold-small" )
 
Grove = guiCreateButton( 0.4, 0.61, 0.18, 0.12, "Grove Street", true, Teleports )
guiSetFont ( Grove, "default-bold-small" )
 
Dam = guiCreateButton( 0.77, 0.01, 0.18, 0.12, "Sherman Dam", true, Teleports )
guiSetFont ( Dam, "default-bold-small" )
 
BackBeyond = guiCreateButton( 0.77, 0.13, 0.18, 0.12, "Back O Beyond", true, Teleports )
guiSetFont ( BackBeyond, "default-bold-small" )
 
Quarry = guiCreateButton( 0.77, 0.25, 0.18, 0.12, "Quarry", true, Teleports )
guiSetFont ( Quarry, "default-bold-small" )
 
Bayside = guiCreateButton( 0.77, 0.37, 0.18, 0.12, "Bayside", true, Teleports )
guiSetFont ( Bayside, "default-bold-small" )
 
Pecker = guiCreateButton( 0.77, 0.49, 0.18, 0.12, "Las Payasadas", true, Teleports )
guiSetFont ( Pecker, "default-bold-small" )
 
Bridge = guiCreateButton( 0.77, 0.61, 0.18, 0.12, "Bridge Facts", true, Teleports )
guiSetFont ( Bridge, "default-bold-small" )
 
Close = guiCreateButton( -0.03, 0.94, 1.1, 0.063, "Çıkış 'F6'", true, Teleports )
guiSetFont ( Close, "default-bold-small" )
 
guiSetAlpha ( myWindow, 1 )
guiWindowSetSizable ( myWindow, false )
 
 
--Create Labels
 
guiLabelSetColor ( One, math.random(0, 255), math.random(0, 255), math.random(0, 255) )
 
guiSetFont ( One, "sa-header" )
 
--Label Color
function changeLabelColor ( )
 
        guiLabelSetColor ( One, math.random(0, 255), math.random(0, 255), math.random(0, 255) )
end
 
setTimer ( changeLabelColor, 1000, 0 )
 
 
--Close
addEventHandler ( "onClientGUIClick", getResourceRootElement(getThisResource()),
        function ( )
           if (source == Close) then
           guiSetVisible( myWindow, false )
           showCursor( false )
                end 
 
           end
)
 
 
--Teleports
addEventHandler ( "onClientGUIClick", getResourceRootElement(getThisResource()),
        function ( )
            if (source == MountChiliad) then
            local player = getLocalPlayer()
                    setElementPosition (player , -1968.8029785156, 137.68307495117, 27.6875  )
            end
          end
)
 
addEventHandler ( "onClientGUIClick", getResourceRootElement(getThisResource()),
        function ( )
            if (source == LSAirport) then
            local player = getLocalPlayer()
                        setElementPosition (player , -1967.6000976563, 138.28996276855, 27.6875  )
            end
         end
)
 
addEventHandler ( "onClientGUIClick", getResourceRootElement(getThisResource()),
        function ( )
            if (source == LVAirport) then
            local player = getLocalPlayer()
                  setElementPosition (player , 2629.4404296875, 1824.8934326172, 11.0234375  )
            end
         end
)
 
addEventHandler ( "onClientGUIClick", getResourceRootElement(getThisResource()),
        function ( )
            if (source == AbandedAirstrip) then
            local player = getLocalPlayer()
                  setElementPosition (player , 405.55480957031, 2537.8181152344, 15.9504671096  )
            end
         end
)
 
addEventHandler ( "onClientGUIClick", getResourceRootElement(getThisResource()),
        function ( )
            if (source == SFAirport) then
            local player = getLocalPlayer()
                  setElementPosition (player , -1223.4442138672, 43.506820678711, 13.541401863098  )
            end
         end
)
 
addEventHandler ( "onClientGUIClick", getResourceRootElement(getThisResource()),
        function ( )
            if (source == WangCars) then
            local player = getLocalPlayer()
                  setElementPosition (player , -1973.0573730469, 303.94955444336, 34.576179504395  )
            end
         end
)
 
addEventHandler ( "onClientGUIClick", getResourceRootElement(getThisResource()),
        function ( )
            if (source == Ottos) then
            local player = getLocalPlayer()
                  setElementPosition (player , -1643.1949462891, 1212.7462158203, 6.5843458175659  )
            end
         end
)
 
addEventHandler ( "onClientGUIClick", getResourceRootElement(getThisResource()),
        function ( )
            if (source == Area51) then
            local player = getLocalPlayer()
                  setElementPosition (player , 215.36633300781, 1919.0992431641, 17.04539108276  )
            end
         end
)
 
addEventHandler ( "onClientGUIClick", getResourceRootElement(getThisResource()),
        function ( )
            if (source == BigEar) then
            local player = getLocalPlayer()
                  setElementPosition (player , -294.39447021484, 1538.9415283203, 74.965629577637  )
            end
         end
)
 
addEventHandler ( "onClientGUIClick", getResourceRootElement(getThisResource()),
        function ( )
            if (source == BlueBerry) then
            local player = getLocalPlayer()
                  setElementPosition (player , -3.3661103248596, 36.78341293335, 2.5212655067444  )
            end
         end
)
 
addEventHandler ( "onClientGUIClick", getResourceRootElement(getThisResource()),
        function ( )
            if (source == Heli) then
            local player = getLocalPlayer()
                  setElementPosition (player , 1535.7916259766, -1353.4775390625, 328.86157226563  )
            end
         end
)
 
addEventHandler ( "onClientGUIClick", getResourceRootElement(getThisResource()),
        function ( )
            if (source == Grove) then
            local player = getLocalPlayer()
                  setElementPosition (player , 2495.3193359375, -1690.1716308594, 14.765625 )
            end
         end
)
 
addEventHandler ( "onClientGUIClick", getResourceRootElement(getThisResource()),
        function ( )
            if (source == Dam) then
            local player = getLocalPlayer()
                  setElementPosition (player , -887.02734375, 2000.9217529297, 60.654315948486 )
            end
         end
)
 
addEventHandler ( "onClientGUIClick", getResourceRootElement(getThisResource()),
        function ( )
            if (source == BackBeyond) then
            local player = getLocalPlayer()
                  setElementPosition (player , -938.93298339844, -2346.8010253906, 59.003288269043 )
            end
         end
)
 
addEventHandler ( "onClientGUIClick", getResourceRootElement(getThisResource()),
        function ( )
            if (source == Quarry) then
            local player = getLocalPlayer()
                  setElementPosition (player , 816.45257568359, 853.38360595703, 11.109794616699 )
            end
         end
)
 
addEventHandler ( "onClientGUIClick", getResourceRootElement(getThisResource()),
        function ( )
            if (source == Bayside) then
            local player = getLocalPlayer()
                  setElementPosition (player , -2244.837890625, 2307.1701660156, 4.9691247940063 )
            end
         end
)
 
addEventHandler ( "onClientGUIClick", getResourceRootElement(getThisResource()),
        function ( )
            if (source == Pecker) then
            local player = getLocalPlayer()
                  setElementPosition (player , -418.42318725586, 2710.0107421875, 62.473159790039 )
            end
         end
)
 
addEventHandler ( "onClientGUIClick", getResourceRootElement(getThisResource()),
        function ( )
            if (source == Bridge) then
            local player = getLocalPlayer()
                  setElementPosition (player , -2555.5734863281, 1217.0106201172, 42.1484375 )
 
            end
         end
)
Buyur.
Adamsın