Where is the page that told you to open those ports? Do you know what those ports do? Are you using linux or windows? Home hosted or Dedicated Box? Do you have any type of firewall enabled? People cant connect to the server or it just doesn’t appear on the list?
What you basically told us so far is like this:
My cat has a disease and I rubbed his belly and it didn’t resolve, can anyone cure him?
That just extremely vague. You can’t call a doctor and tell him your stomach hurts without going for an appointment where he will get all the details he needs… Just be logical, we can’t read minds.
With what you gave us so far the most we can do is just guess what people normally do wrong and give you some fixes that may or may not work.
The only port that FiveM requires to be open is 30120, it does not use any other port.