Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

276
Views
I have tried to run this file in html but give me that error uncaught-reference script-is-not-defined
var alreadyDid = [];
const getId = setInterval(() => {
var weapon = priceArray[~~(Math.random() * priceArray.length)];
fetch(`http://localhost:3000/api/${weapon.name}`, {
        "headers": {
            "accept": "application/json, text/plain, */*",
            "accept-language": "en-US,en;q=0.9",
            "sec-ch-ua": "\"Chromium\"",
            "sec-ch-ua-mobile": "?0"
        },
        "referrerPolicy": "no-referrer-when-downgrade",
        "body": null,
        "method": "GET",
        "mode": "cors"
    })
    .then(function(response) {
        return response.json();
    })
    .then(function(json) {
        for (value in json) {
            const item = json[value];
            if (item.price < weapon.price) {
                var sanitized_price = item.price.toString().replace(/(\d)(?=(\d{3})+(?!\d))/g, '$1,');
                console.log(weapon.sanitized_name, sanitized_price)
                fetch("https://gtalife/gameMenuAuctionEvent", {
                    "headers": {
                        "accept": "application/json, text/plain, */*",
                        "content-type": "application/json;charset=UTF-8",
                        "sec-ch-ua": "\"Chromium\"",
                        "sec-ch-ua-mobile": "?0"
                    },
                    "referrer": "",
                    "referrerPolicy": "no-referrer-when-downgrade",
                    "body": `{\"type\":\"takeOffer\",\"data\":{\"id\":${item.id},\"sell\":true}}`,
                    "method": "POST",
                    "mode": "cors"
                });
                
            }
        }
    });
}, 200);
console.log("interval id = ", getId);
about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!