I just setup a Linux based FiveM server following fivem documentation. I used latest recommend Build 3874 - When connecting with client to server this error pops:
Clear your FiveM cache and make sure your version of gta is not modded, you may also need to get rid of any plugins for FiveM or reinstall them. Try joining a server before installing any plugins to see if that fixes it before installing them again.