pocko Posted February 6, 2011 Share Posted February 6, 2011 can someone tell me where is the count down sounds ?in race mod? Link to comment
Aibo Posted February 6, 2011 Share Posted February 6, 2011 race resource uses playSoundFrontEnd sounds 44 and 45 for countdown. Link to comment
pocko Posted February 7, 2011 Author Share Posted February 7, 2011 i search in all lua files and found this in race_server.lua g_RaceStartCountdown = Countdown.create(6, launchRace) g_RaceStartCountdown:useImages('img/countdown_%d.png', 474, 204) g_RaceStartCountdown:enableFade(true) g_RaceStartCountdown:addClientHook(3, 'playSoundFrontEnd', 44) g_RaceStartCountdown:addClientHook(2, 'playSoundFrontEnd', 44) g_RaceStartCountdown:addClientHook(1, 'playSoundFrontEnd', 44) g_RaceStartCountdown:addClientHook(0, 'playSoundFrontEnd', 45) here how i made it but not work ;x g_RaceStartCountdown = Countdown.create(6, launchRace) g_RaceStartCountdown:useImages('img/countdown_%d.png', 474, 204) g_RaceStartCountdown:enableFade(true) g_RaceStartCountdown:addClientHook(3, 'playSoundFrontEnd', 44) g_RaceStartCountdown:addClientHook(2, 'playSoundFrontEnd', 44) g_RaceStartCountdown:addClientHook(1, 'playSoundFrontEnd', 44) playSound("sfx/321.mp3") g_RaceStartCountdown:addClientHook(0, 'playSoundFrontEnd', 45) playSound("sfx/go.mp3") Link to comment
Aibo Posted February 7, 2011 Share Posted February 7, 2011 playSound is a client function. Link to comment
pocko Posted February 7, 2011 Author Share Posted February 7, 2011 well how to must be ? Link to comment
Kenix Posted February 7, 2011 Share Posted February 7, 2011 well how to must be ? use https://wiki.multitheftauto.com/wiki/TriggerClientEvent Link to comment
pocko Posted February 7, 2011 Author Share Posted February 7, 2011 Can you show me how to make it ?I re read it 3 times and not understand My new tryed again fail g_RaceStartCountdown = Countdown.create(6, launchRace) g_RaceStartCountdown:useImages('img/countdown_%d.png', 474, 204) g_RaceStartCountdown:enableFade(true) g_RaceStartCountdown:addClientHook(3, 'playSoundFrontEnd', 44) g_RaceStartCountdown:addClientHook(2, 'playSoundFrontEnd', 44) g_RaceStartCountdown:addClientHook(1, 'playSoundFrontEnd', 44) g_RaceStartCountdown:addClientHook(0, 'playSoundFrontEnd', 45)then playSound("file.wav") Link to comment
Aibo Posted February 7, 2011 Share Posted February 7, 2011 you dont know what you're doing. you need to have quite good understanding of lua and programming in general to edit race resource. you can try replacing the function that is called with playSound and sound id argument with your file, but it will probably work only if playSoundFrontEnd is called clientside. Link to comment
pocko Posted February 8, 2011 Author Share Posted February 8, 2011 so can you correct my trying to make this ? Link to comment
12p Posted February 8, 2011 Share Posted February 8, 2011 First, do something else. Learn how to script. Because isn't okay that you directly ask for fixing scripts, as we are working on ours. Go to wiki and search for "Scripting Introduction"... Link to comment
proracer Posted February 8, 2011 Share Posted February 8, 2011 so can you correct my trying to make this ? I think you should try working on more easier scripts than these. Link to comment
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