import alt from '@altv/server'
alt.Events.on('test', (...data) => {
alt.log({ data })
})
setTimeout(() => {
// Error: Unable to deserialize cloned data due to invalid or unsupported version
alt.Events.emit('test', new Uint8Array([1, 2, 3, 4, 5]).buffer)
}, 100)
See same bug in v1: https://github.com/altmp/altv-js-module/pull/322