[Release] Fire Script

roleplay
fire
commands

#1

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.


#2

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


#3

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


#4

Just maybe say it in the post :smile:


#5

Job system with police commands and jail Whats this…


#6

Yeah, a bit weird (20 chara)


#7

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


#8

He means the client.lua and server.lua files


#9
------------------------------------------------------------
------------------------------------------------------------
---- 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                                   ----
------------------------------------------------------------
------------------------------------------------------------

#10

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!


#11

Fixed, thanks for the heads up


#12

Have you tested this script before releasing it?


#13

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


#14

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…


#15

Really, let me take a look.


#16

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


#17

Once again ill test it


#18

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>

#19

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


#20

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