Znalazłem coś takiego na str ED :
DCS activates the Config\Export\Export.lua script at every mission start. You need to uncomment the function LuaExportStart to activate it and to activate all other functions. For that add the single "-" just before "--[[" opening multi-line comment to convert it to the single-line comment "---[[". So the closing multi-line comment bracket without opening one becomes the single-line comment too. If you want to disable exporting features then remove additional third dash to make the comment multi-line again.
If DCS can't find the LuaExportStart function then it prints the message to the Temp\Error.log file:
LuaExport::Lua data export disabled.
DCS also prints to the Error.log file all other Lua error messages for the Export.lua script.
DCS calls script functions for every mission simulation. It calls the LuaExportStart function just before mission start to make user script initializations. For example, to open the log file:
local file = io.open("./Temp/Export.log", "w")
if file then
io.output(file)
end
or
to establish the network connection:
dofile "lua.lua"
socket = require("socket")
host = host or "localhost"
port = port or 8080
c = socket.try(socket.connect(host, port)) -- connect to the listener socket
c:setoption("tcp-nodelay",true) -- set immediate transmission modeAle za cholerę nie mogę skumać gdzie się wpisuje te skrypty

Wie ktoś ?