For the complete documentation index, see llms.txt. This page is also available as Markdown.

On Gear Change

API -

function yourEvent(user, set, item)
    log(user.displayName .. ' has change gear:' .. set .. 'to ' .. item .. '!');
end

return function()
    addEvent('changeGear', 'yourEvent'); --attaches the event to yourEvent()
    keepAlive();
end

Events are asynchronous coroutines.

Last updated