Jump to content

music on connect


swag_k_dog

Recommended Posts

14 minutes ago, FaHaD said:

Yes this should work.

i'll try

14 minutes ago, FaHaD said:

Yes this should work.

addEventHandler("onClientResourceStart", resourceRoot,
function()
sound = playSound("music/APB.mp3")
setTimer(stopSound,50000,1,sound)
end
)

the setTimer does not work for a reason or another.. I want the sound to stop after several seconds.. why doesnt it work? ty

 

EDIT: It works, I just put a too high value

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