gimicze / firescript

OneSync Infinity compatible fire script for FiveM.
https://forum.cfx.re/t/release-fire-script-onesync/1751606
GNU General Public License v3.0
93 stars 37 forks source link

No random fire start #2

Closed kevintransp closed 3 years ago

kevintransp commented 3 years ago

Like this mod, seems to first one to be working. But iam having problem with random spawns of fires. For what i understand from the config file is that i create a fire with "/addflame " then its saved in the file fires.json like this [{"flames":[],"dispatchCoords":{"x":342.9586486816406,"y":-542.047607421875,"z":28.74435997009277}}]

settings in config are Config.Fire = { fireSpreadChance = 15, -- Out of 100 chances, how many lead to fire spreading? (not exactly percents) maximumSpreads = 5, spawner = { -- Requires the use of the built-in dispatch system enableOnStartup = true, frequency = 300, -- Random fire spawn interval (set to nil or false if you don't want to spawn random fires) in ms 900000 chance = 75, -- Fire spawn chance (out of 100 chances, how many lead to spawning a fire?); Set to values between 1-100 players = 1, -- Sets the minimum number of players subscribed to dispatch for the spawner to spawn fires. firefighterJobs = { -- If using ESX (Config.Dispatch.enableESX), you can specify which players will count as firefighters in Config.Fire.spawner.players above; If not using ESX you can set this to nil ["fire"] = true -- Always set the job name in the key, value has to be true } } }

Did i somehting wrong? I'm having the job "fire".

gimicze commented 3 years ago

Hi.

I'll try to explain how the system works in simple steps.

Note that you might have to reconnect or add yourself manually to the dispatch feed for the spawner to work.

As this is rather a question than an issue with the script let me know if this help so I can close it. I will, however, have a look at the documentation which appears to be insufficient or too complicated as I have been receiving similar questions the past few weeks.

kevintransp commented 3 years ago

Thanks for your reply, gone try to add random fires with this explaining. Makes more sense now.

gimicze commented 3 years ago

Has this helped you to resolve your problem or do you need any further help?

gimicze commented 3 years ago

If you still encounter any problems, feel free to open another issue.