Wysłany: 2016-04-04, 15:56
Odważny
Początki LUA :P
Wiek: 25 Na forum: 3739 dni Posty: 140
Nick w MP: ReseT_
Piwa : 166
Skrypt wy?wietla ka?dym GUI montowania, gdy? kto? inny wjedzie w marker. Drugi problem polega na tym, ?e gdy kto? nie ma danej kwoty to mu bierze pieni?dze i zostawia mu na minusie.
Kod strona clienta (GUI):
GUIEditor = {
button = {},
window = {}
}
addEventHandler ( "onClientResourceStart" , resourceRoot ,
function()
GUIEditor . window [ 1 ] = guiCreateWindow ( 339 , 179 , 499 , 460 , "" , false )
guiWindowSetSizable ( GUIEditor . window [ 1 ], false )
guiSetAlpha ( GUIEditor . window [ 1 ], 0.83 )
GUIEditor . button [ 1 ] = guiCreateButton ( 25 , 37 , 115 , 58 , "MK-1 Przy?pieszenie\n (3900$)" , false , GUIEditor . window [ 1 ])
guiSetProperty ( GUIEditor . button [ 1 ], "NormalTextColour" , "FFAAAAAA" )
GUIEditor . button [ 2 ] = guiCreateButton ( 140 , 37 , 113 , 58 , "MK-1 Pr?dko??\n (4600$)" , false , GUIEditor . window [ 1 ])
guiSetProperty ( GUIEditor . button [ 2 ], "NormalTextColour" , "FFAAAAAA" )
GUIEditor . button [ 3 ] = guiCreateButton ( 261 , 38 , 220 , 57 , "Demont" , false , GUIEditor . window [ 1 ])
guiSetProperty ( GUIEditor . button [ 3 ], "NormalTextColour" , "FFAAAAAA" )
GUIEditor . button [ 4 ] = guiCreateButton ( 25 , 103 , 115 , 51 , "MK-2 Przy?pieszenie\n (5100$)" , false , GUIEditor . window [ 1 ])
guiSetProperty ( GUIEditor . button [ 4 ], "NormalTextColour" , "FFAAAAAA" )
GUIEditor . button [ 5 ] = guiCreateButton ( 138 , 103 , 115 , 51 , "MK-2 Pr?dko??\n (5900$)" , false , GUIEditor . window [ 1 ])
guiSetProperty ( GUIEditor . button [ 5 ], "NormalTextColour" , "FFAAAAAA" )
GUIEditor . button [ 6 ] = guiCreateButton ( 260 , 103 , 221 , 51 , "Demont" , false , GUIEditor . window [ 1 ])
guiSetProperty ( GUIEditor . button [ 6 ], "NormalTextColour" , "FFAAAAAA" )
GUIEditor . button [ 7 ] = guiCreateButton ( 25 , 161 , 115 , 50 , "MK-3 Przy?pieszenie\n (6300$)" , false , GUIEditor . window [ 1 ])
guiSetProperty ( GUIEditor . button [ 7 ], "NormalTextColour" , "FFAAAAAA" )
GUIEditor . button [ 8 ] = guiCreateButton ( 141 , 160 , 112 , 51 , "MK-3 Pr?dko??\n (6900$)" , false , GUIEditor . window [ 1 ])
guiSetProperty ( GUIEditor . button [ 8 ], "NormalTextColour" , "FFAAAAAA" )
GUIEditor . button [ 9 ] = guiCreateButton ( 261 , 162 , 220 , 49 , "Demont" , false , GUIEditor . window [ 1 ])
guiSetProperty ( GUIEditor . button [ 9 ], "NormalTextColour" , "FFAAAAAA" )
GUIEditor . button [ 10 ] = guiCreateButton ( 62 , 369 , 383 , 81 , "Zamknij okno" , false , GUIEditor . window [ 1 ])
guiSetProperty ( GUIEditor . button [ 10 ], "NormalTextColour" , "FFAAAAAA" )
end
)
addEventHandler ( "onClientResourceStart" , resourceRoot ,
function()
guiSetVisible ( GUIEditor . window [ 1 ], false )
end
)
marker = createMarker ( - 2479 , - 175 , 24.5 , 'cylinder' , 3.0 , 0 , 255 , 0 , 70 )
function hit ()
guiSetVisible ( GUIEditor . window [ 1 ], true )
showCursor ( true )
end
addEventHandler ( "onClientMarkerHit" , marker , hit )
function mk1 ()
if source ~= GUIEditor . button [ 1 ] then return end
triggerServerEvent ( "ZmienHandling" , localPlayer )-- MK1 przy ? pieszenie
end
addEventHandler ( "onClientGUIClick" , root , mk1 )
function mk2 ()
if source ~= GUIEditor . button [ 2 ] then return end
triggerServerEvent ( "ZmienHandling2" , localPlayer )-- MK1 predko ? c
end
addEventHandler ( "onClientGUIClick" , root , mk2 )
function mk3 ()
if source ~= GUIEditor . button [ 4 ] then return end
triggerServerEvent ( "ZmienHandling4" , localPlayer )-- MK2 przy ? pieszenie
end
addEventHandler ( "onClientGUIClick" , root , mk3 )
function mk4 ()
if source ~= GUIEditor . button [ 5 ] then return end
triggerServerEvent ( "ZmienHandling5" , localPlayer )-- MK2 pr ? dko ??
end
addEventHandler ( "onClientGUIClick" , root , mk4 )
function mk5 ()
if source ~= GUIEditor . button [ 7 ] then return end
triggerServerEvent ( "ZmienHandling12" , localPlayer )-- MK3 przy ? pieszenie
end
addEventHandler ( "onClientGUIClick" , root , mk5 )
function mk6 ()
if source ~= GUIEditor . button [ 8 ] then return end
triggerServerEvent ( "ZmienHandling11" , localPlayer )-- MK3 pr ? dko ??
end
addEventHandler ( "onClientGUIClick" , root , mk6 )
function zamknij ()
if source ~= GUIEditor . button [ 10 ] then return end
guiSetVisible ( GUIEditor . window [ 1 ], localPlayer )-- MK3 pr ? dko ??
end
addEventHandler ( "onClientGUIClick" , root , zamknij )
function zamykamy ()
if source ~= GUIEditor . button [ 10 ] then return end
guiSetVisible ( GUIEditor . window [ 1 ], false )
showCursor ( false )
end
addEventHandler ( "onClientGUIClick" , root , zamykamy )
----------------------------------------------------
Kod strona servera:
addEvent ( "ZmienHandling2" , true )
addEventHandler ( "ZmienHandling2" , root , function()
pojazd = getPedOccupiedVehicle ( source )
if not pojazd then return end
takePlayerMoney ( source , 3900 )
outputChatBox ( "Pomy?lnie zamontowano MK1 (pr?dko?? pojazdu)." , source , true )
setVehicleHandling ( pojazd , "maxVelocity" , 200.0 )-- MK1 Pr ? dko ??
setVehicleHandling ( pojazd , "maxVelocity" , velocity )
end
)
addEvent ( "ZmienHandling" , true )
addEventHandler ( "ZmienHandling" , root , function()
pojazd = getPedOccupiedVehicle ( source )-- MK 1 Przy ? pieszenie
if not pojazd then return end
takePlayerMoney ( source , 4600 )
outputChatBox ( "Pomy?lnie zamontowano MK1 (przy?pieszenie pojazdu)." , source , true )
local acceleration = 15.0
setVehicleHandling ( pojazd , "engineAcceleration" , acceleration )
end
)
addEvent ( "ZmienHandling5" , true )
addEventHandler ( "ZmienHandling5" , root , function()-- MK2 Pr ? dko ??
pojazd = getPedOccupiedVehicle ( source )
if not pojazd then return end
takePlayerMoney ( source , 5100 )
outputChatBox ( "Pomy?lnie zamontowano MK2 (pr?dko?? pojazdu)." , source , true )
setVehicleHandling ( pojazd , "maxVelocity" , 250.0 )
setVehicleHandling ( pojazd , "maxVelocity" , velocity )
end
)
addEvent ( "ZmienHandling4" , true )
addEventHandler ( "ZmienHandling4" , root , function()-- MK2 Przy ? pieszenie
pojazd = getPedOccupiedVehicle ( source )
if not pojazd then return end
takePlayerMoney ( source , 5900 )
outputChatBox ( "Pomy?lnie zamontowano MK2 (przy?pieszenie pojazdu)." , source , true )
local acceleration = 19.0
setVehicleHandling ( pojazd , "engineAcceleration" , acceleration )
end
)
addEvent ( "ZmienHandling5" , true )
addEventHandler ( "ZmienHandling5" , root , function()-- MK2 Pr ? dko ??
pojazd = getPedOccupiedVehicle ( source )
if not pojazd then return end
takePlayerMoney ( source , 6300 )
outputChatBox ( "Pomy?lnie zamontowano MK2 (pr?dko?? pojazdu)." , source , true )
local acceleration = 30.0
setVehicleHandling ( pojazd , "engineAcceleration" , acceleration )
end
)
addEvent ( "ZmienHandling11" , true )
addEventHandler ( "ZmienHandling11" , root , function()
pojazd = getPedOccupiedVehicle ( source )
if not pojazd then return end
takePlayerMoney ( source , 6900 )
outputChatBox ( "Pomy?lnie MK3 (pr?dko?? pojazdu)." , source , true )
setVehicleHandling ( pojazd , "maxVelocity" , 5000.0 )-- MK3 Pr ? dko ??
setVehicleHandling ( pojazd , "maxVelocity" , velocity )
end
)
addEvent ( "ZmienHandling12" , true )
addEventHandler ( "ZmienHandling12" , root , function()-- MK3 Przy ? pieszenie
pojazd = getPedOccupiedVehicle ( source )
if not pojazd then return end
takePlayerMoney ( source , 7200 )
outputChatBox ( "Pomy?lnie zamontowano MK3 (przy?pieszenie pojazdu)." , source , true )
local acceleration = 30.0
setVehicleHandling ( pojazd , "engineAcceleration" , acceleration )
end
)
Za pomoc stawiam piwko oraz respekt.
Podpis
[you]
, pomogłem Ci? Wynagrodź mnie
Wysłany: 2016-04-04, 16:12
EseJax
Wiek: 31 Na forum: 4085 dni Posty: 67
Nick w MP: Toffy.
Piwa : 982
addEvent ( "ZmienHandling2" , true )
addEventHandler ( "ZmienHandling2" , root , function()
pojazd = getPedOccupiedVehicle ( source )
hajs = getPlayerMoney ( source )
if hajs < 3900 then outputchatBox ( "Nie masz tylu pieni?dzy!" , source , 255 , 255 , 255 ) return end
if not pojazd then return end
takePlayerMoney ( source , 3900 )
outputChatBox ( "Pomy?lnie zamontowano MK1 (pr?dko?? pojazdu)." , source , true )
setVehicleHandling ( pojazd , "maxVelocity" , 200.0 )-- MK1 Pr ? dko ??
setVehicleHandling ( pojazd , "maxVelocity" , velocity )
end
)
addEvent ( "ZmienHandling" , true )
addEventHandler ( "ZmienHandling" , root , function()
pojazd = getPedOccupiedVehicle ( source )-- MK 1 Przy ? pieszenie
hajs = getPlayerMoney ( source )
if hajs < 4600 then outputchatBox ( "Nie masz tylu pieni?dzy!" , source , 255 , 255 , 255 ) return end
if not pojazd then return end
takePlayerMoney ( source , 4600 )
outputChatBox ( "Pomy?lnie zamontowano MK1 (przy?pieszenie pojazdu)." , source , true )
local acceleration = 15.0
setVehicleHandling ( pojazd , "engineAcceleration" , acceleration )
end
)
addEvent ( "ZmienHandling5" , true )
addEventHandler ( "ZmienHandling5" , root , function()-- MK2 Pr ? dko ??
pojazd = getPedOccupiedVehicle ( source )
hajs = getPlayerMoney ( source )
if hajs < 5100 then outputchatBox ( "Nie masz tylu pieni?dzy!" , source , 255 , 255 , 255 ) return end
if not pojazd then return end
takePlayerMoney ( source , 5100 )
outputChatBox ( "Pomy?lnie zamontowano MK2 (pr?dko?? pojazdu)." , source , true )
setVehicleHandling ( pojazd , "maxVelocity" , 250.0 )
setVehicleHandling ( pojazd , "maxVelocity" , velocity )
end
)
addEvent ( "ZmienHandling4" , true )
addEventHandler ( "ZmienHandling4" , root , function()-- MK2 Przy ? pieszenie
pojazd = getPedOccupiedVehicle ( source )
hajs = getPlayerMoney ( source )
if hajs < 5900 then outputchatBox ( "Nie masz tylu pieni?dzy!" , source , 255 , 255 , 255 ) return end
if not pojazd then return end
takePlayerMoney ( source , 5900 )
outputChatBox ( "Pomy?lnie zamontowano MK2 (przy?pieszenie pojazdu)." , source , true )
local acceleration = 19.0
setVehicleHandling ( pojazd , "engineAcceleration" , acceleration )
end
)
addEvent ( "ZmienHandling5" , true )
addEventHandler ( "ZmienHandling5" , root , function()-- MK2 Pr ? dko ??
pojazd = getPedOccupiedVehicle ( source )
hajs = getPlayerMoney ( source )
if hajs < 6300 then outputchatBox ( "Nie masz tylu pieni?dzy!" , source , 255 , 255 , 255 ) return end
if not pojazd then return end
takePlayerMoney ( source , 6300 )
outputChatBox ( "Pomy?lnie zamontowano MK2 (pr?dko?? pojazdu)." , source , true )
local acceleration = 30.0
setVehicleHandling ( pojazd , "engineAcceleration" , acceleration )
end
)
addEvent ( "ZmienHandling11" , true )
addEventHandler ( "ZmienHandling11" , root , function()
pojazd = getPedOccupiedVehicle ( source )
hajs = getPlayerMoney ( source )
if hajs < 6900 then outputchatBox ( "Nie masz tylu pieni?dzy!" , source , 255 , 255 , 255 ) return end
if not pojazd then return end
takePlayerMoney ( source , 6900 )
outputChatBox ( "Pomy?lnie MK3 (pr?dko?? pojazdu)." , source , true )
setVehicleHandling ( pojazd , "maxVelocity" , 5000.0 )-- MK3 Pr ? dko ??
setVehicleHandling ( pojazd , "maxVelocity" , velocity )
end
)
addEvent ( "ZmienHandling12" , true )
addEventHandler ( "ZmienHandling12" , root , function()-- MK3 Przy ? pieszenie
pojazd = getPedOccupiedVehicle ( source )
hajs = getPlayerMoney ( source )
if hajs < 7200 then outputchatBox ( "Nie masz tylu pieni?dzy!" , source , 255 , 255 , 255 ) return end
if not pojazd then return end
takePlayerMoney ( source , 7200 )
outputChatBox ( "Pomy?lnie zamontowano MK3 (przy?pieszenie pojazdu)." , source , true )
local acceleration = 30.0
setVehicleHandling ( pojazd , "engineAcceleration" , acceleration )
end
)
Wysłany: 2016-04-04, 16:16
luki123luki123
Place Game
Wiek: 28 Na forum: 5275 dni Posty: 1948
Nick w MP: LuKiO
Piwa : 6101
Odwa?ny , prosta podfunkcja
function if_cash_player ( gracz , ilosc )
if gracz and ilosc then else return end -- Sprawdza czy zosta ? y podane wszystkie argumenty
local money = getPlayerMoney ( gracz ) -- Pobiera ilo ?? got ? wki gracza
if money >= ilosc then -- Sprawdza czy ma wiecej lub r ? wne ile potrzebuje
-- Je ? eli ma
else -- Albo
-- Je ? eli nie ma
outputChatBox ( "Masz za ma?o got?wki" , gracz ) -- Wysy ? a wiadomo ?? do gracza
return false
end
end
Przyk?ad:
function test ( plr )
if plr then else return end
if if_cash_player ( plr , 500 ) then
-- Je ? eli mam
print( "Mam hajs" )
end
end
addCommandHandler ( "test" , test )
Wysłany: 2016-04-04, 16:33
EseJax
Wiek: 31 Na forum: 4085 dni Posty: 67
Nick w MP: Toffy.
Piwa : 982
Dorzucam clienta, ale nie jestem pewien czy o to Ci chodzi?o, sprawd?.
GUIEditor = {
button = {},
window = {}
}
addEventHandler ( "onClientResourceStart" , resourceRoot ,
function()
GUIEditor . window [ 1 ] = guiCreateWindow ( 339 , 179 , 499 , 460 , "" , false )
guiWindowSetSizable ( GUIEditor . window [ 1 ], false )
guiSetAlpha ( GUIEditor . window [ 1 ], 0.83 )
GUIEditor . button [ 1 ] = guiCreateButton ( 25 , 37 , 115 , 58 , "MK-1 Przy?pieszenie\n (3900$)" , false , GUIEditor . window [ 1 ])
guiSetProperty ( GUIEditor . button [ 1 ], "NormalTextColour" , "FFAAAAAA" )
GUIEditor . button [ 2 ] = guiCreateButton ( 140 , 37 , 113 , 58 , "MK-1 Pr?dko??\n (4600$)" , false , GUIEditor . window [ 1 ])
guiSetProperty ( GUIEditor . button [ 2 ], "NormalTextColour" , "FFAAAAAA" )
GUIEditor . button [ 3 ] = guiCreateButton ( 261 , 38 , 220 , 57 , "Demont" , false , GUIEditor . window [ 1 ])
guiSetProperty ( GUIEditor . button [ 3 ], "NormalTextColour" , "FFAAAAAA" )
GUIEditor . button [ 4 ] = guiCreateButton ( 25 , 103 , 115 , 51 , "MK-2 Przy?pieszenie\n (5100$)" , false , GUIEditor . window [ 1 ])
guiSetProperty ( GUIEditor . button [ 4 ], "NormalTextColour" , "FFAAAAAA" )
GUIEditor . button [ 5 ] = guiCreateButton ( 138 , 103 , 115 , 51 , "MK-2 Pr?dko??\n (5900$)" , false , GUIEditor . window [ 1 ])
guiSetProperty ( GUIEditor . button [ 5 ], "NormalTextColour" , "FFAAAAAA" )
GUIEditor . button [ 6 ] = guiCreateButton ( 260 , 103 , 221 , 51 , "Demont" , false , GUIEditor . window [ 1 ])
guiSetProperty ( GUIEditor . button [ 6 ], "NormalTextColour" , "FFAAAAAA" )
GUIEditor . button [ 7 ] = guiCreateButton ( 25 , 161 , 115 , 50 , "MK-3 Przy?pieszenie\n (6300$)" , false , GUIEditor . window [ 1 ])
guiSetProperty ( GUIEditor . button [ 7 ], "NormalTextColour" , "FFAAAAAA" )
GUIEditor . button [ 8 ] = guiCreateButton ( 141 , 160 , 112 , 51 , "MK-3 Pr?dko??\n (6900$)" , false , GUIEditor . window [ 1 ])
guiSetProperty ( GUIEditor . button [ 8 ], "NormalTextColour" , "FFAAAAAA" )
GUIEditor . button [ 9 ] = guiCreateButton ( 261 , 162 , 220 , 49 , "Demont" , false , GUIEditor . window [ 1 ])
guiSetProperty ( GUIEditor . button [ 9 ], "NormalTextColour" , "FFAAAAAA" )
GUIEditor . button [ 10 ] = guiCreateButton ( 62 , 369 , 383 , 81 , "Zamknij okno" , false , GUIEditor . window [ 1 ])
guiSetProperty ( GUIEditor . button [ 10 ], "NormalTextColour" , "FFAAAAAA" )
guiSetVisible ( GUIEditor . window [ 1 ], false )
end
)
marker = createMarker ( - 2479 , - 175 , 24.5 , 'cylinder' , 3.0 , 0 , 255 , 0 , 70 )
function hit ()
guiSetVisible ( GUIEditor . window [ 1 ], true )
showCursor ( true )
end
addEventHandler ( "onClientMarkerHit" , marker , hit )
function mk1 ()
if source ~= GUIEditor . button [ 1 ] then return end
triggerServerEvent ( "ZmienHandling" , localPlayer )-- MK1 przy ? pieszenie
end
addEventHandler ( "onClientGUIClick" , root , mk1 )
function mk2 ()
if source ~= GUIEditor . button [ 2 ] then return end
triggerServerEvent ( "ZmienHandling2" , localPlayer )-- MK1 predko ? c
end
addEventHandler ( "onClientGUIClick" , root , mk2 )
function mk3 ()
if source ~= GUIEditor . button [ 4 ] then return end
triggerServerEvent ( "ZmienHandling4" , localPlayer )-- MK2 przy ? pieszenie
end
addEventHandler ( "onClientGUIClick" , root , mk3 )
function mk4 ()
if source ~= GUIEditor . button [ 5 ] then return end
triggerServerEvent ( "ZmienHandling5" , localPlayer )-- MK2 pr ? dko ??
end
addEventHandler ( "onClientGUIClick" , root , mk4 )
function mk5 ()
if source ~= GUIEditor . button [ 7 ] then return end
triggerServerEvent ( "ZmienHandling12" , localPlayer )-- MK3 przy ? pieszenie
end
addEventHandler ( "onClientGUIClick" , root , mk5 )
function mk6 ()
if source ~= GUIEditor . button [ 8 ] then return end
triggerServerEvent ( "ZmienHandling11" , localPlayer )-- MK3 pr ? dko ??
end
addEventHandler ( "onClientGUIClick" , root , mk6 )
function zamknij ()
if source ~= GUIEditor . button [ 10 ] then return end
guiSetVisible ( GUIEditor . window [ 1 ], localPlayer )-- MK3 pr ? dko ??
end
addEventHandler ( "onClientGUIClick" , root , zamknij )
function zamykamy ()
if source ~= GUIEditor . button [ 10 ] then return end
guiSetVisible ( GUIEditor . window [ 1 ], false )
showCursor ( false )
end
addEventHandler ( "onClientGUIClick" , root , zamykamy )
Wysłany: 2016-04-04, 16:48
Odważny
Początki LUA :P
Wiek: 25 Na forum: 3739 dni Posty: 140
Nick w MP: ReseT_
Piwa : 166
EseJax , Nie dzia?a GUI - ka?dym si? wy?wietla...
Podpis
[you]
, pomogłem Ci? Wynagrodź mnie
Wysłany: 2016-04-04, 17:47
luki123luki123
Place Game
Wiek: 28 Na forum: 5275 dni Posty: 1948
Nick w MP: LuKiO
Piwa : 6101
Odwa?ny , Co ci nie dzia?a ?
Napisz w punktach.
Wysłany: 2016-04-04, 18:51
EseJax
Wiek: 31 Na forum: 4085 dni Posty: 67
Nick w MP: Toffy.
Piwa : 982
marker = createMarker ( - 2479 , - 175 , 24.5 , 'cylinder' , 3.0 , 0 , 255 , 0 , 70 )
GUIEditor = {
button = {},
window = {}
}
addEventHandler ( "onClientMarkerHit" , marker ,
function()
GUIEditor . window [ 1 ] = guiCreateWindow ( 339 , 179 , 499 , 460 , "" , false )
guiWindowSetSizable ( GUIEditor . window [ 1 ], false )
guiSetAlpha ( GUIEditor . window [ 1 ], 0.83 )
GUIEditor . button [ 1 ] = guiCreateButton ( 25 , 37 , 115 , 58 , "MK-1 Przy?pieszenie\n (3900$)" , false , GUIEditor . window [ 1 ])
guiSetProperty ( GUIEditor . button [ 1 ], "NormalTextColour" , "FFAAAAAA" )
GUIEditor . button [ 2 ] = guiCreateButton ( 140 , 37 , 113 , 58 , "MK-1 Pr?dko??\n (4600$)" , false , GUIEditor . window [ 1 ])
guiSetProperty ( GUIEditor . button [ 2 ], "NormalTextColour" , "FFAAAAAA" )
GUIEditor . button [ 3 ] = guiCreateButton ( 261 , 38 , 220 , 57 , "Demont" , false , GUIEditor . window [ 1 ])
guiSetProperty ( GUIEditor . button [ 3 ], "NormalTextColour" , "FFAAAAAA" )
GUIEditor . button [ 4 ] = guiCreateButton ( 25 , 103 , 115 , 51 , "MK-2 Przy?pieszenie\n (5100$)" , false , GUIEditor . window [ 1 ])
guiSetProperty ( GUIEditor . button [ 4 ], "NormalTextColour" , "FFAAAAAA" )
GUIEditor . button [ 5 ] = guiCreateButton ( 138 , 103 , 115 , 51 , "MK-2 Pr?dko??\n (5900$)" , false , GUIEditor . window [ 1 ])
guiSetProperty ( GUIEditor . button [ 5 ], "NormalTextColour" , "FFAAAAAA" )
GUIEditor . button [ 6 ] = guiCreateButton ( 260 , 103 , 221 , 51 , "Demont" , false , GUIEditor . window [ 1 ])
guiSetProperty ( GUIEditor . button [ 6 ], "NormalTextColour" , "FFAAAAAA" )
GUIEditor . button [ 7 ] = guiCreateButton ( 25 , 161 , 115 , 50 , "MK-3 Przy?pieszenie\n (6300$)" , false , GUIEditor . window [ 1 ])
guiSetProperty ( GUIEditor . button [ 7 ], "NormalTextColour" , "FFAAAAAA" )
GUIEditor . button [ 8 ] = guiCreateButton ( 141 , 160 , 112 , 51 , "MK-3 Pr?dko??\n (6900$)" , false , GUIEditor . window [ 1 ])
guiSetProperty ( GUIEditor . button [ 8 ], "NormalTextColour" , "FFAAAAAA" )
GUIEditor . button [ 9 ] = guiCreateButton ( 261 , 162 , 220 , 49 , "Demont" , false , GUIEditor . window [ 1 ])
guiSetProperty ( GUIEditor . button [ 9 ], "NormalTextColour" , "FFAAAAAA" )
GUIEditor . button [ 10 ] = guiCreateButton ( 62 , 369 , 383 , 81 , "Zamknij okno" , false , GUIEditor . window [ 1 ])
guiSetProperty ( GUIEditor . button [ 10 ], "NormalTextColour" , "FFAAAAAA" )
guiSetVisible ( GUIEditor . window [ 1 ], true )
end
)
function hit ()
guiSetVisible ( GUIEditor . window [ 1 ], true )
showCursor ( true )
end
addEventHandler ( "onClientMarkerHit" , marker , hit )
function mk1 ()
if source ~= GUIEditor . button [ 1 ] then return end
triggerServerEvent ( "ZmienHandling" , localPlayer )-- MK1 przy ? pieszenie
end
addEventHandler ( "onClientGUIClick" , root , mk1 )
function mk2 ()
if source ~= GUIEditor . button [ 2 ] then return end
triggerServerEvent ( "ZmienHandling2" , localPlayer )-- MK1 predko ? c
end
addEventHandler ( "onClientGUIClick" , root , mk2 )
function mk3 ()
if source ~= GUIEditor . button [ 4 ] then return end
triggerServerEvent ( "ZmienHandling4" , localPlayer )-- MK2 przy ? pieszenie
end
addEventHandler ( "onClientGUIClick" , root , mk3 )
function mk4 ()
if source ~= GUIEditor . button [ 5 ] then return end
triggerServerEvent ( "ZmienHandling5" , localPlayer )-- MK2 pr ? dko ??
end
addEventHandler ( "onClientGUIClick" , root , mk4 )
function mk5 ()
if source ~= GUIEditor . button [ 7 ] then return end
triggerServerEvent ( "ZmienHandling12" , localPlayer )-- MK3 przy ? pieszenie
end
addEventHandler ( "onClientGUIClick" , root , mk5 )
function mk6 ()
if source ~= GUIEditor . button [ 8 ] then return end
triggerServerEvent ( "ZmienHandling11" , localPlayer )-- MK3 pr ? dko ??
end
addEventHandler ( "onClientGUIClick" , root , mk6 )
function zamknij ()
if source ~= GUIEditor . button [ 10 ] then return end
guiSetVisible ( GUIEditor . window [ 1 ], localPlayer )-- MK3 pr ? dko ??
end
addEventHandler ( "onClientGUIClick" , root , zamknij )
function zamykamy ()
if source ~= GUIEditor . button [ 10 ] then return end
guiSetVisible ( GUIEditor . window [ 1 ], false )
showCursor ( false )
end
addEventHandler ( "onClientGUIClick" , root , zamykamy )
Wysłany: 2016-04-04, 19:42
Odważny
Początki LUA :P
Wiek: 25 Na forum: 3739 dni Posty: 140
Nick w MP: ReseT_
Piwa : 166
EseJax , Nadal nic
luki123luki123 ,
Gdy kto? wje?d?a w marker to ka?demu na serwerze pokazuje si? GUI i wyborem MK.
Podpis
[you]
, pomogłem Ci? Wynagrodź mnie
Tagi: kasa :: minusie :: wszystkim :: wyświetla :: się :: gui
Anonymous
Na forum: 245 dni
Posty: 1
Anonymous Koniecznie zajrzyj na: