Jump to content

playSound3D problem


berry172

Recommended Posts

addEventHandler( 'onClientResourceStart', resourceRoot, 
    function( ) 
        local uSound = playSound3D( 'http://79.172.241.237:8200/2000.mp3', 1836.5478515625, -1682.2998046875, 13.343364715576)  
local uSound = playSound3D( 'http://79.172.241.237:8000/radio1.mp3', 487.890625, -14.0380859375, 1000.6796875 , 28)  
        setSoundMaxDistance( uSound, 100 ) 
    end 
) 

Dimension 18 is not playing... What is the problem?

Link to comment

set the element to dimension 18?

setElementDimension() 

so:

addEventHandler( 'onClientResourceStart', resourceRoot, 
    function( ) 
        local uSound = playSound3D( 'http://79.172.241.237:8200/2000.mp3', 1836.5478515625, -1682.2998046875, 13.343364715576) 
setElementDimension(uSound, 18) 
local uSound2 = playSound3D( 'http://79.172.241.237:8000/radio1.mp3', 487.890625, -14.0380859375, 1000.6796875 , 28) 
setElementDimension(uSound2, 18) 
        setSoundMaxDistance( uSound, 100 ) 
setSoundMaxDistance( uSound2, 100 ) 
    end 
) 

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...