diff --git a/docs/changelog.md b/docs/changelog.md index 75319f5b9..393e12e91 100644 --- a/docs/changelog.md +++ b/docs/changelog.md @@ -1,5 +1,17 @@ # Changelog +## Version 43 + +### Code Changes + +- Fixed local object initialization + +### Docs Changes + +- N/A + +--- + ## Version 42 ### Code Changes diff --git a/package.json b/package.json index 2781a3252..9a2d1f753 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "author": "stuyk", "type": "module", - "version": "42", + "version": "43", "scripts": { "dev": "nodemon -x pnpm start", "dev:linux": "nodemon -x pnpm start:linux", diff --git a/src/main/server/controllers/object.ts b/src/main/server/controllers/object.ts index d6fc8aa2c..390f07941 100644 --- a/src/main/server/controllers/object.ts +++ b/src/main/server/controllers/object.ts @@ -90,6 +90,14 @@ export function useObjectLocal(player: alt.Player, objectData: iObject) { objectData.uid = Utility.uid.generate(); } + if (!objectData.dimension) { + objectData.dimension = 0; + } + + if (!objectData.rot) { + objectData.rot = alt.Vector3.zero; + } + function destroy() { player.emit(Events.controllers.textlabel.destroy, objectData.uid); }