Best way to get serverside information clientiside

Hey,
So I have a function, running serverside. The function is checking something and returns a value. I need that return clientside, so I’m wondering how I can access it clientside?