This should work :
-- Client :
addEvent ( 'sound', true )
addEventHandler ( 'sound', root,
function ( )
local song = playSound3D("Diskoparty.mp3", -2758, 968, 54, true)
setSoundVolume ( song, 100 )
setSoundMinDistance ( song, 100 )
outputChatBox(":D")
end
)
-- Server :
addEventHandler ( 'onResourceStart', resourceRoot,
function ( player )
local x, y, z = getElementPosition ( player )
triggerClientEvent ( 'sound', player, x, y, z )
end
)