pocko Posted February 6, 2011 Posted February 6, 2011 can someone tell me where is the count down sounds ?in race mod?
Aibo Posted February 6, 2011 Posted February 6, 2011 race resource uses playSoundFrontEnd sounds 44 and 45 for countdown.
pocko Posted February 7, 2011 Author 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")
Kenix Posted February 7, 2011 Posted February 7, 2011 well how to must be ? use https://wiki.multitheftauto.com/wiki/TriggerClientEvent
pocko Posted February 7, 2011 Author 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")
Aibo Posted February 7, 2011 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.
pocko Posted February 8, 2011 Author Posted February 8, 2011 so can you correct my trying to make this ?
12p Posted February 8, 2011 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"...
proracer Posted February 8, 2011 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.
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