SHUTDOWN

this callback is called whenever the script is unloaded use it to reset stuff you changed in your script

local function on_shutdown()
    print("goodbye :(")
end

callbacks.add(e_callbacks.SHUTDOWN, on_shutdown)

Last updated