Greetings,
Im sorry to hear you having issue with fivem. can you please try the following things. 1 open ports in your windows or linux firewall tcp: 30110 and 30120 and for txadmin 40120
I hope this solve your issues.
Kind regard Anykeys