Need help with datastreaming hook table

Hey, i am trying to data stream a clients hook.GetTable() and it just gives me this error


DataStreamClient Encoding Error: [@lua\includes\modules\glon.lua:157] Tried to write unwriteable type: function (operation 12)

Everything else works because if i change the hook.GetTable() to something like {“abc”,1,2,3} it works fine.
Here is my current code, please help



function GiveMeHooks_hook()
   datastream.StreamToServer( "SentTables", hook.GetTable() )
   Msg("Sending Tables...")
end
usermessage.Hook("givemehooks", GiveMeHooks_hook)


This is for the client side btw

inside the hook table, there are functions and glon can’t encode that so i guess you will need to find another way

Yeah you’re right.

He could do hook.GetTable().Think or hook.GetTable()[“Think”]
[lua]
] lua_run_cl PrintTable(hook.GetTable().Think)
CheckTimers = function: 04E39A80
RealFrameTime = function: 282AF368
DOFThink = function: 03AF3880
HTTPThink = function: 282AA188
CheckSchedules = function: 049D6800
[/lua]

Short list of the hooks

RenderScene
RenderScreenspaceEffects
EntityRemoved
VGUIMousePressed
Think
Tick
GUIMousePressed
ShouldDrawLocalPlayer
HUDPaint
PlayerBindPress
HUDShouldDraw
Move
PopulateToolMenu
VGUIPerformLayout
CalcView
InitPostEntity
PostReloadToolsMenu
GUIMouseReleased
ShouldCollide
PostRenderVGUI
AddToolMenuCategories

Use Overv way of doing it.

[lua]function SendHooks()
local tbl ={}

for id, hooks in pairs( hook.GetTable() ) do
    tbl[id] = {}
    
    for name, func in pairs( hooks ) do
            table.insert( tbl[id], name )
    end
end

datastream.StreamToServer( tbl, "HookTable" )

end[/lua]

Will send a table with the following format:


tbl
{
    Think = {
        "ESPScan",
        "gamemODEhOOk",
        "e2holoposorwhateverhook"
    },
    HUDPaint = {
        "ESPDrawTargets",
        "e2drawholos"
    }
}

If you’re going to use this for some anticheat don’t be disappointing when people bypass it easily :3

yeh i made my own form that probably will be bypassed. Thanks for all your help, but its for catching the common noob who turns on his aimbots and goes “LOLOL I R LEET I CUN HEDSHOOT EVRY1!1!!11”

If you wanna catch that theres no point of streaming it, just do it on client. No kids that downloaded some hacks of garrysmod.org will be able to bypass it

Nah but i want to be able to see it, it wont be one of those automated anti-cheat it will be more like a notification to online admins