Garry's Mod Wiki


Entity:SetNWVector( string key, Vector value )


Sets a networked vector value on the entity.

The value can then be accessed with Entity:GetNWVector both from client and server.

Running this function clientside will only set it for the client it is called on.


1 string key
The key to associate the value with
2 Vector value
The value to set


This will set the networked vector 'positionzero' on all clients to Vector( 0, 0, 0 ).

for i, ply in ipairs( player.GetAll() ) do ply:SetNWVector( 'positionzero', Vector( 0, 0, 0 ) ) end

Page Links

Special Pages



Render Time: 34ms

DB GetPage 5
Generate Html 5
SaveChanges (1) 14
Render Body 0
Render Sidebar 7