Addon Weapon Fetcher / Scrapper [Open Source] [Dev Tool]

Weapons Scrapper / Fetcher

This script serves as development tool for obtaining all weapons in a FiveM server with respective components and meta/information related to said. Works with any weapons, addon, replacement and base game.

In addition to getting all the information it also takes automatically screenshots.

Scrapper

The script runs through all scripts with weapon files mentioned in the fxmanifest.lua and parses their meta files to get the weapons in question.
The command (server) to trigger the fetching of weapons is: tgmweapons:obtain

It will generate two files in: data/generated, weapons.json and components.json.
The script works with ADDON Weapons as long as the metafiles are properly created and referenced in the fxmanifest.lua

Screenshoter

The code for screenshoter is a modification of GitHub - Bentix-cs/fivem-greenscreener: A fivem script that takes screenshots of every gta clothing, prop/object and vehicle · GitHub and all credits go to Bentix-cs.
For the screenshoter to work as intended you should also have Bentix’s fivem-greenscreener resource started, which adds the greenscreen at LSIA.

Example

An example of an end product that used this is: Realistic Weapons - Shop, Loadout, Weapon on back [Standalone]

4 Likes