[Free][Git][QB] fivem-subrepo

A bash script which allows anyone to setup qb-core (or any FW) based FiveM server resource repository on GitHub with private forks of upstream repositories using a txAdmin recipe. This allows you to be up to date with the latest framework changes as well as any public updates for the resources that you’ve added to the server. The initial setup takes a bit of time but once you’re used to it, you’ll never want to go back to manually updating your resources

Features

  • Creates a main GitHub repository for all your resources
  • Automatically creates private forks of all the resources
  • Supports pulling from all remotes at once using a single command
  • Keeps local changes (remote pulls don’t override your changes)
  • Supports any txAdmin recipe (Tested and provided qb-core recipe only)
  • You can add any new resources
  • You can remove resources if you don’t need them

Tool Link: GitHub - iLLeniumStudios/fivem-subrepo: A bash script that builds up a subtree based Git repo from a txAdmin Recipe

Video Walkthrough: How to setup a GitHub subrepo for FiveM Server - YouTube

Supported Operating Systems

  • Linux (Ubuntu / CentOS / Fedora / Arch)

  • Windows (WSL / WSL2)

Pre-requisites

  • jq
  • yq
  • git
  • gh
  • subrepo
  • unzip

All the instructions on setting it up are available in the readme of the tool here: GitHub - iLLeniumStudios/fivem-subrepo: A bash script that builds up a subtree based Git repo from a txAdmin Recipe

Note: If you don’t have WSL on Windows then you can follow this article to set it up before using my tool: https://www.altisconsulting.com/uk/insights/installing-ubuntu-bash-for-windows-10-wsl2-setup/

8 Likes

Very cool resource, But i don’t see the commands for the Windows WSL for setup :slight_smile:

You can use the same Ubuntu commands for setup since you’ll most likely be using WSL Ubuntu

1 Like

Can I add this to an already existing TxAdmin server with QB-core or I’d have to create a new one with the resource repository?

Sorry bit unfamiliar with Git.

You will have to create a new one, and then move your changes 1 by 1 for every script

1 Like

Hello, may I ask how to add an existing resource script which doesn’t have a github repo into the subrepo ?

If you don’t want to track that then you can just add it in the main repo directly

1 Like

okay, thank you sir :smiley: