internal static void NetClientSend(IntPtr pDataStore) { if (NetClientSendFunction == null) { NetClientSendFunction = Memory.Reader.RegisterDelegate <NetClientSendDelegate>(funcs.NetClientSend); } NetClientSendFunction(ClientConnection(), pDataStore.ToInt32()); }
internal static void NetClientSend(IntPtr pDataStore) { if (!ObjectManager.Instance.IsIngame) { return; } if (NetClientSendFunction == null) { NetClientSendFunction = Memory.Reader.RegisterDelegate <NetClientSendDelegate>(funcs.NetClientSend); } MainThread.Instance.Invoke(() => NetClientSendFunction(ClientConnection(), pDataStore.ToInt32())); }