OSRS Plugin API
    Preparing search index...

    Enumeration ON_STAT_TRANSMIT

    Event id for updating player stats. Calls the OnStatTransmitCallback.

    -- Create a function
    local statTransmit = function(statTable)
    for index, table in pairs(statTable) do
    osrs.printf("Stat ID: %i XP: %i Value: %i Max: %i", table["id"], table["xp"], table["value"], table["max"])
    end
    end
    -- Subscribe to the function
    osrs.Events.subscribe(statTransmit, osrs.Events.ON_STAT_TRANSMIT)