Out of curiosity, is there any way to link a sound file to play when nUI sends a message to the chat box indicating that it's time to feed my pet? If it's simple enough, I'd like to be able to play a sound clip from Little Shop of Horrors of the plant saying "Feed Me" Twisted I know, lol.
I couldn't resist attempting it, lol. I just spent the last hour or two digging through code to try and figure it out and managed to get it to work . It's my first time playing with any code, and had a great time learning a tiny bit of lua in the process. I've got mine setup so it will play one oftwo different mp3 files depending on whether my pet is unhappy or angry.
Thank you for putting all the comments in your code. That alone went a very long way to helping me get an idea about what I was looking at and Google filled in the blanks