[3/19/2020] While you can use this resource if you’d like, and it is still fully functional, a (subjectively) better script is now available that I prefer even over my own. You can check it out here.
There’s not much to this script, but it helps people that might need a quick drink if they are about to die (assuming you use esx_basicneeds). It’s also kinda neat because it offers the beverages at a discounted fee of $1, at the cost of having to drink it right there and it not going into your inventory. All 82 of the machines in the game work. If I missed any coordinates, let me know and I’ll be glad to fix it ASAP. The sound effect is included for the machine, but is optional. Note - the sound effect requires InteractSound
Thanks and I hope this helps your communities! Let me know if you’d like to see more like this!
Special thanks to SilentRedBear for helping me test this.
[2/5/2020] This resource is provided as-is and I don’t have any further interest in messing with it; also my outlook on the ESX framework has changed quite a bit since then. At this point, I can not recommend the ESX framework in general due to exploits and other concerns.
Just change it to FR. I forgot that I wrote the EN labels in the FR locale lol so just set it to FR for EN if that makes sense. Thanks for checking it out!
If I hadn’t abandoned the dev work on this script, I would consider implementing things like that. But at this point I have more ideas for more scripts and releases to come. Next release coming soon
I was delighted to put it on my server with my basicneeds edited and modified the sodamachine so that when you take the cocacola it will take away the desire to drink and increase your desire to piss it would be nice to put more drinks not only cocacola and activate all the machines that are not green also the red ones etc