How do you use 2 LUA scripts together?
3 replies



19.01.18 11:29:23 pm
Hi. I want to make a call of duty mode server. And I want to use "cod_gamemode.lua" with "tdm-score.lua" but im not sure how to. I tried copy and pasting the tdm score to cod gamemode but some things were missing when I tested it.
Hello,@
s0ulsh0ck3r101:
You can use the dofile:
And it should work.

You can use the dofile:
Code:
1
2
2
First : dofile('sys/lua/yourlua.lua')
Second : dofile('sys/lua/yourlua.lua')
Second : dofile('sys/lua/yourlua.lua')
And it should work.
Try opening your
and try adding a new line for your Second Script.
it should look like this
Code:
from your sys/Lua Folder1
server.lua
and try adding a new line for your Second Script.
it should look like this
Code:
1
2
2
dofile("sys/lua/Script1.lua")
dofile("sys/lua/Script2.lua")
dofile("sys/lua/Script2.lua")
Eat Sleep Conquer Repeat. www.Radeon2D.forumid.net



