Advertisement
Guest User

Untitled

a guest
Jun 24th, 2018
69
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.79 KB | None | 0 0
  1. --[[Skrypt napisany przez Lukasz; ReedLeed | Do użycia na serwerze OldGaming]]
  2.  
  3.  
  4. local screenW, screenH = guiGetScreenSize()
  5. okno = guiCreateWindow((screenW - 366) / 2, (screenH - 369) / 2, 366, 369, "Mechanik samochodowy", false)
  6. guiWindowSetSizable(okno, false)
  7.  
  8. napraw = guiCreateButton(42, 261, 132, 98, "NAPRAW", false, okno)
  9. guiSetProperty(napraw, "NormalTextColour", "FFAAAAAA")
  10. wyjdz = guiCreateButton(198, 261, 132, 98, "WYJDŹ", false, okno)
  11. guiSetProperty(wyjdz, "NormalTextColour", "FFAAAAAA")
  12. tekst = guiCreateLabel(60, 65, 287, 220, "---------------------------------------------------------------\n Aby naprawić samochód, kliknij \"NAPRAW\"\n\n Za naprawe zapłacisz \"75$\"\n---------------------------------------------------------------\n\n\n---------------------------------------------------------------\n Aby zrezygnować z naprawy, kliknij \"WYJDŹ\"\n---------------------------------------------------------------", false, okno)
  13.  
  14. local mech = createMarker (-2508.28, 2360.95, 5.04-1, "cylinder", 3, 255, 255,255, 170)
  15.  
  16. guiSetVisible(okno,false)
  17. guiSetVisible(buton,false)
  18.  
  19. addEventHandler ( "onClientMarkerHit", mech,function (el,md)
  20. if el ~= localPlayer or not md then return end
  21. if not getPedOccupiedVehicle(el) then return end
  22. guiSetVisible(okno,true)
  23. guiSetVisible(napraw,true)
  24. guiSetVisible(wyjdz,true)
  25. showCursor(true)
  26. end)
  27.  
  28. addEventHandler ( "onClientMarkerLeave", mech,function (el,md)
  29. if el ~= localPlayer or not md then return end
  30. guiSetVisible(okno,false)
  31. guiSetVisible(napraw,false)
  32. guiSetVisible(wyjdz,false)
  33.  
  34. end)
  35.  
  36. addEventHandler("onClientGUIClick", wyjdz,function ()
  37. guiSetVisible(okno,false)
  38. guiSetVisible(napraw,false)
  39. guiSetVisible(wyjdz,false)
  40. showCursor(false)
  41. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement