Lua:getThreadlist

From Cheat Engine
Revision as of 04:50, 21 June 2026 by Leunsel (talk | contribs)
Jump to navigation Jump to search

<> Lua API Reference

function getThreadlist(List) : void

Fills a List object with the thread list of the currently opened process.

The thread IDs are added to the list as hexadecimal strings using the format %x.

Function Parameters

Parameter Type Description
List List The list object that will be filled with the thread IDs of the currently opened process.

Returns

void — This function does not return any value.

Examples

local list = createStringlist()

getThreadlist(list)

for i = 0, list.Count - 1 do
  print("Thread ID: " .. list[i])
end

list.destroy()

Main Pages

Core Lua documentation entry points

Lua
Script Engine