Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local screen = guiGetScreenSize();
- local info = {};
- local comic = GUIFont("comic", 8, true);
- info.window <- GUIWindow();
- info.window.setPosition(screen[0]/2-130, screen[1]/2-90, false);
- info.window.setSize(500.0, 300.0, false);
- info.window.setText("");
- info.window.setVisible(false);
- info.logo2 <- GUIImage("translucentbox.png");
- info.logo2.setParent(info.window.getName());
- info.logo2.setSize(500.0, 300.0, false);
- info.text <- GUIText();
- info.text.setParent(info.logo2.getName());
- info.text.setPosition(20.0, 10.0, false);
- info.text.setText("NOTE: ");
- info.text.setProperty("Font", "comic");
- info.text.setProperty("TextColours","FFFF0000");
- info.text1 <- GUIText();
- info.text1.setParent(info.logo2.getName());
- info.text1.setPosition(20.0, 30.0, false);
- info.text1.setText("Player Personal System : ");
- info.text1.setProperty("Font", "comic");
- info.text1.setProperty("TextColours","FFFF0000");
- info.text2 <- GUIText();
- info.text2.setParent(info.logo2.getName());
- info.text2.setPosition(20.0, 50.0, false);
- info.text2.setText("Player OwnerShip : ");
- info.text2.setProperty("Font", "comic");
- info.text2.setProperty("TextColours","FFFF0000");
- info.text3 <- GUIText();
- info.text3.setParent(info.logo2.getName());
- info.text3.setPosition(20.0, 70.0, false);
- info.text3.setText("Employment System : J");
- info.text3.setProperty("Font", "comic");
- info.text3.setProperty("TextColours","FFFF0000");
- info.text4 <- GUIText();
- info.text4.setParent(info.logo2.getName());
- info.text4.setPosition(20.0, 90.0, false);
- info.text4.setText("Fuel System : ");
- info.text4.setProperty("Font", "comic");
- info.text4.setProperty("TextColours","FFFF0000");
- info.text5 <- GUIText();
- info.text5.setParent(info.logo2.getName());
- info.text5.setPosition(20.0, 110.0, false);
- info.text5.setText("Buy Car System :);
- info.text5.setProperty("Font", "comic");
- info.text5.setProperty("TextColours","FFFF0000");
- info.text6 <- GUIText();
- info.text6.setParent(info.logo2.getName());
- info.text6.setPosition(20.0, 130.0, false);
- info.text6.setText("Chat System : ");
- info.text6.setProperty("Font", "comic");
- info.text6.setProperty("TextColours","FFFF0000");
- info.text7 <- GUIText();
- info.text7.setParent(info.logo2.getName());
- info.text7.setPosition(20.0, 150.0, false);
- info.text7.setText("Player Chat System : ");
- info.text7.setProperty("Font", "comic");
- info.text7.setProperty("TextColours","FFFF0000");
- info.button <- GUIButton();
- info.button.setParent(info.logo2.getName());
- info.button.setPosition(190.0, 220.0, false);
- info.button.setSize(100.0, 30.0, false);
- info.button.setText("Close");
- info.button.setProperty("NormalTextColour", "FFFF0000");
- info.button.setProperty("HoverTextColour", "FFFFFFFF");
- function enterInfo(getLocalPlayer)
- {
- guiToggleCursor(true);
- info.window.setVisible(true);
- info.setVisible(true);
- triggerServerEvent("toggleControlsFalse");
- }
- addEvent("infogui", enterInfo);
- function onButtonClick(btnName, bState)
- {
- if(btnName == info.button.getName())
- {
- guiToggleCursor(false);
- info.window.setVisible(false);
- toggleChatWindow(true);
- triggerServerEvent("toggleControlsTrue");
- }
- }
- addEvent("buttonClick", onButtonClick);
- function onWindowClose(wndName, wndState)
- {
- if(wndName == info.window.getName())
- {
- guiToggleCursor(false);
- info.window.setVisible(false);
- toggleChatWindow(true);
- triggerServerEvent("toggleControlsTrue");
- }
- }
- addEvent("windowClose", onWindowClose);
Add Comment
Please, Sign In to add comment