To insert lua into a map:

Create 2 entities (Trigger_Start, Trigger_IF)

Give a name for Trigger_IF

Set trigger for Trigger_Start to the name of Trigger_IF

Put your lua around these tags
1
2
3
4
5
6
7
(function()
--place your lua here
return false
end)()

Go to this website

Paste your script in the first text field

Click remove line breaks

Copy the output into the condition box of the if trigger
There you have it, placing lua within maps. Hopefully DC will add an entity called ENV_Lua where you can place insert lua without the wrappers.