MrDaGree/ELS-FiveM

ELS stops working after sometime

Closed this issue · 1 comments

Describe the bug
A clear and concise description of what the bug is.
My els is "stopping" so the els menu goes away and sirens no longer work, if they were turned on they get stuck.
To Reproduce
Steps to reproduce the behavior:
Just having 30+ players on server and it "crashes"
Expected behavior
A clear and concise description of what you expected to happen.
i expect it to work
Screenshots
If applicable, add screenshots to help explain your problem.
image
image

ELS Information:
Version #:1.9
Server Version #: 1903
Screenshots of Config.lua, vcf.lua, vcf folder:
image
image

Additional context

lze3 commented

After checking the code and attempting to reproduce this, I was unsuccessful. Only thing I can think of is some weird case based on local ID for the vehicle mismatching across clients. Without doing too much work, a condition for network session state should suffice here. Which will be present in master shortly.

Although, one thing I've just noticed is the variable naming here is inaccurate:
https://github.com/MrDaGree/ELS-FiveM/blob/master/client/util.lua#L20

Since local veh id != network veh id, VEH_TO_NET or so should be used.