Skip to content

Commit

Permalink
fix(shared): Temporarily comment out Virtual Entity syncedMeta stuff …
Browse files Browse the repository at this point in the history
…to avoid crashing
  • Loading branch information
xLuxy committed Apr 18, 2024
1 parent e14baec commit 3485f90
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion server/src/classes/VirtualEntity.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ extern js::Class virtualEntityClass("VirtualEntity", &sharedVirtualEntityClass,
{
tpl.BindToType(alt::IBaseObject::Type::VIRTUAL_ENTITY);

tpl.DynamicProperty("syncedMeta", nullptr, SyncedMetaSetter, SyncedMetaDeleter, nullptr);
// tpl.DynamicProperty("syncedMeta", nullptr, SyncedMetaSetter, SyncedMetaDeleter, nullptr);
tpl.DynamicProperty("streamSyncedMeta", nullptr, StreamSyncedMetaSetter, StreamSyncedMetaDeleter, nullptr);

tpl.Method("setMultipleSyncedMetaData", SetMultipleSyncedMetaData);
Expand Down
2 changes: 1 addition & 1 deletion shared/src/classes/SharedVirtualEntity.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,6 @@ extern js::Class sharedVirtualEntityClass("SharedVirtualEntity", &worldObjectCla

tpl.Property<&alt::IVirtualEntity::IsVisible, &alt::IVirtualEntity::SetVisible>("visible");

tpl.DynamicProperty("syncedMeta", SyncedMetaGetter, nullptr, nullptr, SyncedMetaEnumerator);
// tpl.DynamicProperty("syncedMeta", SyncedMetaGetter, nullptr, nullptr, SyncedMetaEnumerator);
tpl.DynamicProperty("streamSyncedMeta", StreamSyncedMetaGetter, nullptr, nullptr, StreamSyncedMetaEnumerator);
});
2 changes: 1 addition & 1 deletion types/client/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1133,7 +1133,7 @@ declare module "@altv/client" {
visible: boolean;

readonly meta: VirtualEntityMeta & Record<string, unknown>;
readonly syncedMeta: altShared.VirtualEntitySyncedMeta & Record<string, unknown>;
// readonly syncedMeta: altShared.VirtualEntitySyncedMeta & Record<string, unknown>;
readonly streamSyncedMeta: Readonly<altShared.VirtualEntityStreamSyncedMeta & Record<string, unknown>>;

static readonly all: ReadonlyArray<VirtualEntity>;
Expand Down
2 changes: 1 addition & 1 deletion types/client/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@altv/client",
"version": "0.0.34",
"version": "0.0.35",
"description": "This package contains the type definitions for the alt:V JS module v2 client types",
"types": "index.d.ts",
"files": [
Expand Down
2 changes: 1 addition & 1 deletion types/server/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -793,7 +793,7 @@ declare module "@altv/server" {
visible: boolean;

meta: VirtualEntityMeta & Record<string, unknown>;
syncedMeta: altShared.VirtualEntitySyncedMeta & Record<string, unknown>;
// syncedMeta: altShared.VirtualEntitySyncedMeta & Record<string, unknown>;
streamSyncedMeta: altShared.VirtualEntityStreamSyncedMeta & Record<string, unknown>;

public setMultipleSyncedMetaData(data: altShared.VirtualEntityStreamSyncedMeta & Record<string, unknown>): void;
Expand Down
2 changes: 1 addition & 1 deletion types/server/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@altv/server",
"version": "0.0.40",
"version": "0.0.41",
"description": "This package contains the type definitions for the alt:V JS module v2 server types",
"types": "index.d.ts",
"files": [
Expand Down

0 comments on commit 3485f90

Please sign in to comment.