So I was wondering, because I recall reading on the wiki somewhere, that there can be lag due to too many networked values and such, I was wondering, how many should I try to work under in that case?
General Rule: As little as possible.
Basically, if you don't need them - don't use them.
What would you all the say the most efficient method of using variables would be? Since NWInts generate lag I presume.
I currently use a global table system, something like this.
[lua]
ply.LData["Cake"] = 5
ent.LData["Owner"] = ply:GetName()
[/lua]
If you have constants, use a shared file. This is especially useful for pre-declared inventory items, shop items, etc that do not have variable properties.
Use usermessages for everything else.
Sorry, you need to Log In to post a reply to this thread.