nanos world API Reference Unofficial documentation
Static function Server Moderate

Server.SetValue

Sets a global value in the Server, which can be accessed from anywhere (server side)

Syntax

Lua
Server.SetValue(key, value, sync_on_client = false)

Parameters

Name Type Default Description
key string — Key
value any — Value
sync_on_client optional boolean false If enabled will sync this value through all clients, accessible through <code>Client.GetValue()</code> static class