Garry's Mod Wiki

string.dump

  string string.dump( function func, boolean stripDebugInfo = false )

Description

Returns the binary bytecode of the given function.

This does not work with functions created in C/C++. An error will be thrown if it is

Arguments

1 function func
The function to get the bytecode of
2 boolean stripDebugInfo = false
True to strip the debug data, false to keep it

Returns

1 string
Bytecode