I would suggest you look at these:
- Competitive Action Multiplayer Template now released! [Netcode for Entities]
- EntityComponentSystemSamples/NetcodeSamples/Assets/Samples/HelloNetcode/2_Intermediate/03_HitScanWeapon at master · Unity-Technologies/EntityComponentSystemSamples · GitHub
Both uses Client Prediction and Lag Compensation.