Here you go: http://wiki.garrysmod.com/page/GM/AllowPlayerPickup
If you’re modifying behavior use hook.Add and only return true / false for SPECIFIC behavior because it will prevent the GM: function from firing if non-nil value is returned.
If you’re writing a game-mode use the GM: function…
You could set up a system so that if a player is holding attack2 that based on the ▲Pitch/Yaw/Roll, that ▲ value is applied to the prop angles by setting them… ▲ = Delta, or the change-in meaning if Yaw was 100 and you moved +10 then the ▲Yaw would be 10 for that frame or so… Then you can have smooth rotation…
You can do that all on the server but you could also use a shared hook… Some to look at would be InputMouseApply, SetupMove, CreateMove, Move… on the wiki. http://wiki.garrysmod.com/
Also, Welcome to Facepunch, here are some helpful posts, etc…
Generalized Lua Help ( Links to Wikis, Answers the question of “Where do I post a simple question or DarkRP Specific question”, links to other resources compiled by forum members )
Useful Programs ( SteamCMD, Autosizer, Desktops, Process Explorer ) and Notepad++ Upgrades