altv-issues
                                
                                 altv-issues copied to clipboard
                                
                                    altv-issues copied to clipboard
                            
                            
                            
                        streamSyncedMetaChange is called for unchanged initial data
Description of the problem
streamSyncedMetaChange is called for unchanged initial data of virtual entities
Reproduction steps
server
const p = alt.Player.all[0]
alt.Utils.assert(p)
const g = new alt.VirtualEntityGroup(1)
const e = new alt.VirtualEntity(g, p.pos, 10, {
    a: true
})
e.dimension = p.dimension
alt.setTimeout(() => {
    // this will trigger change event for 'a'
    e.setStreamSyncedMeta('b', 123)
}, 1000)
client
alt.on('worldObjectStreamIn', (obj) => {
    alt.log('stream in', obj, obj.getStreamSyncedMeta('a'))
})
alt.on('worldObjectStreamOut', (obj) => {
    alt.log('stream out', obj, obj.getStreamSyncedMeta('a'))
})
alt.on('streamSyncedMetaChange', (...args) => {
    alt.log('streamSyncedMetaChange', args)
})
Expected behaviour
/
Additional context
No response
Operating system
Windows 11
Version
15.0-dev588
Crashdump ID
No response
Reproduction tested
- [X] I confirm that I have made sure that this issue is also present on the newest dev version
Wont be fixed in v15. Its intended behavior for now until v17
Reproduced with 16.0.0-dev.290 (dev)