Hello, can someone help me? I have a bug that is making it difficult for me to work on the server. It’s about the drug script, more specifically about the reference to the value 0 on line 66. I’m attaching a screenshot with the code.
As far as I see, you’re getting a nil value because you probably do not have any compatible/required items in your inventory.
Since the script doesn’t check if you even have the item at all, its throwing a nil value instead - since it cannot execute the client event because x == nil.
Thanks a lot, now i write some new lines for this and check again.
Sure thing. Let me know if this fixed it 