syn0nym Posted November 10, 2021 Share Posted November 10, 2021 I want to make a background sound for a starting screen, when i run the script, the sound is not played. function BGM() sound = playSound("sounds/bgm.mp3") setSoundVolume(sound, 2) end addEventHandler("onClientPlayerJoin", root, BGM) Link to comment
The_GTA Posted November 10, 2021 Share Posted November 10, 2021 Hello syn0nym, at the Wiki documentation of the onClientPlayerJoin event it tells you that it does not trigger for the local player. I suggest you to use the onClientResourceStart event instead with the resourceRoot as base-element. Link to comment
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now