Garry's Mod

Garry's Mod

418 ratings
Gun Stats for TTT and DarkRP
   
Award
Favorite
Favorited
Unfavorite
Content Type: Addon
Addon Type: Weapon, Effects
Tags: misc
File Size
Posted
Updated
5.214 KB
14 Aug, 2014 @ 7:43am
18 Aug, 2014 @ 11:24am
3 Change Notes ( view )

Subscribe to download
Gun Stats for TTT and DarkRP

Description
See the statistics of any weapon you look at!

Shown Statistics
Damage
Clip information (current clip/maximum)
Accuracy *
Recoil *
Fire mode
Fire rate
* Information is given a rank instead of raw data - see screenshots

Console Variables
gs_show (0/1) - Set whether or not you should see the information panels (1 = show)

Color coding!
Each different class of weapon can be given a unique color for their name, these are the default colors:
Primary - Blue
Secondary - Yellow
Grenade - Orange
Special - Red

Easily customisable - give your server a unique look!
All colors are easily customisable, as well as the boundries for the different stat ratings
Padding, the width of the panel, font used, position above the weapon and fade speeds are all customizable, look in the lua/gunstats/cl_config.lua file.

Errors
Should you encounter any Lua errors while using this addon, please check if you have made mistakes while customising the addon by pasting the contents of the cl_config.lua file to this page[www.lua.org] and adding this to the top of the text box:
GS = {}; Color = function() end; GS.Stats = {}
Then hit "Run" below, and check the output box for errors.
If you still can't figure out what's wrong, post the full stack of the error in a comment on this page or send me a message on Steam.

Direct download
GitHub[github.com]

Source
GitHub[github.com]

Why does it say semi-automatic weapons are automatic!?
It's because the addon uses scripted weapon's values. In GMod, 'automatic' weapons will continue firing if you hold down the attack button. TTT is particularly guilty of this, with multiple shotguns, rifles, and pistols being set as automatic. Sorry if it irritates you, but changing the information for individual weapons would be more work than it's worth.

Other information
The information panel fades in when you look at a weapon and quickly fades out once you look away. No two panels are fully visible at the same time, the fading was disabled for some screenshots to allow comparisons.
This addon will work with pretty much any game mode you want to use it with, but you must configure it according to your game mode's weapon structure. This requires proficient Lua knowledge - if you are unable to do it yourself send me a message on Steam and I'll try to help you out.

Please forgive me for the terrible icon, it's the best I could do with an online editor
64 Comments
Musp 9 Feb, 2023 @ 1:03pm 
is there a way to make the info not bounce up and down and just stay still?
1Day2Die 12 Jul, 2022 @ 8:15am 
M9K not working?
月战铃仙 13 Dec, 2021 @ 9:32pm 
TFA NO WORK(Show):steamfacepalm:
Mongo Tom 6 Jul, 2020 @ 4:21am 
All of a sudden the addon just stopped working on my DarkRP server, now it just shows the name of the weapon and no stats, for CW 2.0 and m9k weapons.
Skip 25 Mar, 2020 @ 7:30pm 
Anyway to make it compatible with CW 2.0 weapons?
Luingar 1 Mar, 2020 @ 3:41pm 
Can you add a field for shot count that hides itself if the shot count is 1?
7777 Tʜɛ Ӻ๑๛∂ß¡tξr 6 May, 2019 @ 9:04am 
So cool :VolgarrChalice:
boxama  [author] 15 Feb, 2019 @ 10:23am 
It should work for most GMod weapons (SWEPs), but fancy addons might not be fully compatible
Let me know if you need any help
Key 15 Feb, 2019 @ 8:18am 
Would this work with weapon addons? Like the TTT Weapon Collection addon?
david38473 20 Oct, 2018 @ 11:08am 
LOL IT ALSO WORKS IN SANDBOX