Where are lua files are located?

For example

local Objectives = import('/lua/ScenarioFramework.lua').Objectives
local ScenarioFramework = import('/lua/ScenarioFramework.lua')
local ScenarioPlatoonAI = import('/lua/ScenarioPlatoonAI.lua')
local ScenarioUtils = import('/lua/sim/ScenarioUtilities.lua')
local Utilities = import('/lua/utilities.lua')

where from these ScenarioFramework.lua, ScenarioUtilities.lua etc?
Or atleast where is nice documentation that explains what any function does and which functions do even exist?

I am just new to scripting so I don't know much.

Edit: I found where are these lua files, they are in 'pathToGame/gamedata/lua.scd and you have to open lua.scd via winRAR or smth else

I'd suggest going to official discord and take roles Mapper and Modder in #role-selection:
983fdbfa-3a4b-4f10-9a95-86871c579108-image.png

After that you'll be given with access to these channels:
0702708e-da1b-42e0-96b5-852a19129008-image.png
Where you can ask questions 🙂

“Be a yardstick of quality. Some people aren’t used to an environment where excellence is expected.”
— Steve Jobs.
My UI Mods
Support me

I found where are these lua files, they are in 'pathToGame/gamedata/lua.scd and you have to open lua.scd via winRAR or smth else

If you need the code from the FAF version, then you should look here:

C:\ProgramData\FAForever\gamedata\lua.nx2 (also a .zip archive like the .scd files)