The connection code in FiveM is a unique identifier that is used to connect to a FiveM server. It is typically a long string of characters that is generated by the server when it is created. To add a connection code to FiveM, you will need to open the FiveM console and type the following command:
connect [connection code]
For example, if the connection code for a server is “12345”, you would type the following command: