MisaFix Posted December 23, 2021 Share Posted December 23, 2021 Hello, i want to make a script that when player starts swimming, a sound will play. I tried to use codes like [if isElementInWater then playSound("sounds/test1.mp3")] but they didnt work. Link to comment
The_GTA Posted December 23, 2021 Share Posted December 23, 2021 Hello MisaFix, did you know that you have to check inside of a client-side onClientRender event handler using the isElementInWater function for the game frame that the player has entered the water? This way you can simulate an onClientPlayerEnterWater event and execute code for it. Can you show us your code so this question can be discussed? Link to comment
MisaFix Posted December 23, 2021 Author Share Posted December 23, 2021 I fixed it, TYSM! Link to comment
The_GTA Posted December 23, 2021 Share Posted December 23, 2021 Just now, MisaFix said: I fixed it, TYSM! You're welcome! 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