Available since Version 1.27.
Gets how many levels the game has.
Syntax
GetLevelCount()Arguments
No arguments.
Return Values
- (integer): How many levels the game has.
- This is affected by the
Levelsset by the Custom Stats Totals hack, if it is loaded. - Otherwise, it will return 7.
- This is affected by the
Examples
local LevelCount = GetLevelCount()
if LevelCount >= 3 then
-- Definitely safe to use other CF functions for Level 3+ here
end