--[[ Hunt's Mod Revamped Version 2 ]]-- --[[ Lua Addition ]]-- --[[ Created By: HuntsKikBut ]]-- hmod_title = "Hunts - Advanced Music Mod" -- The name of the menu with your music in it. function CreateMusicMenu(PID) findmusic = _file.Find("sound/HuntsMod/*") FILTERS = "([^%.%/%\%?%:%(%)%|]+)%.mp3" _spawnmenu.RemoveCategory(PID, hmod_title) _spawnmenu.SetCategory(PID, hmod_title) _spawnmenu.AddItem(PID, hmod_title, "+Stop The Music!", "stopsound") _spawnmenu.AddItem(PID, hmod_title, "~Your Music", " ") for i = 3, table.getn(findmusic) do local L, U, simpleName = string.find(findmusic[i], FILTERS) local runString = "play HuntsMod/" .. simpleName .. ".mp3" _spawnmenu.AddItem(PID, hmod_title, "+"..simpleName, runString) end end HookEvent("eventPlayerInitialSpawn", CreateMusicMenu);