How can I do an Sandbox/TTT weapon at the same time...

Hello everyone :smiley:

I wanted to make a weapon that would work on TTT and Sandbox.

Can I do something like:

if gamemode Sandbox then
stuff?