Modding Tools > Lucas' Simpsons Hit & Run Mod Launcher > Hacks > Mod Requirable Hacks > Custom Files > Custom Lua Functions > General Functions > GetShared

GetShared

Returns a table that is shared by all mods.

Syntax

GetShared()

Examples

Store something in the table in one mod:

local SharedTable = GetShared()

SharedTable.Example = "Potato"

And then print it from another mod afterwards:

local SharedTable = GetShared()

print(SharedTable.Example) -- prints "Potato"

Notes

No additional notes.

Version History

1.23.10

Added this function.

Donut Team © 2024 · v4.0