BadgerFires [RELEASE] (FREE)

BadgerFires

What is it?

I always see people asking for Fire scripts. The ones people usually use have tons of bugs and/or are broken, so I decided to create one that actually worked well with a lot of nice features to it. Hopefully you all can find some use out of it.

All I ask

I make plenty of resources for these forums free of charge all for everyone’s convenience. As a recently graduated college student I will be looking for a job soon, so having a following on GitHub really looks good to recruiters. In return for my efforts that benefit this community, I hope you all can pay it forward by giving me a follow on my GitHub, that’s all. Thanks.

Commands

/fire start <inFrontDistance> <size> <density> <flameScale> - Starts a fire

/fire preview <inFrontDistance> <size> <density> <flameScale> - Previews a fire’s size

/fire stop <ID> - Stops a fire based off it’s ID

/fire stopall - Requires the BadgerFires.StopAll permission node

/fires - Lists all your started fires with their fire IDs

Images

Command Usage Example

Fire Preview

Fire Start

The /fires command

Turning off preview mode

Stopping the fire

Configuration

Config = {
    MaxSize = 5,
    MaxDensity = 5,
    MaxFlameScale = 5,
    Concurrent = 1,
    AnyoneCanUse = true, -- Anyone can use it? -- THIS WILL DISABLE PERMISSIONS
}


-- ONLY ACTIVE IF `AnyoneCanUse` is set to false
Config.Permissions = { -- ACE PERMISSIONS
    ['BadgerFires.Start.15'] = {
        MaxSize = 15,
        MaxDensity = 15,
        MaxFlameScale = 15,
        Concurrent = 3,
    },
    ['BadgerFires.Start.30'] = {
        MaxSize = 30,
        MaxDensity = 30,
        MaxFlameScale = 30,
        Concurrent = 5,
    },
}

This should be pretty self explanatory…

Credits

Lucas Decker (lucas.d.200501@gmail.com)

Dylan Thuillier (itokoyamato@hotmail.fr)

Thank you to these 2 individuals for the base code I based this resource off of. Despite it not being very well-documented, the code was well-written and I made it up to date with FiveM standards.

Download

6 Likes

F… I… R… E…
badger leik fire

2 Likes

Nice.

1 Like

How optimized is this script? I can only imagine it kills FPS?

It’s .01 ms when idle. Starting 1 fire in front of me with sizes all being 5 brings it to .02 ms. Surely if you have someone going around starting several fires, then this can impact the server. The code is optimized though. Use the permissions system if you are afraid of people abusing it though.

1 Like

Looks really cool, I will definitely look into this more. Can the fires be extinguished with fire extinguishers and deck guns from engines?

Not sure, never tested this, so maybe?

Can you make it so it has autofires?

I probably won’t, but I’m sure someone else could pull request that as a feature if they’d like in the future.

:eyes: Could do since the fire themselves are events

1 Like

Very cool thank you, will follow you on GitHub soon!

rework of GitHub - gimicze/firescript: FiveM Fire Script ready to use with OneSync Infinity. ?

What?

it has the same features as your script even the commands are similar

Different script

using deck gun on engines and trying to use fire extinguishers don’t work.

So the only way to put the fires out is by using the command?

I’ve been doing some testing with having the config allow the particle to be changed, but stopping the fire with other particles specified seems to be buggy. The fire will stop with them, but somehow will still exist in the Flames array which is very very odd…

Looping through the pairs of the array and it only iterates through half, then it stops. If you run the command several times eventually the array will be cleared of the fire, but otherwise it won’t on first try…

Weirdest thing I have ever encountered.

Dang, the fire in this looks fantastic and I like the command control much better than our current fire script, but not being able to properly remove the fire with extinguishers, deck guns, or in our case, the hose that replaces the extinguisher hurts. (In addition to being the owner of our community, I’m also the fire chief so I really feel the hurt as it’s beautiful fire but I gotta be able to have my boys put it out).

Hopefully this is something you will be able to sort out. Either way, I did drop a follow on GitHub yesterday as you do amazing work and we use several of your other resources!

1 Like

With all you’ve contributed, following is the least I can do. Done!

1 Like