Garry's Mod Wiki

Revision Difference

Entity:SetPreventTransmit#528834

<function name="SetPreventTransmit" parent="Entity" type="classfunc"> <description> Prevents the server from sending any further information about the entity to a player. ⤶ <note>You must also call this function on a player's children if you would like to prevent transmission for players. See <page>Entity:GetChildren</page>.</note>⤶ <bug issue="1736">This does not work for nextbots.</bug> <validate>When using this function, <page>Entity:SetFlexScale</page> will conflict with this function. Instead, consider using <page>Entity:SetFlexScale</page> on the client.</validate> </description> <realm>Server</realm> <args> <arg name="player" type="Player">The player to stop networking the entity to.</arg> <arg name="stopTransmitting" type="boolean">true to stop the entity from networking, false to make it network again.</arg> </args> </function>