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:
Player A: teleport to Zancudo
Player B: teleport to LS Airport
Player A: monitor F8 console
Player B: toggle lights or sirens
Player A: take notice of the error
Additional context
FiveM build: 5104
MISS ELS version: 2.1.1
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:
Additional context FiveM build: 5104 MISS ELS version: 2.1.1
Relevant Discord thread: https://discord.com/channels/941403205064073246/950796981935161364