diff --git a/bindings/src/client/entities/Colshape.js b/bindings/src/client/entities/Colshape.js index 9d42a20..8d60306 100644 --- a/bindings/src/client/entities/Colshape.js +++ b/bindings/src/client/entities/Colshape.js @@ -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'; diff --git a/package.json b/package.json index 65fb7ba..a0ba959 100644 --- a/package.json +++ b/package.json @@ -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",