nanos world API Reference Unofficial documentation
Event Shared

Console.PlayerSubmit

Called when a console command is submitted

Syntax

Lua
Console.Subscribe("PlayerSubmit", function(text)
    -- il tuo codice
end)

Arguments

Name Type Default Description
text string Text submitted

Examples

Handles Console Inputs
if (text == "some_text") then,    Console.Log("Player submitted some_text!"),end