• How do I add custom sounds to my SWEP?
    2 replies, posted
I'm new to LUA and I want to make SWEPs but I can't seem to make custom sounds work. I have the a folder called "SWEP" inside "addons" so it should work using only a folder for sounds and a ".wav" and representing it in lua like this: local FireSound = Sound( "sound/weapons/gewehr43.wav" ) But i don't know where does the path to the file start, is it from "addons/myswep" or from "garrysmod"?
Hmm, good question... It isnt documented on any of those functions wiki pages but in sound.Add it seems you dont have to put the "sound/" part so just try removing that and see if it works.
That fixed it, thanks!
Sorry, you need to Log In to post a reply to this thread.