Stuyk / rebar-altv

Accelerate your game mode development with a simple alt:V framework written in TypeScript.
https://rebarv.com/
56 stars 33 forks source link

fix: Push a correct synced stream meta to webview #118

Closed floydya closed 2 months ago

floydya commented 2 months ago

How to reproduce this bug before this fix got applied:

  1. Connect to server from two computers.
  2. Place two characters in the stream (near each other).
  3. useCharacter(player1).setField('dummy', 1)
  4. Webview of player2 can see the dummy=1, but in database only player1 has dummy=1 as it was set.

If players are not in stream, the values were changed and then they are entering the same zone - it's starting to behave erratically.