Garry's Mod

Garry's Mod

241 ratings
Weapon Information System
   
Award
Favorite
Favorited
Unfavorite
Content Type: Addon
Addon Type: Tool
Addon Tags: Fun, Realism
File Size
Posted
Updated
2.270 KB
Jan 22, 2014 @ 4:19pm
Jan 28, 2014 @ 8:17am
5 Change Notes ( view )

Subscribe to download
Weapon Information System

Description
The Weapon Information System is an addon that displays information about the weapon and ammo on the ground (available to be picked up) when you look at it.

Source code on GitHub: WeaponInformationSystem[github.com]

If you like it please leave an up vote, so that other people can see it too.

Inspired by TTT Weapon Info created by Wolf Halez and available as paid stuff :( on CoderHire.
The Weapon Information System is not a source code copy of the TTT Weapon Info, I analysed how it works an built my own version from scratch and added some other features to make it better.

This is useful to compare weapons caracteristics and to know which is the ammo it uses.

Status: Currently working to make it work on DarkRP as well.

Informations displayed when you look at weapons:
- Name
- Damage
- Clip size
- If it is automatic
- Shot's spread
- Recoil
- Ammo type/name

Information displayed when you look at ammunitions:
- Name
- If the weapon you're holding uses the ammo you're looking at, the box that surrounds the ammo name will be green.

It will work only TTT as it allows you to pick up weapons and ammo from the ground and that treat those as weapons and ammos (code-side stuff). I'm currently trying to make it work with DarkRP, but it treats weapons and ammos differently, so don't take any hopes.

If you have any suggestions about something that should be added or about any information about problems with it, please consider creating a new thread in the discussion area.

Sorry about the grammar, I'm not a native and good english speaker. Please correct me about any mistakes.
44 Comments
Kolibri, the robot space lesbian Jul 20, 2018 @ 7:55am 
when i look at most guns, the game breaks.
Jayfeather Feb 3, 2017 @ 7:25pm 
When i look at some guns. the world goes see through.
kebokyo Mar 3, 2015 @ 5:21pm 
The question everyone wants to know:
Will it work with any custom weapon?
Phantom Dec 14, 2014 @ 12:09am 
is this client side of does it need to be on the server too?
Erza Jul 25, 2014 @ 4:56pm 
@TehAngel i spent 7 hours today to figure out what was wrong with my server and it was this addon can cannot work with any guns that i have. It caused player item slots to disappear with broken gun errors.

[Weapon Information System] lua/cl_weapon_information.lua:117: attempt to compare number with nil
1. v - lua/cl_weapon_information.lua:117
2. unknown - lua/includes/modules/hook.lua:84
Lykrast Jul 1, 2014 @ 2:13pm 
I have a suggestion : replace the Automatic : true/false line by something indicating the fire delay. All base TTT weapons are automatics, and knowing the firerate is actually really something useful. Also, if possible, a way to know the number of bullets shot by shotguns (like if it's more than 1, it says something like x6 or x8 next to the damage).
Scardigne May 6, 2014 @ 4:44am 
So no darkrp update?
Scardigne Mar 20, 2014 @ 6:06am 
Thanks for the notification C:
Zignd  [author] Mar 19, 2014 @ 6:42pm 
@Scardigne, yes it is and sorry again for all that time and no update. To tell you the true I'm very busy those days with tests (university) and work (job), but last weekend I did some progress and it's almost working, I'm just having some problems with the Title/Weapon Name field at the top, but I did not fixed it yet, because I was really very busy. But, in anyway I will release the DarkRP update this weekend 22/23 and if it does not you can call me a bitch or something like that.
Scardigne Mar 19, 2014 @ 7:18am 
Is the darkrp update still in development? it would be a shame to stop here..