Garry's Mod Wiki

Entity:GetNetworkedVar

  any Entity:GetNetworkedVar( string key, any fallback = nil )

Description

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

We advise against using this. It may be changed or removed in a future update.

Arguments

1 string key
The key that is associated with the value
2 any fallback = nil
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