function onResourceStart()
sound = playSound3D("song.mp3", 3445.1999511719, 436.89999389648, 3.0999999046326, true)
setElementDimension(sound,30)
setSoundMaxDistance(sound, 20)
end
addEventHandler("onClientResourceStart", resourceRoot, onResourceStart)
-- By oskar
addCommandHandler("stop", function ()
if isElement(sound) then
destroyElement(sound)
end
end)
function onResourceStart()
local sound = playSound3D("song.mp3", 3445.1999511719, 436.89999389648, 3.0999999046326, true)
setElementDimension(sound,30)
end
addEventHandler("onClientResourceStart", resourceRoot, onResourceStart)
--wiki : Remember to use setElementDimension after creating the sound to play it outside of dimension 0.
^ كودك الي فوق اظن انه يشتغل لـ عالم رقم 0 بس .