diff --git a/lua/pac3/core/client/parts/sound.lua b/lua/pac3/core/client/parts/sound.lua index 6de6364d..da1f90d8 100644 --- a/lua/pac3/core/client/parts/sound.lua +++ b/lua/pac3/core/client/parts/sound.lua @@ -239,9 +239,7 @@ function PART:SetPath(path) path = info.sound end - if - not path:StartWith("http") - or not pac.resource.Download(path, function(path) load("data/" .. path) end) + if not string.StartsWith(path, "http") or not pac.resource.Download(path, function(path) load("data/" .. path) end) then load("sound/" .. path) end