Garry's Mod Wiki


Entity:SetNWBool( string key, boolean value )


Sets a networked boolean value on the entity.

The value can then be accessed with Entity:GetNWBool 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 boolean value
The value to set


Sets a networked boolean with a key of "VIP" and a value of true on a player.

player:SetNWBool( "VIP", true ) print( player:GetNWBool( "VIP" ) )
Output: true

Page Links

Special Pages



Render Time: 32ms

DB GetPage 3
Generate Html 4
SaveChanges (1) 10
Render Body 0
Render Sidebar 12