Lua:resetLuaState

From Cheat Engine
Jump to navigation Jump to search

<> Lua API Reference

function resetLuaState() : void

Creates a new Lua state that will be used by Cheat Engine.

The old Lua state is not destroyed. This means that calling this function can leak memory.

Function Parameters

<none>

Returns

This function does not return a value.

Examples

resetLuaState()
-- Use with care. The old Lua state is not destroyed.
resetLuaState()

print("A new Lua state has been created")

Main Pages

Core Lua documentation entry points

Lua
Script Engine