Hi,
well, since LTE is 4G and 5G is an evolution of 4G, I'd suggest to check the lte module.
Generally, you want to identify the network entities you want to model, the protocols they are using and develop a class for each network entity/protocol. it's not different from asking "how do I implement this for real?" and then doing it.
Example: you decide you need the MBMS, and in particular you need the protocol FooBar between the eNB and the MBMS.
There is a class for the eNB, but not one for the MBMS. Moreover, the protocol FooBar is to be developed.
1) you write a simple class for the MBMS, just a placeholder.
2) you write the protocol FooBar headers and data structures.
3) you write in the eNB / MBMS the functions to receive the FooBar protocol messages (and do something)
4) same as point 3, but for sending.
5) you realize you just did what you wanted to do.
Point 2 is the protocol syntax
Point 3 and 4 are the protocol semantic
Seems easy? it isn't... but it can be done.
Cheers,
T.