Advertisement
Guest User

pomusz <3

a guest
Jan 29th, 2015
177
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.71 KB | None | 0 0
  1. addEvent("schowajnw", true)
  2.  
  3. GUIEditor = {
  4. button = {},
  5. window = {},
  6. label = {}
  7. }
  8. GUIEditor.window[1] = guiCreateWindow(487, 295, 417, 123, "JOB / PRACA", false)
  9. guiWindowSetSizable(GUIEditor.window[1], false)
  10.  
  11. GUIEditor.label[1] = guiCreateLabel(75, 23, 293, 16, "Czy chcesz pracować jako pracownik urzędu?", false, GUIEditor.window[1])
  12. guiSetFont(GUIEditor.label[1], "default-bold-small")
  13. GUIEditor.label[2] = guiCreateLabel(71, 49, 293, 16, "Do you want to work as an employee of the office?", false, GUIEditor.window[1])
  14. guiSetFont(GUIEditor.label[2], "default-bold-small")
  15. tak = guiCreateButton(9, 74, 111, 39, "YES / TAK", false, GUIEditor.window[1])
  16. GUIEditor.button[2] = guiCreateButton(296, 75, 111, 38, "NO / NIE", false, GUIEditor.window[1])
  17. guiSetVisible(GUIEditor.window[1], false)
  18. guiWindowSetSizable(GUIEditor.window[1], false)
  19.  
  20. function schowajnawejscie()
  21. guiSetVisible(GUIEditor.window[1], false)
  22. end
  23. addEventHandler("schowajnw", root, schowajnawejscie)
  24.  
  25. local czyPostawiony = false
  26. local pedmarker
  27.  
  28. addEvent("hitek", true)
  29. addEvent("kasa", true)
  30.  
  31. addEventHandler("onClientResourceStart",resourceRoot,
  32. function ()
  33. pedmarker = createMarker (1481.05457, -1771.39673, 17.6, "cylinder", 1, 255, 255, 0)
  34. outputDebugString(tostring(pedmarker),3)
  35. addEventHandler("onClientMarkerHit", pedmarker, pytaj)
  36. end
  37. )
  38.  
  39.  
  40. function pytaj()
  41. guiSetVisible(GUIEditor.window[1], true)
  42. showCursor(true)
  43. end
  44.  
  45. local rozpoczal = false
  46.  
  47. function powejsciu(player)
  48.  
  49. if player == getLocalPlayer() then
  50. end
  51. if czyPostawiony == false then
  52. end
  53. if rozpoczal == false then
  54. end
  55. pedblip = createBlip( -1957.61072, 722.81702, 45.44531, 62, 0, 0, 0, 255)
  56. ped = createPed(147, -1958.28430, 721.60437, 46.6) -- Creates a ped
  57. pracomarker = createMarker( -1958.30566, 722.31940, 44.6, "cylinder", 1, 255, 255, 0, 170)
  58. czyPostawiony = true
  59. rozpoczal = true
  60. showCursor(false)
  61. exports["notifications"]:showBox("info","Zatrudniłeś się w biurze. Twoim zadaniem jest dostarczenie dokumentów do urzędnika miasta San Fierro. Został on oznaczony zieloną ikoną człowieka na radarze. Niestety, musisz użyć prywatnego pojazdu. | Hired in the office. Your task is to provide the documents to the clerk of the city of San Fierro. It has been indicated by a green icon on the radar man. Sorry, you need to use a personal vehicle.")
  62. guiSetVisible(GUIEditor.window[1], false)
  63. addEventHandler("onClientMarkerHit", pracomarker, kasa)
  64. addEventHandler("onClientMarkerHit", pracomarker, delejt)
  65. end
  66. addEventHandler("onClientGUIClick", tak, powejsciu, false)
  67.  
  68.  
  69.  
  70.  
  71. function kasa(player)
  72. if player == getLocalPlayer() then
  73. triggerServerEvent("hajsy", resourceRoot)
  74. exports["notifications"]:showBox("info","Dostarczyłeś dokumenty oraz otrzymałeś wynagrodzenie w wysokości $600. Wracaj do miasta, zadanie zakończone. Następne wykonanie tej pracy będzie dostępne dopiero po następnym zalogowaniu. | You provided the documents and receive a salary of $ 600. Go back to the city, the task completed. Following the execution of this work will be possible only after the next login.")
  75. if isElement ( pedblip ) and isElement ( ped ) then
  76. destroyElement ( pedblip )
  77. destroyElement ( ped )
  78. destroyElement ( pracomarker )
  79. czyPostawiony = false
  80. rozpoczal = false
  81. end
  82. end
  83. end
  84.  
  85. function delejt()
  86. removeEventHandler("onClientMarkerHit", source, kasa)
  87. end
  88.  
  89. function dopelniacz()
  90. guiSetVisible(GUIEditor.window[1], false)
  91. showCursor(false)
  92. end
  93. addEventHandler("onClientGUIClick", tak, dopelniacz, false)
  94. addEventHandler("onClientGUIClick", GUIEditor.button[2], dopelniacz, false)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement