Skip to content

Commit

Permalink
Merge pull request #49 from altmp/dev
Browse files Browse the repository at this point in the history
fix: queue
  • Loading branch information
Jengas authored Dec 13, 2024
2 parents da2b8ec + 5bcf21f commit dedcc07
Show file tree
Hide file tree
Showing 7 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion bindings/src/client/entities/Vehicle.js
Original file line number Diff line number Diff line change
Expand Up @@ -605,7 +605,7 @@ if (mp._main) {
});

alt.on('baseObjectRemove', (entity) => {
if (!entity.mp) return;
if (!entity?.mp) return;

if (entity.mp instanceof _LocalVehicle) {
delete initializers[entity.id];
Expand Down
2 changes: 1 addition & 1 deletion bindings/src/server/entities/Checkpoint.js
Original file line number Diff line number Diff line change
Expand Up @@ -158,6 +158,6 @@ alt.on('entityLeaveColshape', (shape, ent) => {
});

alt.on('baseObjectRemove', (ent) => {
if (!ent.mp) return;
if (!ent?.mp) return;
if (ent.mp instanceof _Checkpoint) view.remove(ent.mp.id);
});
2 changes: 1 addition & 1 deletion bindings/src/server/entities/Label.js
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ export class _Label extends _Entity {
mp.TextLabel = _Label;

alt.on('baseObjectRemove', (ent) => {
if (!ent.mp) return;
if (!ent?.mp) return;
if (ent.mp instanceof _Label) view.remove(ent.mp.id);
});

Expand Down
2 changes: 1 addition & 1 deletion bindings/src/server/entities/Marker.js
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ export class _Marker extends _Entity {
}

alt.on('baseObjectRemove', (ent) => {
if (!ent.mp) return;
if (!ent?.mp) return;
if (ent.mp instanceof _Object) view.remove(ent.mp.id);
});

Expand Down
2 changes: 1 addition & 1 deletion bindings/src/server/entities/Object.js
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ export class _Object extends _Entity {
}

alt.on('baseObjectRemove', (ent) => {
if (!ent.mp) return;
if (!ent?.mp) return;
if (ent.mp instanceof _Object) view.remove(ent.mp.id);
});

Expand Down
4 changes: 2 additions & 2 deletions bindings/src/server/statics/Events.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,11 +45,11 @@ class _Events extends BaseEvents {
});

alt.on('baseObjectCreate', (obj) => {
if (!obj.mp) return;
if (!obj?.mp) return;
if (obj.mp) this.dispatchLocal('entityCreated', obj.mp);
});
alt.on('baseObjectRemove', (obj) => {
if (!obj.mp) return;
if (!obj?.mp) return;
if (obj.mp) this.dispatchLocal('entityDestroyed', obj.mp);
});

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "ragemp-altv-bridge",
"version": "1.0.10",
"version": "1.0.11",
"description": "RAGE Multiplayer alt:V Bridge. This package provides a bridge between RAGE Multiplayer and alt:V. It allows you to use RAGEMP code in alt:V.",
"keywords": [
"ragemp",
Expand Down

0 comments on commit dedcc07

Please sign in to comment.