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

Blips without and with Name #82

Open
h4eDashboard opened this issue Jan 17, 2022 · 5 comments
Open

Blips without and with Name #82

h4eDashboard opened this issue Jan 17, 2022 · 5 comments

Comments

@h4eDashboard
Copy link

Hi, I am using the latest ESX 1st version and have had a problem creating blips with this script.

About 20 gas stations were created as a blip under the intended name "Gas Station", but 9 others were marked on the map without a name.

I was able to fix the problem myself:

Simply go to fuel_client.lua and remove lines 293 and 317. This prevents the client side that the blips are created in a separate theard. Since then all blips on the map work.

@h4eDashboard
Copy link
Author

Addendum: It was not visible immediately after installation, but only in cooperation of other resources that proceed exactly the same. So e.g. ESX Supermarket, ESX JAIL etc.

@InZidiuZ
Copy link
Owner

This has to do with the fact that you have too many blips.

Not creating a new thread will just have the blips be registered a frame/tick earlier than it would've been, causing them to be prioritized (I think), and now you will just have other blips that also have no name.

@InZidiuZ
Copy link
Owner

It's not an issue with the script itself, rather just a pool limit being hit.

@h4eDashboard
Copy link
Author

I have removed named code for the extra theard on everything like esx_supermarkted, esx_jail and LegacyFuel. Unnamed blips are not there anymore, but if I don't do that with the blips only for one script, the problem is there again. So from my point of view it should be better not to use an extra theard for the blips.

I can hardly imagine a hard limit of blips. My server is not long online. There are the gas stations, the supermarket and otherwise about 38 entries. The problem doesn't come up when I extend the scripts and use others that don't use an extra theard.

If you want take a look at my server: h4e RP alpha

It can be no limit if there are now no more problems and the stable, as I said I had to do mentioned with a total of 3 scripts, since then there are no more problems with the blips. Not at all more. Previously, there were even differences in the blips without changing the code at each server restart!

@gypsychicken
Copy link

I am also having the same issue with blinking blips list.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants