How to have a SWEP and gamemode communicate?

Example: SWEP if a certain thing happens, it can set a variable either on the client or server, for the currently running gamemode, since I am making a SWEP only meant to be used in my gamemode, it needs to communicate with it.

Have your weapon call a hook you define in your game mode. I’ll add an example if you need it, on mobile right now so it’s a little difficult.