Skip to content

Instantly share code, notes, and snippets.

@dndrks
Created May 14, 2022 01:12
Show Gist options
  • Save dndrks/baf763d97f6f20e1a80a8764af921092 to your computer and use it in GitHub Desktop.
Save dndrks/baf763d97f6f20e1a80a8764af921092 to your computer and use it in GitHub Desktop.
cheat codes user script boilerplate
-- required container, do not change this:
local user_script = {}
-- this function is called whenever a loaded collection
-- has a 'user_script.lua' file in the collection:
function user_script.init()
print("hello from the user script")
end
-- this function is called whenever the transport starts:
function user_script.transport_start()
print("user script started")
end
-- this function is called whenever the transport stops:
function user_script.transport_stop()
print("user script stopped")
end
-- required return, do not change this:
return user_script
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment