"Am I drifting off the road?" Hi everyone, I'm trying to create a new mod for BeamNG.drive that plays an alarm sound when you leave your lane — kind of like a real-world lane departure warning system. I'm still very new to Lua (I barely know anything about it yet), so I'm looking for some help, tips, or maybe even small examples to get me started. My idea is: Detect when the vehicle crosses the lane lines (or starts drifting off the road). Play an alarm sound as a warning when it happens. I'm not sure how to detect lane departures or how to trigger a sound at the right time. If anyone has advice on what functions or systems I should look into (like sensors, road data, position checking, etc.), or if someone can show me a basic example, that would be amazing! Thank you so much!