Guest User

Untitled

a guest
Oct 30th, 2016
132
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.05 KB | None | 0 0
  1. GUIEditor = {
  2. button = {},
  3. window = {}
  4. }
  5. addEventHandler("onClientResourceStart", resourceRoot,
  6. function()
  7. window[1] = guiCreateWindow(838, 223, 414, 361, "Przebieralnia PSP", false)
  8. guiWindowSetSizable(window[1], false)
  9. guiSetProperty(window[1], "CaptionColour", "FF677DEC")
  10.  
  11. button[1] = guiCreateButton(18, 43, 141, 56, "Koszarowy", false, window[1])
  12. button[2] = guiCreateButton(18, 109, 141, 56, "Bojowy", false, window[1])
  13. button[3] = guiCreateButton(18, 175, 141, 56, "Bojowy AODO", false, window[1])
  14. button[4] = guiCreateButton(194, 109, 141, 56, "Ratownik Medyczny", false, window[1])
  15. button[5] = guiCreateButton(194, 43, 141, 56, "Lekarz", false, window[1])
  16. button[6] = guiCreateButton(194, 175, 141, 56, "Zwykly", false, window[1])
  17. end
  18. )
  19.  
  20. marker =createMarker(-2995.099609375, 478.7001953125, 3.9000000953674,"cylinder",1)
  21.  
  22. function skin1 ()
  23. setElementModel(localPlayer, 276)
  24. outputChatBox("* Strój Bojowy "..getElementModel(localPlayer)..".")
  25. end
  26. addEventHandler ("onClientGUIClick", button[1], skin1)
  27.  
  28. function skin2 ()
  29. setElementModel(localPlayer, 277)
  30. outputChatBox("* Strój Bojowy "..getElementModel(localPlayer)..".")
  31. end
  32. addEventHandler ("onClientGUIClick", button[2], skin2)
  33.  
  34. function skin3 ()
  35. setElementModel(localPlayer, 278)
  36. outputChatBox("* Strój Bojowy AODO "..getElementModel(localPlayer)..".")
  37. end
  38. addEventHandler ("onClientGUIClick", button[3], skin3)
  39.  
  40. function skin4 ()
  41. setElementModel(localPlayer, 274)
  42. outputChatBox("* Strój Ratownika "..getElementModel(localPlayer)..".")
  43. end
  44. addEventHandler ("", button[4], skin4)
  45.  
  46. function skin5 ()
  47. setElementModel(localPlayer, 275)
  48. outputChatBox("* Lekarz Pogotowia "..getElementModel(localPlayer)..".")
  49. end
  50. addEventHandler ("onClientGUIClick", button[5], skin5)
  51.  
  52. function skin6 ()
  53. setElementModel(localPlayer, 170)
  54. outputChatBox("* Zwykly "..getElementModel(localPlayer)..".")
  55. end
  56. addEventHandler ("onClientGUIClick", button[6], skin6)
Advertisement
Add Comment
Please, Sign In to add comment