Skip to content

Commit

Permalink
Dev (#41)
Browse files Browse the repository at this point in the history
* 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 a30695a.

* Reapply "feat: refactor occupants to not use alt passengers map (#34)" (#37)

This reverts commit 1da3424.

* fix: push mp players instead of alt players (#38) (#39)

Co-authored-by: Vadim Zubkov <[email protected]>

* fix: colshape get/set position

* chore: add check colshape is valid

---------

Co-authored-by: Jengas <[email protected]>
Co-authored-by: Vadim Zubkov <[email protected]>

* chore: bump version

---------

Co-authored-by: Vadim Zubkov <[email protected]>
Co-authored-by: Artem Valeev <[email protected]>
  • Loading branch information
3 people authored Sep 17, 2024
1 parent 6c5b854 commit f8ca78b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions bindings/src/client/entities/Colshape.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,14 +33,14 @@ export class _Colshape extends _WorldObject {
return colshapeTypes[this.alt.colshapeType];
}

// colshape doesnt have position field
_position = undefined;
get position() {
return this._position;
if (!this.alt.valid) return mp.Vector3.zero;
return this.alt.pos;
}

set position(value) {
this._position = value;
if (!this.alt.valid) return;
this.alt.pos = value;
}

type = 'colshape';
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.6",
"version": "1.0.7",
"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 f8ca78b

Please sign in to comment.