How should i implement shooting when i have Local splitscreen and Online play

I have implemented Online play and local splitscreen play as different gamemodes. I did Online first, so my “Fire” command executes on server and it works perfectly fine online. But when i go splitscreen no one can shoot.
I though about setting up a “PlayingOnServer?” boolean right after input fire and create a completely different Fire function on the “LocalPlayerController” which runs in splitscreen. Is there a better way to implement this than checking if we are playing on server every time i try to fire in online multiplayer?