Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Creating vehicle / object does not work after reconnect. #2407

Open
1 task done
ToffyMTA opened this issue Jan 5, 2025 · 4 comments
Open
1 task done

Creating vehicle / object does not work after reconnect. #2407

ToffyMTA opened this issue Jan 5, 2025 · 4 comments
Labels
Class: bug Something isn't working

Comments

@ToffyMTA
Copy link

ToffyMTA commented Jan 5, 2025

Description of the problem

After reconnect both: alt.Object.create & alt.Vehicle.create does not spawn entity when using JSv2 module.. it works properly with compatibility mode.

Reproduction steps

alt.Vehicle.create({
  model: 'sultan2',
  pos: new alt.Vector3(10),
  rot: new alt.Vector3(10)
})

Expected behaviour

Please make it working, reconnect is in terrible state, me & many other people wasted time on rewriting their gamemodes from JSv1 to JSv2.

Additional context

No response

Operating system

Version

16.3.1-rc.1

Crashdump ID

No response

Confirmation of issue's presence

  • By submitting this ticket, I affirm that I have verified the presence of this issue on the latest RC (Release Candidate) version available at the time of writing this ticket.
@ToffyMTA ToffyMTA added the Class: bug Something isn't working label Jan 5, 2025
@LPwithPaul
Copy link

LPwithPaul commented Jan 5, 2025

I also have this issue. If I can remember correctly this worked before the latest GTA Update.

Edit: Could be related to #2400

@ToffyMTA
Copy link
Author

ToffyMTA commented Jan 8, 2025

Update: after several reconnects JSv2 in compat mode is giving up too.
#2400 is related 100%

@ITSHahrad
Copy link

same issue...

@ITSHahrad
Copy link

the solution for now is to restart the resource instead of reconnecting

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Class: bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants