Funkcje


Debug:IsDebugModeEnabled

Sprawdza czy na serwerze jest uruchomiony tryb developerski.

Syntax
local isDebugModeEnabled = Debug:IsDebugModeEnabled()
--- isDebugModeEnabled: boolean
Example
local isDebugModeEnabled = Debug:IsDebugModeEnabled()

if isDebugModeEnabled then
    print('hello debug world')
end

Debug.Log

Wyświetla w konsoli podane w funkcji parametry.

Syntax
--- ...: any
Debug.Log(...)
Example
Debug.Log('Hello World')

Debug.DumpTable

Wyświetla w konsoli zawarość tabeli w czytelnej formie.

Syntax
--- table: table
local json = Debug.DumpTable(table)
--- json: JSON
Example
    print(Debug.DumpTable(Player(1).state.character))