Moderators IIYAMA Posted July 1, 2013 Moderators Posted July 1, 2013 My sound script some how stopped working, I have no Idea why, it just did. meta.xml <file src="material/music/Spy_vs_Spy_main2.mp3"/> introMusic,soundState = playSound("material/music/Spy_vs_Spy_main2.mp3", true),true if not introMusic then outputChatBox("introMusic doesn't exist " .. tostring(introMusic)) -- this one will output in the chat box end --as extra test: if not fileExists ( "material/music/Spy_vs_Spy_main2.mp3", true) then outputChatBox("introMusic doesn't exist ") else outputChatBox("sound does exist!!") -- this one will also output in the chatbox. end so I am really confused, I changed some things, but I can't see my mistake. Do you want to improve your Lua programming skills and make less mistakes? Start with Lua Language Server! Useful functions 3x Spoiler checkPassiveTimer getScreenStartPositionFromBox getPedGender Tutorials 4x Spoiler Scaling DX Events Attach an addEventHandler on a group of elements Debugging
Moderators IIYAMA Posted July 1, 2013 Author Moderators Posted July 1, 2013 Hmm nvm, I have no Idea what did just happened, but it seems like my drives didn't work. Probably because I changed my headset to box set. Never had this problem before. -_-" Really strange that it can conflict lua scripts. Do you want to improve your Lua programming skills and make less mistakes? Start with Lua Language Server! Useful functions 3x Spoiler checkPassiveTimer getScreenStartPositionFromBox getPedGender Tutorials 4x Spoiler Scaling DX Events Attach an addEventHandler on a group of elements Debugging
Adde Posted July 1, 2013 Posted July 1, 2013 Well you need to add the lua file to the meta.xml. My ingame nickname is: Mr.Snus
Moderators IIYAMA Posted July 1, 2013 Author Moderators Posted July 1, 2013 It is already working. Strange temporary driver problem. Well you need to add the lua file to the meta.xml. I can script normal, I don't make much of that stupid mistakes. Do you want to improve your Lua programming skills and make less mistakes? Start with Lua Language Server! Useful functions 3x Spoiler checkPassiveTimer getScreenStartPositionFromBox getPedGender Tutorials 4x Spoiler Scaling DX Events Attach an addEventHandler on a group of elements Debugging
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now