Arsilex Posted August 20, 2012 Posted August 20, 2012 function blowVehicleEnterr ( thePlayer, seat, jacked ) if ( seat == 0 and bombVehicles [ source ] ) then setTimer(blowVehicle, 6000, 1, source ) local x,y,z = getElementPosition( source ) playSound3D("sounds/song.mp3", 373.14, -125.21, 1001, true) end end Por que no suena eso?
Castillo Posted August 20, 2012 Posted August 20, 2012 playSound3D es solo client side, usa triggerClientEvent.
Arsilex Posted August 20, 2012 Author Posted August 20, 2012 Como hacer para que al pasar 10 segundos pa musica pare?? function musica() local vehicle = getPedOccupiedVehicle ( source ) local x,y,z = getElementPosition( vehicle ) local sound = playSound3D("sonido/boom.mp3", x, y, z, true) setSoundMaxDistance( sound, 20 ) end addEvent( "onMusicon", true ) addEventHandler( "onMusicon", getRootElement(), musica)
Recommended Posts