├── LICENSE ├── README.md ├── examples ├── StartMainAccount.bat ├── StartMultipleAccounts.bat └── StartTestingAccount.bat └── template.bat /LICENSE: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) 2023 Tuncion 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # Multiple FiveM Clients 2 | 3 | ## Introduction 4 | This tutorial is for FiveM developers who are creating interactions or systems with multiple players (Peds). Normally you always have to ask your friend etc. to come to the server to test it. Here I explain how to run FiveM multiple times on one PC with different Rockstar accounts (different identifiers). 5 | 6 | ## ⚠️ Important Advices 7 | - Sometimes, when you start the second account, the game freezes and crashes/shuts down. \ 8 | **_Solution:_** Restart the FiveM clients 9 | ------------------------------------------------------------------------------ 10 | 11 | ## Requirements 12 | > • Multiple official Rockstar Accounts 13 | 14 | > Minimal PC Specs:\ 15 | > • least 6 CPU Cores\ 16 | > • least 32GB RAM\ 17 | > • least 8 VRAM\ 18 | > __This is just my recommendation!__ 19 | 20 | ------------------------------------------------------------------------------ 21 | ## Installation 22 | 23 | ### **Create and save the AccountData file**. 24 | 1. Go to your `%AppData%` under `Local/DigitalEntitlements`. 25 | 2. Create the `AccountsData` folder. 26 | 3. Delete the current **"38d8f400-aa8a-4784-a9f0-26a08628577e "** file (this is where the Rockstar account is stored) 27 | 4. Now start FiveM, it will ask you to log in with your Rockstar account. 28 | 5. After successful login, the **"38d8f400-aa8a-4784-a9f0-26a08628577e "** file will be created automatically. 29 | 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**) 30 | 7. Now do step **3. - 6.** again, but with your other Rockstar account 31 | 8. You should now have several **38d8f400-aa8a-4784-a9f0-26a08628577e** files in the "AccountsData" folder with the suffix\ 32 | ![AccountsData Files](https://i.ibb.co/Wk383ws/Accounts-Data.png) 33 | 34 | 35 | **Create a shortcut to open FiveM with a specific Rockstar account**. 36 | 37 | 9. Go to your FiveM root folder (should stay in **AppData/Local/FiveM**)\ 38 | ![FiveM root folder](https://i.ibb.co/1QtQ0QF/FiveMRoot-Folder.png) 39 | 10. Copy the **template.bat** into this folder 40 | 11. Rename it so you can recognize it (I will call it **"StartMainAccount.bat "** and **"StartTestingAccount.bat "**) 41 | 12. Now edit the file with your values 42 | 13. Insert in the first copy command the absolute path to your AccountData with the correct suffix in copy parameter 1 43 | 14. Insert in the first copy command the absolute path to your DigitalEntitlements folder without the suffix in the copy parameter 2 44 | 15. Always increase the **-cl** parameter number (your first account should be **-cl1**, your second **-cl2**...) 45 | 16. Now do step **10. - 15.** again with each account you want.\ 46 | ![FiveM Start Shortcuts](https://i.ibb.co/YB73rwJ/FiveMStart-Shortcuts.png) 47 | 17. *Optional:* Make a copy of **StartMultipleAccounts.bat** and adjust it to your needs. 48 | This file makes it easier to launch multiple FiveM accounts at once. Just run it, and all the accounts/FiveM clients will open automatically. 49 | 50 | ## 📘 Note: 51 | - If you don't want to start in windowed mode remove **-windowed** parameter 52 | - If you want to add more accounts, you can insert the next copy command after **-cl2**. 53 | 54 | ## Examples 55 | ### **You can find my examples in the examples folder** -------------------------------------------------------------------------------- /examples/StartMainAccount.bat: -------------------------------------------------------------------------------- 1 | copy "%userprofile%\AppData\Local\DigitalEntitlements\AccountsData\38d8f400-aa8a-4784-a9f0-26a08628577e_MainAccount" "%userprofile%\AppData\Local\DigitalEntitlements\38d8f400-aa8a-4784-a9f0-26a08628577e" 2 | start FiveM.exe -cl1 -windowed 3 | 4 | exit -------------------------------------------------------------------------------- /examples/StartMultipleAccounts.bat: -------------------------------------------------------------------------------- 1 | copy "%userprofile%\AppData\Local\DigitalEntitlements\AccountsData\38d8f400-aa8a-4784-a9f0-26a08628577e_MainAccount" "%userprofile%\AppData\Local\DigitalEntitlements\38d8f400-aa8a-4784-a9f0-26a08628577e" 2 | start FiveM.exe -cl1 -windowed 3 | 4 | copy "%userprofile%\AppData\Local\DigitalEntitlements\AccountsData\38d8f400-aa8a-4784-a9f0-26a08628577e_TestAccount" "%userprofile%\AppData\Local\DigitalEntitlements\38d8f400-aa8a-4784-a9f0-26a08628577e" 5 | start FiveM.exe -cl2 -windowed 6 | 7 | exit -------------------------------------------------------------------------------- /examples/StartTestingAccount.bat: -------------------------------------------------------------------------------- 1 | copy "%userprofile%\AppData\Local\DigitalEntitlements\AccountsData\38d8f400-aa8a-4784-a9f0-26a08628577e_TestAccount" "%userprofile%\AppData\Local\DigitalEntitlements\38d8f400-aa8a-4784-a9f0-26a08628577e" 2 | start FiveM.exe -cl2 -windowed 3 | 4 | exit -------------------------------------------------------------------------------- /template.bat: -------------------------------------------------------------------------------- 1 | copy "%userprofile%\AppData\Local\DigitalEntitlements\AccountsData\38d8f400-aa8a-4784-a9f0-26a08628577e_MainAccount" "%userprofile%\AppData\Local\DigitalEntitlements\38d8f400-aa8a-4784-a9f0-26a08628577e" 2 | start FiveM.exe -cl1 -windowed 3 | 4 | copy "%userprofile%\AppData\Local\DigitalEntitlements\AccountsData\38d8f400-aa8a-4784-a9f0-26a08628577e_TestAccount" "%userprofile%\AppData\Local\DigitalEntitlements\38d8f400-aa8a-4784-a9f0-26a08628577e" 5 | start FiveM.exe -cl2 -windowed 6 | 7 | exit --------------------------------------------------------------------------------