[Help] Sound Not Playing in Speed Alert Mod — Script Not Loading?

Discussion in 'Content Creation' started by Jack The Fox, May 1, 2025.

  1. Jack The Fox

    Jack The Fox
    Expand Collapse

    Joined:
    Jan 22, 2025
    Messages:
    22
    Hi everyone,
    I'm working on a simple Lua mod called Speed Alert System (SAS) that plays a warning chime when the vehicle goes over 80 MPH. It’s a VLua (vehicle-side) script. I’m using
    Code:
    obj:createSFXSource2()
    and
    Code:
    obj:playSFXOnce()
    to play the sound, and I’ve made sure the sound file exists and is properly referenced.

    The issue: nothing is happening. There are no log messages, no errors in the console, and my log lines don’t appear. This makes me think the script isn’t being loaded at all. The mod has a working keybind that should load the script using:

    Code:
    extensions.load('speedAlertSystem_speedAlertSystem')
    But there’s no sign it’s doing anything.

    Has anyone dealt with this kind of problem where the Lua script silently doesn’t load? Any ideas on what might be missing or preventing the mod from loading properly?

    Thanks!
    – Jack The Fox
     
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice