Hello is there anyone that has or can make a /startfire script and you can type how big the fire is like /startfire 10 10
Client:
RegisterNetEvent("StartFire")
AddEventHandler("StartFire", function()
local Coords = GetEntityCoords(GetPlayerPed(-1))
StartScriptFire(Coords.x, Coords.y+3, Coords.z-1, 25, 0)
StartScriptFire(Coords.x, Coords.y+4, Coords.z-1, 25, 0)
StartScriptFire(Coords.x, Coords.y+5, Coords.z-1, 25, 0)
end)
Server:
AddEventHandler('chatMessage', function(player, playerName, message)
local message = string.lower(message)
if message:sub(1) == '/startfire' then
TriggerClientEvent('StartFire', player)
CancelEvent()
end
end)
You also have
https://forum.cfx.re/t/release-meth-lab-fire/6821
are you a script creator?
No, I’m a script breaker.
Rjross2013 is working on one that actually creates a decent fire effect, DOJ and a few other groups have one, StartScriptFire is useful but not the whole script. You would need to attach particle effects to those scripted fires and add in alot of checks. best plan would be to wait for RJRoss to release his (if he ends up doing so)
@ToniMoron
That completely depends on what kind of fire you want.
Do you wanna be able to be a pyromaniac for a little while, a simple StartScriptFire is fine.
Do you want to roleplay a fireman, then sure, a fullblown fire script would be necessary for full immersion.
the script did not work do you mind sending me files?
Hi, I’m new to this in the scripts and I do not know where to put the codes of the animations etc. Do you know of a tutorial or something? I do not know where to put the file called fivem-mysql-async-2.0.0-beta-1.
I do not know if it goes in the folder where the server is run or it gets into resource I am somewhat confused I only know that in the folder resource probe and when running the server it recognizes it as an error and it does not help there, please
@Sr_lazaro
Go to the “How-To” Page, read every guide you see fit.
I actually already have his fire script and it works quite nicely actually with some nifty spreading on terrain it wouldn’t usually spread on.
All responds with going to guides, I’ve gone to the guides and they make you more dizzy than a living uncle … just wanted to know what to ask
You are asking where to install a resource, and you shouldn’t use Async as you clearly don’t know what it is
A small intro to a new series that I’m creating on my channel with the help of fiveM and many mods
A video of a series that I am conducting with fiveM and many mods
What would you add in order to make the fire bigger?
Would you mind if I use this code and modify it to make a startfire resource, similar to DOJ?
Hi… just wondering
Did you ever succeed in modifying it to be similar to DOJ?
Indeed I did.
(20 Chars)
is it possible to make this
Client:
RegisterNetEvent(“StartFire”)
AddEventHandler(“StartFire”, function()
local Coords = GetEntityCoords(GetPlayerPed(-1))
StartScriptFire(Coords.x, Coords.y+3, Coords.z-1, 25, 0)
StartScriptFire(Coords.x, Coords.y+4, Coords.z-1, 25, 0)
StartScriptFire(Coords.x, Coords.y+5, Coords.z-1, 25, 0)
end)
Server:
AddEventHandler(‘chatMessage’, function(player, playerName, message)
local message = string.lower(message)
if message:sub(1) == ‘/startfire’ then
TriggerClientEvent(‘StartFire’, player)
CancelEvent()
end
end)
not an command, but just let the fire spawn when the script/server starts?
What exactly do you mean? Like when you initiate your server a fire randomly starts? Or do you mean that this is added as a resource and you can start a fire when you want? I am just trying to make sure what exactly you mean. If it is the former then I honestly have not the slightest clue how to go about coding something like that. But if you mean the latter then its quite easy then. First copy the code for either the client or server provided into a new text document using your choice of text editor such as notepad or notepad ++. So for example for the client lua copy
RegisterNetEvent(“StartFire”)
AddEventHandler(“StartFire”, function()
local Coords = GetEntityCoords(GetPlayerPed(-1))
StartScriptFire(Coords.x, Coords.y+3, Coords.z-1, 25, 0)
StartScriptFire(Coords.x, Coords.y+4, Coords.z-1, 25, 0)
StartScriptFire(Coords.x, Coords.y+5, Coords.z-1, 25, 0)
end)
and paste this into the new blank document then save it named client.lua it is important that it is saved as a lua file. Then repeat for the server sided lua. Copy the server code…
AddEventHandler(‘chatMessage’, function(player, playerName, message)
local message = string.lower(message)
if message:sub(1) == ‘/startfire’ then
TriggerClientEvent(‘StartFire’, player)
CancelEvent()
end
end)
and again save it name it server.lua and make sure its a lua file. Then all you need to do is make a __resource lua file to tell the server to use those two scripts. the __resource.lua just needs to contain this.
resource_manifest_version ‘44febabe-d386-4d18-afbe-5e627f4af937’
server_script ‘server.lua’
client_script ‘client.lua’
just like before paste that into a new document and save it as __resource.lua. This tells the server to use the client, and server files that will allow you to type in ingame chat /startfire and it will then trigger a fire. Check out my screens of my server files so you can see what I mean. Once you make the 3 lua files then just put them into a folder and name it whatever, I simply named mine fire and be sure to add it to your server config file start (foldername). Then poof you’re done!

@FireBird397 Did you ever find a script because I have one that I can give you thats similar to /startfire.