Esta vez lo hice yo, pero la proxima no.
-- client side:
addEvent ( "musica", true )
addEventHandler ( "musica", root,
function ( url )
if ( isElement ( sound ) ) then
destroyElement ( sound )
end
sound = playSound ( url )
setSoundVolume ( sound, 300 )
end
)
-- server side:
local sounds = { "las urls" }
function inicio ( )
triggerClientEvent ( "musica", getRootElement(), sounds [ math.random ( #sounds ) ] )
end
addEventHandler ( "onResourceStart", resourceRoot, inicio )
setTimer ( inicio, 410000, 0 )