Look for this
[HookMethod("SendImage")]
public void SendImage(BasePlayer player, string imageName, ulong imageId = 0)
{
if (!HasImage(imageName, imageId) || player?.net?.connection == null)
return;
uint crc = uint.Parse(GetImage(imageName, imageId));
byte[] array = FileStorage.server.Get(crc, FileStorage.Type.png, CommunityEntity.ServerInstance.net.ID);
if (array == null)
return;
CommunityEntity.ServerInstance.ClientRPCEx<uint, uint, byte[]>(new Network.SendInfo(player.net.connection)
{
channel = 2,
method = Network.SendMethod.Reliable
}, null, "CL_ReceiveFilePng", crc, (uint)array.Length, array);
}
replace this with this
[HookMethod("SendImage")]
public void SendImage(BasePlayer player, string imageName, ulong imageId = 0)
{
if (!HasImage(imageName, imageId) || player?.net?.connection == null)
return;
uint crc = uint.Parse(GetImage(imageName, imageId));
byte[] array = FileStorage.server.Get(crc, FileStorage.Type.png, CommunityEntity.ServerInstance.net.ID);
if (array == null)
return;
Network.NetWrite write = CommunityEntity.ServerInstance.ClientRPCStart("CL_ReceiveFilePng");
CommunityEntity.ServerInstance.ClientRPCWrite<uint>(write, crc);
CommunityEntity.ServerInstance.ClientRPCWrite<uint>(write, (uint)array.Length);
CommunityEntity.ServerInstance.ClientRPCWrite<byte[]>(write, array);
CommunityEntity.ServerInstance.ClientRPCSend(write, new Network.SendInfo(player.net.connection)
{
channel = 2,
method = Network.SendMethod.Reliable
});
}
yur welcem
Its broken, fix is here
Will need to restart the server
or
try in console below
refreshallimages
yes
reload mods