Jump to content

Boszor

Members
  • Posts

    6
  • Joined

  • Last visited

About Boszor

  • Birthday 27/12/1988

Details

  • Gang
    heroes

Boszor's Achievements

Vic

Vic (3/54)

0

Reputation

  1. Thanks, but it's still coming only landing.mp3 and you hear the police Maverrick also
  2. Did it follow inserted meta.xml <meta> <script src="client.lua" type="client"/> <script src="server.lua" type="server"/> <file src="song.mp3"></file> <file src="landing.mp3"></file> </meta> Client - Side function speak (songName) if not songName then return end if (not isPedInVehicle(localPlayer)) then return end if sound and isElement(sound) then destroyElement(sound) sound = nil -- or stopSound(sound) end local theVehicle = getPedOccupiedVehicle (localPlayer) local x,y,z = getElementPosition(theVehicle) sound = playSound3D (songName, x, y, z) attachElements(sound,theVehicle) setSoundMaxDistance(sound, 100) end addEvent ("Ansage", true) addEventHandler ("Ansage", getRootElement(), speak ) Server - Side triggerClientEvent(client,"Ansage",client ,"song.mp3") -- or triggerClientEvent(client,"Ansage",client ,"landing.mp3") However, the desired success because unfortunately still do not. Also you hear the normal sound of the helicopter. It is still the first landing.mp3 played instead the start.mp3
  3. I have this line removed, however, only works the sound landing.mp3 Police Maverrick disabled Sound
  4. Hi, what do you mean by that argument, I would like that it is no longer audible to the police helicopter Maverrick. , But when I enter the Vehicle ID, then I happened nichts.Wenn / announcement Enter H to start song.mp3 of sound and if I / announcement again to stop the sound Enter H song.mp3 and be executed for it landing.mp3.
  5. So is it right? I have really no idea, unfortunately. I let the way else, but then it works but I can not stop him yet function speak (player,x,y,z) setWorldSoundEnabled sound = playSound3D ("song.mp3", x, y, z) car = getPedOccupiedVehicle ( player ) attachElements(sound,car) setSoundMaxDistance( sound, 150 ) else setSoundVolume(sound, 0) end addEvent ("Ansage", true) addEventHandler ("Ansage", getRootElement(), speak )
  6. Dear Community, Where is my mistake here? Once I enter this command again to stop the sound and another to play. However, it happens nix and I'm also not so the brightest light in the lua topic. Would appreciate help. This is for the Police Maverrick. function speak (player,x,y,z) setWorldSoundEnabled sound = playSound3D ("song.mp3", x, y, z) car = getPedOccupiedVehicle ( player ) attachElements(sound,car) setSoundMaxDistance( sound, 150 ) elseif then if isElement( sound ) then stopSound( sound ) sound = playSound3D ("landing.mp3", x, y, z) setSoundMaxDistance( sound, 150 ) end addEvent ("Ansage", true) addEventHandler ("Ansage", getRootElement(), speak )
×
×
  • Create New...