Garry's Mod Wiki


boolean WEAPON:KeyValue( string key, string value )


Called when the engine sets a value for this scripted weapon.

See GM:EntityKeyValue for a hook that works for all entities.

See ENTITY:KeyValue for an hook that works for scripted entities.


1 string key
The key that was affected.
2 string value
The new value.


1 boolean
Return true to suppress this KeyValue or return false or nothing to apply this key value.

Page Links

Special Pages



Render Time: 26ms

Session 0
DB GetPage 4
Generate Html 7
SaveChanges 8
Render Body 0
Render Sidebar 5