SharedUtils

Summary

Methods

Method Returns
Print(data: any) void
GetTime() int
GetTimeMS() int
IsClientModule() bool
IsServerModule() bool
SerializeTable(table: table) string
GetContentPackages() string{}
GetLevelName() string | nil
GetCurrentGameMode() string | nil
GetTickrate() float
GetMemoryUsage() int

Methods

Print

Print(data: any)

Parameters

Name Type Description
data any

GetTime

GetTime(): int

Returns

Type Description
int

GetTimeMS

GetTimeMS(): int

Returns

Type Description
int

IsClientModule

IsClientModule(): bool

Returns

Type Description
bool

IsServerModule

IsServerModule(): bool

Returns

Type Description
bool

SerializeTable

SerializeTable(table: table): string

Parameters

Name Type Description
table table

Returns

Type Description
string

GetContentPackages

GetContentPackages(): string{}

Returns

Type Description
string{}

GetLevelName

GetLevelName(): string | nil

Returns

Type Description
string | nil

GetCurrentGameMode

GetCurrentGameMode(): string | nil

Returns

Type Description
string | nil

GetTickrate

GetTickrate(): float

Returns

Type Description
float

GetMemoryUsage

GetMemoryUsage(): int

Gets the current memory usage of this mod in bytes.

Returns

Type Description
int
Last modified November 6, 2021: Add changelog for build 17876 (add9b06)