[Release] Fire Script

Something to do with this possibly:

function stringsplit(self, delimiter)
	local a = self:Split(delimiter)
	local t = {}
	for i = 0, #a - 1 do
	 table.insert(t, a[i])
	end
	return t
end

https://wiki.fivem.net/wiki/Running_FXServer#String_Splitting

Even better:
https://wiki.fivem.net/wiki/RegisterCommand

Yes definitely even better :smiley:

server.lua (3.2 KB)
__resource.lua (868 Bytes)
client.lua (6.6 KB)

Working Version @Vespura @Lucas_Decker

EDIT: Works flawlessy, thanks a lot @Lucas_Decker !

4 Likes

Thank you Scott_UK For Helping me out!

1 Like

No problem

Yea ill pm him, thanks

how to get the fire to start. i typed /fire start nothing i did /fire start 20 20 and nothing can you show an example besides the way you have it further up in the posts.

you need to do /fire start 10 10 10 10
[distance_from_player] [area_size] [density] [size of flames animation]

thank you… is their a certain number i shouldnt go paste to avoid major lag

i done 10 20 20 10 and it lagged my game the flames where bloody massive lol
just mess about with it

right is there a way the flame dont go this god damm big lol http://prntscr.com/hrhcfa

dont set density over 3… it goes crazy
try:
100 80 40 3
i like that

nice script!
good to see another firescript working :slight_smile:

any idea how to make it that only admins can make use of the commands?

1 Like

is there a way to get black smoke coming off it at all make it more real

IOEGaming
take a look on the other firescript for inspiration, maybe it helps

thats what i am doing now going to see if i can take out the smoke fro mthe other one and stick it in this one

1 Like

this isnt doing anything for me? the commands work and preview does but the fire never starts?

trying again

i was wrong, it works fine, used the newer files in the post below

The sync is all out of wack on different screens, is there any way to sync the animation better? There needs to be a limit on the values as well because if a random finds this ur server is burnin lol. Just my 2 cents. But good job so far

1 Like

Yeah same here. I stopped a fire and other could still see it.