I wanted to share a tutorial with you all on how to run multiple instances of FiveM on a single PC, each using a different Rockstar account. This is particularly useful if you’re working on interactions or systems that involve multiple players (Peds) and don’t want to rely on others to join your server for testing.
I’ve created a GitHub repository called “multiple-fivem-clients” where you can find all the necessary steps and files. You can check it out here.
Requirements
• Multiple official Rockstar Accounts
Minimum PC Specs:
• least 6 CPU Cores
• least 32GB RAM
• least 8 VRAM This is just my recommendation!
Installation
Create and save the AccountData file.
Go to your %AppData% under Local/DigitalEntitlements.
Create the “AccountsData” folder.
Delete the current "38d8f400-aa8a-4784-a9f0-26a08628577e " file (this is where the Rockstar account is stored)
Now start FiveM, it will ask you to log in with your Rockstar account.
After successful login, the "38d8f400-aa8a-4784-a9f0-26a08628577e " file will be created automatically.
Now move this file to the new folder “AccountsData” and give it a suffix (in my case I will use _main account and _test account)
Now do step 3. - 6. again, but with your other Rockstar account
You should now have several 38d8f400-aa8a-4784-a9f0-26a08628577e files in the “AccountsData” folder with the suffix\
Create a shortcut to open FiveM with a specific Rockstar account.
Go to your FiveM root folder (should stay in AppData/Local/FiveM)\
Copy the template.bat into this folder
Rename it so you can recognize it (I will call it "StartMainAccount.bat " and "StartTestingAccount.bat ")
Now edit the file with your values
Insert the absolute path to your AccountData with the correct suffix in copy parameter 1
Insert the absolute path to your DigitalEntitlements folder without the suffix in the copy parameter 2
Always increase the -cl parameter number (your first account should be -cl1, your second -cl2…)
Now do step 10. - 15. again with each account you want.\
I don’t know if this is the easiest and best way to implement something like this. It helped me to design scripts at that time. And I think that’s what it’s all about!
every time i start a new fivem instance i can’t even browse for servers because the console says, that the address is already in use. i assume it’s a port issue, but i am unsure. do you have any fix for that?
I have not had the problem yet, everything works for me. It is for testing purposes on a server, you can via connect SERVERID directly join your test server via the console.
Sorry that was my bad, fivem was down and i wasn’t able to connect to any server However I can’t really get it to work, as on both account I somehow magically get the same rockstar id (i am using 2 different accounts). Both accounts use different rockstar and/or cfx.re accounts but they do use the same discord and xbox identifier. Could that be the cause?
Check the path in the bat file the file is not changed for you. Possibly also a Windows Permission problem can be many things. Just try to take out the FiveM start and check if it changes the file correctly.
You don’t need multiple Rockstar accounts, you can start two FiveM instances with one account just fine and that AccountData stuff isn’t needed then. Just make a shortcut for the FiveM.exe and add - cl2 ad the end and thats it, you can start the secon client from the shortcut.
For a normal server the shortcut is sufficient, but for roleplay servers you need a separate identifier, otherwise you can’t even join (With two identical identifiers you disturb the way the framework works, unless you have a MultiChar system, but this does not apply to all framework/MultiChar systems, which I do not assume here). The shortcut parameter -cl2 is also used in the .bat file but including the identifier logic