RedM
  • πŸ‡«πŸ‡·Home
  • πŸ§‘β€πŸŒΎAmbient NPC
  • β›ΊCampement
  • πŸƒCard Collection
  • β™ŸοΈChess & Checkers Game
  • πŸ’£Dynamite
  • πŸ™‹Environment animations
  • πŸ”₯Fire sync
  • 🐎Feeding Horse + Syringe
  • 🚭Illicit Sales
  • βš–οΈInstances
  • πŸ“₯Market Stall
  • 🩺Medical Records
  • 🍲Metabolism
  • πŸ—£οΈMumble Block UI
  • ⏸️Pause Menu
  • ⌨️Quick Keys Menu
  • πŸ’΅Reward Loyalty and Total playtime
  • πŸ–‹οΈTattoo
  • πŸ₯‡Top Serveurs
  • ⚰️Undertaker
  • πŸ’€Wanted
  • πŸ”«Weapon Cleaning Animation
  • 🏹Weapon Rack
Powered by GitBook
On this page

Fire sync

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

Client Side

TriggerServerEvent('BTFire:createFire', fireType, impactCoords, radius, timeOutInSeconds)

Server Side

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.

Last updated 9 months ago

πŸ”₯