Lua:getCPUCount

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

<> Lua API Reference

function getCPUCount() : integer

Returns the number of CPUs.

Function Parameters

This function has no parameters.

Returns

integer — The number of CPUs.

Examples

local cpuCount = getCPUCount()

print("CPU count: " .. cpuCount)

Main Pages

Core Lua documentation entry points

Lua
Script Engine