Garry's Mod Wiki

Garry's Mod Wiki

  Entity:SetNetworkedNumber( any index, number number )

Description

We advise against using this. It may be changed or removed in a future update. You should be using Entity:SetNWFloat instead.

Sets a networked number at the specified index on the entity.

Arguments

1 any index
The index that the value is stored in.
2 number number
The value to network.

Example

This will set the networked number 'score' on all clients to 3.

for i, ply in ipairs( player.GetAll() ) do ply:SetNetworkedNumber( 'score', 3 ) end

This site is a community mirror of the official Garry's Mod wiki.. This site is not maintained by Facepunch Studios.

Page content is automatically updated four times a day. Edits and history are not available.

Last Parsed: Loading...