Arsilex Posted August 31, 2012 Share Posted August 31, 2012 Miren me hize un liazo y no se como hacer esto Client-Side-- function M1Triger() triggerServerEvent ( "onM1", root ) end function M1 ( ) stopSound( sound ) local vehicle = getPedOccupiedVehicle ( localPlayer ) local x,y,z = getElementPosition( vehicle ) sound = playSound3D( "http://listen.radionomy.com/a-rockradio.m3u", x, y, z, true ) setSoundVolume( sound, 5 ) setSoundMaxDistance( sound, 20 ) attachElements ( sound, vehicle ) end addEvent( "onM1Repro", true ) addEventHandler( "onM1Repro", getRootElement(), M1 ) Server-Side-- function M1() triggerClientEvent ( "onM1Repro", root ) end addEvent( "onM1", true ) addEventHandler( "onM1", getRootElement(), M1 ) Todo esto lo unico que hace es reproducir sonido ami y al que esta conmigo alado pero no lo ollen los de afuera Link to comment
Recommended Posts