Closed jadeharley2 closed 3 years ago
This makes it difficult to create dynamic textures on the client and reliably set them on entities.
It is not a bug.
Is SetSubMaterial actually consuming network string ids or is it an addon?
It is Set(Sub)Material, it networks IDs, not strings.
Details
ENTITY:SetSubMaterial(id, material) called on server adds new NetworkString with material name as value. This can create a lot of NetworkStrings and fill up their limit. Also it does so without calling util.AddNetworkString function. garrysmod version: 2020.12.11
Steps to reproduce
set sub material
lua_run Entity(1):SetSubMaterial(1, "anything")
list networkstrings
lua_run for k=0, 3000 do local v = util.NetworkIDToString( k ) if v then MsgN(" - ",v) end end
at the end of the list this will appear:
- anything