Forum
CS2D Scripts multiple scriptsmultiple scripts
8 replies 1
Example: You can't use 2 classes ( I mean those where you can choose a class, like soldier and all that stuff) lua at the same time, tha may lead to trouble with menus (If the both use the same system).
Doctard has written
i was wondering if you could use 2 lua's at the same time if you can plz tell me and i give you
Actually you can run more than 5 lua scripts but like Pwnisher said it depends on what type of script it is you are running.
how do you do it?
I want to put my Tlex and Unlimitedbuild lua in one...
tell me how please or make a lua
Thanks
KagamineLen has written
give me your lua i'll fix it for you
*Mega facepalm*
@ Doctard: Steps
Open your CS2D folder
Open the sys folder
Open the lua folder
Open server.lua text file
Write this on the bottom part:
1
2
2
dofile("sys/lua/<lua name.lua>") dofile("sys/lua/<lua name.lua>")
Note: Make sure you put the lua scripts on the lua folder.
If you have 2 hooks like:
Lua 1 has written
addhook("spawn","ifspawn")
and in the other u have
Lua 2 has written
addhook("spawn","onspawn")
And in the lua executer you has
1
2
2
dofile("sys/lua/Lua 2.lua") dofile("sys/lua/Lua 1.lua")
It will only hook the lua of the Lua 2, because is the first lua readed. And what happens with the hook of Lua 1? It doesnt function.
Stopieee has written
Me too
how do you do it?
I want to put my Tlex and Unlimitedbuild lua in one...
tell me how please or make a lua
Thanks
how do you do it?
I want to put my Tlex and Unlimitedbuild lua in one...
tell me how please or make a lua
Thanks
I believe you could just use parse. If it's quick build it should add in nicely. As long as they don't add any hooks that are taken.
1