[How To] Use -cl2 to Launch Two Instances of FiveM

I just join the server on both clients at the same time and it seems to get past that block.

If you’re using ESX change the if statement to false wherever it says to give this error in /es_extended/server/main.lua

2 Likes

My Computer wont open up the Fivem.exe with the -c12

Or you can simply set the QBConfig.Server.CheckDuplicateLicense to false in qb-core/config.lua

So much misinformation.
-cl2 is a parameter you can add when launching FiveM from either cli or shortcut.

If something is complaining about licenses then it’s up to you to remove those blocks in the pertinent resources, in order to allow entry of the second client.

Exactly. I found this resource here on the forums. It’s essentially a set of batch files that allow multiple clients to run on a single PC with separate license keys. The instructions are pretty clear and example batch files are included in the Github repository.

I had to make a couple changes for my server, which requires players to be logged into Discord. I have it all working well with both of my licenses (both legit.) Thanks to @Tuncion for the tutorial and the example batch files.

1 Like

That doesn’t make any sense. It launches client 1 - which is the normal shortcut and then there’s one batch file for client 2, which also doesn’t make sense because you can just basically make a shortcut with the cl2 parameter and be done.

Copying entitlements won’t change a thing.

Except it works. Argue all you want.

esx_multicharacter

image

Hi, normal ?

[Uploading: image.png…](Screenshot - 2c6210265d26ac8496dd0d2abc3554ca - Gyazo)

Help me please ?

ESX Legacy how to fix this in cl2?

You need to have two rockstar accounts. I have an example here: [How-To] Start Multiple FiveM Clients - Run FiveM with Different Rockstar Accounts

If u are using ESX just put in es_extended debug in true.

And make sure u are using esx_multicharacters

Nice way to prevent two accounts :ok_hand: Thanks

This is just for debug purposes. Why would you use two clients instead in your server?

What about 3 clients? The second one with -cl2 works perfectly but if I try with -cl3 it is impossible to start. It would be very useful to be able to reproduce situations with 3 players in local development.