Get the source code and build it yourself then?
P.S. If I can help I will :D! Have a nice day.
Hi, thanks for your effort, really appreciate it, but this will not be merged as main target for it is to be as simple and seamless as possible. Anyway, feel free to release it here as a fork of this mod, it’s always appreciated 
Is it just me or has the script just stopped working altogether? It just stopped working suddenly in my server, and I have to start the script when in my server. If I join the server it doesn’t work until I start it in my server.
For everyone who was experiencing resource initialization on join problems, please test this build out: https://ci.appveyor.com/api/buildjobs/x0w42snt4h1mi9mf/artifacts/frfuel_v1.1.0.zip
Let me know if it fixed the problem or not, thanks :ь
Hi thers !
Thanks for your work ! It seems to be working on my server ! Can’t wait for the source code now 
Thanks again !
What do you mean you can’t wait for the source code? It is on github, as always.
I thought you were waiting for us to try it out before pushing it on your repo.
Thanks!
@thers I have seen you modify the code, but this can lead to a bug, sometimes the Ontick start before the map is loaded and your blips could be not loaded:
public async Task OnTick()
{
{
+ if (!initialized)
+ {
+ initialized = true;
+
+ LoadConfig();
+
+ CreateBlips();
+ CreateJerryCanPickUps();
+ }
I suggest that
EventHandlers["onClientMapStart"] += new Action<dynamic>((dynamic res) =>
{
CreateBlips();
CreateJerryCanPickUps();
});
I just added the "initialized " bool variable inside the CreateBlips(); as a condition if (and I call them differently for the 2 condition since they are separate in this way):
public void CreateBlips()
{
if (_blipsCreated == false)
{
_blipsCreated= true;
public void CreateJerryCanPickUps()
{
if (_jerryCreated == false)
{
_jerryCreated = true;
This will fix if blips will be duplicated and if Ontick will be loaded before the map is loaded.
If you have inside Ontick sometimes they could not appear.
Script start -> ontick start -> map is not ready -> try to show the new blips -> fail (condition become true anyway)-> map is loaded
Script start -> map is started -> try to show the new blips ( condition become true)
Maybye just loadconfig could remain inside ontick with inizialize:
if (_inizialize == false)
{
_inizialize = true;
LoadConfig();
}
This is how it was done before. Unfortunately your suggestion will not work for resource restart, it will simply not init because onClientMapStart isn’t triggered as, well, map is already started.
Unfortunately there’s no 100% reliable way in 5m to intialize resource safely. There’s onClientResourceStart event, but it’s the same as initializing once on the very first tick, because this even fires in the very same time.
So, I’ll stick to current method until i find some more reliable way.
This is how it was done before. Unfortunately your suggestion will not work for resource restart, it will simply not init because onClientMapStart isn’t triggered as, well, map is already started.
Unfortunately there’s no 100% reliable way in 5m to intialize resource safely. There’s onClientResourceStart event, but it’s the same as intializing once on the very first tick, because this even fires in the very same time.
So, I’ll stick to current method until i find some more reliable way.
A ok, I had another problem in the other way , when you exit and join again on the server sometimes the fuel doesn’t appear… so there is a problem also in this way XD. Thx for this information I didn’t know this .
Never used the resource restart, do you use any plugin or there is any command for this ? (this can help me scripting)
Maybye if there is a command to realod the map ontick should be fix anything…
removed XD…
I have to point it out that this is very hacky way. And I have to ask you, @DrMagus5, to remove this code from this topic, because it is not related to FRFuel, if you want to share with a community, please, start standalone thread. Please, keep this conversation related to mod itself, thanks.
I’m sorry XD I hoped to help with that problem (restart problem) , I removed it. I will never write anymore because I think I have disturbed in this way . P.S. Just wanted to contribute.
Yeah, just got around to testing the init problem and it worked. Thank you for acting so fast on it
. love ya on the daily.
Hi, the fuel script stopped working for me and I don’t know why.
I have the latest version of both the server and FRFuel.
Did you try this?
The link fixed it, Thanks a lot!
can you add the message that the doj gas script has