Всем привет как сделать проигрывание фоновой новогодней музыки у игроков?
hook.Add('Think', 'merryxmas', function()
hook.Remove('Think', 'merryxmas')
sound.PlayURL('url', 'mono noblock', function(s)
if IsValid(s) then
s:Play()
s:SetVolume(0.2)
if not s:IsBlockStreamed() then
s:EnableLooping(true)
end
end
end)
end)
1 лайк