ect);
      console.log('server object add', id);
    } else {
      console.warn('ignoring duplicate server tab', id);
    }
  };
  xrmp.onobjectremove = objectMesh => {
    const {id} = objectMesh.object;
    const index = tabs.findIndex(tab => tab.id === id);
    if (index !== -1) {
      tabs.splice(index, 1);
      console.log('server object remove', id);
    } else {
      console.warn('failed to remove local server tab', id);;
    }
  };
  xrmp.onplayerenter = playerMesh => {
    const skinMesh = _ma