Guest User

Untitled

a guest
Oct 17th, 2017
77
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.42 KB | None | 0 0
  1. local screen = guiGetScreenSize();
  2. local info = {};
  3. local comic = GUIFont("comic", 8, true);
  4.  
  5. info.window <- GUIWindow();
  6. info.window.setPosition(screen[0]/2-130, screen[1]/2-90, false);
  7. info.window.setSize(500.0, 300.0, false);
  8. info.window.setText("");
  9. info.window.setVisible(false);
  10. info.logo2 <- GUIImage("translucentbox.png");
  11. info.logo2.setParent(info.window.getName());
  12. info.logo2.setSize(500.0, 300.0, false);
  13. info.text <- GUIText();
  14. info.text.setParent(info.logo2.getName());
  15. info.text.setPosition(20.0, 10.0, false);
  16. info.text.setText("NOTE: ");
  17. info.text.setProperty("Font", "comic");
  18. info.text.setProperty("TextColours","FFFF0000");
  19. info.text1 <- GUIText();
  20. info.text1.setParent(info.logo2.getName());
  21. info.text1.setPosition(20.0, 30.0, false);
  22. info.text1.setText("Player Personal System : ");
  23. info.text1.setProperty("Font", "comic");
  24. info.text1.setProperty("TextColours","FFFF0000");
  25. info.text2 <- GUIText();
  26. info.text2.setParent(info.logo2.getName());
  27. info.text2.setPosition(20.0, 50.0, false);
  28. info.text2.setText("Player OwnerShip : ");
  29. info.text2.setProperty("Font", "comic");
  30. info.text2.setProperty("TextColours","FFFF0000");
  31. info.text3 <- GUIText();
  32. info.text3.setParent(info.logo2.getName());
  33. info.text3.setPosition(20.0, 70.0, false);
  34. info.text3.setText("Employment System : J");
  35. info.text3.setProperty("Font", "comic");
  36. info.text3.setProperty("TextColours","FFFF0000");
  37. info.text4 <- GUIText();
  38. info.text4.setParent(info.logo2.getName());
  39. info.text4.setPosition(20.0, 90.0, false);
  40. info.text4.setText("Fuel System : ");
  41. info.text4.setProperty("Font", "comic");
  42. info.text4.setProperty("TextColours","FFFF0000");
  43. info.text5 <- GUIText();
  44. info.text5.setParent(info.logo2.getName());
  45. info.text5.setPosition(20.0, 110.0, false);
  46. info.text5.setText("Buy Car System :);
  47. info.text5.setProperty("Font", "comic");
  48. info.text5.setProperty("TextColours","FFFF0000");
  49. info.text6 <- GUIText();
  50. info.text6.setParent(info.logo2.getName());
  51. info.text6.setPosition(20.0, 130.0, false);
  52. info.text6.setText("Chat System : ");
  53. info.text6.setProperty("Font", "comic");
  54. info.text6.setProperty("TextColours","FFFF0000");
  55. info.text7 <- GUIText();
  56. info.text7.setParent(info.logo2.getName());
  57. info.text7.setPosition(20.0, 150.0, false);
  58. info.text7.setText("Player Chat System : ");
  59. info.text7.setProperty("Font", "comic");
  60. info.text7.setProperty("TextColours","FFFF0000");
  61. info.button <- GUIButton();
  62. info.button.setParent(info.logo2.getName());
  63. info.button.setPosition(190.0, 220.0, false);
  64. info.button.setSize(100.0, 30.0, false);
  65. info.button.setText("Close");
  66. info.button.setProperty("NormalTextColour", "FFFF0000");
  67. info.button.setProperty("HoverTextColour", "FFFFFFFF");
  68.  
  69.  
  70. function enterInfo(getLocalPlayer)
  71. {
  72. guiToggleCursor(true);
  73. info.window.setVisible(true);
  74. info.setVisible(true);
  75. triggerServerEvent("toggleControlsFalse");
  76. }
  77. addEvent("infogui", enterInfo);
  78.  
  79. function onButtonClick(btnName, bState)
  80. {
  81. if(btnName == info.button.getName())
  82. {
  83. guiToggleCursor(false);
  84. info.window.setVisible(false);
  85. toggleChatWindow(true);
  86. triggerServerEvent("toggleControlsTrue");
  87. }
  88. }
  89. addEvent("buttonClick", onButtonClick);
  90.  
  91. function onWindowClose(wndName, wndState)
  92. {
  93. if(wndName == info.window.getName())
  94. {
  95. guiToggleCursor(false);
  96. info.window.setVisible(false);
  97. toggleChatWindow(true);
  98. triggerServerEvent("toggleControlsTrue");
  99. }
  100. }
  101. addEvent("windowClose", onWindowClose);
Add Comment
Please, Sign In to add comment