Pyth3rEx / esx_fireDispatch-Discontiniued

Fire script for RP servers in FiveM
GNU General Public License v3.0
23 stars 14 forks source link

Fire Spreading #5

Closed Sythy11 closed 4 years ago

Sythy11 commented 5 years ago

I am writing to you to see how you are getting fire to spread. I cant get it to spread at all. The only thing I can get the script to do is spawn fires. Not even remove them.

I have just got a plain server with just ESX, vMenu, MySQL Async, and EssentialMode installed.

Pyth3rEx commented 5 years ago

You can remove fires but restarting the script or putting them out. Regarding the spreading this is an untested feature, it works theoreticaly tough. Can you provide a more complete bug report with context please?

P.S I just uploaded a new version a few hours ago, did you get it before posting this?

Sythy11 commented 5 years ago

Yes I have updated the script.

When I light the fire, it can sit there for however long it wants (even if I change the wait timer), in all that time it will not spread at all. It will just be that one tile which has fire.

Pyth3rEx commented 5 years ago

What wait timer are you talking about? Regarding the issue I'll have a look at it in tomorow night's stream

Sythy11 commented 5 years ago
   -- Handeling spreading of fires
    Wait(10)
    if #scriptData.firePositionsX == 1 then
    else

I've changed it to 10 from 1000 because im impaitent.

Pyth3rEx commented 5 years ago

you just made the entire script update every 0,01 secon which could lead to huge issues such as hard crash. Don't do that.

Sythy11 commented 5 years ago

Seeing as I had (almost) bare bones, it was running okay. The main devs for our server are going to work it into a proper dispatch system. But basing it off your script for the flames/smoke/blips.

Pyth3rEx commented 5 years ago

Just make sure your script follows the licence and you are fine ;) I wouldn't mind a credit tough :P

A proper dispatch system is in the works for the first non-framework update.

Pyth3rEx commented 5 years ago

So a little update: the fire spreading works but dosn't show. v1.3_f will include the spreading.