This Lua script is designed for Fivem servers to track and manage duplicate weapon series in player inventories. It effectively identifies duplicates, organizes data, and saves this information in JSON format for easy review and auditing.
- Duplicate Detection: Identifies duplicate weapons based on their series.
- Data Export: Generates JSON files with summaries of duplicate weapons and player details.
- Custom Sorting: Sorts players by the number of duplicate weapons.
- Efficient Processing: Handles large player datasets in batches.
- The script is intended for a Fivem server.
- Requires
oxmysql
for database interactions. - Made For
qb-core
Run the command checkdupeweapons
in the server console to start the duplicate weapon series check.
Note: This command is only executable from the server console.
duplicateWeapons_YYYY-MM-DD.json
: Detailed information on each duplicate weapon series.duplicateSummary_YYYY-MM-DD.json
: Summary of players with counts of duplicate weapons.
- The script relies on specific inventory data structures in the database.
- Server permissions are required for file saving.
This script is provided under the MIT License.
For any questions or issues, feel free to open an issue.
Happy coding!
Grab me a coffee https://ko-fi.com/irishstevie