Guest User

Untitled

a guest
Apr 26th, 2020
33
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. document.addEventListener("DOMContentLoaded", () => {
  2. const INFERNUS = document.getElementById("INFERNUS"); // <button> in index.html
  3. INFERNUS.addEventListener("click", () => {
  4. mp.gui.chat.push("GET INFERNUS");
  5. })
  6. });
  7.  
  8. <!DOCTYPE html>
  9. <html>
  10. <head>
  11. <meta charset="UTF-8">
  12. </head>
  13. <script src="./handler.js"></script>
  14. <body>
  15. <div class="container">
  16. <p class="mainBlock">Car Spawner</p>
  17. <div id="car">INFERNUS<button id="INFERNUS>Got it!</button></div>
  18. </div>
  19. </body>
  20. </html>
RAW Paste Data