Available since Version 1.23.10.
Returns a table that is shared by all mods.
Syntax
GetShared()Arguments
No arguments.
Return Values
- (table): The shared table.
Examples
Store something in the table in one mod:
local Shared = GetShared()
Shared.Example = "Potato"And then print it from another mod afterwards:
local Shared = GetShared()
print(Shared.Example) -- prints "Potato"