← All native models

Native model

portal_library

Declare a named portal_library value and reference it as portal_library.your_name. Models have no separate platform identity or lifecycle.

Topics: Surfaces

Fields

Shared Lua, loaded with require(name).

object
nameRequired

The module name scripts pass to require, such as pricing or shop.cart.

string
Minimum length
1
sourceRequired

The library's Lua; what it returns is the module.

string
Format
"lua"
Minimum length
0

Only the fields listed here are accepted.