Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ------------------------------------------------------------------------------------
- -- PURPOSE: Voice Command for Criminal Bosses and Police Chiefs
- -- DEVELOPERS: HannS
- ------------------------------------------------------------------------------------
- function playVoiceSound(sound, x, y, z)
- local setting = exports.CITsettings:getSetting("crimEventVoice")
- if (not setting or setting == "No") then
- return false
- end
- playSound3D("Sounds/"..sound..".mp3", x, y, z, false)
- return true
- end
- addEvent("CITvoiceChat.playSound", true)
- addEventHandler("CITvoiceChat.playSound", resourceRoot, playVoiceSound)
Advertisement
Add Comment
Please, Sign In to add comment