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

Commit

Permalink
Merge branch 'master' of github.com:Stuyk/altv-athena
Browse files Browse the repository at this point in the history
  • Loading branch information
Stuyk committed Apr 4, 2023
2 parents 2fd3ca4 + ce61c7c commit 36098eb
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/core/client/streamers/object.ts
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ const InternalFunctions = {
const createdObject = new alt.Object(
model,
new alt.Vector3(dataRef[uid].pos),
new alt.Vector3(0, 0, 0),
new alt.Vector3(dataRef[uid].rot),
true,
false,
);
Expand Down Expand Up @@ -77,6 +77,7 @@ const InternalFunctions = {
// Just update object position, even if it hasn't moved.
serverObjects[objRef.uid].pos = objRef.pos;
serverObjects[objRef.uid].createdObject.pos = new alt.Vector3(objRef.pos);
serverObjects[objRef.uid].createdObject.rot = new alt.Vector3(objRef.rot);

if (serverObjects[objRef.uid].model === objRef.model) {
continue;
Expand All @@ -89,7 +90,7 @@ const InternalFunctions = {
const createdObject = new alt.Object(
objRef.model,
new alt.Vector3(objRef.pos),
new alt.Vector3(0, 0, 0),
new alt.Vector3(objRef.rot),
true,
false,
);
Expand Down Expand Up @@ -137,7 +138,7 @@ export function addObject(newObject: IObject) {
const createdObject = new alt.Object(
newObject.model,
new alt.Vector3(newObject.pos),
new alt.Vector3(0, 0, 0),
new alt.Vector3(newObject.rot),
true,
false,
);
Expand Down

0 comments on commit 36098eb

Please sign in to comment.