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

vehicle is nil when player B is far away from player A #99

Open
matsn0w opened this issue Mar 8, 2022 · 3 comments
Open

vehicle is nil when player B is far away from player A #99

matsn0w opened this issue Mar 8, 2022 · 3 comments
Labels
bug Something isn't working

Comments

@matsn0w
Copy link
Owner

matsn0w commented Mar 8, 2022

Describe the bug
When player B is far away from player A, player A will get an error because vehicle on line 134 is nil. This happens when player B toggles their lights or sirens on/off.

This issue doesn't appear when both players are near.

This probably also applies to some other parts of the code.

To Reproduce
Steps to reproduce the behavior:

  1. Player A: teleport to Zancudo
  2. Player B: teleport to LS Airport
  3. Player A: monitor F8 console
  4. Player B: toggle lights or sirens
  5. Player A: take notice of the error

Additional context
FiveM build: 5104
MISS ELS version: 2.1.1

Relevant Discord thread: https://discord.com/channels/941403205064073246/950796981935161364

@matsn0w matsn0w added the bug Something isn't working label Mar 8, 2022
@FBFezz
Copy link

FBFezz commented Mar 12, 2022

Also get this error, also looks like the lights dont appear correctly on both players screens

@matsn0w
Copy link
Owner Author

matsn0w commented Mar 12, 2022

Also get this error, also looks like the lights dont appear correctly on both players screens

That's correct, see #41

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

No branches or pull requests

3 participants
@matsn0w @FBFezz and others