Custom Data

You could register your custom data to be gathered when report is created and to be shown in report detail.

Event always provide playerId and identifier and in callback data for the player should be returned

TriggerEvent('rcore_report:registerCustomPlayerValue', function(playerId, identifier, cb)
    local values = {
        {label = 'test1', value = 'test1'},
        {label = 'test2', value = 'test2'},
    }
    cb(values)
end)

Last updated