Created
October 21, 2019 18:38
-
-
Save JanHolger/c546ba477dcf97d360869352126a4649 to your computer and use it in GitHub Desktop.
Onset Function Export example
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
local common | |
AddEvent("OnPackageStart", function() | |
common = ImportPackage("commonpackage") | |
common.SomeFunction() | |
end) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function SomeFunction() | |
print("Hello World") | |
end | |
AddFunctionExport("SomeFunction", SomeFunction) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment