```cpp
void CounterStrikeSharpMMPlugin::Hook_CheckTransmit(CCheckTransmitInfo** ppInfoList,
                                                    int infoCount,
                                                    CBitVec<16384>& unionTransmitEdicts,
                                                    const Entity2Networkable_t** pNetworkables,
                                                    const uint16* pEntityIndicies,
                                                    int nEntities,
                                                    bool bEnablePVSBits)
{
    VPROF("CSSharp::Hook_CheckTransmit");

    static int offset = globals::gameConfig->GetOffset("CheckTransmitPlayerSlot");
    for (int i = 0; i < infoCount; i++)
    {
        auto& pInfo = ppInfoList[i];
        int iPlayerSlot = (int)*((uint8*)pInfo + offset);

        for (const auto& item : globals::entityManager.m_pTransmitCallbacks)
        {
            auto callback = item->post;

            if (callback->GetFunctionCount())
            {
                callback->ScriptContext().Reset();
                callback->ScriptContext().Push(iPlayerSlot);
                callback->ScriptContext().Push(pInfo);

                for (auto fnMethodToCall : callback->GetFunctions())
                {
                    if (!fnMethodToCall) continue;

                    fnMethodToCall(&callback->ScriptContextStruct());
                }
            }
        }
    }
}
```

```cs

[StructLayout(LayoutKind.Sequential)]
public unsafe struct CCheckTransmitInfo
{
    public CFixedBitVec* TransmitEntity;
    public CFixedBitVec* TransmitAlways;
}
```


16:32:56 [EROR] (cssharp:Core) Error invoking callback
System.MissingMethodException: Cannot dynamically create an instance of type 'CounterStrikeSharp.API.CCheckTransmitInfo*'. Reason: Type is not supported.
   at System.RuntimeType.ActivatorCache..ctor(RuntimeType rt)
   at System.RuntimeType.CreateInstanceDefaultCtor(Boolean publicOnly, Boolean wrapExceptions)
   at System.Runtime.InteropServices.Marshal.PtrToStructure(IntPtr ptr, Type structureType)
   at CounterStrikeSharp.API.Core.ScriptContext.GetResultInternal(Type type, Byte* ptr) in /home/fabius/plugins/metamod-source/samples/CSSharp/managed/CounterStrikeSharp.API/Core/ScriptContext.cs:line 486
   at CounterStrikeSharp.API.Core.ScriptContext.GetResult(Type type, Byte* ptr) in /home/fabius/plugins/metamod-source/samples/CSSharp/managed/CounterStrikeSharp.API/Core/ScriptContext.cs:line 477
   at CounterStrikeSharp.API.Core.ScriptContext.GetArgumentHelper(fxScriptContext* context, Type type, Int32 index) in /home/fabius/plugins/metamod-source/samples/CSSharp/managed/CounterStrikeSharp.API/Core/ScriptContext.cs:line 393
   at CounterStrikeSharp.API.Core.ScriptContext.GetArgumentHelper(Type type, Int32 index) in /home/fabius/plugins/metamod-source/samples/CSSharp/managed/CounterStrikeSharp.API/Core/ScriptContext.cs:line 386
   at CounterStrikeSharp.API.Core.ScriptContext.GetArgument(Type type, Int32 index) in /home/fabius/plugins/metamod-source/samples/CSSharp/managed/CounterStrikeSharp.API/Core/ScriptContext.cs:line 372
   at CounterStrikeSharp.API.Core.FunctionReference.<>c__DisplayClass18_0.<CreateWrappedCallback>b__1(ParameterInfo _, Int32 i) in /home/fabius/plugins/metamod-source/samples/CSSharp/managed/CounterStrikeSharp.API/Core/FunctionReference.cs:line 97
   at System.Linq.Enumerable.SelectIterator[TSource,TResult](IEnumerable`1 source, Func`3 selector)+MoveNext()
   at System.Collections.Generic.LargeArrayBuilder`1.AddRange(IEnumerable`1 items)
   at System.Collections.Generic.EnumerableHelpers.ToArray[T](IEnumerable`1 source)
   at CounterStrikeSharp.API.Core.FunctionReference.<CreateWrappedCallback>b__18_0(fxScriptContext* context) in /home/fabius/plugins/metamod-source/samples/CSSharp/managed/CounterStrikeSharp.API/Core/FunctionReference.cs:line 94