Garry's Mod Wiki

Entity:SetNetworkedNumber

Entity:SetNetworkedNumber( any index, number number )

Description

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 k, v in pairs( player.GetAll() ) do v:SetNetworkedInt( 'score', 3 ) end

Page Links


Special Pages


Wikis

?

Render Time: 31ms

DB GetPage 3
Generate Html 6
SaveChanges (1) 8
Render Body 0
Render Sidebar 11