Garry's Mod Wiki

WEAPON:Think

  WEAPON:Think()
This hook is predicted. This means that in singleplayer, it will not be called in the Client realm.

Description

Called when the weapon thinks.

This hook won't be called during the deploy animation and when using Weapon:DefaultReload.

Despite being a predicted hook, this hook is called clientside in single player (for your convenience), however it will not be recognized as a predicted hook via Player:GetCurrentCommand, and will run more often in this case.

This hook will be called before Player movement is processed on the client, and after on the server.

This hook only runs while the weapon is in players hands. It does not run while it is carried by an NPC.
This will not be run during deploy animations after a serverside-only deploy. This usually happens after picking up and dropping an object with +use.

Issue Tracker: 2855