Technical Limitations: This script works only with entities that RedM recognizes as synchronized. Due to RedM's limitations, you can't generate an unlimited number of fires in the same area. After a certain amount, you'll just see a flame on the entity that's burning. But thatβs plenty to stir up some trouble!
You can generate fire on floor or wall/windows with this server sided event
TriggerEvent('BTFire:createFire', fireType, impactCoords, radius, timeOutInSeconds)
--- fireType -> "wall" or "floor"
--- impactCoords -> vector3 - example : vector3(x,y,z)
--- radius -> number - example : 8
--- timeOutInSeconds -> number -> example : 15
Here is an excerpt from the config.lua file : (parts of the excerpt are hidden) :
Config = {}
Config.DEBUG = false -- Enables debug mode when start/restart - it gives all fire weapons and ammo and print debugs
Config.AllowInside = true -- Allow the fire inside building
Config.fireTimeOut = 30 -- Fire extinguished after x seconds
Config.AllowOnPlayers = true -- Players can set fire to players.
--- FireMod
--- Note: Increasing the number of flames reduces the amount of fire you can see in an area.
--- Itβs not problematic if you donβt overdo it, but it can limit some scenes.
Config.FireMod = 1 -- 1 - Moderate fire usage, 2 - Increased fire usage
--- Weapons
Config.WeaponsList = { -- THROWABLE (only) weapons who create fire after use
{ weapon = "WEAPON_THROWN_MOLOTOV", minRadius = 4, maxRadius = 6 },
-- this content is hidden in the excerpt
}
--- Ammos
Config.AmmoList = { -- AMMO (only) who create fire after use
{ ammo = "AMMO_PISTOL_EXPRESS_EXPLOSIVE", minRadius = 1, maxRadius = 2 },
-- this content is hidden in the excerpt
}
--- Discord
Config.DiscordWebhook = "" -- Discord canal webhook (ex : https://discord.com/api/webhooks/1212121212/StmZ_AazZZykg69RY1gRZnp7h4121212AZAbAbBlWxyJzaMq)
Config.DiscordName = "BT_FIRE" -- The title of the Discord message.