Like i described in the Title i want make a custom simpleFunction with Lua. I want the simpleFunction to trigger when turning on the ignition of my Car so i can have a radio glowing when the ignition is turned on. I have not Idea how to create or edit a lua file and i cant seem to figure out how to do it, so maybe someone knows how to do this Here is the Radio just using a emisse map at the moment View attachment 1183455
You don't need Lua for that; you can just use the running electrics argument if having it turn on with the ignition is all you need. {"simpleFunction":{"running":0.49}