Can you run fivem on an all in one pc?

Hey I was wondering if anyone knows if you could run fivem on an all in one pc or would an app like that be too much to run on an all in one I’m genuinely curious cause I don’t have the money for a pc rn and I’m tryna run fivem on my computer but it’s slow and laggy

It depends on the pc specs but most likely you can!