Hello! Here's what I did and not working: Jbeam: Lua: Thanks in advance! Edit: jbeam works. My lua file is broken P.S: I know those names are horrible. Don't tell me "Why sensitivity of alarm called strength?"
I don't think it will work if you leave it in Jbeam outside of any section, the way I always get this to work is by making the LUA file a controller and making a new section for the controller where I put all the variables like this: And in the LUA it's like this: The "or" is for a rare case when the Jbeam would not load properly for some reason, like if someone made a mod that overrides this one.
Thanks. I'll try it Btw, now my lua is in VEHICLENAME/lua. After doing these, I should move it to VEHICLENAME/lua/controller, right?
Yeah and you should change all the stuff that makes the file work as a controller, I forgot what it is exactly, check how it's done in official cars
You can actually access the "variables" JBeam section with just this Lua command: Code: v.data.variables["$alarmstrength"].val