Jump to content

Attach 3d sound to slothbot ped [ FIXED]


Jose76Tron

Recommended Posts

Hello, i need help i tried to attach a 3d sound to a slothbot ped but it doesn't work, the ped works nice and everything but the sound is not attached to him.

Server side script:

	triggerClientEvent ( "JasonSoundClientEvent", root, jasonbot )

Client side script:

addEvent("JasonSoundClientEvent", true)
addEventHandler("JasonSoundClientEvent", root,
function ( ped )
			local jasonsound = playSound3D("sounds/jasonsound.mp3", -1633.8134765625, -2234.517578125, 31.4765625, true)
			setSoundMaxDistance( jasonsound, 50 )
			setSoundEffectEnabled(jasonsound, echo, true)
			setSoundVolume(jasonsound, 1)
			attachElements(jasonsound, ped)
end)

Why it doesn't work?

Nvm fixed lol i had AttachElements and is attachElements

because A doesn't work xDDDD

Edited by Jose76Tron
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...