Fire Explosion

hello im trying to create a gas explosion at any gas station i would like anywhere but im not sure how to do it could someone guide me on how that could happen i need like to add on to this to make multiple gas explosions but fires start automatically in soo many minutes thanks

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)

Try this: (All on client) No server file needed.

RegisterCommand('startfire', function()
    TriggerEvent('StartFire')
end)

RegisterNetEvent("StartFire")
AddEventHandler("StartFire", function()
	local Coords = GetEntityCoords(GetPlayerPed(-1))
	StartScriptFire(Coords.x, Coords.y + 3, Coords.z - 1, 25, true)
	StartScriptFire(Coords.x, Coords.y + 4, Coords.z - 1, 25, true)
	StartScriptFire(Coords.x, Coords.y + 5, Coords.z - 1, 25, true)
end)

okay thanks but how do i create like gas station explosions at xyz coords

As soon as the fire gets near the pumps they will explode unless you are talking about the ones where they have a ton of black smoke etc because that is a different story.

yes that cause i want people to be able to hear hear explosions and yes black smoke

I mean that is a lot more then just that code above. That uses particle effects to display the smoke which has to be synced for each client.

I am pretty sure his has the black smoke you are talking about.

Okay so could u guide me on how I would like start adding to the script like would that be a else if statement

If you only know basic Lua its gonna be hard for you to jump into a script like that.

Well I’m just starting to learn and would love it if u could teach me or show me like an example of how I would add it in to code showen above

I don’t really have time to teach a class on Lua. Would recommend starting on a smaller script than this.