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: 74ms

DB GetPage 46
Generate Html 3
SaveChanges (1) 11
Render Body 0
Render Sidebar 12