[How-To] Start Multiple FiveM Clients - Run FiveM with Different Rockstar Accounts

:tada: Hello FiveM developers!

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.

  1. Go to your %AppData% under Local/DigitalEntitlements.
  2. Create the “AccountsData” folder.
  3. Delete the current "38d8f400-aa8a-4784-a9f0-26a08628577e " file (this is where the Rockstar account is stored)
  4. Now start FiveM, it will ask you to log in with your Rockstar account.
  5. After successful login, the "38d8f400-aa8a-4784-a9f0-26a08628577e " file will be created automatically.
  6. 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)
  7. Now do step 3. - 6. again, but with your other Rockstar account
  8. You should now have several 38d8f400-aa8a-4784-a9f0-26a08628577e files in the “AccountsData” folder with the suffix\

AccountsData Files

Create a shortcut to open FiveM with a specific Rockstar account.

  1. Go to your FiveM root folder (should stay in AppData/Local/FiveM)\

FiveM root folder

  1. Copy the template.bat into this folder
  2. Rename it so you can recognize it (I will call it "StartMainAccount.bat " and "StartTestingAccount.bat ")
  3. Now edit the file with your values
  4. Insert the absolute path to your AccountData with the correct suffix in copy parameter 1
  5. Insert the absolute path to your DigitalEntitlements folder without the suffix in the copy parameter 2
  6. Always increase the -cl parameter number (your first account should be -cl1, your second -cl2…)
  7. Now do step 10. - 15. again with each account you want.\

FiveM Start Shortcuts


:lock: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!

:heart:Feel free to post your suggestions.

4 Likes

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?

Hello mate,

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 :smiley: 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.

No luck. It says the identifer is already logged in

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.

image
image

2 Likes

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

Not really sure how other frameworks handle data. On our framework everything is fine, never had problems with that…

Hello @Tuncion , thanks for share your tips.
i recommend you change the line Users\XXX with “%userprofile%\AppData\Local\DigitalEntitlements.…”

and:

start "" "FiveM.exe" -cl2

to start without the cmd window openend in taskbar

Hello @distopia, thank you for your suggestions will check and create a new commit :slight_smile:

1 Like