Server-siding the gun requires you to check these points:
Here’s a module I found on the forum that is very useful.