[Release] Fire Script

I have taken this down from the list because it is semi out of date and it is not synced. So therefor I will take it down.

4 Likes

How does the script work? How do you use it?

There’s a README.txt in the file, it says everything needed to run it, such as commands, and how to install it.

1 Like

Just maybe say it in the post :smile:

Job system with police commands and jail Whats this…

Yeah, a bit weird (20 chara)

put “start FIRE_SCRIPT” in server.yml or whatever it is, start the server, what you do after that is when you enter your server the commands are

/fire preview [distance_from_player] [area_size] [density] [size of flames animation]
/fire preview stop
/fire start [distance_from_player] [area_size] [density] [size of flames animation]
/fire stop (will remove all fires made previously)

For [density] and [size of flames animation] NEVER unless you want lag to go above 6! Besides that, it’s easy! Distance is in meters, and area is in a circle and oops sorry Jake.ryan my fault i messed that up as I have another script in the making

He means the client.lua and server.lua files

------------------------------------------------------------
------------------------------------------------------------
---- Author: Lucas Decker, Dylan Thuillier              ----
----                                                    ----
---- Email: lucas.d.200501@gmail.com,                   ----
----        itokoyamato@hotmail.fr                      ----
----                                                    ----
---- Resource: Job system with police commands and jail ----
----                                                    ----
---- File: client.lua                                   ----
------------------------------------------------------------
------------------------------------------------------------

I know, I am fixing it, I put that in the wrong file, this is a fire script, im fixing it. Thanks for the heads up!

Fixed, thanks for the heads up

Have you tested this script before releasing it?

Yes, I have of course I did. Just looking for feedback if I missed soemthing.

That’s hard to believe, if you would’ve tested it you would have known that it doesn’t work.

As soon as I type anything at all in chat (just a message or a command, doesn’t matter) it throws errors in the server log as well as the client log…

1 Like

Really, let me take a look.

Ok, 1 sec imma take it down as I test.

Once again ill test it

This shows up in the server log if you type any regular chat message.

cfx> Error running system event handling function for resource test: citizen:/scripting/lua/scheduler.lua:41: Failed to execute thread: server.lua:70: attempt to call a nil value (method 'Split')
stack traceback:
        server.lua:70: in function 'stringsplit'
        server.lua:19: in upvalue 'handler'
        citizen:/scripting/lua/scheduler.lua:174: in function <citizen:/scripting/lua/scheduler.lua:173>
stack traceback:
        [C]: in function 'error'
        citizen:/scripting/lua/scheduler.lua:41: in field 'CreateThreadNow'
        citizen:/scripting/lua/scheduler.lua:173: in function <citizen:/scripting/lua/scheduler.lua:138>

This shows up in the client console and server log if you type in any command:

Error running system event handling function for resource test: citizen:/scripting/lua/scheduler.lua:41: Failed to execute thread: server.lua:70: attempt to call a nil value (method 'Split')
stack traceback:
        server.lua:70: in function 'stringsplit'
        server.lua:19: in upvalue 'handler'
        citizen:/scripting/lua/scheduler.lua:174: in function <citizen:/scripting/lua/scheduler.lua:173>
stack traceback:
        [C]: in function 'error'
        citizen:/scripting/lua/scheduler.lua:41: in field 'CreateThreadNow'
        citizen:/scripting/lua/scheduler.lua:173: in function <citizen:/scripting/lua/scheduler.lua:138>

Ok, 1 sec thanks, I wasnt getting that error earlier,

Ok for me too, now, why must this do this to me, 1 Sec