Garry's Mod Wiki

Entity:GetNW2String

  any Entity:GetNW2String( string key, any fallback )

Description

Retrieves a networked string value at specified index on the entity that is set by Entity:SetNW2String.

Arguments

1 string key
The key that is associated with the value
2 any fallback
The value to return if we failed to retrieve the value. (If it isn't set)

Returns

1 any
The value associated with the key