Tables in shared.lua

If I create a table in shared.lua will all clients be able to access changes that were made by the server. And could a malicious script potentially change values in it?

For example would the following be a problem:

shared.lua


Players = {}
Players["STEAM_0:1337"]["money"] = 10000000

cl_changemoney.lua (NOT part of the server gamemode - a client’s own script)


Players["STEAM_0:1337"]["money"] = 0
print("Mwuhahahaha")

No. Communication from the client to the server is very limited (datastream & console commands). Furthermore, changes made to the shared file by the server will not be sent to the client unless you do it manually.