Jump to content

[HELP] playSound3D


roy_ppp

Recommended Posts

function onPlaysong( ) 
    local players = getElementType( source ) 
    local x, y, z = getElementPosition( players ) 
    local sound = playSound3D("mysong/ThaiSong.mp3", x, y, z, true) 
    --outputChatBox( x .. " " .. y .. " " .. z .. " ", player) 
    setSoundVolume( sound, 100) 
end 
addCommandsHandler("sing", onPlaysong) 

it's not working has bug ?

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...