Good day.
Faced a problem after updating the game.
Some pictures from GUI stopped showing on the server, I found out if I execute the function:
var field = typeof(FileStorage).GetField("db",
BindingFlags.Instance | BindingFlags.NonPublic | BindingFlags.Public);
var db = field.GetValue(FileStorage.server) as Database;
db.Execute<int>("DELETE FROM data WHERE entid = ?", (int)RelationshipManager.ServerInstance.net.ID);After restarting the server, the pictures are displayed again, does anyone have any ideas on how to fix this?
If possible, add a hook to the next event so that you can block it.
[BaseEntity.RPC_Server]
[BaseEntity.RPC_Server.CallsPerSecond(10)]
public void SERVER_ReceiveMugshot(BaseEntity.RPCMessage msg)