Skip to content
This repository has been archived by the owner on Jun 5, 2024. It is now read-only.

Commit

Permalink
Fix New Character Bug
Browse files Browse the repository at this point in the history
  • Loading branch information
Stuyk committed Nov 30, 2021
1 parent 077a3d6 commit c0d2e03
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 4 deletions.
2 changes: 1 addition & 1 deletion AthenaConfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"[?] A list of collection(s) to create. Separated by a common. ie. one,two,three": {},
"MONGO_COLLECTIONS": "",
"[?] Used to turn on development mode for WebViews": {},
"VUE_DEBUG": false,
"VUE_DEBUG": true,
"[?] Used for Ares Service Debugging": {},
"ARES_ENDPOINT": "",
"[?] Used to give the client the IP to connect to the WebServer **Deprecated": {},
Expand Down
2 changes: 1 addition & 1 deletion server.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ voice: {
modules: [
"js-module"
],
resources: ["webserver", "webviews", "core"],
resources: ["webserver", "core"],
tags: [
"athena",
"framework",
Expand Down
3 changes: 3 additions & 0 deletions src/core/client/utility/camera.ts
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,7 @@ export default class PedEditCamera {
}

if (camera) {
native.destroyCam(camera, true);
camera = null;
}

Expand All @@ -147,6 +148,8 @@ export default class PedEditCamera {
isLocalPlayer = false;
camUpdateQueue = [];
isQueueReady = true;
scriptID = null;
controlStatus = false;
}

/**
Expand Down
4 changes: 2 additions & 2 deletions src/core/client/views/creator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,8 @@ export class CreatorView {

await PedCharacter.create(true, pos, heading);
await sleep(100);
await PedEditCamera.create(PedCharacter.get(), { x: -0.15, y: 0, z: 0 });
await PedEditCamera.setCamParams(50, 0.6);
await PedEditCamera.create(PedCharacter.get(), { x: -0.25, y: 0, z: 0 });
await PedEditCamera.setCamParams(0.6, 50);

readyInterval = alt.setInterval(CreatorView.waitForReady, 100);
}
Expand Down

0 comments on commit c0d2e03

Please sign in to comment.