From Cheat Engine
Revision as of 12:00, 10 February 2021 by Dark Byte (talk | contribs) (Undo revision 7035 by Tuzi521 (talk))
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

function encodeFunction(function, protect OPTIONAL) : string

Converts a given function into an encoded string that you can pass to decodeFunction.

Function Parameters[edit]

Parameter Type Description
function function The function to encode


local function myCoolFunction(str) print(str) end
local function myCoolFunction(str) print(str) end
local encodedFunc = encodeFunction(myCoolFunction)
local decodedFunc = decodeFunction(encodedFunc)
decodedFunc('I have the power!')

See also[edit]

Related Functions[edit]