Jump to content

[HELP] Play Sound


Recommended Posts

hi guys im maked a playSound script when hit marker

but not working!

 

server side

function hitMarker (thePlayer)

    setElementPosition(thePlayer, 288.89401, 169.30408, 1007.17188)
    setElementInterior(thePlayer, 3)
	triggerClientEvent("onMarkerHit", markerJoin, markerSound)
end
addEventHandler("onMarkerHit",markerJoin,hitMarker)

 

client side 

function markerSound (thePlayer) 
	local sound = playSound("sound.mp3")
	setSoundVolume(sound, 1)
end

addEventHandler("onMarkerHit", markerJoin, markerSound)

 

what is this problem ?

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