SharedUtils
Summary
Methods
Method | Returns |
---|---|
Print(data: any) | void |
GetTime() | int |
GetTimeMS() | int |
GetTimeNS() | int |
IsClientModule() | bool |
IsServerModule() | bool |
SerializeTable(table: table) | string |
GetContentPackages() | string{} |
GetLevelName() | string | nil |
GetCurrentGameMode() | string | nil |
GetTickrate() | float |
GetMemoryUsage() | int |
Methods
Print(data: any)
Parameters
Name | Type | Description |
---|---|---|
data | any |
GetTime
GetTime(): int
Returns
Type | Description |
---|---|
int |
GetTimeMS
GetTimeMS(): int
Returns
Type | Description |
---|---|
int |
GetTimeNS
GetTimeNS(): 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 February 22, 2022: Add changelog for build 18244 (5f77ecc0)