
Forum




multiple scripts
8 replies




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).

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



give me your lua i'll fix it for you
*Mega facepalm*
@






1
2
2
dofile("sys/lua/<lua name.lua>") dofile("sys/lua/<lua name.lua>")

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.

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.



