Jump to content

[HELP] playSound3D


roy_ppp

Recommended Posts

Posted
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 ?

Posted

viewtopic.php?f=91&t=27027

If this was copied&pasted - it won't have so much errors o_O

This is just random..

Multi theft auto tools - replace cars and peds, move your map or compile your Lua files online!

programista php rzeszów

Need free webhosting for your small site? PM me. Need help with portforwarding? PM me. Do not PM me asking for help with scripting.

Having problems with port forwarding? Send me pm, I can do whole thing for you using TeamViewer (already helped about 20 people, no worries)!

Posted

you mean that "s"? addCommandsHandler ?

Multi theft auto tools - replace cars and peds, move your map or compile your Lua files online!

programista php rzeszów

Need free webhosting for your small site? PM me. Need help with portforwarding? PM me. Do not PM me asking for help with scripting.

Having problems with port forwarding? Send me pm, I can do whole thing for you using TeamViewer (already helped about 20 people, no worries)!

Posted
More information. PLEASE

EDIT: Much bugs in it, I think you just copied/pasted from wiki

i not copied

I create it manually

but i'm just 15 year old

Asked the little matter

Posted

When i was 8yo i was learning new programming languages with extreme speed ^^

Multi theft auto tools - replace cars and peds, move your map or compile your Lua files online!

programista php rzeszów

Need free webhosting for your small site? PM me. Need help with portforwarding? PM me. Do not PM me asking for help with scripting.

Having problems with port forwarding? Send me pm, I can do whole thing for you using TeamViewer (already helped about 20 people, no worries)!

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