So, I heard that using things such as NWBool and Int are inefficient. Is this true?
What are other methods I have been looking at other ways such as net.WriteBit and net.ReadBit also would be net.WriteBool be a viable option?
The scenario is I am trying to get “ent.cancollect” (which is in my init.lua) to go over to cl_init.lua so it can change things depending on whether it is true or false. Originally I would use NWBool but apparently it is inefficient.
NOTE: “ent.cancollect” can be true or false like so “ent.cancollect = true”. However, this is set in the init.lua.
NOTE2: the “ent.cancollect” is inside a net.Receive(“example”) in the init.lua and is being called by a derma button in cl_init like so:
net.Start("example") net.WriteEntity( ent ) net.SendToServer()