This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | const puppeteer = require("puppeteer"); | |
| const fs = require("fs"); | |
| async function scrape() { | |
| const browser = await puppeteer.launch(); | |
| const page = await browser.newPage(); | |
| await page.goto("https://docs.fivem.net/docs/game-references/ped-models/"); | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | function world2Screen(pos) | |
| local _, sX, sY = GetScreenCoordFromWorldCoord(pos.x, pos.y, pos.z) | |
| return vector2(sX, sY) | |
| end | |
| function rotationToDirection(rotation) | |
| local x = rotation.x * math.pi / 180.0 | |
| local z = rotation.z * math.pi / 180.0 | |
| local num = math.abs(math.cos(x)) | |
| return vector3((-math.sin(z) * num), (math.cos(z) * num), math.sin(x)) |