From bcc126d07f385d2db5768c789c730838b91e0689 Mon Sep 17 00:00:00 2001 From: Jengas Date: Wed, 18 Sep 2024 12:30:56 +0400 Subject: [PATCH] Dev (#43) * fix: push mp players instead of alt players (#38) * fix: client colshape get/set position (#40) * Revert "feat: refactor occupants to not use alt passengers map (#34)" (#37) This reverts commit a30695acd59f0b4852739968ae89bfbd501d3178. * Reapply "feat: refactor occupants to not use alt passengers map (#34)" (#37) This reverts commit 1da342462d012b105c0c147059ee8b17fa6b0ad1. * fix: push mp players instead of alt players (#38) (#39) Co-authored-by: Vadim Zubkov * fix: colshape get/set position * chore: add check colshape is valid --------- Co-authored-by: Jengas Co-authored-by: Vadim Zubkov * chore: bump version * Fix/colshape position (#42) * Revert "feat: refactor occupants to not use alt passengers map (#34)" (#37) This reverts commit a30695acd59f0b4852739968ae89bfbd501d3178. * Reapply "feat: refactor occupants to not use alt passengers map (#34)" (#37) This reverts commit 1da342462d012b105c0c147059ee8b17fa6b0ad1. * fix: push mp players instead of alt players (#38) (#39) Co-authored-by: Vadim Zubkov * Dev (#41) * fix: push mp players instead of alt players (#38) * fix: client colshape get/set position (#40) * Revert "feat: refactor occupants to not use alt passengers map (#34)" (#37) This reverts commit a30695acd59f0b4852739968ae89bfbd501d3178. * Reapply "feat: refactor occupants to not use alt passengers map (#34)" (#37) This reverts commit 1da342462d012b105c0c147059ee8b17fa6b0ad1. * fix: push mp players instead of alt players (#38) (#39) Co-authored-by: Vadim Zubkov * fix: colshape get/set position * chore: add check colshape is valid --------- Co-authored-by: Jengas Co-authored-by: Vadim Zubkov * chore: bump version --------- Co-authored-by: Vadim Zubkov Co-authored-by: Artem Valeev <48104129+artik19129@users.noreply.github.com> * fix: try fix colshape position --------- Co-authored-by: Jengas Co-authored-by: Vadim Zubkov * chore: bump version --------- Co-authored-by: Vadim Zubkov Co-authored-by: Artem Valeev <48104129+artik19129@users.noreply.github.com> --- bindings/src/client/entities/Colshape.js | 6 +++--- package.json | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/bindings/src/client/entities/Colshape.js b/bindings/src/client/entities/Colshape.js index 8d60306..b731842 100644 --- a/bindings/src/client/entities/Colshape.js +++ b/bindings/src/client/entities/Colshape.js @@ -34,12 +34,12 @@ export class _Colshape extends _WorldObject { } get position() { - if (!this.alt.valid) return mp.Vector3.zero; - return this.alt.pos; + if (!this.valid) return mp.Vector3.zero; + return new mp.Vector3(this.alt.pos); } set position(value) { - if (!this.alt.valid) return; + if (!this.valid) return; this.alt.pos = value; } diff --git a/package.json b/package.json index a0ba959..f7aa4a6 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "ragemp-altv-bridge", - "version": "1.0.7", + "version": "1.0.8", "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",