Jump to content

Ayuda como crear una animacion con sonido


lGalazArayal

Recommended Posts

Client:

addEvent( "onMusica", true ) 
addEventHandler( "onMusica", root,function () 
    local x, y, z = getElementPosition(source) 
    local soundasd = playSound3D("sonido.mp3", x, y, z) 
    setSoundVolume(soundasd, 1.0) 
    attachElements(soundasd, source) 
    setSoundMinDistance(soundasd, 1)  
    setSoundMaxDistance(soundasd, 50) 
end)  

Server:

addCommandHandler("sexo", 
function (playerSource) 
setPedAnimation ( playerSource, "sex", "sex_1_cum_w", 1, true, false, false ) 
triggerClientEvent( "onMusica", playerSource)  
end) 

Link to comment
Client:
addEvent( "onMusica", true ) 
addEventHandler( "onMusica", root,function () 
    local x, y, z = getElementPosition(source) 
    local soundasd = playSound3D("sonido.mp3", x, y, z) 
    setSoundVolume(soundasd, 1.0) 
    attachElements(soundasd, source) 
    setSoundMinDistance(soundasd, 1)  
    setSoundMaxDistance(soundasd, 50) 
end)  

Server:

addCommandHandler("sexo", 
function (playerSource) 
setPedAnimation ( playerSource, "sex", "sex_1_cum_w", 1, true, false, false ) 
triggerClientEvent( "onMusica", playerSource)  
end) 

me sirvioooo muchas graciass mannn capoooo muchas gracias :) que te valla bien xD

Link to comment
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...