InZidiuZ / LegacyFuel

A simple, lightweight fuel script for FiveM
GNU General Public License v3.0
78 stars 217 forks source link

Blips without and with Name #82

Open h4eDashboard opened 2 years ago

h4eDashboard commented 2 years ago

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 commented 2 years ago

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 commented 2 years ago

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 commented 2 years ago

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

h4eDashboard commented 2 years ago

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 commented 2 years ago

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