diff --git a/resources/[inventory]/pickle_consumables/ATTRIBUTIONS.md b/resources/[inventory]/pickle_consumables/ATTRIBUTIONS.md new file mode 100644 index 000000000..90deb1df1 --- /dev/null +++ b/resources/[inventory]/pickle_consumables/ATTRIBUTIONS.md @@ -0,0 +1,7 @@ +# Muhammad Asif - Rounded Border Animation + +https://codeconvey.com/css-draw-rounded-border-animation/ + +# Jim Gordon The One and Only, YOGI, McKleans Scripts, Jamy - Item Images + +https://github.com/McKleans-Scripts/mk-items/ \ No newline at end of file diff --git a/resources/[inventory]/pickle_consumables/LICENSE b/resources/[inventory]/pickle_consumables/LICENSE new file mode 100644 index 000000000..f288702d2 --- /dev/null +++ b/resources/[inventory]/pickle_consumables/LICENSE @@ -0,0 +1,674 @@ + GNU GENERAL PUBLIC LICENSE + Version 3, 29 June 2007 + + Copyright (C) 2007 Free Software Foundation, Inc. + Everyone is permitted to copy and distribute verbatim copies + of this license document, but changing it is not allowed. + + Preamble + + The GNU General Public License is a free, copyleft license for +software and other kinds of works. + + The licenses for most software and other practical works are designed +to take away your freedom to share and change the works. By contrast, +the GNU General Public License is intended to guarantee your freedom to +share and change all versions of a program--to make sure it remains free +software for all its users. We, the Free Software Foundation, use the +GNU General Public License for most of our software; it applies also to +any other work released this way by its authors. You can apply it to +your programs, too. + + When we speak of free software, we are referring to freedom, not +price. Our General Public Licenses are designed to make sure that you +have the freedom to distribute copies of free software (and charge for +them if you wish), that you receive source code or can get it if you +want it, that you can change the software or use pieces of it in new +free programs, and that you know you can do these things. + + To protect your rights, we need to prevent others from denying you +these rights or asking you to surrender the rights. Therefore, you have +certain responsibilities if you distribute copies of the software, or if +you modify it: responsibilities to respect the freedom of others. + + For example, if you distribute copies of such a program, whether +gratis or for a fee, you must pass on to the recipients the same +freedoms that you received. You must make sure that they, too, receive +or can get the source code. And you must show them these terms so they +know their rights. + + Developers that use the GNU GPL protect your rights with two steps: +(1) assert copyright on the software, and (2) offer you this License +giving you legal permission to copy, distribute and/or modify it. + + For the developers' and authors' protection, the GPL clearly explains +that there is no warranty for this free software. For both users' and +authors' sake, the GPL requires that modified versions be marked as +changed, so that their problems will not be attributed erroneously to +authors of previous versions. + + Some devices are designed to deny users access to install or run +modified versions of the software inside them, although the manufacturer +can do so. This is fundamentally incompatible with the aim of +protecting users' freedom to change the software. The systematic +pattern of such abuse occurs in the area of products for individuals to +use, which is precisely where it is most unacceptable. Therefore, we +have designed this version of the GPL to prohibit the practice for those +products. If such problems arise substantially in other domains, we +stand ready to extend this provision to those domains in future versions +of the GPL, as needed to protect the freedom of users. + + Finally, every program is threatened constantly by software patents. +States should not allow patents to restrict development and use of +software on general-purpose computers, but in those that do, we wish to +avoid the special danger that patents applied to a free program could +make it effectively proprietary. To prevent this, the GPL assures that +patents cannot be used to render the program non-free. + + The precise terms and conditions for copying, distribution and +modification follow. + + TERMS AND CONDITIONS + + 0. Definitions. + + "This License" refers to version 3 of the GNU General Public License. + + "Copyright" also means copyright-like laws that apply to other kinds of +works, such as semiconductor masks. + + "The Program" refers to any copyrightable work licensed under this +License. Each licensee is addressed as "you". "Licensees" and +"recipients" may be individuals or organizations. + + To "modify" a work means to copy from or adapt all or part of the work +in a fashion requiring copyright permission, other than the making of an +exact copy. The resulting work is called a "modified version" of the +earlier work or a work "based on" the earlier work. + + A "covered work" means either the unmodified Program or a work based +on the Program. + + To "propagate" a work means to do anything with it that, without +permission, would make you directly or secondarily liable for +infringement under applicable copyright law, except executing it on a +computer or modifying a private copy. Propagation includes copying, +distribution (with or without modification), making available to the +public, and in some countries other activities as well. + + To "convey" a work means any kind of propagation that enables other +parties to make or receive copies. Mere interaction with a user through +a computer network, with no transfer of a copy, is not conveying. + + An interactive user interface displays "Appropriate Legal Notices" +to the extent that it includes a convenient and prominently visible +feature that (1) displays an appropriate copyright notice, and (2) +tells the user that there is no warranty for the work (except to the +extent that warranties are provided), that licensees may convey the +work under this License, and how to view a copy of this License. If +the interface presents a list of user commands or options, such as a +menu, a prominent item in the list meets this criterion. + + 1. Source Code. + + The "source code" for a work means the preferred form of the work +for making modifications to it. "Object code" means any non-source +form of a work. + + A "Standard Interface" means an interface that either is an official +standard defined by a recognized standards body, or, in the case of +interfaces specified for a particular programming language, one that +is widely used among developers working in that language. + + The "System Libraries" of an executable work include anything, other +than the work as a whole, that (a) is included in the normal form of +packaging a Major Component, but which is not part of that Major +Component, and (b) serves only to enable use of the work with that +Major Component, or to implement a Standard Interface for which an +implementation is available to the public in source code form. A +"Major Component", in this context, means a major essential component +(kernel, window system, and so on) of the specific operating system +(if any) on which the executable work runs, or a compiler used to +produce the work, or an object code interpreter used to run it. + + The "Corresponding Source" for a work in object code form means all +the source code needed to generate, install, and (for an executable +work) run the object code and to modify the work, including scripts to +control those activities. However, it does not include the work's +System Libraries, or general-purpose tools or generally available free +programs which are used unmodified in performing those activities but +which are not part of the work. For example, Corresponding Source +includes interface definition files associated with source files for +the work, and the source code for shared libraries and dynamically +linked subprograms that the work is specifically designed to require, +such as by intimate data communication or control flow between those +subprograms and other parts of the work. + + The Corresponding Source need not include anything that users +can regenerate automatically from other parts of the Corresponding +Source. + + The Corresponding Source for a work in source code form is that +same work. + + 2. Basic Permissions. + + All rights granted under this License are granted for the term of +copyright on the Program, and are irrevocable provided the stated +conditions are met. This License explicitly affirms your unlimited +permission to run the unmodified Program. The output from running a +covered work is covered by this License only if the output, given its +content, constitutes a covered work. This License acknowledges your +rights of fair use or other equivalent, as provided by copyright law. + + You may make, run and propagate covered works that you do not +convey, without conditions so long as your license otherwise remains +in force. You may convey covered works to others for the sole purpose +of having them make modifications exclusively for you, or provide you +with facilities for running those works, provided that you comply with +the terms of this License in conveying all material for which you do +not control copyright. Those thus making or running the covered works +for you must do so exclusively on your behalf, under your direction +and control, on terms that prohibit them from making any copies of +your copyrighted material outside their relationship with you. + + Conveying under any other circumstances is permitted solely under +the conditions stated below. Sublicensing is not allowed; section 10 +makes it unnecessary. + + 3. Protecting Users' Legal Rights From Anti-Circumvention Law. + + No covered work shall be deemed part of an effective technological +measure under any applicable law fulfilling obligations under article +11 of the WIPO copyright treaty adopted on 20 December 1996, or +similar laws prohibiting or restricting circumvention of such +measures. + + When you convey a covered work, you waive any legal power to forbid +circumvention of technological measures to the extent such circumvention +is effected by exercising rights under this License with respect to +the covered work, and you disclaim any intention to limit operation or +modification of the work as a means of enforcing, against the work's +users, your or third parties' legal rights to forbid circumvention of +technological measures. + + 4. Conveying Verbatim Copies. + + You may convey verbatim copies of the Program's source code as you +receive it, in any medium, provided that you conspicuously and +appropriately publish on each copy an appropriate copyright notice; +keep intact all notices stating that this License and any +non-permissive terms added in accord with section 7 apply to the code; +keep intact all notices of the absence of any warranty; and give all +recipients a copy of this License along with the Program. + + You may charge any price or no price for each copy that you convey, +and you may offer support or warranty protection for a fee. + + 5. Conveying Modified Source Versions. + + You may convey a work based on the Program, or the modifications to +produce it from the Program, in the form of source code under the +terms of section 4, provided that you also meet all of these conditions: + + a) The work must carry prominent notices stating that you modified + it, and giving a relevant date. + + b) The work must carry prominent notices stating that it is + released under this License and any conditions added under section + 7. This requirement modifies the requirement in section 4 to + "keep intact all notices". + + c) You must license the entire work, as a whole, under this + License to anyone who comes into possession of a copy. This + License will therefore apply, along with any applicable section 7 + additional terms, to the whole of the work, and all its parts, + regardless of how they are packaged. This License gives no + permission to license the work in any other way, but it does not + invalidate such permission if you have separately received it. + + d) If the work has interactive user interfaces, each must display + Appropriate Legal Notices; however, if the Program has interactive + interfaces that do not display Appropriate Legal Notices, your + work need not make them do so. + + A compilation of a covered work with other separate and independent +works, which are not by their nature extensions of the covered work, +and which are not combined with it such as to form a larger program, +in or on a volume of a storage or distribution medium, is called an +"aggregate" if the compilation and its resulting copyright are not +used to limit the access or legal rights of the compilation's users +beyond what the individual works permit. Inclusion of a covered work +in an aggregate does not cause this License to apply to the other +parts of the aggregate. + + 6. Conveying Non-Source Forms. + + You may convey a covered work in object code form under the terms +of sections 4 and 5, provided that you also convey the +machine-readable Corresponding Source under the terms of this License, +in one of these ways: + + a) Convey the object code in, or embodied in, a physical product + (including a physical distribution medium), accompanied by the + Corresponding Source fixed on a durable physical medium + customarily used for software interchange. + + b) Convey the object code in, or embodied in, a physical product + (including a physical distribution medium), accompanied by a + written offer, valid for at least three years and valid for as + long as you offer spare parts or customer support for that product + model, to give anyone who possesses the object code either (1) a + copy of the Corresponding Source for all the software in the + product that is covered by this License, on a durable physical + medium customarily used for software interchange, for a price no + more than your reasonable cost of physically performing this + conveying of source, or (2) access to copy the + Corresponding Source from a network server at no charge. + + c) Convey individual copies of the object code with a copy of the + written offer to provide the Corresponding Source. This + alternative is allowed only occasionally and noncommercially, and + only if you received the object code with such an offer, in accord + with subsection 6b. + + d) Convey the object code by offering access from a designated + place (gratis or for a charge), and offer equivalent access to the + Corresponding Source in the same way through the same place at no + further charge. You need not require recipients to copy the + Corresponding Source along with the object code. If the place to + copy the object code is a network server, the Corresponding Source + may be on a different server (operated by you or a third party) + that supports equivalent copying facilities, provided you maintain + clear directions next to the object code saying where to find the + Corresponding Source. Regardless of what server hosts the + Corresponding Source, you remain obligated to ensure that it is + available for as long as needed to satisfy these requirements. + + e) Convey the object code using peer-to-peer transmission, provided + you inform other peers where the object code and Corresponding + Source of the work are being offered to the general public at no + charge under subsection 6d. + + A separable portion of the object code, whose source code is excluded +from the Corresponding Source as a System Library, need not be +included in conveying the object code work. + + A "User Product" is either (1) a "consumer product", which means any +tangible personal property which is normally used for personal, family, +or household purposes, or (2) anything designed or sold for incorporation +into a dwelling. In determining whether a product is a consumer product, +doubtful cases shall be resolved in favor of coverage. For a particular +product received by a particular user, "normally used" refers to a +typical or common use of that class of product, regardless of the status +of the particular user or of the way in which the particular user +actually uses, or expects or is expected to use, the product. A product +is a consumer product regardless of whether the product has substantial +commercial, industrial or non-consumer uses, unless such uses represent +the only significant mode of use of the product. + + "Installation Information" for a User Product means any methods, +procedures, authorization keys, or other information required to install +and execute modified versions of a covered work in that User Product from +a modified version of its Corresponding Source. The information must +suffice to ensure that the continued functioning of the modified object +code is in no case prevented or interfered with solely because +modification has been made. + + If you convey an object code work under this section in, or with, or +specifically for use in, a User Product, and the conveying occurs as +part of a transaction in which the right of possession and use of the +User Product is transferred to the recipient in perpetuity or for a +fixed term (regardless of how the transaction is characterized), the +Corresponding Source conveyed under this section must be accompanied +by the Installation Information. But this requirement does not apply +if neither you nor any third party retains the ability to install +modified object code on the User Product (for example, the work has +been installed in ROM). + + The requirement to provide Installation Information does not include a +requirement to continue to provide support service, warranty, or updates +for a work that has been modified or installed by the recipient, or for +the User Product in which it has been modified or installed. Access to a +network may be denied when the modification itself materially and +adversely affects the operation of the network or violates the rules and +protocols for communication across the network. + + Corresponding Source conveyed, and Installation Information provided, +in accord with this section must be in a format that is publicly +documented (and with an implementation available to the public in +source code form), and must require no special password or key for +unpacking, reading or copying. + + 7. Additional Terms. + + "Additional permissions" are terms that supplement the terms of this +License by making exceptions from one or more of its conditions. +Additional permissions that are applicable to the entire Program shall +be treated as though they were included in this License, to the extent +that they are valid under applicable law. If additional permissions +apply only to part of the Program, that part may be used separately +under those permissions, but the entire Program remains governed by +this License without regard to the additional permissions. + + When you convey a copy of a covered work, you may at your option +remove any additional permissions from that copy, or from any part of +it. (Additional permissions may be written to require their own +removal in certain cases when you modify the work.) You may place +additional permissions on material, added by you to a covered work, +for which you have or can give appropriate copyright permission. + + Notwithstanding any other provision of this License, for material you +add to a covered work, you may (if authorized by the copyright holders of +that material) supplement the terms of this License with terms: + + a) Disclaiming warranty or limiting liability differently from the + terms of sections 15 and 16 of this License; or + + b) Requiring preservation of specified reasonable legal notices or + author attributions in that material or in the Appropriate Legal + Notices displayed by works containing it; or + + c) Prohibiting misrepresentation of the origin of that material, or + requiring that modified versions of such material be marked in + reasonable ways as different from the original version; or + + d) Limiting the use for publicity purposes of names of licensors or + authors of the material; or + + e) Declining to grant rights under trademark law for use of some + trade names, trademarks, or service marks; or + + f) Requiring indemnification of licensors and authors of that + material by anyone who conveys the material (or modified versions of + it) with contractual assumptions of liability to the recipient, for + any liability that these contractual assumptions directly impose on + those licensors and authors. + + All other non-permissive additional terms are considered "further +restrictions" within the meaning of section 10. If the Program as you +received it, or any part of it, contains a notice stating that it is +governed by this License along with a term that is a further +restriction, you may remove that term. If a license document contains +a further restriction but permits relicensing or conveying under this +License, you may add to a covered work material governed by the terms +of that license document, provided that the further restriction does +not survive such relicensing or conveying. + + If you add terms to a covered work in accord with this section, you +must place, in the relevant source files, a statement of the +additional terms that apply to those files, or a notice indicating +where to find the applicable terms. + + Additional terms, permissive or non-permissive, may be stated in the +form of a separately written license, or stated as exceptions; +the above requirements apply either way. + + 8. Termination. + + You may not propagate or modify a covered work except as expressly +provided under this License. Any attempt otherwise to propagate or +modify it is void, and will automatically terminate your rights under +this License (including any patent licenses granted under the third +paragraph of section 11). + + However, if you cease all violation of this License, then your +license from a particular copyright holder is reinstated (a) +provisionally, unless and until the copyright holder explicitly and +finally terminates your license, and (b) permanently, if the copyright +holder fails to notify you of the violation by some reasonable means +prior to 60 days after the cessation. + + Moreover, your license from a particular copyright holder is +reinstated permanently if the copyright holder notifies you of the +violation by some reasonable means, this is the first time you have +received notice of violation of this License (for any work) from that +copyright holder, and you cure the violation prior to 30 days after +your receipt of the notice. + + Termination of your rights under this section does not terminate the +licenses of parties who have received copies or rights from you under +this License. If your rights have been terminated and not permanently +reinstated, you do not qualify to receive new licenses for the same +material under section 10. + + 9. Acceptance Not Required for Having Copies. + + You are not required to accept this License in order to receive or +run a copy of the Program. Ancillary propagation of a covered work +occurring solely as a consequence of using peer-to-peer transmission +to receive a copy likewise does not require acceptance. However, +nothing other than this License grants you permission to propagate or +modify any covered work. These actions infringe copyright if you do +not accept this License. Therefore, by modifying or propagating a +covered work, you indicate your acceptance of this License to do so. + + 10. Automatic Licensing of Downstream Recipients. + + Each time you convey a covered work, the recipient automatically +receives a license from the original licensors, to run, modify and +propagate that work, subject to this License. You are not responsible +for enforcing compliance by third parties with this License. + + An "entity transaction" is a transaction transferring control of an +organization, or substantially all assets of one, or subdividing an +organization, or merging organizations. If propagation of a covered +work results from an entity transaction, each party to that +transaction who receives a copy of the work also receives whatever +licenses to the work the party's predecessor in interest had or could +give under the previous paragraph, plus a right to possession of the +Corresponding Source of the work from the predecessor in interest, if +the predecessor has it or can get it with reasonable efforts. + + You may not impose any further restrictions on the exercise of the +rights granted or affirmed under this License. For example, you may +not impose a license fee, royalty, or other charge for exercise of +rights granted under this License, and you may not initiate litigation +(including a cross-claim or counterclaim in a lawsuit) alleging that +any patent claim is infringed by making, using, selling, offering for +sale, or importing the Program or any portion of it. + + 11. Patents. + + A "contributor" is a copyright holder who authorizes use under this +License of the Program or a work on which the Program is based. The +work thus licensed is called the contributor's "contributor version". + + A contributor's "essential patent claims" are all patent claims +owned or controlled by the contributor, whether already acquired or +hereafter acquired, that would be infringed by some manner, permitted +by this License, of making, using, or selling its contributor version, +but do not include claims that would be infringed only as a +consequence of further modification of the contributor version. For +purposes of this definition, "control" includes the right to grant +patent sublicenses in a manner consistent with the requirements of +this License. + + Each contributor grants you a non-exclusive, worldwide, royalty-free +patent license under the contributor's essential patent claims, to +make, use, sell, offer for sale, import and otherwise run, modify and +propagate the contents of its contributor version. + + In the following three paragraphs, a "patent license" is any express +agreement or commitment, however denominated, not to enforce a patent +(such as an express permission to practice a patent or covenant not to +sue for patent infringement). To "grant" such a patent license to a +party means to make such an agreement or commitment not to enforce a +patent against the party. + + If you convey a covered work, knowingly relying on a patent license, +and the Corresponding Source of the work is not available for anyone +to copy, free of charge and under the terms of this License, through a +publicly available network server or other readily accessible means, +then you must either (1) cause the Corresponding Source to be so +available, or (2) arrange to deprive yourself of the benefit of the +patent license for this particular work, or (3) arrange, in a manner +consistent with the requirements of this License, to extend the patent +license to downstream recipients. "Knowingly relying" means you have +actual knowledge that, but for the patent license, your conveying the +covered work in a country, or your recipient's use of the covered work +in a country, would infringe one or more identifiable patents in that +country that you have reason to believe are valid. + + If, pursuant to or in connection with a single transaction or +arrangement, you convey, or propagate by procuring conveyance of, a +covered work, and grant a patent license to some of the parties +receiving the covered work authorizing them to use, propagate, modify +or convey a specific copy of the covered work, then the patent license +you grant is automatically extended to all recipients of the covered +work and works based on it. + + A patent license is "discriminatory" if it does not include within +the scope of its coverage, prohibits the exercise of, or is +conditioned on the non-exercise of one or more of the rights that are +specifically granted under this License. You may not convey a covered +work if you are a party to an arrangement with a third party that is +in the business of distributing software, under which you make payment +to the third party based on the extent of your activity of conveying +the work, and under which the third party grants, to any of the +parties who would receive the covered work from you, a discriminatory +patent license (a) in connection with copies of the covered work +conveyed by you (or copies made from those copies), or (b) primarily +for and in connection with specific products or compilations that +contain the covered work, unless you entered into that arrangement, +or that patent license was granted, prior to 28 March 2007. + + Nothing in this License shall be construed as excluding or limiting +any implied license or other defenses to infringement that may +otherwise be available to you under applicable patent law. + + 12. No Surrender of Others' Freedom. + + If conditions are imposed on you (whether by court order, agreement or +otherwise) that contradict the conditions of this License, they do not +excuse you from the conditions of this License. If you cannot convey a +covered work so as to satisfy simultaneously your obligations under this +License and any other pertinent obligations, then as a consequence you may +not convey it at all. For example, if you agree to terms that obligate you +to collect a royalty for further conveying from those to whom you convey +the Program, the only way you could satisfy both those terms and this +License would be to refrain entirely from conveying the Program. + + 13. Use with the GNU Affero General Public License. + + Notwithstanding any other provision of this License, you have +permission to link or combine any covered work with a work licensed +under version 3 of the GNU Affero General Public License into a single +combined work, and to convey the resulting work. The terms of this +License will continue to apply to the part which is the covered work, +but the special requirements of the GNU Affero General Public License, +section 13, concerning interaction through a network will apply to the +combination as such. + + 14. Revised Versions of this License. + + The Free Software Foundation may publish revised and/or new versions of +the GNU General Public License from time to time. Such new versions will +be similar in spirit to the present version, but may differ in detail to +address new problems or concerns. + + Each version is given a distinguishing version number. If the +Program specifies that a certain numbered version of the GNU General +Public License "or any later version" applies to it, you have the +option of following the terms and conditions either of that numbered +version or of any later version published by the Free Software +Foundation. If the Program does not specify a version number of the +GNU General Public License, you may choose any version ever published +by the Free Software Foundation. + + If the Program specifies that a proxy can decide which future +versions of the GNU General Public License can be used, that proxy's +public statement of acceptance of a version permanently authorizes you +to choose that version for the Program. + + Later license versions may give you additional or different +permissions. However, no additional obligations are imposed on any +author or copyright holder as a result of your choosing to follow a +later version. + + 15. Disclaimer of Warranty. + + THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY +APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT +HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY +OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, +THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR +PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM +IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF +ALL NECESSARY SERVICING, REPAIR OR CORRECTION. + + 16. Limitation of Liability. + + IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING +WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS +THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY +GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE +USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF +DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD +PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), +EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF +SUCH DAMAGES. + + 17. Interpretation of Sections 15 and 16. + + If the disclaimer of warranty and limitation of liability provided +above cannot be given local legal effect according to their terms, +reviewing courts shall apply local law that most closely approximates +an absolute waiver of all civil liability in connection with the +Program, unless a warranty or assumption of liability accompanies a +copy of the Program in return for a fee. + + END OF TERMS AND CONDITIONS + + How to Apply These Terms to Your New Programs + + If you develop a new program, and you want it to be of the greatest +possible use to the public, the best way to achieve this is to make it +free software which everyone can redistribute and change under these terms. + + To do so, attach the following notices to the program. It is safest +to attach them to the start of each source file to most effectively +state the exclusion of warranty; and each file should have at least +the "copyright" line and a pointer to where the full notice is found. + + + Copyright (C) + + This program is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation, either version 3 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program. If not, see . + +Also add information on how to contact you by electronic and paper mail. + + If the program does terminal interaction, make it output a short +notice like this when it starts in an interactive mode: + + Copyright (C) + This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'. + This is free software, and you are welcome to redistribute it + under certain conditions; type `show c' for details. + +The hypothetical commands `show w' and `show c' should show the appropriate +parts of the General Public License. Of course, your program's commands +might be different; for a GUI interface, you would use an "about box". + + You should also get your employer (if you work as a programmer) or school, +if any, to sign a "copyright disclaimer" for the program, if necessary. +For more information on this, and how to apply and follow the GNU GPL, see +. + + The GNU General Public License does not permit incorporating your program +into proprietary programs. If your program is a subroutine library, you +may consider it more useful to permit linking proprietary applications with +the library. If this is what you want to do, use the GNU Lesser General +Public License instead of this License. But first, please read +. diff --git a/resources/[inventory]/pickle_consumables/README.md b/resources/[inventory]/pickle_consumables/README.md new file mode 100644 index 000000000..89d5f1b63 --- /dev/null +++ b/resources/[inventory]/pickle_consumables/README.md @@ -0,0 +1,3 @@ +# pickle_consumables +A fully immersive and first of it's kind consumables system. +![banner](https://github.com/PickleModifications/pickle_consumables/assets/111543470/b3a4714c-c9ea-4291-9bf6-bb86c24ad1e6) diff --git a/resources/[inventory]/pickle_consumables/_INSTALL/Images/beer.png b/resources/[inventory]/pickle_consumables/_INSTALL/Images/beer.png new file mode 100644 index 000000000..4a70c92c0 Binary files /dev/null and b/resources/[inventory]/pickle_consumables/_INSTALL/Images/beer.png differ diff --git a/resources/[inventory]/pickle_consumables/_INSTALL/Images/cigarette.png b/resources/[inventory]/pickle_consumables/_INSTALL/Images/cigarette.png new file mode 100644 index 000000000..f4d0475af Binary files /dev/null and b/resources/[inventory]/pickle_consumables/_INSTALL/Images/cigarette.png differ diff --git a/resources/[inventory]/pickle_consumables/_INSTALL/Images/cigbox.png b/resources/[inventory]/pickle_consumables/_INSTALL/Images/cigbox.png new file mode 100644 index 000000000..9d52f0fc5 Binary files /dev/null and b/resources/[inventory]/pickle_consumables/_INSTALL/Images/cigbox.png differ diff --git a/resources/[inventory]/pickle_consumables/_INSTALL/Images/coffee.png b/resources/[inventory]/pickle_consumables/_INSTALL/Images/coffee.png new file mode 100644 index 000000000..c5dd54600 Binary files /dev/null and b/resources/[inventory]/pickle_consumables/_INSTALL/Images/coffee.png differ diff --git a/resources/[inventory]/pickle_consumables/_INSTALL/Images/crisps.png b/resources/[inventory]/pickle_consumables/_INSTALL/Images/crisps.png new file mode 100644 index 000000000..d19689b7e Binary files /dev/null and b/resources/[inventory]/pickle_consumables/_INSTALL/Images/crisps.png differ diff --git a/resources/[inventory]/pickle_consumables/_INSTALL/Images/egobar.png b/resources/[inventory]/pickle_consumables/_INSTALL/Images/egobar.png new file mode 100644 index 000000000..f45ee022b Binary files /dev/null and b/resources/[inventory]/pickle_consumables/_INSTALL/Images/egobar.png differ diff --git a/resources/[inventory]/pickle_consumables/_INSTALL/Images/gin_shot.png b/resources/[inventory]/pickle_consumables/_INSTALL/Images/gin_shot.png new file mode 100644 index 000000000..7d8624e0f Binary files /dev/null and b/resources/[inventory]/pickle_consumables/_INSTALL/Images/gin_shot.png differ diff --git a/resources/[inventory]/pickle_consumables/_INSTALL/Images/hamburger.png b/resources/[inventory]/pickle_consumables/_INSTALL/Images/hamburger.png new file mode 100644 index 000000000..9174c9c34 Binary files /dev/null and b/resources/[inventory]/pickle_consumables/_INSTALL/Images/hamburger.png differ diff --git a/resources/[inventory]/pickle_consumables/_INSTALL/Images/sandwich.png b/resources/[inventory]/pickle_consumables/_INSTALL/Images/sandwich.png new file mode 100644 index 000000000..2f89747f4 Binary files /dev/null and b/resources/[inventory]/pickle_consumables/_INSTALL/Images/sandwich.png differ diff --git a/resources/[inventory]/pickle_consumables/_INSTALL/Images/soda.png b/resources/[inventory]/pickle_consumables/_INSTALL/Images/soda.png new file mode 100644 index 000000000..4b70c8bc7 Binary files /dev/null and b/resources/[inventory]/pickle_consumables/_INSTALL/Images/soda.png differ diff --git a/resources/[inventory]/pickle_consumables/_INSTALL/Images/tequila_bottle.png b/resources/[inventory]/pickle_consumables/_INSTALL/Images/tequila_bottle.png new file mode 100644 index 000000000..85255b13f Binary files /dev/null and b/resources/[inventory]/pickle_consumables/_INSTALL/Images/tequila_bottle.png differ diff --git a/resources/[inventory]/pickle_consumables/_INSTALL/Images/vodka_bottle.png b/resources/[inventory]/pickle_consumables/_INSTALL/Images/vodka_bottle.png new file mode 100644 index 000000000..8a7da56b7 Binary files /dev/null and b/resources/[inventory]/pickle_consumables/_INSTALL/Images/vodka_bottle.png differ diff --git a/resources/[inventory]/pickle_consumables/_INSTALL/Images/vodka_shot.png b/resources/[inventory]/pickle_consumables/_INSTALL/Images/vodka_shot.png new file mode 100644 index 000000000..7d8624e0f Binary files /dev/null and b/resources/[inventory]/pickle_consumables/_INSTALL/Images/vodka_shot.png differ diff --git a/resources/[inventory]/pickle_consumables/_INSTALL/Images/water.png b/resources/[inventory]/pickle_consumables/_INSTALL/Images/water.png new file mode 100644 index 000000000..e8a158f1d Binary files /dev/null and b/resources/[inventory]/pickle_consumables/_INSTALL/Images/water.png differ diff --git a/resources/[inventory]/pickle_consumables/_INSTALL/Images/whiskey_bottle.png b/resources/[inventory]/pickle_consumables/_INSTALL/Images/whiskey_bottle.png new file mode 100644 index 000000000..b6606afd2 Binary files /dev/null and b/resources/[inventory]/pickle_consumables/_INSTALL/Images/whiskey_bottle.png differ diff --git a/resources/[inventory]/pickle_consumables/_INSTALL/Items/ox_inventory.lua b/resources/[inventory]/pickle_consumables/_INSTALL/Items/ox_inventory.lua new file mode 100644 index 000000000..a170b7765 --- /dev/null +++ b/resources/[inventory]/pickle_consumables/_INSTALL/Items/ox_inventory.lua @@ -0,0 +1,90 @@ +["cigarette"] = { + label = 'Cigarette', + weight = 1, + stack = true, + description = "" +}, +["cigbox"] = { + label = 'Cigarette Box', + weight = 1, + stack = true, + description = "" +}, +["hamburger"] = { + label = 'Hamburger', + weight = 1, + stack = true, + description = "" +}, +["water"] = { + label = 'Water', + weight = 1, + stack = true, + description = "" +}, +["beer"] = { + label = 'Beer', + weight = 1, + stack = true, + description = "" +}, +["soda"] = { + label = 'Soda', + weight = 1, + stack = true, + description = "" +}, +["coffee"] = { + label = 'Coffee', + weight = 1, + stack = true, + description = "" +}, +["egobar"] = { + label = 'Egobar', + weight = 1, + stack = true, + description = "" +}, +["sandwich"] = { + label = 'Sandwich', + weight = 1, + stack = true, + description = "" +}, +["crisps"] = { + label = 'Crisps', + weight = 1, + stack = true, + description = "" +}, +["gin_shot"] = { + label = 'Gin Shot', + weight = 1, + stack = true, + description = "" +}, +["vodka_shot"] = { + label = 'Vodka Shot', + weight = 1, + stack = true, + description = "" +}, +["whiskey_bottle"] = { + label = 'Whiskey Bottle', + weight = 1, + stack = true, + description = "" +}, +["tequila_bottle"] = { + label = 'Tequila Bottle', + weight = 1, + stack = true, + description = "" +}, +["vodka_bottle"] = { + label = 'Vodka Bottle', + weight = 1, + stack = true, + description = "" +}, \ No newline at end of file diff --git a/resources/[inventory]/pickle_consumables/_INSTALL/Items/qbcore.lua b/resources/[inventory]/pickle_consumables/_INSTALL/Items/qbcore.lua new file mode 100644 index 000000000..dc397a1bf --- /dev/null +++ b/resources/[inventory]/pickle_consumables/_INSTALL/Items/qbcore.lua @@ -0,0 +1,180 @@ +["cigarette"] = { + ['name'] = 'cigarette', + ['label'] = 'Cigarette', + ['weight'] = 1000, + ['type'] = 'item', + ['image'] = 'cigarette.png', + ['unique'] = false, + ['useable'] = true, + ['shouldClose'] = true, + ['combinable'] = nil, + ['description'] = "" +}, +["cigbox"] = { + ['name'] = 'cigbox', + ['label'] = 'Cigarette Box', + ['weight'] = 1000, + ['type'] = 'item', + ['image'] = 'cigbox.png', + ['unique'] = false, + ['useable'] = true, + ['shouldClose'] = true, + ['combinable'] = nil, + ['description'] = "" +}, +["hamburger"] = { + ['name'] = 'hamburger', + ['label'] = 'Hamburger', + ['weight'] = 1000, + ['type'] = 'item', + ['image'] = 'hamburger.png', + ['unique'] = false, + ['useable'] = true, + ['shouldClose'] = true, + ['combinable'] = nil, + ['description'] = "" +}, +["water"] = { + ['name'] = 'water', + ['label'] = 'Water', + ['weight'] = 1000, + ['type'] = 'item', + ['image'] = 'water.png', + ['unique'] = false, + ['useable'] = true, + ['shouldClose'] = true, + ['combinable'] = nil, + ['description'] = "" +}, +["beer"] = { + ['name'] = 'beer', + ['label'] = 'Beer', + ['weight'] = 1000, + ['type'] = 'item', + ['image'] = 'beer.png', + ['unique'] = false, + ['useable'] = true, + ['shouldClose'] = true, + ['combinable'] = nil, + ['description'] = "" +}, +["soda"] = { + ['name'] = 'soda', + ['label'] = 'Soda', + ['weight'] = 1000, + ['type'] = 'item', + ['image'] = 'soda.png', + ['unique'] = false, + ['useable'] = true, + ['shouldClose'] = true, + ['combinable'] = nil, + ['description'] = "" +}, +["coffee"] = { + ['name'] = 'coffee', + ['label'] = 'Coffee', + ['weight'] = 1000, + ['type'] = 'item', + ['image'] = 'coffee.png', + ['unique'] = false, + ['useable'] = true, + ['shouldClose'] = true, + ['combinable'] = nil, + ['description'] = "" +}, +["egobar"] = { + ['name'] = 'egobar', + ['label'] = 'Egobar', + ['weight'] = 1000, + ['type'] = 'item', + ['image'] = 'egobar.png', + ['unique'] = false, + ['useable'] = true, + ['shouldClose'] = true, + ['combinable'] = nil, + ['description'] = "" +}, +["sandwich"] = { + ['name'] = 'sandwich', + ['label'] = 'Sandwich', + ['weight'] = 1000, + ['type'] = 'item', + ['image'] = 'sandwich.png', + ['unique'] = false, + ['useable'] = true, + ['shouldClose'] = true, + ['combinable'] = nil, + ['description'] = "" +}, +["crisps"] = { + ['name'] = 'crisps', + ['label'] = 'Crisps', + ['weight'] = 1000, + ['type'] = 'item', + ['image'] = 'crisps.png', + ['unique'] = false, + ['useable'] = true, + ['shouldClose'] = true, + ['combinable'] = nil, + ['description'] = "" +}, +["gin_shot"] = { + ['name'] = 'gin_shot', + ['label'] = 'Gin Shot', + ['weight'] = 1000, + ['type'] = 'item', + ['image'] = 'gin_shot.png', + ['unique'] = false, + ['useable'] = true, + ['shouldClose'] = true, + ['combinable'] = nil, + ['description'] = "" +}, +["vodka_shot"] = { + ['name'] = 'vodka_shot', + ['label'] = 'Vodka Shot', + ['weight'] = 1000, + ['type'] = 'item', + ['image'] = 'vodka_shot.png', + ['unique'] = false, + ['useable'] = true, + ['shouldClose'] = true, + ['combinable'] = nil, + ['description'] = "" +}, +["whiskey_bottle"] = { + ['name'] = 'whiskey_bottle', + ['label'] = 'Whiskey Bottle', + ['weight'] = 1000, + ['type'] = 'item', + ['image'] = 'whiskey_bottle.png', + ['unique'] = false, + ['useable'] = true, + ['shouldClose'] = true, + ['combinable'] = nil, + ['description'] = "" +}, +["tequila_bottle"] = { + ['name'] = 'tequila_bottle', + ['label'] = 'Tequila Bottle', + ['weight'] = 1000, + ['type'] = 'item', + ['image'] = 'tequila_bottle.png', + ['unique'] = false, + ['useable'] = true, + ['shouldClose'] = true, + ['combinable'] = nil, + ['description'] = "" +}, +["vodka_bottle"] = { + ['name'] = 'vodka_bottle', + ['label'] = 'Vodka Bottle', + ['weight'] = 1000, + ['type'] = 'item', + ['image'] = 'vodka_bottle.png', + ['unique'] = false, + ['useable'] = true, + ['shouldClose'] = true, + ['combinable'] = nil, + ['description'] = "" +}, \ No newline at end of file diff --git a/resources/[inventory]/pickle_consumables/_INSTALL/Items/qs-inventory.lua b/resources/[inventory]/pickle_consumables/_INSTALL/Items/qs-inventory.lua new file mode 100644 index 000000000..dc397a1bf --- /dev/null +++ b/resources/[inventory]/pickle_consumables/_INSTALL/Items/qs-inventory.lua @@ -0,0 +1,180 @@ +["cigarette"] = { + ['name'] = 'cigarette', + ['label'] = 'Cigarette', + ['weight'] = 1000, + ['type'] = 'item', + ['image'] = 'cigarette.png', + ['unique'] = false, + ['useable'] = true, + ['shouldClose'] = true, + ['combinable'] = nil, + ['description'] = "" +}, +["cigbox"] = { + ['name'] = 'cigbox', + ['label'] = 'Cigarette Box', + ['weight'] = 1000, + ['type'] = 'item', + ['image'] = 'cigbox.png', + ['unique'] = false, + ['useable'] = true, + ['shouldClose'] = true, + ['combinable'] = nil, + ['description'] = "" +}, +["hamburger"] = { + ['name'] = 'hamburger', + ['label'] = 'Hamburger', + ['weight'] = 1000, + ['type'] = 'item', + ['image'] = 'hamburger.png', + ['unique'] = false, + ['useable'] = true, + ['shouldClose'] = true, + ['combinable'] = nil, + ['description'] = "" +}, +["water"] = { + ['name'] = 'water', + ['label'] = 'Water', + ['weight'] = 1000, + ['type'] = 'item', + ['image'] = 'water.png', + ['unique'] = false, + ['useable'] = true, + ['shouldClose'] = true, + ['combinable'] = nil, + ['description'] = "" +}, +["beer"] = { + ['name'] = 'beer', + ['label'] = 'Beer', + ['weight'] = 1000, + ['type'] = 'item', + ['image'] = 'beer.png', + ['unique'] = false, + ['useable'] = true, + ['shouldClose'] = true, + ['combinable'] = nil, + ['description'] = "" +}, +["soda"] = { + ['name'] = 'soda', + ['label'] = 'Soda', + ['weight'] = 1000, + ['type'] = 'item', + ['image'] = 'soda.png', + ['unique'] = false, + ['useable'] = true, + ['shouldClose'] = true, + ['combinable'] = nil, + ['description'] = "" +}, +["coffee"] = { + ['name'] = 'coffee', + ['label'] = 'Coffee', + ['weight'] = 1000, + ['type'] = 'item', + ['image'] = 'coffee.png', + ['unique'] = false, + ['useable'] = true, + ['shouldClose'] = true, + ['combinable'] = nil, + ['description'] = "" +}, +["egobar"] = { + ['name'] = 'egobar', + ['label'] = 'Egobar', + ['weight'] = 1000, + ['type'] = 'item', + ['image'] = 'egobar.png', + ['unique'] = false, + ['useable'] = true, + ['shouldClose'] = true, + ['combinable'] = nil, + ['description'] = "" +}, +["sandwich"] = { + ['name'] = 'sandwich', + ['label'] = 'Sandwich', + ['weight'] = 1000, + ['type'] = 'item', + ['image'] = 'sandwich.png', + ['unique'] = false, + ['useable'] = true, + ['shouldClose'] = true, + ['combinable'] = nil, + ['description'] = "" +}, +["crisps"] = { + ['name'] = 'crisps', + ['label'] = 'Crisps', + ['weight'] = 1000, + ['type'] = 'item', + ['image'] = 'crisps.png', + ['unique'] = false, + ['useable'] = true, + ['shouldClose'] = true, + ['combinable'] = nil, + ['description'] = "" +}, +["gin_shot"] = { + ['name'] = 'gin_shot', + ['label'] = 'Gin Shot', + ['weight'] = 1000, + ['type'] = 'item', + ['image'] = 'gin_shot.png', + ['unique'] = false, + ['useable'] = true, + ['shouldClose'] = true, + ['combinable'] = nil, + ['description'] = "" +}, +["vodka_shot"] = { + ['name'] = 'vodka_shot', + ['label'] = 'Vodka Shot', + ['weight'] = 1000, + ['type'] = 'item', + ['image'] = 'vodka_shot.png', + ['unique'] = false, + ['useable'] = true, + ['shouldClose'] = true, + ['combinable'] = nil, + ['description'] = "" +}, +["whiskey_bottle"] = { + ['name'] = 'whiskey_bottle', + ['label'] = 'Whiskey Bottle', + ['weight'] = 1000, + ['type'] = 'item', + ['image'] = 'whiskey_bottle.png', + ['unique'] = false, + ['useable'] = true, + ['shouldClose'] = true, + ['combinable'] = nil, + ['description'] = "" +}, +["tequila_bottle"] = { + ['name'] = 'tequila_bottle', + ['label'] = 'Tequila Bottle', + ['weight'] = 1000, + ['type'] = 'item', + ['image'] = 'tequila_bottle.png', + ['unique'] = false, + ['useable'] = true, + ['shouldClose'] = true, + ['combinable'] = nil, + ['description'] = "" +}, +["vodka_bottle"] = { + ['name'] = 'vodka_bottle', + ['label'] = 'Vodka Bottle', + ['weight'] = 1000, + ['type'] = 'item', + ['image'] = 'vodka_bottle.png', + ['unique'] = false, + ['useable'] = true, + ['shouldClose'] = true, + ['combinable'] = nil, + ['description'] = "" +}, \ No newline at end of file diff --git a/resources/[inventory]/pickle_consumables/bridge/custom/client.lua b/resources/[inventory]/pickle_consumables/bridge/custom/client.lua new file mode 100644 index 000000000..89c1cd1ff --- /dev/null +++ b/resources/[inventory]/pickle_consumables/bridge/custom/client.lua @@ -0,0 +1,4 @@ +if GetResourceState('es_extended') == 'started' then return end +if GetResourceState('qb-core') == 'started' then return end + +print("You are not using a supported framework, it will be required to make edits to the bridge files.") \ No newline at end of file diff --git a/resources/[inventory]/pickle_consumables/bridge/custom/server.lua b/resources/[inventory]/pickle_consumables/bridge/custom/server.lua new file mode 100644 index 000000000..89c1cd1ff --- /dev/null +++ b/resources/[inventory]/pickle_consumables/bridge/custom/server.lua @@ -0,0 +1,4 @@ +if GetResourceState('es_extended') == 'started' then return end +if GetResourceState('qb-core') == 'started' then return end + +print("You are not using a supported framework, it will be required to make edits to the bridge files.") \ No newline at end of file diff --git a/resources/[inventory]/pickle_consumables/bridge/esx/client.lua b/resources/[inventory]/pickle_consumables/bridge/esx/client.lua new file mode 100644 index 000000000..9957fe9a7 --- /dev/null +++ b/resources/[inventory]/pickle_consumables/bridge/esx/client.lua @@ -0,0 +1,45 @@ +if GetResourceState('es_extended') ~= 'started' then return end + +ESX = exports.es_extended:getSharedObject() + +function ShowNotification(text) + ESX.ShowNotification(text) +end + +function GetPlayersInArea(coords, radius) + local coords = coords or GetEntityCoords(PlayerPedId()) + local radius = radius or 3.0 + local list = ESX.Game.GetPlayersInArea(coords, radius) + local players = {} + for _, player in pairs(list) do + if player ~= PlayerId() then + players[#players + 1] = player + end + end + return players +end + +RegisterNetEvent(GetCurrentResourceName()..":showNotification", function(text) + ShowNotification(text) +end) + +RegisterNetEvent('esx:playerLoaded') +AddEventHandler('esx:playerLoaded',function(xPlayer, isNew, skin) + TriggerServerEvent("pickle_consumables:initializePlayer") +end) + +RegisterNetEvent("pickle_consumables:executeStatus", function(status, value) + if value >= 0 then + TriggerEvent('esx_status:add', status, value) + else + TriggerEvent('esx_status:remove', status, value) + end +end) + +-- Inventory Fallback + +CreateThread(function() + Wait(100) + if InitializeInventory then return InitializeInventory() end -- Already loaded through inventory folder. + print("The only supported inventory for ESX is ox_inventory and qs-inventory, if you would like to port to a different inventory, please use the example shown in the inventory folder.") +end) \ No newline at end of file diff --git a/resources/[inventory]/pickle_consumables/bridge/esx/server.lua b/resources/[inventory]/pickle_consumables/bridge/esx/server.lua new file mode 100644 index 000000000..df9070f63 --- /dev/null +++ b/resources/[inventory]/pickle_consumables/bridge/esx/server.lua @@ -0,0 +1,76 @@ +if GetResourceState('es_extended') ~= 'started' then return end + +RegisterUsableItem = nil +Framework = "ESX" +ESX = exports.es_extended:getSharedObject() + +function ShowNotification(target, text) + TriggerClientEvent(GetCurrentResourceName()..":showNotification", target, text) +end + +function GetIdentifier(source) + local xPlayer = ESX.GetPlayerFromId(source) + return xPlayer.identifier +end + +function SetPlayerMetadata(source, key, data) + -- No player metadata in ESX. +end + +function AddMoney(source, count) + local xPlayer = ESX.GetPlayerFromId(source) + xPlayer.addMoney(count) +end + +function RemoveMoney(source, count) + local xPlayer = ESX.GetPlayerFromId(source) + xPlayer.removeMoney(count) +end + +function GetMoney(source) + local xPlayer = ESX.GetPlayerFromId(source) + return xPlayer.getMoney() +end + +function CheckPermission(source, permission) + local xPlayer = ESX.GetPlayerFromId(source) + local name = xPlayer.job.name + local rank = xPlayer.job.grade + local group = xPlayer.getGroup() + if permission.jobs[name] and permission.jobs[name] <= rank then + return true + end + for i=1, #permission.groups do + if group == permission.groups[i] then + return true + end + end +end + +-- Status + +function ExecuteStatus(source, statuses) + local xPlayer = ESX.GetPlayerFromId(source) + for k,v in pairs(statuses) do + if Config.MaxValues[k] then + local value = (0.01 * v) * Config.MaxValues[k] + TriggerClientEvent("pickle_consumables:executeStatus", source, k, value) + else + Config.ExternalStatus(source, k, v) + end + end +end +-- Inventory Fallback + +CreateThread(function() + Wait(100) + if not UsableItem then + RegisterUsableItem = function(name, cb) + ESX.RegisterUsableItem(name, function(source, item, data) + if not data then data = {} end + cb(source, data.metadata, data.slot) + end) + end + end + if InitializeInventory then return InitializeInventory() end -- Already loaded through inventory folder. +end) diff --git a/resources/[inventory]/pickle_consumables/bridge/esx/shared.lua b/resources/[inventory]/pickle_consumables/bridge/esx/shared.lua new file mode 100644 index 000000000..fb7994d2d --- /dev/null +++ b/resources/[inventory]/pickle_consumables/bridge/esx/shared.lua @@ -0,0 +1,7 @@ +local DefaultMax = 1000000 + +for k,v in pairs(Config.MaxValues) do + if v < 1 then + Config.MaxValues[k] = DefaultMax + end +end \ No newline at end of file diff --git a/resources/[inventory]/pickle_consumables/bridge/inventory/ox_inventory/client.lua b/resources/[inventory]/pickle_consumables/bridge/inventory/ox_inventory/client.lua new file mode 100644 index 000000000..593cf0308 --- /dev/null +++ b/resources/[inventory]/pickle_consumables/bridge/inventory/ox_inventory/client.lua @@ -0,0 +1,15 @@ +if GetResourceState('ox_inventory') ~= 'started' then return end + +Inventory = {} + +Inventory.Items = {} + +Inventory.Ready = false + +RegisterNetEvent("pickle_consumables:setupInventory", function(data) + Inventory.Items = data.items + Inventory.Ready = true +end) + +function InitializeInventory() +end \ No newline at end of file diff --git a/resources/[inventory]/pickle_consumables/bridge/inventory/ox_inventory/server.lua b/resources/[inventory]/pickle_consumables/bridge/inventory/ox_inventory/server.lua new file mode 100644 index 000000000..02999df5b --- /dev/null +++ b/resources/[inventory]/pickle_consumables/bridge/inventory/ox_inventory/server.lua @@ -0,0 +1,55 @@ +if GetResourceState('ox_inventory') ~= 'started' then return end + +Inventory = {} + +Inventory.Items = {} + +Inventory.Ready = false + +Inventory.CanCarryItem = function(source, name, count) + return exports.ox_inventory:CanCarryItem(source, name, count) +end + +Inventory.GetInventory = function(source) + local items = {} + local data = exports.ox_inventory:GetInventoryItems(source) + for slot, item in pairs(data) do + items[#items + 1] = { + name = item.name, + label = item.label, + count = item.count, + weight = item.weight, + slot = item.slot, + metadata = item.metadata + } + end + return items +end + +Inventory.AddItem = function(source, name, count, metadata, slot) -- Metadata is not required. + exports.ox_inventory:AddItem(source, name, count, metadata, slot) +end + +Inventory.RemoveItem = function(source, name, count, slot) + exports.ox_inventory:RemoveItem(source, name, count, nil, slot) +end + +Inventory.SetMetadata = function(source, slot, metadata) + exports.ox_inventory:SetMetadata(source, slot, metadata) +end + +Inventory.GetItemCount = function(source, name) + return exports.ox_inventory:Search(source, "count", name) or 0 +end + +function InitializeInventory() + lib.callback.register("pickle_consumables:getInventory", function(source) + return Inventory.GetInventory(source) + end) + + for item, data in pairs(exports.ox_inventory:Items()) do + Inventory.Items[item] = {label = data.label} + end + + Inventory.Ready = true +end \ No newline at end of file diff --git a/resources/[inventory]/pickle_consumables/bridge/inventory/qs-inventory/client.lua b/resources/[inventory]/pickle_consumables/bridge/inventory/qs-inventory/client.lua new file mode 100644 index 000000000..43cb143ac --- /dev/null +++ b/resources/[inventory]/pickle_consumables/bridge/inventory/qs-inventory/client.lua @@ -0,0 +1,15 @@ +if GetResourceState('tgiann-inventory') ~= 'started' then return end + +Inventory = {} + +Inventory.Items = {} + +Inventory.Ready = false + +RegisterNetEvent("pickle_consumables:setupInventory", function(data) + Inventory.Items = data.items + Inventory.Ready = true +end) + +function InitializeInventory() +end \ No newline at end of file diff --git a/resources/[inventory]/pickle_consumables/bridge/inventory/qs-inventory/server.lua b/resources/[inventory]/pickle_consumables/bridge/inventory/qs-inventory/server.lua new file mode 100644 index 000000000..1b072efbb --- /dev/null +++ b/resources/[inventory]/pickle_consumables/bridge/inventory/qs-inventory/server.lua @@ -0,0 +1,74 @@ +if GetResourceState('qs-inventory') ~= 'started' then return end + +Inventory = {} + +Inventory.Items = {} + +Inventory.Ready = false + +Inventory.CanCarryItem = function(source, name, count) + return exports['qs-inventory']:CanCarryItem(source, name, count) +end + +Inventory.GetInventory = function(source) + local items = {} + local data = exports['qs-inventory']:GetInventory(source) + for slot, item in pairs(data) do + items[#items + 1] = { + name = item.name, + label = item.label, + count = item.amount, + weight = item.weight, + slot = item.slot, + metadata = item.info + } + end + return items +end + +Inventory.AddItem = function(source, name, count, metadata, slot) -- Metadata is not required. + exports['qs-inventory']:AddItem(source, name, count, slot, metadata) +end + +Inventory.RemoveItem = function(source, name, count, slot) + exports['qs-inventory']:RemoveItem(source, name, count, slot) +end + +Inventory.SetMetadata = function(source, slot, metadata) + exports['qs-inventory']:SetItemMetadata(source, slot, metadata) +end + +Inventory.GetItemCount = function(source, name) + return exports['qs-inventory']:GetItemTotalAmount(source, name) or 0 +end + +function InitializeInventory() + lib.callback.register("pickle_consumables:getInventory", function(source) + return Inventory.GetInventory(source) + end) + + for item, data in pairs(exports['qs-inventory']:GetItemList()) do + Inventory.Items[item] = {label = data.label} + end + + Inventory.Ready = true +end + +if Framework == "ESX" then + function UsableItem(name, cb) + ESX.RegisterUsableItem(name, function(source, item, data) + cb(source, data.metadata, data.slot) + end) + end +elseif Framework == "QB" or Framework == "QBOX" then + function UsableItem(name, cb) + QBCore.Functions.CreateUseableItem(name, function(source, data) + local item = data + if item.info then + item.metadata = data.info + item.info = nil + end + cb(source, item.metadata, item.slot) + end) + end +end \ No newline at end of file diff --git a/resources/[inventory]/pickle_consumables/bridge/qb/client.lua b/resources/[inventory]/pickle_consumables/bridge/qb/client.lua new file mode 100644 index 000000000..7e37ae4bb --- /dev/null +++ b/resources/[inventory]/pickle_consumables/bridge/qb/client.lua @@ -0,0 +1,47 @@ +if GetResourceState('qb-core') ~= 'started' then return end + +QBCore = exports['qb-core']:GetCoreObject() + +function ShowNotification(text) + QBCore.Functions.Notify(text) +end + +function GetPlayersInArea(coords, radius) + local coords = coords or GetEntityCoords(PlayerPedId()) + local radius = radius or 3.0 + local list = QBCore.Functions.GetPlayersFromCoords(coords, radius) + local players = {} + for _, player in pairs(list) do + if player ~= PlayerId() then + players[#players + 1] = player + end + end + return players +end + +RegisterNetEvent(GetCurrentResourceName()..":showNotification", function(text) + ShowNotification(text) +end) + +RegisterNetEvent('QBCore:Client:OnPlayerLoaded', function() + TriggerServerEvent("pickle_consumables:initializePlayer") +end) + +-- Inventory Fallback + +CreateThread(function() + Wait(100) + + if InitializeInventory then return InitializeInventory() end -- Already loaded through inventory folder. + + Inventory = {} + + Inventory.Items = {} + + Inventory.Ready = false + + RegisterNetEvent("pickle_consumables:setupInventory", function(data) + Inventory.Items = data.items + Inventory.Ready = true + end) +end) diff --git a/resources/[inventory]/pickle_consumables/bridge/qb/server.lua b/resources/[inventory]/pickle_consumables/bridge/qb/server.lua new file mode 100644 index 000000000..dc261de98 --- /dev/null +++ b/resources/[inventory]/pickle_consumables/bridge/qb/server.lua @@ -0,0 +1,149 @@ +if GetResourceState('qb-core') ~= 'started' then return end + +Framework = "QB" +QBCore = exports['qb-core']:GetCoreObject() + +function ShowNotification(target, text) + TriggerClientEvent(GetCurrentResourceName()..":showNotification", target, text) +end + +function GetIdentifier(source) + local xPlayer = QBCore.Functions.GetPlayer(source).PlayerData + return xPlayer.citizenid +end + +function SetPlayerMetadata(source, key, data) + QBCore.Functions.GetPlayer(source).Functions.SetMetaData(key, data) +end + +function AddMoney(source, count) + local xPlayer = QBCore.Functions.GetPlayer(source) + xPlayer.Functions.AddMoney('cash',count) +end + +function RemoveMoney(source, count) + local xPlayer = QBCore.Functions.GetPlayer(source) + xPlayer.Functions.RemoveMoney('cash',count) +end + +function GetMoney(source) + local xPlayer = QBCore.Functions.GetPlayer(source) + return xPlayer.PlayerData.money.cash +end + +function CheckPermission(source, permission) + local xPlayer = QBCore.Functions.GetPlayer(source).PlayerData + local name = xPlayer.job.name + local rank = xPlayer.job.grade.level + if permission.jobs[name] and permission.jobs[name] <= rank then + return true + end + for i=1, #permission.groups do + if QBCore.Functions.HasPermission(source, permission.groups[i]) then + return true + end + end +end + +-- Status + +function ExecuteStatus(source, statuses) + local xPlayer = QBCore.Functions.GetPlayer(source) + for k,v in pairs(statuses) do + if Config.MaxValues[k] then + local value = (0.01 * v) * Config.MaxValues[k] + if xPlayer.PlayerData.metadata[k] then + xPlayer.PlayerData.metadata[k] = ((xPlayer.PlayerData.metadata[k] + value < 0) and 0 or (xPlayer.PlayerData.metadata[k] + value)) + else + xPlayer.PlayerData.metadata[k] = (value > 0 and value or 0) + end + xPlayer.Functions.SetMetaData(k, xPlayer.PlayerData.metadata[k]) + TriggerClientEvent('hud:client:UpdateNeeds', source, xPlayer.PlayerData.metadata.hunger, xPlayer.PlayerData.metadata.thirst) + else + Config.ExternalStatus(source, k, v) + end + end +end + +-- Inventory Fallback + +CreateThread(function() + Wait(100) + + if not UsableItem then + function RegisterUsableItem(name, cb) + QBCore.Functions.CreateUseableItem(name, function(source, data) + local item = data + if item.info then + item.metadata = data.info + item.info = nil + end + cb(source, item.metadata, item.slot) + end) + end + end + + if InitializeInventory then return InitializeInventory() end -- Already loaded through inventory folder. + + Inventory = {} + + Inventory.Items = {} + + Inventory.Ready = false + + Inventory.CanCarryItem = function(source, name, count) + local slots = 40 -- Change this if higher / lower. + local items = Inventory.GetInventory(source) + return (#items + count < slots) + end + + Inventory.GetInventory = function(source) + local xPlayer = QBCore.Functions.GetPlayer(source) + local items = {} + local data = xPlayer.PlayerData.items + for slot, item in pairs(data) do + items[#items + 1] = { + name = item.name, + label = item.label, + count = item.amount, + weight = item.weight, + slot = item.slot, + metadata = item.info + } + end + return items + end + + Inventory.AddItem = function(source, name, count, metadata, slot) -- Metadata is not required. + local xPlayer = QBCore.Functions.GetPlayer(source) + xPlayer.Functions.AddItem(name, count, slot, metadata) + end + + Inventory.RemoveItem = function(source, name, count, slot) + local xPlayer = QBCore.Functions.GetPlayer(source) + xPlayer.Functions.RemoveItem(name, count, slot) + end + + Inventory.SetMetadata = function(source, slot, metadata) + local xPlayer = QBCore.Functions.GetPlayer(source) + local Inventory = xPlayer.PlayerData.items + Inventory[slot].info = metadata + xPlayer.Functions.SetInventory(Inventory, true) + end + + Inventory.GetItemCount = function(source, name) + local xPlayer = QBCore.Functions.GetPlayer(source) + local item = xPlayer.Functions.GetItemByName(name) + return item and item.amount or 0 + end + + lib.callback.register("pickle_consumables:getInventory", function(source) + return Inventory.GetInventory(source) + end) + + for item, data in pairs(QBCore.Shared.Items) do + Inventory.Items[item] = {label = data.label} + end + + Inventory.Ready = true +end) \ No newline at end of file diff --git a/resources/[inventory]/pickle_consumables/bridge/qb/shared.lua b/resources/[inventory]/pickle_consumables/bridge/qb/shared.lua new file mode 100644 index 000000000..8be1f1444 --- /dev/null +++ b/resources/[inventory]/pickle_consumables/bridge/qb/shared.lua @@ -0,0 +1,7 @@ +local DefaultMax = 100 + +for k,v in pairs(Config.MaxValues) do + if v < 1 then + Config.MaxValues[k] = DefaultMax + end +end \ No newline at end of file diff --git a/resources/[inventory]/pickle_consumables/bridge/target/ox_target/client.lua b/resources/[inventory]/pickle_consumables/bridge/target/ox_target/client.lua new file mode 100644 index 000000000..985a738b9 --- /dev/null +++ b/resources/[inventory]/pickle_consumables/bridge/target/ox_target/client.lua @@ -0,0 +1,26 @@ +if GetResourceState('ox_target') ~= 'started' or not Config.UseTarget then return end + +function AddTargetModel(models, radius, options) + local optionsNames = {} + for i=1, #options do + optionsNames[i] = options[i].name + end + RemoveTargetModel(models, optionsNames) + exports.ox_target:addModel(models, options) +end + +function RemoveTargetModel(models, optionsNames) + exports.ox_target:removeModel(models, optionsNames) +end + +function AddTargetZone(coords, radius, options) + return exports.ox_target:addSphereZone({ + coords = coords, + radius = radius, + options = options + }) +end + +function RemoveTargetZone(index) + exports.ox_target:removeZone(index) +end \ No newline at end of file diff --git a/resources/[inventory]/pickle_consumables/bridge/target/qb-target/client.lua b/resources/[inventory]/pickle_consumables/bridge/target/qb-target/client.lua new file mode 100644 index 000000000..f6611443f --- /dev/null +++ b/resources/[inventory]/pickle_consumables/bridge/target/qb-target/client.lua @@ -0,0 +1,49 @@ +if GetResourceState('ox_target') == 'started' or GetResourceState('qb-target') ~= 'started' or not Config.UseTarget then return end + +local Zones = {} + +function AddTargetModel(models, radius, options) + local optionsNames = {} + for i=1, #options do + optionsNames[i] = options[i].name + if options[i].onSelect then + local cb = options[i].onSelect + options[i].action = function(entity) + cb({entity = entity}) + end + options[i].onSelect = nil + end + end + RemoveTargetModel(models, optionsNames) + exports['qb-target']:AddTargetModel(models, {options = options, distance = 2.5}) +end + +function RemoveTargetModel(models, optionsNames) + exports['qb-target']:RemoveTargetModel(models, optionsNames) +end + +function AddTargetZone(coords, radius, options) + local index + repeat + index = "lottery_coord_" .. math.random(1, 999999999) + until not Zones[index] + for i=1, #options do + if options[i].onSelect then + local cb = options[i].onSelect + options[i].action = function(entity) + cb({entity = entity}) + end + options[i].onSelect = nil + end + end + exports['qb-target']:AddCircleZone(index, coords, radius, {name = index}, { + options = options + }) + return index +end + +function RemoveTargetZone(index) + if not index then return end + Zones[index] = nil + exports['qb-target']:RemoveZone(index) +end \ No newline at end of file diff --git a/resources/[inventory]/pickle_consumables/bridge/target/qtarget/client.lua b/resources/[inventory]/pickle_consumables/bridge/target/qtarget/client.lua new file mode 100644 index 000000000..4f6e70181 --- /dev/null +++ b/resources/[inventory]/pickle_consumables/bridge/target/qtarget/client.lua @@ -0,0 +1,37 @@ +if GetResourceState('ox_target') == 'started' or GetResourceState('qtarget') ~= 'started' or not Config.UseTarget then return end + +local Zones = {} + +function AddTargetModel(models, radius, options) + local optionsNames = {} + for i=1, #options do + optionsNames[i] = options[i].name + end + RemoveTargetModel(models, optionsNames) + exports['qtarget']:AddTargetModel(models, {options = options, distance = 2.5}) +end + +function RemoveTargetModel(models, optionsNames) + exports['qtarget']:RemoveTargetModel(models, optionsNames) +end + +function AddTargetZone(coords, radius, options) + local index + repeat + index = "lottery_coord_" .. math.random(1, 999999999) + until not Zones[index] + exports['qtarget']:AddBoxZone(index, coords, radius, radius, { + name = index, + heading = 0.0, + minZ = coords.z, + maxZ = coords.z + radius, + }, { + options = options, + }) + return index +end + +function RemoveTargetZone(index) + Zones[index] = nil + exports['qtarget']:RemoveZone(index) +end \ No newline at end of file diff --git a/resources/[inventory]/pickle_consumables/config.lua b/resources/[inventory]/pickle_consumables/config.lua new file mode 100644 index 000000000..b0ac3b00b --- /dev/null +++ b/resources/[inventory]/pickle_consumables/config.lua @@ -0,0 +1,2824 @@ +Config = {} + +Config.Debug = true + +Config.Language = "de" -- Language to use. + +Config.RenderDistance = 100.0 -- Scenario display Radius. + +Config.InteractDistance = 2.0 -- Interact Radius + +Config.UseTarget = true -- When set to true, it'll use targeting instead of key-presses to interact. + +Config.NoModelTargeting = true -- When set to true and using Target, it'll spawn a small invisible prop so you can third-eye when no entity is defined. + +Config.Marker = { -- This will only be used if enabled, not using target, and no model is defined in the interaction. + enabled = true, + id = 2, + scale = 0.25, + color = {255, 255, 255, 127} +} + +Config.Effects = { + ["high"] = { + canOverlap = false, -- If the effect can be started on-top of others (recommended: false) + process = function(data) + local time = data.time or 5000 + local intensity = data.intensity or 1.0 + local player = PlayerId() + local ped = PlayerPedId() + RequestAnimSet("MOVE_M@DRUNK@VERYDRUNK") + while not HasAnimSetLoaded("MOVE_M@DRUNK@VERYDRUNK") do + Wait(0) + end + SetPedMovementClipset(ped, "MOVE_M@DRUNK@VERYDRUNK", 1.0) + SetPedMotionBlur(ped, true) + SetPedIsDrunk(ped, true) + SetTimecycleModifier("spectator6") + for i=1, 100 do + SetTimecycleModifierStrength(i * 0.01) + ShakeGameplayCam("DRUNK_SHAKE", i * 0.01) + Wait(10) + end + Wait(time) + for i=1, 100 do + SetTimecycleModifierStrength(1.0 - (i * 0.01)) + ShakeGameplayCam("DRUNK_SHAKE", (1.0 - (i * 0.01))) + Wait(10) + end + SetPedMoveRateOverride(player, 1.0) + SetRunSprintMultiplierForPlayer(player, 1.0) + SetPedIsDrunk(ped, false) + SetPedMotionBlur(ped, false) + ResetPedMovementClipset(ped, 1.0) + end + }, + ["drunk"] = { + canOverlap = false, -- If the effect can be started on-top of others (recommended: false) + process = function(data) + local time = data.time or 5000 + local intensity = data.intensity or 1.0 + local player = PlayerId() + local ped = PlayerPedId() + RequestAnimSet("MOVE_M@DRUNK@VERYDRUNK") + while not HasAnimSetLoaded("MOVE_M@DRUNK@VERYDRUNK") do + Wait(0) + end + SetPedMovementClipset(ped, "MOVE_M@DRUNK@VERYDRUNK", 1.0) + SetPedMotionBlur(ped, true) + SetPedIsDrunk(ped, true) + SetTimecycleModifier("drug_wobbly") + for i=1, 100 do + SetTimecycleModifierStrength(i * 0.01) + ShakeGameplayCam("DRUNK_SHAKE", i * 0.01) + Wait(10) + end + Wait(time) + for i=1, 100 do + SetTimecycleModifierStrength(1.0 - (i * 0.01)) + ShakeGameplayCam("DRUNK_SHAKE", (1.0 - (i * 0.01))) + Wait(10) + end + SetPedMoveRateOverride(player, 1.0) + SetRunSprintMultiplierForPlayer(player,1.0) + SetPedIsDrunk(ped, false) + SetPedMotionBlur(ped, false) + ResetPedMovementClipset(ped, 1.0) + end + }, +} + +Config.ExternalStatus = function(source, name, amount) -- (Server-Sided) Implement custom exports and events for external status resources. + if amount == 0 then return end + if amount > 0 then -- Add Status + if amount > 200 then + TriggerEvent("evidence:client:SetStatus", "heavyalcohol", amount) + else + TriggerEvent("evidence:client:SetStatus", "alcohol", amount) + end + if GetResourceState("ps_buffs") == "started" then + local amount = math.abs(amount) + exports.ps_buffs:AddBuff(source, GetIdentifier(source), name, amount) + end + else -- Remove Status + if GetResourceState("ps_buffs") == "started" then + local amount = math.abs(amount) + exports.ps_buffs:RemoveBuff(source, GetIdentifier(source), name) + end + end +end + +Config.Options = { -- Item Options + drop = { + despawnTime = 120, -- Seconds until it deletes the entity after dropping it. + }, + throwing = { + despawnTime = 5, -- Seconds until it deletes the entity after throwing it. + power = 20, -- The amount of power to use when throwing the entity. + } +} + +Config.MaxValues = { -- If you want a custom maximum for a value, change -1 to the number. This is already handled in the bridge. + hunger = 100, + thirst = 100, + stress = -1, + armor = -1, + stamina = -1, +} + +Config.Items = { + ["sandwich"] = { + uses = 1, + prop = { model = `prop_sandwich_01`, boneId = 18905, offset = vec3(0.1114, 0.0389, 0.0497), rotation = vec3(160.2057, 77.8283, -7.5425) }, + idle = { dict = "mp_player_inteat@burger", anim = "static", time = 2000, params = { nil, nil, nil, 49 } }, + animation = { dict = "mp_player_inteat@burger", anim = "mp_player_int_eat_burger_fp", time = 2000, params = { nil, nil, nil, 49 } }, + status = { -- Per use. Values are based on percentage of the max value of the status. If below zero, it will remove the status percentage. + hunger = 20, + thirst = 0, + stress = 0, + armor = 0, + alcohol = 0, + stamina = 0, + } + }, + ["tosti"] = { + uses = 1, + prop = { model = `prop_sandwich_01`, boneId = 18905, offset = vec3(0.1114, 0.0389, 0.0497), rotation = vec3(160.2057, 77.8283, -7.5425) }, + idle = { dict = "mp_player_inteat@burger", anim = "static", time = 2000, params = { nil, nil, nil, 49 } }, + animation = { dict = "mp_player_inteat@burger", anim = "mp_player_int_eat_burger_fp", time = 2000, params = { nil, nil, nil, 49 } }, + status = { -- Per use. Values are based on percentage of the max value of the status. If below zero, it will remove the status percentage. + hunger = 20, + thirst = 0, + stress = 0, + armor = 0, + alcohol = 0, + stamina = 0, + } + }, + ["twerks_candy"] = { + uses = 1, + prop = { model = `prop_choc_ego`, boneId = 18905, offset = vec3(0.1114, 0.0389, 0.0497), rotation = vec3(160.2057, 77.8283, -7.5425) }, + idle = { dict = "mp_player_inteat@burger", anim = "static", time = 2000, params = { nil, nil, nil, 49 } }, + animation = { dict = "mp_player_inteat@burger", anim = "mp_player_int_eat_burger_fp", time = 2000, params = { nil, nil, nil, 49 } }, + status = { -- Per use. Values are based on percentage of the max value of the status. If below zero, it will remove the status percentage. + hunger = 10, + thirst = 0, + stress = 0, + armor = 0, + alcohol = 0, + stamina = 0, + } + }, + ["snikkel_candy"] = { + uses = 1, + prop = { model = `prop_choc_ego`, boneId = 18905, offset = vec3(0.13, 0.05, 0.02), rotation = vec3(120.0, 196.0, 60.0) }, + idle = { dict = "mp_player_inteat@burger", anim = "static", time = 2000, params = { nil, nil, nil, 49 } }, + animation = { dict = "mp_player_inteat@burger", anim = "mp_player_int_eat_burger_fp", time = 2000, params = { nil, nil, nil, 49 } }, + status = { -- Per use. Values are based on percentage of the max value of the status. If below zero, it will remove the status percentage. + hunger = 10, + thirst = 0, + stress = 0, + armor = 0, + alcohol = 0, + stamina = 0, + } + }, + ["pelmini"] = { + uses = 1, + prop = { model = `prop_ff_noodle_01`, boneId = 60309, offset = vec3(0.08, -0.04, 0.07), rotation = vec3(-30.0, 10.0, 0.0) }, + idle = { dict = "anim@scripted@island@special_peds@pavel@hs4_pavel_ig5_caviar_p1", anim = "base_idle", time = 2000, params = { nil, nil, nil, 49 } }, + animation = { dict = "bzzz@restaurant@eat", anim = "bzzz_restaurant_eat", time = 2000, params = { nil, nil, nil, 49 } }, + status = { -- Per use. Values are based on percentage of the max value of the status. If below zero, it will remove the status percentage. + hunger = 20, + thirst = 0, + stress = 0, + armor = 0, + alcohol = 0, + stamina = 0, + } + }, + ["mimis_instant_nudeln"] = { + uses = 1, + prop = { model = `v_res_fa_potnoodle`, boneId = 60309, offset = vec3(0.08, -0.04, 0.07), rotation = vec3(-30.0, 10.0, 0.0) }, + idle = { dict = "anim@scripted@island@special_peds@pavel@hs4_pavel_ig5_caviar_p1", anim = "base_idle", time = 2000, params = { nil, nil, nil, 49 } }, + animation = { dict = "bzzz@restaurant@eat", anim = "bzzz_restaurant_eat", time = 2000, params = { nil, nil, nil, 49 } }, + status = { -- Per use. Values are based on percentage of the max value of the status. If below zero, it will remove the status percentage. + hunger = 20, + thirst = 0, + stress = 0, + armor = 0, + alcohol = 0, + stamina = 0, + } + }, + ["donut"] = { + uses = 1, + prop = { model = `bzzz_foodpack_donut001`, boneId = 28422, offset = vec3(0.1114, 0.0389, 0.0497), rotation = vec3(160.2057, 77.8283, -7.5425) }, + idle = { dict = "mp_player_inteat@burger", anim = "static", time = 2000, params = { nil, nil, nil, 49 } }, + animation = { dict = "mp_player_inteat@burger", anim = "mp_player_int_eat_burger_fp", time = 2000, params = { nil, nil, nil, 49 } }, + status = { -- Per use. Values are based on percentage of the max value of the status. If below zero, it will remove the status percentage. + hunger = 8, + thirst = 0, + stress = 0, + armor = 0, + alcohol = 0, + stamina = 0, + } + }, + ["pralinen"] = { + uses = 1, + prop = { model = `prop_candy_pqs`, boneId = 18905, offset = vec3(0.1114, 0.0389, 0.0497), rotation = vec3(160.2057, 77.8283, -7.5425) }, + idle = { dict = "amb@code_human_wander_drinking_fat@beer@male@base", anim = "static", time = 2000, params = { nil, nil, nil, 49 } }, + animation = { dict = "mp_player_intdrink", anim = "loop_bottle", time = 2000, params = { nil, nil, nil, 49 } }, + status = { -- Per use. Values are based on percentage of the max value of the status. If below zero, it will remove the status percentage. + hunger = 10, + thirst = 0, + stress = 0, + armor = 0, + alcohol = 0, + stamina = 0, + } + }, + ["muffin"] = { + uses = 1, + prop = { model = `prop_sandwich_01`, boneId = 18905, offset = vec3(0.1114, 0.0389, 0.0497), rotation = vec3(160.2057, 77.8283, -7.5425) }, + idle = { dict = "mp_player_inteat@burger", anim = "static", time = 2000, params = { nil, nil, nil, 49 } }, + animation = { dict = "mp_player_inteat@burger", anim = "mp_player_int_eat_burger", time = 2000, params = { nil, nil, nil, 49 } }, + status = { -- Per use. Values are based on percentage of the max value of the status. If below zero, it will remove the status percentage. + hunger = 10, + thirst = 0, + stress = 0, + armor = 0, + alcohol = 0, + stamina = 0, + } + }, + ["nordisee_fischfrikadelle_im_broetchen"] = { + uses = 1, + prop = { model = `prop_sandwich_01`, boneId = 18905, offset = vec3(0.1114, 0.0389, 0.0497), rotation = vec3(160.2057, 77.8283, -7.5425) }, + idle = { dict = "mp_player_inteat@burger", anim = "static", time = 2000, params = { nil, nil, nil, 49 } }, + animation = { dict = "mp_player_inteat@burger", anim = "mp_player_int_eat_burger", time = 2000, params = { nil, nil, nil, 49 } }, + status = { -- Per use. Values are based on percentage of the max value of the status. If below zero, it will remove the status percentage. + hunger = 20, + thirst = 0, + stress = 0, + armor = 0, + alcohol = 0, + stamina = 0, + } + }, + ["halbes_haendel"] = { + uses = 1, + prop = { model = `prop_turkey_leg_01`, boneId = 18905, offset = vec3(0.1114, 0.0389, 0.0497), rotation = vec3(0.0, 0.0, 0.0) }, + idle = { dict = "mp_player_inteat@burger", anim = "static", time = 2000, params = { nil, nil, nil, 49 } }, + animation = { dict = "mp_player_inteat@burger", anim = "mp_player_int_eat_burger", time = 2000, params = { nil, nil, nil, 49 } }, + status = { -- Per use. Values are based on percentage of the max value of the status. If below zero, it will remove the status percentage. + hunger = 20, + thirst = 0, + stress = 0, + armor = 0, + alcohol = 0, + stamina = 0, + } + }, + ["mettbroetchen"] = { + uses = 1, + prop = { model = `prop_sandwich_01`, boneId = 18905, offset = vec3(0.1114, 0.0389, 0.0497), rotation = vec3(160.2057, 77.8283, -7.5425) }, + idle = { dict = "mp_player_inteat@burger", anim = "static", time = 2000, params = { nil, nil, nil, 49 } }, + animation = { dict = "mp_player_inteat@burger", anim = "mp_player_int_eat_burger", time = 2000, params = { nil, nil, nil, 49 } }, + status = { -- Per use. Values are based on percentage of the max value of the status. If below zero, it will remove the status percentage. + hunger = 20, + thirst = 0, + stress = 0, + armor = 0, + alcohol = 0, + stamina = 0, + } + }, + ["leberkas_semmal"] = { + uses = 1, + prop = { model = `prop_sandwich_01`, boneId = 18905, offset = vec3(0.1114, 0.0389, 0.0497), rotation = vec3(160.2057, 77.8283, -7.5425) }, + idle = { dict = "mp_player_inteat@burger", anim = "static", time = 2000, params = { nil, nil, nil, 49 } }, + animation = { dict = "mp_player_inteat@burger", anim = "mp_player_int_eat_burger", time = 2000, params = { nil, nil, nil, 49 } }, + status = { -- Per use. Values are based on percentage of the max value of the status. If below zero, it will remove the status percentage. + hunger = 20, + thirst = 0, + stress = 0, + armor = 0, + alcohol = 0, + stamina = 0, + } + }, + ["lutschfinger_eis"] = { + uses = 1, + prop = { model = `natty_lollipop_spiral01`, boneId = 18905, offset = vec3(0.1114, 0.0389, 0.0497), rotation = vec3(160.2057, 77.8283, -7.5425) }, + idle = { dict = "mp_player_inteat@burger", anim = "static", time = 2000, params = { nil, nil, nil, 49 } }, + animation = { dict = "mp_player_inteat@burger", anim = "mp_player_int_eat_burger", time = 2000, params = { nil, nil, nil, 49 } }, + status = { -- Per use. Values are based on percentage of the max value of the status. If below zero, it will remove the status percentage. + hunger = 10, + thirst = 0, + stress = 0, + armor = 0, + alcohol = 0, + stamina = 0, + } + }, + ["kaugummi"] = { + uses = 1, + prop = { model = `prop_candy_pqs`, boneId = 28422, offset = vec3(0.1114, 0.0389, 0.0497), rotation = vec3(160.2057, 77.8283, -7.5425) }, + idle = { dict = "mp_player_inteat@burger", anim = "static", time = 2000, params = { nil, nil, nil, 49 } }, + animation = { dict = "mp_player_intdrink", anim = "loop_bottle", time = 2000, params = { nil, nil, nil, 49 } }, + status = { -- Per use. Values are based on percentage of the max value of the status. If below zero, it will remove the status percentage. + hunger = 10, + thirst = 0, + stress = 0, + armor = 0, + alcohol = 0, + stamina = 0, + } + }, + ["fish_and_chips"] = { + uses = 1, + prop = { model = `prop_food_cb_nugets`, boneId = 60309, offset = vec3(0.1114, 0.0389, 0.0497), rotation = vec3(160.2057, 77.8283, -7.5425) }, + idle = { dict = "bzzz_popcorn_animation", anim = "bzzz_popcorn_animation", time = 2000, params = { nil, nil, nil, 49 } }, + animation = { dict = "bzzz_popcorn_animation", anim = "bzzz_popcorn_animation", time = 2000, params = { nil, nil, nil, 49 } }, + status = { -- Per use. Values are based on percentage of the max value of the status. If below zero, it will remove the status percentage. + hunger = 20, + thirst = 0, + stress = 0, + armor = 0, + alcohol = 0, + stamina = 0, + } + }, + ["schnitzelbroetchen"] = { + uses = 1, + prop = { model = `prop_sandwich_01`, boneId = 18905, offset = vec3(0.1114, 0.0389, 0.0497), rotation = vec3(160.2057, 77.8283, -7.5425) }, + idle = { dict = "mp_player_inteat@burger", anim = "static", time = 2000, params = { nil, nil, nil, 49 } }, + animation = { dict = "mp_player_inteat@burger", anim = "mp_player_int_eat_burger", time = 2000, params = { nil, nil, nil, 49 } }, + status = { -- Per use. Values are based on percentage of the max value of the status. If below zero, it will remove the status percentage. + hunger = 20, + thirst = 0, + stress = 0, + armor = 0, + alcohol = 0, + stamina = 0, + } + }, + ["hundefutter"] = { + uses = 1, + prop = { model = `v_ret_247_swtcorn2`, boneId = 28422, offset = vec3(0.1114, 0.0389, 0.0497), rotation = vec3(160.2057, 77.8283, -7.5425) }, + idle = { dict = "mp_player_inteat@burger", anim = "mp_player_int_eat_burger", time = 2000, params = { nil, nil, nil, 49 } }, + animation = { dict = "mp_player_inteat@burger", anim = "mp_player_int_eat_burger", time = 2000, params = { nil, nil, nil, 49 } }, + status = { -- Per use. Values are based on percentage of the max value of the status. If below zero, it will remove the status percentage. + hunger = 50, + thirst = 0, + stress = 0, + armor = 0, + alcohol = 0, + stamina = 0, + } + }, + ["stevens_apfelmustorte"] = { + uses = 1, + prop = { model = `bzzz_sugary_applepie_b`, boneId = 18905, offset = vec3(0.1114, 0.0389, 0.0497), rotation = vec3(160.2057, 77.8283, -7.5425) }, + idle = { dict = "mp_player_inteat@burger", anim = "static", time = 2000, params = { nil, nil, nil, 49 } }, + animation = { dict = "mp_player_inteat@burger", anim = "mp_player_int_eat_burger", time = 2000, params = { nil, nil, nil, 49 } }, + status = { -- Per use. Values are based on percentage of the max value of the status. If below zero, it will remove the status percentage. + hunger = 6, + thirst = 0, + stress = 0, + armor = 0, + alcohol = 0, + stamina = 0, + } + }, + ["kas_leberkas_semmal"] = { + uses = 1, + prop = { model = `prop_sandwich_01`, boneId = 18905, offset = vec3(0.1114, 0.0389, 0.0497), rotation = vec3(160.2057, 77.8283, -7.5425) }, + idle = { dict = "mp_player_inteat@burger", anim = "static", time = 2000, params = { nil, nil, nil, 49 } }, + animation = { dict = "mp_player_inteat@burger", anim = "mp_player_int_eat_burger", time = 2000, params = { nil, nil, nil, 49 } }, + status = { -- Per use. Values are based on percentage of the max value of the status. If below zero, it will remove the status percentage. + hunger = 20, + thirst = 0, + stress = 0, + armor = 0, + alcohol = 0, + stamina = 0, + } + }, + ["macrons"] = { + uses = 1, + prop = { model = `bzzz_sugary_macaron_d`, boneId = 18905, offset = vec3(0.1114, 0.0389, 0.0497), rotation = vec3(160.2057, 77.8283, -7.5425) }, + idle = { dict = "mp_player_inteat@burger", anim = "static", time = 2000, params = { nil, nil, nil, 49 } }, + animation = { dict = "mp_player_inteat@burger", anim = "mp_player_int_eat_burger", time = 2000, params = { nil, nil, nil, 49 } }, + status = { -- Per use. Values are based on percentage of the max value of the status. If below zero, it will remove the status percentage. + hunger = 10, + thirst = 0, + stress = 0, + armor = 0, + alcohol = 0, + stamina = 0, + } + }, + ["tier_leckerlis"] = { + uses = 1, + prop = { model = `prop_food_cb_chips`, boneId = 18905, offset = vec3(0.1114, 0.0389, 0.0497), rotation = vec3(160.2057, 77.8283, -7.5425) }, + idle = { dict = "mp_player_inteat@burger", anim = "mp_player_int_eat_burger", time = 2000, params = { nil, nil, nil, 49 } }, + animation = { dict = "mp_player_inteat@burger", anim = "mp_player_int_eat_burger", time = 2000, params = { nil, nil, nil, 49 } }, + status = { -- Per use. Values are based on percentage of the max value of the status. If below zero, it will remove the status percentage. + hunger = 6, + thirst = 0, + stress = 0, + armor = 0, + alcohol = 0, + stamina = 0, + } + }, + ["katzenfutter"] = { + uses = 1, + prop = { model = `prop_cs_bowl_01`, boneId = 18905, offset = vec3(0.1114, 0.0389, 0.0497), rotation = vec3(160.2057, 77.8283, -7.5425) }, + idle = { dict = "mp_player_inteat@burger", anim = "mp_player_int_eat_burger", time = 2000, params = { nil, nil, nil, 49 } }, + animation = { dict = "mp_player_inteat@burger", anim = "mp_player_int_eat_burger", time = 2000, params = { nil, nil, nil, 49 } }, + status = { -- Per use. Values are based on percentage of the max value of the status. If below zero, it will remove the status percentage. + hunger = 50, + thirst = 0, + stress = 0, + armor = 0, + alcohol = 0, + stamina = 0, + } + }, + ["heartstopper"] = { + uses = 4, + prop = { model = `prop_cs_burger_01`, boneId = 18905, offset = vec3(0.1114, 0.0389, 0.0497), rotation = vec3(160.2057, 77.8283, -7.5425) }, + idle = { dict = "mp_player_inteat@burger", anim = "static", time = 2000, params = { nil, nil, nil, 49 } }, + animation = { dict = "mp_player_inteat@burger", anim = "mp_player_int_eat_burger_fp", time = 2000, params = { nil, nil, nil, 49 } }, + status = { -- Per use. Values are based on percentage of the max value of the status. If below zero, it will remove the status percentage. + hunger = 10, + thirst = 0, + stress = 0, + armor = 0, + alcohol = 0, + stamina = 0, + } + }, + ["bleeder"] = { + uses = 1, + prop = { model = `prop_cs_burger_01`, boneId = 18905, offset = vec3(0.1114, 0.0389, 0.0497), rotation = vec3(160.2057, 77.8283, -7.5425) }, + idle = { dict = "mp_player_inteat@burger", anim = "static", time = 2000, params = { nil, nil, nil, 49 } }, + animation = { dict = "mp_player_inteat@burger", anim = "mp_player_int_eat_burger_fp", time = 2000, params = { nil, nil, nil, 49 } }, + status = { -- Per use. Values are based on percentage of the max value of the status. If below zero, it will remove the status percentage. + hunger = 20, + thirst = 0, + stress = 0, + armor = 0, + alcohol = 0, + stamina = 0, + } + }, + ["burger"] = { + uses = 1, + prop = { model = `prop_cs_burger_01`, boneId = 18905, offset = vec3(0.1114, 0.0389, 0.0497), rotation = vec3(160.2057, 77.8283, -7.5425) }, + idle = { dict = "mp_player_inteat@burger", anim = "static", time = 2000, params = { nil, nil, nil, 49 } }, + animation = { dict = "mp_player_inteat@burger", anim = "mp_player_int_eat_burger_fp", time = 2000, params = { nil, nil, nil, 49 } }, + status = { -- Per use. Values are based on percentage of the max value of the status. If below zero, it will remove the status percentage. + hunger = 20, + thirst = 0, + stress = 0, + armor = 0, + alcohol = 0, + stamina = 0, + } + }, + ["cheese_burger"] = { + uses = 2, + prop = { model = `prop_cs_burger_01`, boneId = 18905, offset = vec3(0.1114, 0.0389, 0.0497), rotation = vec3(160.2057, 77.8283, -7.5425) }, + idle = { dict = "mp_player_inteat@burger", anim = "static", time = 2000, params = { nil, nil, nil, 49 } }, + animation = { dict = "mp_player_inteat@burger", anim = "mp_player_int_eat_burger_fp", time = 2000, params = { nil, nil, nil, 49 } }, + status = { -- Per use. Values are based on percentage of the max value of the status. If below zero, it will remove the status percentage. + hunger = 25, + thirst = 0, + stress = 0, + armor = 0, + alcohol = 0, + stamina = 0, + } + }, + ["hotdog_deluxe"] = { + uses = 2, + prop = { model = `prop_cs_hotdog_02`, boneId = 18905, offset = vec3(0.1114, 0.0389, 0.0497), rotation = vec3(160.2057, 77.8283, -7.5425) }, + idle = { dict = "mp_player_inteat@burger", anim = "static", time = 2000, params = { nil, nil, nil, 49 } }, + animation = { dict = "mp_player_inteat@burger", anim = "mp_player_int_eat_burger_fp", time = 2000, params = { nil, nil, nil, 49 } }, + status = { -- Per use. Values are based on percentage of the max value of the status. If below zero, it will remove the status percentage. + hunger = 25, + thirst = 0, + stress = 0, + armor = 0, + alcohol = 0, + stamina = 0, + } + }, + ["pizza_burger"] = { + uses = 2, + prop = { model = `prop_cs_burger_01`, boneId = 18905, offset = vec3(0.1114, 0.0389, 0.0497), rotation = vec3(160.2057, 77.8283, -7.5425) }, + idle = { dict = "mp_player_inteat@burger", anim = "static", time = 2000, params = { nil, nil, nil, 49 } }, + animation = { dict = "mp_player_inteat@burger", anim = "mp_player_int_eat_burger_fp", time = 2000, params = { nil, nil, nil, 49 } }, + status = { -- Per use. Values are based on percentage of the max value of the status. If below zero, it will remove the status percentage. + hunger = 25, + thirst = 0, + stress = 0, + armor = 0, + alcohol = 0, + stamina = 0, + } + }, + ["pizza_piece"] = { + uses = 2, + prop = { model = `knjgh_pizzaslice1`, boneId = 18905, offset = vec3(0.1114, 0.0389, 0.0497), rotation = vec3(160.2057, 77.8283, -7.5425) }, + idle = { dict = "mp_player_inteat@burger", anim = "static", time = 2000, params = { nil, nil, nil, 49 } }, + animation = { dict = "mp_player_inteat@burger", anim = "mp_player_int_eat_burger_fp", time = 2000, params = { nil, nil, nil, 49 } }, + status = { -- Per use. Values are based on percentage of the max value of the status. If below zero, it will remove the status percentage. + hunger = 20, + thirst = 0, + stress = 0, + armor = 0, + alcohol = 0, + stamina = 0, + } + }, + ["fries_with_dip"] = { + uses =2, + prop = { model = `prop_food_chips`, boneId = 60309, offset = vec3(0.1114, 0.0389, 0.0497), rotation = vec3(160.2057, 77.8283, -7.5425) }, + idle = { dict = "bzzz_popcorn_animation", anim = "bzzz_popcorn_animation", time = 2000, params = { nil, nil, nil, 49 } }, + animation = { dict = "bzzz_popcorn_animation", anim = "bzzz_popcorn_animation", time = 2000, params = { nil, nil, nil, 49 } }, + status = { -- Per use. Values are based on percentage of the max value of the status. If below zero, it will remove the status percentage. + hunger = 20, + thirst = 0, + stress = 0, + armor = 0, + alcohol = 0, + stamina = 0, + } + }, + ["salsa_nachos"] = { + uses = 2, + prop = { model = `bzzz_food_nachos_a`, boneId = 60309, offset = vec3(0.1114, 0.0389, 0.0497), rotation = vec3(160.2057, 77.8283, -7.5425) }, + idle = { dict = "bzzz_popcorn_animation", anim = "bzzz_popcorn_animation", time = 2000, params = { nil, nil, nil, 49 } }, + animation = { dict = "bzzz_popcorn_animation", anim = "bzzz_popcorn_animation", time = 2000, params = { nil, nil, nil, 49 } }, + status = { -- Per use. Values are based on percentage of the max value of the status. If below zero, it will remove the status percentage. + hunger = 20, + thirst = 0, + stress = 0, + armor = 0, + alcohol = 0, + stamina = 0, + } + }, + ["cheeseanachos"] = { + uses = 2, + prop = { model = `bzzz_food_nachos_a`, boneId = 60309, offset = vec3(0.1114, 0.0389, 0.0497), rotation = vec3(160.2057, 77.8283, -7.5425) }, + idle = { dict = "bzzz_popcorn_animation", anim = "bzzz_popcorn_animation", time = 2000, params = { nil, nil, nil, 49 } }, + animation = { dict = "bzzz_popcorn_animation", anim = "bzzz_popcorn_animation", time = 2000, params = { nil, nil, nil, 49 } }, + status = { -- Per use. Values are based on percentage of the max value of the status. If below zero, it will remove the status percentage. + hunger = 20, + thirst = 0, + stress = 0, + armor = 0, + alcohol = 0, + stamina = 0, + } + }, + ["saldprezels"] = { + uses = 8, + prop = { model = `prop_bar_nuts`, boneId = 60309, offset = vec3(0.09, -0.02, 0.045), rotation = vec3(-90.0, -12.0, -5.0) }, + idle = { dict = "bzzz_popcorn_animation", anim = "bzzz_popcorn_animation", time = 2000, params = { nil, nil, nil, 49 } }, + animation = { dict = "bzzz_popcorn_animation", anim = "bzzz_popcorn_animation", time = 2000, params = { nil, nil, nil, 49 } }, + status = { -- Per use. Values are based on percentage of the max value of the status. If below zero, it will remove the status percentage. + hunger = 4, + thirst = 0, + stress = 0, + armor = 0, + alcohol = 0, + stamina = 0, + } + }, + ["jelly_beans"] = { + uses = 2, + prop = { model = `bzzz_sugary_candy_a`, boneId = 60309, offset = vec3(0.09, -0.02, 0.045), rotation = vec3(-90.0, -12.0, -5.0) }, + idle = { dict = "mp_player_inteat@burger", anim = "static", time = 2000, params = { nil, nil, nil, 49 } }, + animation = { dict = "mp_player_intdrink", anim = "loop_bottle", time = 2000, params = { nil, nil, nil, 49 } }, + status = { -- Per use. Values are based on percentage of the max value of the status. If below zero, it will remove the status percentage. + hunger = 4, + thirst = 0, + stress = 0, + armor = 0, + alcohol = 0, + stamina = 0, + } + }, + ["j_and_js"] = { + uses = 2, + prop = { model = `prop_candy_pqs`, boneId = 60309, offset = vec3(0.09, -0.02, 0.045), rotation = vec3(-90.0, -12.0, -5.0) }, + idle = { dict = "mp_player_inteat@burger", anim = "static", time = 2000, params = { nil, nil, nil, 49 } }, + animation = { dict = "mp_player_intdrink", anim = "loop_bottle", time = 2000, params = { nil, nil, nil, 49 } }, + status = { -- Per use. Values are based on percentage of the max value of the status. If below zero, it will remove the status percentage. + hunger = 4, + thirst = 0, + stress = 0, + armor = 0, + alcohol = 0, + stamina = 0, + } + }, + ["gumianimals"] = { + uses = 2, + prop = { model = `prop_candy_pqs`, boneId = 60309, offset = vec3(0.09, -0.02, 0.045), rotation = vec3(-90.0, -12.0, -5.0) }, + idle = { dict = "mp_player_inteat@burger", anim = "static", time = 2000, params = { nil, nil, nil, 49 } }, + animation = { dict = "mp_player_intdrink", anim = "loop_bottle", time = 2000, params = { nil, nil, nil, 49 } }, + status = { -- Per use. Values are based on percentage of the max value of the status. If below zero, it will remove the status percentage. + hunger = 4, + thirst = 0, + stress = 0, + armor = 0, + alcohol = 0, + stamina = 0, + } + }, + ["eis_konfekt"] = { + uses = 2, + prop = { model = `prop_candy_pqs`, boneId = 60309, offset = vec3(0.09, -0.02, 0.045), rotation = vec3(-90.0, -12.0, -5.0) }, + idle = { dict = "mp_player_inteat@burger", anim = "staic", time = 2000, params = { nil, nil, nil, 49 } }, + animation = { dict = "mp_player_intdrink", anim = "loop_bottle", time = 2000, params = { nil, nil, nil, 49 } }, + status = { -- Per use. Values are based on percentage of the max value of the status. If below zero, it will remove the status percentage. + hunger = 4, + thirst = 0, + stress = 0, + armor = 0, + alcohol = 0, + stamina = 0, + } + }, + ["popcorn"] = { + uses = 4, + prop = { model = `bzzz_prop_popcorn_box_c`, boneId = 60309, offset = vec3(0.13, -0.01, 0.11), rotation = vec3(-80.0, -14.0, 3.0) }, + idle = { dict = "bzzz_popcorn_animation", anim = "bzzz_popcorn_animation", time = 2000, params = { nil, nil, nil, 49 } }, + animation = { dict = "bzzz_popcorn_animation", anim = "bzzz_popcorn_animation", time = 2000, params = { nil, nil, nil, 49 } }, + status = { -- Per use. Values are based on percentage of the max value of the status. If below zero, it will remove the status percentage. + hunger = 2, + thirst = 0, + stress = 0, + armor = 0, + alcohol = 0, + stamina = 0, + } + }, + ["waffle_icream"] = { + uses = 2, + prop = { model = `bzzz_food_dessert_a`, boneId = 60309, offset = vec3(0.1114, 0.0389, 0.0497), rotation = vec3(160.2057, 77.8283, -7.5425) }, + idle = { dict = "mp_player_inteat@burger", anim = "static", time = 2000, params = { nil, nil, nil, 49 } }, + animation = { dict = "mp_player_inteat@burger", anim = "mp_player_int_eat_burger_fp", time = 2000, params = { nil, nil, nil, 49 } }, + status = { -- Per use. Values are based on percentage of the max value of the status. If below zero, it will remove the status percentage. + hunger = 10, + thirst = 0, + stress = 0, + armor = 0, + alcohol = 0, + stamina = 0, + } + }, + ["bcesandwich"] = { + uses = 2, + prop = { model = `prop_sandwich_01`, boneId = 60309, offset = vec3(0.1114, 0.0389, 0.0497), rotation = vec3(160.2057, 77.8283, -7.5425) }, + idle = { dict = "mp_player_inteat@burger", anim = "static", time = 2000, params = { nil, nil, nil, 49 } }, + animation = { dict = "mp_player_inteat@burger", anim = "mp_player_int_eat_burger_fp", time = 2000, params = { nil, nil, nil, 49 } }, + status = { -- Per use. Values are based on percentage of the max value of the status. If below zero, it will remove the status percentage. + hunger = 25, + thirst = 0, + stress = 0, + armor = 0, + alcohol = 0, + stamina = 0, + } + }, + ["scookie"] = { + uses = 1, + prop = { model = `bzzz_sugary_cookie_a`, boneId = 60309, offset = vec3(0.1114, 0.0389, 0.0497), rotation = vec3(160.2057, 77.8283, -7.5425) }, + idle = { dict = "mp_player_inteat@burger", anim = "static", time = 2000, params = { nil, nil, nil, 49 } }, + animation = { dict = "mp_player_inteat@burger", anim = "mp_player_int_eat_burger_fp", time = 2000, params = { nil, nil, nil, 49 } }, + status = { -- Per use. Values are based on percentage of the max value of the status. If below zero, it will remove the status percentage. + hunger = 10, + thirst = 0, + stress = 0, + armor = 0, + alcohol = 0, + stamina = 0, + } + }, + ["ffries"] = { + uses = 1, + prop = { model = `prop_food_chips`, boneId = 28422, offset = vec3(0.1114, 0.0389, 0.0497), rotation = vec3(160.2057, 77.8283, -7.5425) }, + idle = { dict = "bzzz_popcorn_animation", anim = "bzzz_popcorn_animation", time = 2000, params = { nil, nil, nil, 49 } }, + animation = { dict = "bzzz_popcorn_animation", anim = "bzzz_popcorn_animation", time = 2000, params = { nil, nil, nil, 49 } }, + status = { -- Per use. Values are based on percentage of the max value of the status. If below zero, it will remove the status percentage. + hunger = 15, + thirst = 0, + stress = 0, + armor = 0, + alcohol = 0, + stamina = 0, + } + }, + ["frenchfries"] = { + uses = 1, + prop = { model = `prop_food_chips`, boneId = 60309, offset = vec3(0.1114, 0.0389, 0.0497), rotation = vec3(160.2057, 77.8283, -7.5425) }, + idle = { dict = "bzzz_popcorn_animation", anim = "bzzz_popcorn_animation", time = 2000, params = { nil, nil, nil, 49 } }, + animation = { dict = "bzzz_popcorn_animation", anim = "bzzz_popcorn_animation", time = 2000, params = { nil, nil, nil, 49 } }, + status = { -- Per use. Values are based on percentage of the max value of the status. If below zero, it will remove the status percentage. + hunger = 15, + thirst = 0, + stress = 0, + armor = 0, + alcohol = 0, + stamina = 0, + } + }, + ["marshmallows"] = { + uses = 4, + prop = { model = `v_ret_ml_chips4`, boneId = 60309, offset = vec3(0.1114, 0.0389, 0.0497), rotation = vec3(160.2057, 77.8283, -7.5425) }, + idle = { dict = "bzzz_popcorn_animation", anim = "bzzz_popcorn_animation", time = 2000, params = { nil, nil, nil, 49 } }, + animation = { dict = "bzzz_popcorn_animation", anim = "bzzz_popcorn_animation", time = 2000, params = { nil, nil, nil, 49 } }, + status = { -- Per use. Values are based on percentage of the max value of the status. If below zero, it will remove the status percentage. + hunger = 4, + thirst = 0, + stress = 0, + armor = 0, + alcohol = 0, + stamina = 0, + } + }, + ["buritto"] = { + uses = 1, + prop = { model = `bzzz_food_burrito_a`, boneId = 18905, offset = vec3(0.1114, 0.0389, 0.0497), rotation = vec3(160.2057, 77.8283, -7.5425) }, + idle = { dict = "mp_player_inteat@burger", anim = "static", time = 2000, params = { nil, nil, nil, 49 } }, + animation = { dict = "mp_player_inteat@burger", anim = "mp_player_int_eat_burger_fp", time = 2000, params = { nil, nil, nil, 49 } }, + status = { -- Per use. Values are based on percentage of the max value of the status. If below zero, it will remove the status percentage. + hunger = 20, + thirst = 0, + stress = 0, + armor = 0, + alcohol = 0, + stamina = 0, + } + }, + ["hotdog"] = { + uses = 1, + prop = { model = `prop_cs_hotdog_02`, boneId = 60309, offset = vec3(0.1114, 0.0389, 0.0497), rotation = vec3(160.2057, 77.8283, -7.5425) }, + idle = { dict = "mp_player_inteat@burger", anim = "static", time = 2000, params = { nil, nil, nil, 49 } }, + animation = { dict = "mp_player_inteat@burger", anim = "mp_player_int_eat_burger_fp", time = 2000, params = { nil, nil, nil, 49 } }, + status = { -- Per use. Values are based on percentage of the max value of the status. If below zero, it will remove the status percentage. + hunger = 20, + thirst = 0, + stress = 0, + armor = 0, + alcohol = 0, + stamina = 0, + } + }, + ["cottoncandy"] = { + uses = 1, + prop = { model = `bzzz_candy_cotton_pink`, boneId = 18905, offset = vec3(0.1114, 0.0389, 0.0497), rotation = vec3(160.2057, 77.8283, -7.5425) }, + idle = { dict = "mp_player_inteat@burger", anim = "static", time = 2000, params = { nil, nil, nil, 49 } }, + animation = { dict = "mp_player_inteat@burger", anim = "mp_player_int_eat_burger_fp", time = 2000, params = { nil, nil, nil, 49 } }, + status = { -- Per use. Values are based on percentage of the max value of the status. If below zero, it will remove the status percentage. + hunger = 4, + thirst = 0, + stress = 0, + armor = 0, + alcohol = 0, + stamina = 0, + } + }, + ["dueruem"] = { + uses = 2, + prop = { model = `bzzz_food_burrito_a`, boneId = 18905, offset = vec3(0.1114, 0.0389, 0.0497), rotation = vec3(160.2057, 77.8283, -7.5425) }, + idle = { dict = "mp_player_inteat@burger", anim = "static", time = 2000, params = { nil, nil, nil, 49 } }, + animation = { dict = "mp_player_inteat@burger", anim = "mp_player_int_eat_burger_fp", time = 2000, params = { nil, nil, nil, 49 } }, + status = { -- Per use. Values are based on percentage of the max value of the status. If below zero, it will remove the status percentage. + hunger = 25, + thirst = 0, + stress = 0, + armor = 0, + alcohol = 0, + stamina = 0, + } + }, + ["falafel"] = { + uses = 4, + prop = { model = `prop_food_chips`, boneId = 60309, offset = vec3(0.1114, 0.0389, 0.0497), rotation = vec3(160.2057, 77.8283, -7.5425) }, + idle = { dict = "bzzz_popcorn_animation", anim = "bzzz_popcorn_animation", time = 2000, params = { nil, nil, nil, 49 } }, + animation = { dict = "bzzz_popcorn_animation", anim = "bzzz_popcorn_animation", time = 2000, params = { nil, nil, nil, 49 } }, + status = { -- Per use. Values are based on percentage of the max value of the status. If below zero, it will remove the status percentage. + hunger = 10, + thirst = 0, + stress = 0, + armor = 0, + alcohol = 0, + stamina = 0, + } + }, + ["doener"] = { + uses = 2, + prop = { model = `bzzz_food_kebab_a`, boneId = 18905, offset = vec3(0.1114, 0.0389, 0.0497), rotation = vec3(160.2057, 77.8283, -7.5425) }, + idle = { dict = "mp_player_inteat@burger", anim = "static", time = 2000, params = { nil, nil, nil, 49 } }, + animation = { dict = "mp_player_inteat@burger", anim = "mp_player_int_eat_burger_fp", time = 2000, params = { nil, nil, nil, 49 } }, + status = { -- Per use. Values are based on percentage of the max value of the status. If below zero, it will remove the status percentage. + hunger = 25, + thirst = 0, + stress = 0, + armor = 0, + alcohol = 0, + stamina = 0, + } + }, + ["lahmacun"] = { + uses = 2, + prop = { model = `bzzz_food_burrito_a`, boneId = 18905, offset = vec3(0.1114, 0.0389, 0.0497), rotation = vec3(160.2057, 77.8283, -7.5425) }, + idle = { dict = "mp_player_inteat@burger", anim = "static", time = 2000, params = { nil, nil, nil, 49 } }, + animation = { dict = "mp_player_inteat@burger", anim = "mp_player_int_eat_burger_fp", time = 2000, params = { nil, nil, nil, 49 } }, + status = { -- Per use. Values are based on percentage of the max value of the status. If below zero, it will remove the status percentage. + hunger = 25, + thirst = 0, + stress = 0, + armor = 0, + alcohol = 0, + stamina = 0, + } + }, + ["mixed_grilled_plate"] = { + uses = 2, + prop = { model = `prop_cs_plate_01`, boneId = 60309, offset = vec3(0.08, -0.04, 0.07), rotation = vec3(-30.0, 10.0, 0.0) }, + idle = { dict = "anim@scripted@island@special_peds@pavel@hs4_pavel_ig5_caviar_p1", anim = "base_idle", time = 2000, params = { nil, nil, nil, 49 } }, + animation = { dict = "bzzz@restaurant@eat", anim = "bzzz_restaurant_eat", time = 2000, params = { nil, nil, nil, 49 } }, + status = { -- Per use. Values are based on percentage of the max value of the status. If below zero, it will remove the status percentage. + hunger = 30, + thirst = 0, + stress = 0, + armor = 0, + alcohol = 0, + stamina = 0, + } + }, + ["kuzu_sis"] = { + uses = 2, + prop = { model = `prop_cs_plate_01`, boneId = 60309, offset = vec3(0.08, -0.04, 0.07), rotation = vec3(-30.0, 10.0, 0.0) }, + idle = { dict = "anim@scripted@island@special_peds@pavel@hs4_pavel_ig5_caviar_p1", anim = "base_idle", time = 2000, params = { nil, nil, nil, 49 } }, + animation = { dict = "bzzz@restaurant@eat", anim = "bzzz_restaurant_eat", time = 2000, params = { nil, nil, nil, 49 } }, + status = { -- Per use. Values are based on percentage of the max value of the status. If below zero, it will remove the status percentage. + hunger = 30, + thirst = 0, + stress = 0, + armor = 0, + alcohol = 0, + stamina = 0, + } + }, + ["bauernsalat"] = { + uses = 2, + prop = { model = `prop_cs_bowl_01`, boneId = 60309, offset = vec3(0.08, -0.04, 0.07), rotation = vec3(-30.0, 10.0, 0.0) }, + idle = { dict = "anim@scripted@island@special_peds@pavel@hs4_pavel_ig5_caviar_p1", anim = "base_idle", time = 2000, params = { nil, nil, nil, 49 } }, + animation = { dict = "bzzz@restaurant@eat", anim = "bzzz_restaurant_eat", time = 2000, params = { nil, nil, nil, 49 } }, + status = { -- Per use. Values are based on percentage of the max value of the status. If below zero, it will remove the status percentage. + hunger = 25, + thirst = 0, + stress = 0, + armor = 0, + alcohol = 0, + stamina = 0, + } + }, + ["zwiebelsalat"] = { + uses = 2, + prop = { model = `prop_cs_bowl_01`, boneId = 60309, offset = vec3(0.08, -0.04, 0.07), rotation = vec3(-30.0, 10.0, 0.0) }, + idle = { dict = "anim@scripted@island@special_peds@pavel@hs4_pavel_ig5_caviar_p1", anim = "base_idle", time = 2000, params = { nil, nil, nil, 49 } }, + animation = { dict = "bzzz@restaurant@eat", anim = "bzzz_restaurant_eat", time = 2000, params = { nil, nil, nil, 49 } }, + status = { -- Per use. Values are based on percentage of the max value of the status. If below zero, it will remove the status percentage. + hunger = 25, + thirst = 0, + stress = 0, + armor = 0, + alcohol = 0, + stamina = 0, + } + }, + ["sunflowerseeds"] = { + uses = 8, + prop = { model = `prop_bar_nuts`, boneId = 60309, offset = vec3(0.09, -0.02, 0.045), rotation = vec3(-90.0, -12.0, -5.0) }, + idle = { dict = "bzzz_popcorn_animation", anim = "bzzz_popcorn_animation", time = 2000, params = { nil, nil, nil, 49 } }, + animation = { dict = "bzzz_popcorn_animation", anim = "bzzz_popcorn_animation", time = 2000, params = { nil, nil, nil, 49 } }, + status = { -- Per use. Values are based on percentage of the max value of the status. If below zero, it will remove the status percentage. + hunger = 2, + thirst = 0, + stress = 0, + armor = 0, + alcohol = 0, + stamina = 0, + } + }, + ["goezleme"] = { + uses = 2, + prop = { model = `bzzz_food_burrito_a`, boneId = 18905, offset = vec3(0.1114, 0.0389, 0.0497), rotation = vec3(160.2057, 77.8283, -7.5425) }, + idle = { dict = "mp_player_inteat@burger", anim = "static", time = 2000, params = { nil, nil, nil, 49 } }, + animation = { dict = "mp_player_inteat@burger", anim = "mp_player_int_eat_burger_fp", time = 2000, params = { nil, nil, nil, 49 } }, + status = { -- Per use. Values are based on percentage of the max value of the status. If below zero, it will remove the status percentage. + hunger = 25, + thirst = 0, + stress = 0, + armor = 0, + alcohol = 0, + stamina = 0, + } + }, + ["baklava"] = { + uses = 2, + prop = { model = `bzzz_sugary_baklava_a`, boneId = 18905, offset = vec3(0.1114, 0.0389, 0.0497), rotation = vec3(160.2057, 77.8283, -7.5425) }, + idle = { dict = "mp_player_inteat@burger", anim = "static", time = 2000, params = { nil, nil, nil, 49 } }, + animation = { dict = "mp_player_inteat@burger", anim = "mp_player_int_eat_burger_fp", time = 2000, params = { nil, nil, nil, 49 } }, + status = { -- Per use. Values are based on percentage of the max value of the status. If below zero, it will remove the status percentage. + hunger = 20, + thirst = 0, + stress = 0, + armor = 0, + alcohol = 0, + stamina = 0, + } + }, + ["kunfe"] = { + uses = 2, + prop = { model = `bzzz_sugary_baklava_a`, boneId = 18905, offset = vec3(0.1114, 0.0389, 0.0497), rotation = vec3(160.2057, 77.8283, -7.5425) }, + idle = { dict = "mp_player_inteat@burger", anim = "static", time = 2000, params = { nil, nil, nil, 49 } }, + animation = { dict = "mp_player_inteat@burger", anim = "mp_player_int_eat_burger_fp", time = 2000, params = { nil, nil, nil, 49 } }, + status = { -- Per use. Values are based on percentage of the max value of the status. If below zero, it will remove the status percentage. + hunger = 20, + thirst = 0, + stress = 0, + armor = 0, + alcohol = 0, + stamina = 0, + } + }, + ["lokum"] = { + uses = 1, + prop = { model = `bzzz_sugary_treslechescake_a`, boneId = 18905, offset = vec3(0.1114, 0.0389, 0.0497), rotation = vec3(160.2057, 77.8283, -7.5425) }, + idle = { dict = "mp_player_inteat@burger", anim = "static", time = 2000, params = { nil, nil, nil, 49 } }, + animation = { dict = "mp_player_inteat@burger", anim = "mp_player_int_eat_burger_fp", time = 2000, params = { nil, nil, nil, 49 } }, + status = { -- Per use. Values are based on percentage of the max value of the status. If below zero, it will remove the status percentage. + hunger = 20, + thirst = 0, + stress = 0, + armor = 0, + alcohol = 0, + stamina = 0, + } + }, + ["sarma"] = { + uses = 1, + prop = { model = `bzzz_sugary_truffles_a`, boneId = 18905, offset = vec3(0.1114, 0.0389, 0.0497), rotation = vec3(160.2057, 77.8283, -7.5425) }, + idle = { dict = "mp_player_inteat@burger", anim = "static", time = 2000, params = { nil, nil, nil, 49 } }, + animation = { dict = "mp_player_inteat@burger", anim = "mp_player_int_eat_burger_fp", time = 2000, params = { nil, nil, nil, 49 } }, + status = { -- Per use. Values are based on percentage of the max value of the status. If below zero, it will remove the status percentage. + hunger = 20, + thirst = 0, + stress = 0, + armor = 0, + alcohol = 0, + stamina = 0, + } + }, + ["manti"] = { + uses = 2, + prop = { model = `prop_cs_bowl_01`, boneId = 60309, offset = vec3(0.08, -0.04, 0.07), rotation = vec3(-30.0, 10.0, 0.0) }, + idle = { dict = "anim@scripted@island@special_peds@pavel@hs4_pavel_ig5_caviar_p1", anim = "base_idle", time = 2000, params = { nil, nil, nil, 49 } }, + animation = { dict = "bzzz@restaurant@eat", anim = "bzzz_restaurant_eat", time = 2000, params = { nil, nil, nil, 49 } }, + status = { -- Per use. Values are based on percentage of the max value of the status. If below zero, it will remove the status percentage. + hunger = 25, + thirst = 0, + stress = 0, + armor = 0, + alcohol = 0, + stamina = 0, + } + }, + ["cigkfte"] = { + uses = 2, + prop = { model = `prop_cs_plate_01`, boneId = 60309, offset = vec3(0.08, -0.04, 0.07), rotation = vec3(-30.0, 10.0, 0.0) }, + idle = { dict = "anim@scripted@island@special_peds@pavel@hs4_pavel_ig5_caviar_p1", anim = "base_idle", time = 2000, params = { nil, nil, nil, 49 } }, + animation = { dict = "bzzz@restaurant@eat", anim = "bzzz_restaurant_eat", time = 2000, params = { nil, nil, nil, 49 } }, + status = { -- Per use. Values are based on percentage of the max value of the status. If below zero, it will remove the status percentage. + hunger = 30, + thirst = 0, + stress = 0, + armor = 0, + alcohol = 0, + stamina = 0, + } + }, + ["stoast"] = { + uses = 2, + prop = { model = `prop_sandwich_01`, boneId = 18905, offset = vec3(0.1114, 0.0389, 0.0497), rotation = vec3(160.2057, 77.8283, -7.5425) }, + idle = { dict = "mp_player_inteat@burger", anim = "static", time = 2000, params = { nil, nil, nil, 49 } }, + animation = { dict = "mp_player_inteat@burger", anim = "mp_player_int_eat_burger_fp", time = 2000, params = { nil, nil, nil, 49 } }, + status = { -- Per use. Values are based on percentage of the max value of the status. If below zero, it will remove the status percentage. + hunger = 25, + thirst = 0, + stress = 0, + armor = 0, + alcohol = 0, + stamina = 0, + } + }, + ["kspieß"] = { + uses = 2, + prop = { model = `prop_cs_plate_01`, boneId = 60309, offset = vec3(0.08, -0.04, 0.07), rotation = vec3(-30.0, 10.0, 0.0) }, + idle = { dict = "anim@scripted@island@special_peds@pavel@hs4_pavel_ig5_caviar_p1", anim = "base_idle", time = 2000, params = { nil, nil, nil, 49 } }, + animation = { dict = "bzzz@restaurant@eat", anim = "bzzz_restaurant_eat", time = 2000, params = { nil, nil, nil, 49 } }, + status = { -- Per use. Values are based on percentage of the max value of the status. If below zero, it will remove the status percentage. + hunger = 30, + thirst = 0, + stress = 0, + armor = 0, + alcohol = 0, + stamina = 0, + } + }, + ["mmkc"] = { + uses = 2, + prop = { model = `prop_cs_bowl_01`, boneId = 60309, offset = vec3(0.08, -0.04, 0.07), rotation = vec3(-30.0, 10.0, 0.0) }, + idle = { dict = "anim@scripted@island@special_peds@pavel@hs4_pavel_ig5_caviar_p1", anim = "base_idle", time = 2000, params = { nil, nil, nil, 49 } }, + animation = { dict = "bzzz@restaurant@eat", anim = "bzzz_restaurant_eat", time = 2000, params = { nil, nil, nil, 49 } }, + status = { -- Per use. Values are based on percentage of the max value of the status. If below zero, it will remove the status percentage. + hunger = 25, + thirst = 0, + stress = 0, + armor = 0, + alcohol = 0, + stamina = 0, + } + }, + ["ezme"] = { + uses = 2, + prop = { model = `prop_cs_bowl_01`, boneId = 60309, offset = vec3(0.08, -0.04, 0.07), rotation = vec3(-30.0, 10.0, 0.0) }, + idle = { dict = "anim@scripted@island@special_peds@pavel@hs4_pavel_ig5_caviar_p1", anim = "base_idle", time = 2000, params = { nil, nil, nil, 49 } }, + animation = { dict = "bzzz@restaurant@eat", anim = "bzzz_restaurant_eat", time = 2000, params = { nil, nil, nil, 49 } }, + status = { -- Per use. Values are based on percentage of the max value of the status. If below zero, it will remove the status percentage. + hunger = 25, + thirst = 0, + stress = 0, + armor = 0, + alcohol = 0, + stamina = 0, + } + }, + + + ["thors_sandwich"] = { + uses = 2, + prop = { model = `prop_sandwich_01`, boneId = 18905, offset = vec3(0.1114, 0.0389, 0.0497), rotation = vec3(160.2057, 77.8283, -7.5425) }, + idle = { dict = "mp_player_inteat@burger", anim = "static", time = 2000, params = { nil, nil, nil, 49 } }, + animation = { dict = "mp_player_inteat@burger", anim = "mp_player_int_eat_burger_fp", time = 2000, params = { nil, nil, nil, 49 } }, + status = { -- Per use. Values are based on percentage of the max value of the status. If below zero, it will remove the status percentage. + hunger = 25, + thirst = 0, + stress = 0, + armor = 0, + alcohol = 0, + stamina = 0, + } + }, + ["heimdalls_guard_bread"] = { + uses = 2, + prop = { model = `prop_sandwich_01`, boneId = 18905, offset = vec3(0.1114, 0.0389, 0.0497), rotation = vec3(160.2057, 77.8283, -7.5425) }, + idle = { dict = "mp_player_inteat@burger", anim = "static", time = 2000, params = { nil, nil, nil, 49 } }, + animation = { dict = "mp_player_inteat@burger", anim = "mp_player_int_eat_burger_fp", time = 2000, params = { nil, nil, nil, 49 } }, + status = { -- Per use. Values are based on percentage of the max value of the status. If below zero, it will remove the status percentage. + hunger = 25, + thirst = 0, + stress = 0, + armor = 0, + alcohol = 0, + stamina = 0, + } + }, + ["dins_isdom_latter"] = { + uses = 2, + prop = { model = `prop_cs_plate_01`, boneId = 60309, offset = vec3(0.08, -0.04, 0.07), rotation = vec3(-30.0, 10.0, 0.0) }, + idle = { dict = "anim@scripted@island@special_peds@pavel@hs4_pavel_ig5_caviar_p1", anim = "base_idle", time = 2000, params = { nil, nil, nil, 49 } }, + animation = { dict = "bzzz@restaurant@eat", anim = "bzzz_restaurant_eat", time = 2000, params = { nil, nil, nil, 49 } }, + status = { -- Per use. Values are based on percentage of the max value of the status. If below zero, it will remove the status percentage. + hunger = 30, + thirst = 0, + stress = 0, + armor = 0, + alcohol = 0, + stamina = 0, + } + }, + ["ifs_olden_arvest"] = { + uses = 2, + prop = { model = `prop_cs_plate_01`, boneId = 60309, offset = vec3(0.08, -0.04, 0.07), rotation = vec3(-30.0, 10.0, 0.0) }, + idle = { dict = "anim@scripted@island@special_peds@pavel@hs4_pavel_ig5_caviar_p1", anim = "base_idle", time = 2000, params = { nil, nil, nil, 49 } }, + animation = { dict = "bzzz@restaurant@eat", anim = "bzzz_restaurant_eat", time = 2000, params = { nil, nil, nil, 49 } }, + status = { -- Per use. Values are based on percentage of the max value of the status. If below zero, it will remove the status percentage. + hunger = 30, + thirst = 0, + stress = 0, + armor = 0, + alcohol = 0, + stamina = 0, + } + }, + ["jords_ea_latter"] = { + uses = 2, + prop = { model = `prop_cs_plate_01`, boneId = 60309, offset = vec3(0.08, -0.04, 0.07), rotation = vec3(-30.0, 10.0, 0.0) }, + idle = { dict = "anim@scripted@island@special_peds@pavel@hs4_pavel_ig5_caviar_p1", anim = "base_idle", time = 2000, params = { nil, nil, nil, 49 } }, + animation = { dict = "bzzz@restaurant@eat", anim = "bzzz_restaurant_eat", time = 2000, params = { nil, nil, nil, 49 } }, + status = { -- Per use. Values are based on percentage of the max value of the status. If below zero, it will remove the status percentage. + hunger = 30, + thirst = 0, + stress = 0, + armor = 0, + alcohol = 0, + stamina = 0, + } + }, + ["skadis_winter_skewers"] = { + uses = 2, + prop = { model = `prop_cs_plate_01`, boneId = 60309, offset = vec3(0.08, -0.04, 0.07), rotation = vec3(-30.0, 10.0, 0.0) }, + idle = { dict = "anim@scripted@island@special_peds@pavel@hs4_pavel_ig5_caviar_p1", anim = "base_idle", time = 2000, params = { nil, nil, nil, 49 } }, + animation = { dict = "bzzz@restaurant@eat", anim = "bzzz_restaurant_eat", time = 2000, params = { nil, nil, nil, 49 } }, + status = { -- Per use. Values are based on percentage of the max value of the status. If below zero, it will remove the status percentage. + hunger = 30, + thirst = 0, + stress = 0, + armor = 0, + alcohol = 0, + stamina = 0, + } + }, + ["reyas_arden_alad"] = { + uses = 2, + prop = { model = `prop_cs_bowl_01`, boneId = 60309, offset = vec3(0.08, -0.04, 0.07), rotation = vec3(-30.0, 10.0, 0.0) }, + idle = { dict = "anim@scripted@island@special_peds@pavel@hs4_pavel_ig5_caviar_p1", anim = "base_idle", time = 2000, params = { nil, nil, nil, 49 } }, + animation = { dict = "bzzz@restaurant@eat", anim = "bzzz_restaurant_eat", time = 2000, params = { nil, nil, nil, 49 } }, + status = { -- Per use. Values are based on percentage of the max value of the status. If below zero, it will remove the status percentage. + hunger = 25, + thirst = 0, + stress = 0, + armor = 0, + alcohol = 0, + stamina = 0, + } + }, + ["okis_ischief_ites"] = { + uses = 4, + prop = { model = `prop_food_chips`, boneId = 60309, offset = vec3(0.1114, 0.0389, 0.0497), rotation = vec3(160.2057, 77.8283, -7.5425) }, + idle = { dict = "bzzz_popcorn_animation", anim = "bzzz_popcorn_animation", time = 2000, params = { nil, nil, nil, 49 } }, + animation = { dict = "bzzz_popcorn_animation", anim = "bzzz_popcorn_animation", time = 2000, params = { nil, nil, nil, 49 } }, + status = { -- Per use. Values are based on percentage of the max value of the status. If below zero, it will remove the status percentage. + hunger = 10, + thirst = 0, + stress = 0, + armor = 0, + alcohol = 0, + stamina = 0, + } + }, + ["aldurs_right_ites"] = { + uses = 4, + prop = { model = `prop_food_chips`, boneId = 60309, offset = vec3(0.1114, 0.0389, 0.0497), rotation = vec3(160.2057, 77.8283, -7.5425) }, + idle = { dict = "bzzz_popcorn_animation", anim = "bzzz_popcorn_animation", time = 2000, params = { nil, nil, nil, 49 } }, + animation = { dict = "bzzz_popcorn_animation", anim = "bzzz_popcorn_animation", time = 2000, params = { nil, nil, nil, 49 } }, + status = { -- Per use. Values are based on percentage of the max value of the status. If below zero, it will remove the status percentage. + hunger = 10, + thirst = 0, + stress = 0, + armor = 0, + alcohol = 0, + stamina = 0, + } + }, + ["hors_hunder_ings"] = { + uses = 4, + prop = { model = `prop_food_cb_nugets`, boneId = 60309, offset = vec3(0.1114, 0.0389, 0.0497), rotation = vec3(160.2057, 77.8283, -7.5425) }, + idle = { dict = "bzzz_popcorn_animation", anim = "bzzz_popcorn_animation", time = 2000, params = { nil, nil, nil, 49 } }, + animation = { dict = "bzzz_popcorn_animation", anim = "bzzz_popcorn_animation", time = 2000, params = { nil, nil, nil, 49 } }, + status = { -- Per use. Values are based on percentage of the max value of the status. If below zero, it will remove the status percentage. + hunger = 10, + thirst = 0, + stress = 0, + armor = 0, + alcohol = 0, + stamina = 0, + } + }, + ["odins_nuesse"] = { + uses = 8, + prop = { model = `prop_bar_nuts`, boneId = 60309, offset = vec3(0.09, -0.02, 0.045), rotation = vec3(-90.0, -12.0, -5.0) }, + idle = { dict = "bzzz_popcorn_animation", anim = "bzzz_popcorn_animation", time = 2000, params = { nil, nil, nil, 49 } }, + animation = { dict = "bzzz_popcorn_animation", anim = "bzzz_popcorn_animation", time = 2000, params = { nil, nil, nil, 49 } }, + status = { -- Per use. Values are based on percentage of the max value of the status. If below zero, it will remove the status percentage. + hunger = 4, + thirst = 0, + stress = 0, + armor = 0, + alcohol = 0, + stamina = 0, + } + }, + ["cooked_ribs"] = { + uses = 1, + prop = { model = `prop_cs_steak`, boneId = 18905, offset = vec3(0.1114, 0.0389, 0.0497), rotation = vec3(160.2057, 77.8283, -7.5425) }, + animation = { dict = "mp_player_inteat@burger", anim = "mp_player_int_eat_burger_fp", time = 2000, params = { nil, nil, nil, 49 } }, + status = { -- Per use. Values are based on percentage of the max value of the status. If below zero, it will remove the status percentage. + hunger = 10, + thirst = 0, + stress = 0, + armor = 0, + alcohol = 0, + stamina = 0, + } + }, + ["cooked_briskets"] = { + uses = 1, + prop = { model = `prop_cs_steak`, boneId = 18905, offset = vec3(0.1114, 0.0389, 0.0497), rotation = vec3(160.2057, 77.8283, -7.5425) }, + animation = { dict = "mp_player_inteat@burger", anim = "mp_player_int_eat_burger_fp", time = 2000, params = { nil, nil, nil, 49 } }, + status = { -- Per use. Values are based on percentage of the max value of the status. If below zero, it will remove the status percentage. + hunger = 10, + thirst = 0, + stress = 0, + armor = 0, + alcohol = 0, + stamina = 0, + } + }, + ["cooked_pork_joint"] = { + uses = 1, + prop = { model = `prop_cs_steak`, boneId = 18905, offset = vec3(0.1114, 0.0389, 0.0497), rotation = vec3(160.2057, 77.8283, -7.5425) }, + animation = { dict = "mp_player_inteat@burger", anim = "mp_player_int_eat_burger_fp", time = 2000, params = { nil, nil, nil, 49 } }, + status = { -- Per use. Values are based on percentage of the max value of the status. If below zero, it will remove the status percentage. + hunger = 10, + thirst = 0, + stress = 0, + armor = 0, + alcohol = 0, + stamina = 0, + } + }, + ["cooked_bbq_sausages"] = { + uses = 1, + prop = { model = `prop_cs_steak`, boneId = 18905, offset = vec3(0.1114, 0.0389, 0.0497), rotation = vec3(160.2057, 77.8283, -7.5425) }, + animation = { dict = "mp_player_inteat@burger", anim = "mp_player_int_eat_burger_fp", time = 2000, params = { nil, nil, nil, 49 } }, + status = { -- Per use. Values are based on percentage of the max value of the status. If below zero, it will remove the status percentage. + hunger = 10, + thirst = 0, + stress = 0, + armor = 0, + alcohol = 0, + stamina = 0, + } + }, + ["cooked_short_ribs"] = { + uses = 1, + prop = { model = `prop_cs_steak`, boneId = 18905, offset = vec3(0.1114, 0.0389, 0.0497), rotation = vec3(160.2057, 77.8283, -7.5425) }, + animation = { dict = "mp_player_inteat@burger", anim = "mp_player_int_eat_burger_fp", time = 2000, params = { nil, nil, nil, 49 } }, + status = { -- Per use. Values are based on percentage of the max value of the status. If below zero, it will remove the status percentage. + hunger = 10, + thirst = 0, + stress = 0, + armor = 0, + alcohol = 0, + stamina = 0, + } + }, + ["cooked_lamb_chops"] = { + uses = 1, + prop = { model = `prop_cs_steak`, boneId = 18905, offset = vec3(0.1114, 0.0389, 0.0497), rotation = vec3(160.2057, 77.8283, -7.5425) }, + animation = { dict = "mp_player_inteat@burger", anim = "mp_player_int_eat_burger_fp", time = 2000, params = { nil, nil, nil, 49 } }, + status = { -- Per use. Values are based on percentage of the max value of the status. If below zero, it will remove the status percentage. + hunger = 10, + thirst = 0, + stress = 0, + armor = 0, + alcohol = 0, + stamina = 0, + } + }, + ["cooked_bbq_thigh"] = { + uses = 1, + prop = { model = `prop_cs_steak`, boneId = 18905, offset = vec3(0.1114, 0.0389, 0.0497), rotation = vec3(160.2057, 77.8283, -7.5425) }, + animation = { dict = "mp_player_inteat@burger", anim = "mp_player_int_eat_burger_fp", time = 2000, params = { nil, nil, nil, 49 } }, + status = { -- Per use. Values are based on percentage of the max value of the status. If below zero, it will remove the status percentage. + hunger = 10, + thirst = 0, + stress = 0, + armor = 0, + alcohol = 0, + stamina = 0, + } + }, + ["cooked_turkey_drum"] = { + uses = 1, + prop = { model = `prop_turkey_leg_01`, boneId = 18905, offset = vec3(0.1114, 0.0389, 0.0497), rotation = vec3(160.2057, 77.8283, -7.5425) }, + animation = { dict = "mp_player_inteat@burger", anim = "mp_player_int_eat_burger_fp", time = 2000, params = { nil, nil, nil, 49 } }, + status = { -- Per use. Values are based on percentage of the max value of the status. If below zero, it will remove the status percentage. + hunger = 10, + thirst = 0, + stress = 0, + armor = 0, + alcohol = 0, + stamina = 0, + } + }, + ["cooked_corn_cob"] = { + uses = 1, + prop = { model = `prop_turkey_leg_01`, boneId = 18905, offset = vec3(0.1114, 0.0389, 0.0497), rotation = vec3(160.2057, 77.8283, -7.5425) }, + animation = { dict = "mp_player_inteat@burger", anim = "mp_player_int_eat_burger_fp", time = 2000, params = { nil, nil, nil, 49 } }, + status = { -- Per use. Values are based on percentage of the max value of the status. If below zero, it will remove the status percentage. + hunger = 10, + thirst = 0, + stress = 0, + armor = 0, + alcohol = 0, + stamina = 0, + } + }, + ["cooked_kebab"] = { + uses = 1, + prop = { model = `prop_turkey_leg_01`, boneId = 18905, offset = vec3(0.1114, 0.0389, 0.0497), rotation = vec3(160.2057, 77.8283, -7.5425) }, + animation = { dict = "mp_player_inteat@burger", anim = "mp_player_int_eat_burger_fp", time = 2000, params = { nil, nil, nil, 49 } }, + status = { -- Per use. Values are based on percentage of the max value of the status. If below zero, it will remove the status percentage. + hunger = 10, + thirst = 0, + stress = 0, + armor = 0, + alcohol = 0, + stamina = 0, + } + }, + ["cooked_bbq_wings"] = { + uses = 2, + prop = { model = `prop_turkey_leg_01`, boneId = 18905, offset = vec3(0.1114, 0.0389, 0.0497), rotation = vec3(160.2057, 77.8283, -7.5425) }, + animation = { dict = "mp_player_inteat@burger", anim = "mp_player_int_eat_burger_fp", time = 2000, params = { nil, nil, nil, 49 } }, + status = { -- Per use. Values are based on percentage of the max value of the status. If below zero, it will remove the status percentage. + hunger = 5, + thirst = 0, + stress = 0, + armor = 0, + alcohol = 0, + stamina = 0, + } + }, + ["gg_hunting_cookedmeat"] = { + uses = 1, + prop = { model = `prop_cs_steak`, boneId = 18905, offset = vec3(0.1114, 0.0389, 0.0497), rotation = vec3(160.2057, 77.8283, -7.5425) }, + animation = { dict = "mp_player_inteat@burger", anim = "mp_player_int_eat_burger_fp", time = 2000, params = { nil, nil, nil, 49 } }, + status = { -- Per use. Values are based on percentage of the max value of the status. If below zero, it will remove the status percentage. + hunger = 10, + thirst = 0, + stress = 0, + armor = 0, + alcohol = 0, + stamina = 0, + } + }, + ["loaded_fries"] = { + uses = 2, + prop = { model = `bzzz_food_nachos_a`, boneId = 60309, offset = vec3(0.1114, 0.0389, 0.0497), rotation = vec3(160.2057, 77.8283, -7.5425) }, + idle = { dict = "bzzz_popcorn_animation", anim = "bzzz_popcorn_animation", time = 2000, params = { nil, nil, nil, 49 } }, + animation = { dict = "bzzz_popcorn_animation", anim = "bzzz_popcorn_animation", time = 2000, params = { nil, nil, nil, 49 } }, + status = { -- Per use. Values are based on percentage of the max value of the status. If below zero, it will remove the status percentage. + hunger = 25, + thirst = 0, + stress = 0, + armor = 0, + alcohol = 0, + stamina = 0, + } + }, + ["bw_cupcake"] = { + uses = 1, + prop = { model = `pata_christmasfood6`, boneId = 18905, offset = vec3(0.1114, 0.0389, 0.0497), rotation = vec3(160.2057, 77.8283, -7.5425) }, + idle = { dict = "mp_player_inteat@burger", anim = "static", time = 2000, params = { nil, nil, nil, 49 } }, + animation = { dict = "mp_player_inteat@burger", anim = "mp_player_int_eat_burger", time = 2000, params = { nil, nil, nil, 49 } }, + status = { -- Per use. Values are based on percentage of the max value of the status. If below zero, it will remove the status percentage. + hunger = 20, + thirst = 0, + stress = 0, + armor = 0, + alcohol = 0, + stamina = 0, + } + }, + ["dc_cupcake"] = { + uses = 1, + prop = { model = `pata_christmasfood6`, boneId = 18905, offset = vec3(0.1114, 0.0389, 0.0497), rotation = vec3(160.2057, 77.8283, -7.5425) }, + idle = { dict = "mp_player_inteat@burger", anim = "static", time = 2000, params = { nil, nil, nil, 49 } }, + animation = { dict = "mp_player_inteat@burger", anim = "mp_player_int_eat_burger", time = 2000, params = { nil, nil, nil, 49 } }, + status = { -- Per use. Values are based on percentage of the max value of the status. If below zero, it will remove the status percentage. + hunger = 20, + thirst = 0, + stress = 0, + armor = 0, + alcohol = 0, + stamina = 0, + } + }, + ["bb_cupcake"] = { + uses = 1, + prop = { model = `pata_christmasfood6`, boneId = 18905, offset = vec3(0.1114, 0.0389, 0.0497), rotation = vec3(160.2057, 77.8283, -7.5425) }, + idle = { dict = "mp_player_inteat@burger", anim = "static", time = 2000, params = { nil, nil, nil, 49 } }, + animation = { dict = "mp_player_inteat@burger", anim = "mp_player_int_eat_burger", time = 2000, params = { nil, nil, nil, 49 } }, + status = { -- Per use. Values are based on percentage of the max value of the status. If below zero, it will remove the status percentage. + hunger = 20, + thirst = 0, + stress = 0, + armor = 0, + alcohol = 0, + stamina = 0, + } + }, + ["rb_cupcake"] = { + uses = 1, + prop = { model = `pata_christmasfood6`, boneId = 18905, offset = vec3(0.1114, 0.0389, 0.0497), rotation = vec3(160.2057, 77.8283, -7.5425) }, + idle = { dict = "mp_player_inteat@burger", anim = "static", time = 2000, params = { nil, nil, nil, 49 } }, + animation = { dict = "mp_player_inteat@burger", anim = "mp_player_int_eat_burger", time = 2000, params = { nil, nil, nil, 49 } }, + status = { -- Per use. Values are based on percentage of the max value of the status. If below zero, it will remove the status percentage. + hunger = 20, + thirst = 0, + stress = 0, + armor = 0, + alcohol = 0, + stamina = 0, + } + }, + ["cc_cupcake"] = { + uses = 1, + prop = { model = `pata_christmasfood6`, boneId = 18905, offset = vec3(0.1114, 0.0389, 0.0497), rotation = vec3(160.2057, 77.8283, -7.5425) }, + idle = { dict = "mp_player_inteat@burger", anim = "static", time = 2000, params = { nil, nil, nil, 49 } }, + animation = { dict = "mp_player_inteat@burger", anim = "mp_player_int_eat_burger", time = 2000, params = { nil, nil, nil, 49 } }, + status = { -- Per use. Values are based on percentage of the max value of the status. If below zero, it will remove the status percentage. + hunger = 20, + thirst = 0, + stress = 0, + armor = 0, + alcohol = 0, + stamina = 0, + } + }, + ["wc_cupcake"] = { + uses = 1, + prop = { model = `pata_christmasfood6`, boneId = 18905, offset = vec3(0.1114, 0.0389, 0.0497), rotation = vec3(160.2057, 77.8283, -7.5425) }, + idle = { dict = "mp_player_inteat@burger", anim = "static", time = 2000, params = { nil, nil, nil, 49 } }, + animation = { dict = "mp_player_inteat@burger", anim = "mp_player_int_eat_burger", time = 2000, params = { nil, nil, nil, 49 } }, + status = { -- Per use. Values are based on percentage of the max value of the status. If below zero, it will remove the status percentage. + hunger = 20, + thirst = 0, + stress = 0, + armor = 0, + alcohol = 0, + stamina = 0, + } + }, + ["c_cake"] = { + uses = 1, + prop = { model = `bzzz_sugary_cake_a`, boneId = 18905, offset = vec3(0.1114, 0.0389, 0.0497), rotation = vec3(160.2057, 77.8283, -7.5425) }, + idle = { dict = "mp_player_inteat@burger", anim = "static", time = 2000, params = { nil, nil, nil, 49 } }, + animation = { dict = "mp_player_inteat@burger", anim = "mp_player_int_eat_burger", time = 2000, params = { nil, nil, nil, 49 } }, + status = { -- Per use. Values are based on percentage of the max value of the status. If below zero, it will remove the status percentage. + hunger = 20, + thirst = 0, + stress = 0, + armor = 0, + alcohol = 0, + stamina = 0, + } + }, + ["cc_cake"] = { + uses = 1, + prop = { model = `bzzz_sugary_cake_b`, boneId = 18905, offset = vec3(0.1114, 0.0389, 0.0497), rotation = vec3(160.2057, 77.8283, -7.5425) }, + idle = { dict = "mp_player_inteat@burger", anim = "static", time = 2000, params = { nil, nil, nil, 49 } }, + animation = { dict = "mp_player_inteat@burger", anim = "mp_player_int_eat_burger", time = 2000, params = { nil, nil, nil, 49 } }, + status = { -- Per use. Values are based on percentage of the max value of the status. If below zero, it will remove the status percentage. + hunger = 20, + thirst = 0, + stress = 0, + armor = 0, + alcohol = 0, + stamina = 0, + } + }, + ["waffle_ice"] = { + uses = 1, + prop = { model = `bzzz_sugary_wafer_b`, boneId = 18905, offset = vec3(0.1114, 0.0389, 0.0497), rotation = vec3(160.2057, 77.8283, -7.5425) }, + idle = { dict = "mp_player_inteat@burger", anim = "static", time = 2000, params = { nil, nil, nil, 49 } }, + animation = { dict = "mp_player_inteat@burger", anim = "mp_player_int_eat_burger", time = 2000, params = { nil, nil, nil, 49 } }, + status = { -- Per use. Values are based on percentage of the max value of the status. If below zero, it will remove the status percentage. + hunger = 20, + thirst = 0, + stress = 0, + armor = 0, + alcohol = 0, + stamina = 0, + } + }, + ["salami_b"] = { + uses = 2, + prop = { model = `prop_sandwich_01`, boneId = 18905, offset = vec3(0.1114, 0.0389, 0.0497), rotation = vec3(160.2057, 77.8283, -7.5425) }, + idle = { dict = "mp_player_inteat@burger", anim = "static", time = 2000, params = { nil, nil, nil, 49 } }, + animation = { dict = "mp_player_inteat@burger", anim = "mp_player_int_eat_burger", time = 2000, params = { nil, nil, nil, 49 } }, + status = { -- Per use. Values are based on percentage of the max value of the status. If below zero, it will remove the status percentage. + hunger = 20, + thirst = 0, + stress = 0, + armor = 0, + alcohol = 0, + stamina = 0, + } + }, + ["bruschetta"] = { + uses = 2, + prop = { model = `prop_sandwich_01`, boneId = 18905, offset = vec3(0.1114, 0.0389, 0.0497), rotation = vec3(160.2057, 77.8283, -7.5425) }, + idle = { dict = "mp_player_inteat@burger", anim = "static", time = 2000, params = { nil, nil, nil, 49 } }, + animation = { dict = "mp_player_inteat@burger", anim = "mp_player_int_eat_burger", time = 2000, params = { nil, nil, nil, 49 } }, + status = { -- Per use. Values are based on percentage of the max value of the status. If below zero, it will remove the status percentage. + hunger = 20, + thirst = 0, + stress = 0, + armor = 0, + alcohol = 0, + stamina = 0, + } + }, + ["p_schnecke"] = { + uses = 2, + prop = { model = `prop_sandwich_01`, boneId = 18905, offset = vec3(0.1114, 0.0389, 0.0497), rotation = vec3(160.2057, 77.8283, -7.5425) }, + idle = { dict = "mp_player_inteat@burger", anim = "static", time = 2000, params = { nil, nil, nil, 49 } }, + animation = { dict = "mp_player_inteat@burger", anim = "mp_player_int_eat_burger", time = 2000, params = { nil, nil, nil, 49 } }, + status = { -- Per use. Values are based on percentage of the max value of the status. If below zero, it will remove the status percentage. + hunger = 20, + thirst = 0, + stress = 0, + armor = 0, + alcohol = 0, + stamina = 0, + } + }, + + + + ------------------- TRINKEN ---------------------- + ["beer"] = { + uses = 3, + prop = { model = `prop_cs_beer_bot_01`, boneId = 28422, offset = vec3(0.0, 0.00, -0.20), rotation = vec3(0.0, 0.0, 0.0) }, + animation = { dict = "mp_player_intdrink", anim = "loop_bottle", time = 2000, params = { nil, nil, nil, 49 } }, + effect = { name = "drunk", time = 500000, intensity = 1.0 }, + status = { -- Per use. Values are based on percentage of the max value of the status. If below zero, it will remove the status percentage. + hunger = 0, + thirst = 20, + stress = 0, + armor = 0, + alcohol = 0, + stamina = 0, + } + }, + ["spazi"] = { + uses = 2, + prop = { model = `bzzz_new_snacks_pepsiloca_b`, boneId = 28422, offset = vec3(0.0, 0.00, -0.07), rotation = vec3(0.0, 0.0, 0.0) }, + idle = { dict = "amb@code_human_wander_drinking_fat@beer@male@base", anim = "static", time = 2000, params = { nil, nil, nil, 49 } }, + animation = { dict = "mini@sprunk", anim = "plyr_buy_drink_pt2", time = 2000, params = { nil, nil, nil, 49 } }, + status = { -- Per use. Values are based on percentage of the max value of the status. If below zero, it will remove the status percentage. + hunger = 0, + thirst = 25, + stress = 0, + armor = 0, + alcohol = 0, + stamina = 0, + } + }, + ["spazi_limo"] = { + uses = 2, + prop = { model = `bzzz_new_snacks_pepsiloca_a`, boneId = 28422, offset = vec3(0.0, 0.00, -0.07), rotation = vec3(0.0, 0.0, 0.0) }, + idle = { dict = "amb@code_human_wander_drinking_fat@beer@male@base", anim = "static", time = 2000, params = { nil, nil, nil, 49 } }, + animation = { dict = "mini@sprunk", anim = "plyr_buy_drink_pt2", time = 2000, params = { nil, nil, nil, 49 } }, + status = { -- Per use. Values are based on percentage of the max value of the status. If below zero, it will remove the status percentage. + hunger = 0, + thirst = 25, + stress = 0, + armor = 0, + alcohol = 0, + stamina = 0, + } + }, + ["ecola_dose"] = { + uses = 1, + prop = { model = `prop_ecola_can`, boneId = 28422, offset = vec3(0.0, 0.00, -0.07), rotation = vec3(0.0, 0.0, 0.0) }, + idle = { dict = "amb@code_human_wander_drinking_fat@beer@male@base", anim = "static", time = 2000, params = { nil, nil, nil, 49 } }, + animation = { dict = "mini@sprunk", anim = "plyr_buy_drink_pt2", time = 2000, params = { nil, nil, nil, 49 } }, + status = { -- Per use. Values are based on percentage of the max value of the status. If below zero, it will remove the status percentage. + hunger = 0, + thirst = 20, + stress = 0, + armor = 0, + alcohol = 0, + stamina = 0, + } + }, + ["sprunk_dose"] = { + uses = 1, + prop = { model = `prop_ecola_can`, boneId = 28422, offset = vec3(0.0, 0.00, -0.07), rotation = vec3(0.0, 0.0, 0.0) }, + idle = { dict = "amb@code_human_wander_drinking_fat@beer@male@base", anim = "static", time = 2000, params = { nil, nil, nil, 49 } }, + animation = { dict = "mini@sprunk", anim = "plyr_buy_drink_pt2", time = 2000, params = { nil, nil, nil, 49 } }, + status = { -- Per use. Values are based on percentage of the max value of the status. If below zero, it will remove the status percentage. + hunger = 0, + thirst = 20, + stress = 0, + armor = 0, + alcohol = 0, + stamina = 0, + } + }, + ["slushi"] = { + uses = 2, + prop = { model = `prop_cs_bs_cup`, boneId = 28422, offset = vec3(0.0, 0.00, -0.20), rotation = vec3(0.0, 0.0, 0.0) }, + idle = { dict = "amb@code_human_wander_drinking_fat@beer@male@base", anim = "static", time = 2000, params = { nil, nil, nil, 49 } }, + animation = { dict = "mini@sprunk", anim = "plyr_buy_drink_pt2", time = 2000, params = { nil, nil, nil, 49 } }, + status = { -- Per use. Values are based on percentage of the max value of the status. If below zero, it will remove the status percentage. + hunger = 0, + thirst = 20, + stress = 0, + armor = 0, + alcohol = 0, + stamina = 0, + } + }, + ["bubble_tea"] = { + uses = 1, + prop = { model = `bzzz_food_bubbletea_a`, boneId = 28422, offset = vec3(0.0, 0.00, -0.20), rotation = vec3(0.0, 0.0, 0.0) }, + idle = { dict = "amb@code_human_wander_drinking_fat@beer@male@base", anim = "static", time = 2000, params = { nil, nil, nil, 49 } }, + animation = { dict = "mini@sprunk", anim = "plyr_buy_drink_pt2", time = 2000, params = { nil, nil, nil, 49 } }, + status = { -- Per use. Values are based on percentage of the max value of the status. If below zero, it will remove the status percentage. + hunger = 0, + thirst = 20, + stress = 0, + armor = 0, + alcohol = 0, + stamina = 0, + } + }, + ["ecola_zero_dose"] = { + uses = 1, + prop = { model = `prop_ecola_can`, boneId = 28422, offset = vec3(0.0, 0.00, -0.07), rotation = vec3(0.0, 0.0, 0.0) }, + idle = { dict = "amb@code_human_wander_drinking_fat@beer@male@base", anim = "static", time = 2000, params = { nil, nil, nil, 49 } }, + animation = { dict = "mini@sprunk", anim = "plyr_buy_drink_pt2", time = 2000, params = { nil, nil, nil, 49 } }, + status = { -- Per use. Values are based on percentage of the max value of the status. If below zero, it will remove the status percentage. + hunger = 0, + thirst = 20, + stress = 0, + armor = 0, + alcohol = 0, + stamina = 0, + } + }, + ["sprunk_zero_dose"] = { + uses = 1, + prop = { model = `prop_ld_can_01`, boneId = 28422, offset = vec3(0.0, 0.00, -0.07), rotation = vec3(0.0, 0.0, 0.0) }, + idle = { dict = "amb@code_human_wander_drinking_fat@beer@male@base", anim = "static", time = 2000, params = { nil, nil, nil, 49 } }, + animation = { dict = "mini@sprunk", anim = "plyr_buy_drink_pt2", time = 2000, params = { nil, nil, nil, 49 } }, + status = { -- Per use. Values are based on percentage of the max value of the status. If below zero, it will remove the status percentage. + hunger = 0, + thirst = 20, + stress = 0, + armor = 0, + alcohol = 0, + stamina = 0, + } + }, + ["sprunk_dose"] = { + uses = 1, + prop = { model = `prop_ld_can_01`, boneId = 28422, offset = vec3(0.0, 0.00, -0.07), rotation = vec3(0.0, 0.0, 0.0) }, + idle = { dict = "amb@code_human_wander_drinking_fat@beer@male@base", anim = "static", time = 2000, params = { nil, nil, nil, 49 } }, + animation = { dict = "mini@sprunk", anim = "plyr_buy_drink_pt2", time = 2000, params = { nil, nil, nil, 49 } }, + status = { -- Per use. Values are based on percentage of the max value of the status. If below zero, it will remove the status percentage. + hunger = 0, + thirst = 20, + stress = 0, + armor = 0, + alcohol = 0, + stamina = 0, + } + }, + ["orange_o_tang_zero_dose"] = { + uses = 1, + prop = { model = `prop_orang_can_01`, boneId = 28422, offset = vec3(0.0, 0.00, -0.07), rotation = vec3(0.0, 0.0, 0.0) }, + idle = { dict = "amb@code_human_wander_drinking_fat@beer@male@base", anim = "static", time = 2000, params = { nil, nil, nil, 49 } }, + animation = { dict = "mini@sprunk", anim = "plyr_buy_drink_pt2", time = 2000, params = { nil, nil, nil, 49 } }, + status = { -- Per use. Values are based on percentage of the max value of the status. If below zero, it will remove the status percentage. + hunger = 0, + thirst = 20, + stress = 0, + armor = 0, + alcohol = 0, + stamina = 0, + } + }, + ["orange_o_tang_dose"] = { + uses = 1, + prop = { model = `prop_orang_can_01`, boneId = 28422, offset = vec3(0.0, 0.00, -0.07), rotation = vec3(0.0, 0.0, 0.0) }, + idle = { dict = "amb@code_human_wander_drinking_fat@beer@male@base", anim = "static", time = 2000, params = { nil, nil, nil, 49 } }, + animation = { dict = "mini@sprunk", anim = "plyr_buy_drink_pt2", time = 2000, params = { nil, nil, nil, 49 } }, + status = { -- Per use. Values are based on percentage of the max value of the status. If below zero, it will remove the status percentage. + hunger = 0, + thirst = 20, + stress = 0, + armor = 0, + alcohol = 0, + stamina = 0, + } + }, + ["ecola_zero_flasche"] = { + uses = 2, + prop = { model = `ng_proc_sodabot_01a`, boneId = 28422, offset = vec3(0.0, 0.00, -0.20), rotation = vec3(0.0, 0.0, 0.0) }, + idle = { dict = "amb@code_human_wander_drinking_fat@beer@male@base", anim = "static", time = 2000, params = { nil, nil, nil, 49 } }, + animation = { dict = "mini@sprunk", anim = "plyr_buy_drink_pt2", time = 2000, params = { nil, nil, nil, 49 } }, + status = { -- Per use. Values are based on percentage of the max value of the status. If below zero, it will remove the status percentage. + hunger = 0, + thirst = 20, + stress = 0, + armor = 0, + alcohol = 0, + stamina = 0, + } + }, + ["ecola_flasche"] = { + uses = 2, + prop = { model = `ng_proc_sodabot_01a`, boneId = 28422, offset = vec3(0.0, 0.00, -0.20), rotation = vec3(0.0, 0.0, 0.0) }, + idle = { dict = "amb@code_human_wander_drinking_fat@beer@male@base", anim = "static", time = 2000, params = { nil, nil, nil, 49 } }, + animation = { dict = "mini@sprunk", anim = "plyr_buy_drink_pt2", time = 2000, params = { nil, nil, nil, 49 } }, + status = { -- Per use. Values are based on percentage of the max value of the status. If below zero, it will remove the status percentage. + hunger = 0, + thirst = 20, + stress = 0, + armor = 0, + alcohol = 0, + stamina = 0, + } + }, + ["sprunk_flasche"] = { + uses = 2, + prop = { model = `ng_proc_sodabot_01a`, boneId = 28422, offset = vec3(0.0, 0.00, -0.20), rotation = vec3(0.0, 0.0, 0.0) }, + idle = { dict = "amb@code_human_wander_drinking_fat@beer@male@base", anim = "static", time = 2000, params = { nil, nil, nil, 49 } }, + animation = { dict = "mini@sprunk", anim = "plyr_buy_drink_pt2", time = 2000, params = { nil, nil, nil, 49 } }, + status = { -- Per use. Values are based on percentage of the max value of the status. If below zero, it will remove the status percentage. + hunger = 0, + thirst = 20, + stress = 0, + armor = 0, + alcohol = 0, + stamina = 0, + } + }, + ["sprunk_zero_flasche"] = { + uses = 2, + prop = { model = `ng_proc_sodabot_01a`, boneId = 28422, offset = vec3(0.0, 0.00, -0.20), rotation = vec3(0.0, 0.0, 0.0) }, + idle = { dict = "amb@code_human_wander_drinking_fat@beer@male@base", anim = "static", time = 2000, params = { nil, nil, nil, 49 } }, + animation = { dict = "mini@sprunk", anim = "plyr_buy_drink_pt2", time = 2000, params = { nil, nil, nil, 49 } }, + status = { -- Per use. Values are based on percentage of the max value of the status. If below zero, it will remove the status percentage. + hunger = 0, + thirst = 20, + stress = 0, + armor = 0, + alcohol = 0, + stamina = 0, + } + }, + ["orange_o_tang_zero_flasche"] = { + uses = 2, + prop = { model = `ng_proc_sodabot_01a`, boneId = 28422, offset = vec3(0.0, 0.00, -0.20), rotation = vec3(0.0, 0.0, 0.0) }, + idle = { dict = "amb@code_human_wander_drinking_fat@beer@male@base", anim = "static", time = 2000, params = { nil, nil, nil, 49 } }, + animation = { dict = "mini@sprunk", anim = "plyr_buy_drink_pt2", time = 2000, params = { nil, nil, nil, 49 } }, + status = { -- Per use. Values are based on percentage of the max value of the status. If below zero, it will remove the status percentage. + hunger = 0, + thirst = 20, + stress = 0, + armor = 0, + alcohol = 0, + stamina = 0, + } + }, + ["orange_o_tang_flasche"] = { + uses = 2, + prop = { model = `ng_proc_sodabot_01a`, boneId = 28422, offset = vec3(0.0, 0.00, -0.20), rotation = vec3(0.0, 0.0, 0.0) }, + idle = { dict = "amb@code_human_wander_drinking_fat@beer@male@base", anim = "static", time = 2000, params = { nil, nil, nil, 49 } }, + animation = { dict = "mini@sprunk", anim = "plyr_buy_drink_pt2", time = 2000, params = { nil, nil, nil, 49 } }, + status = { -- Per use. Values are based on percentage of the max value of the status. If below zero, it will remove the status percentage. + hunger = 0, + thirst = 20, + stress = 0, + armor = 0, + alcohol = 0, + stamina = 0, + } + }, + ["water_bottle"] = { + uses = 2, + prop = { model = `h4_prop_club_water_bottle`, boneId = 28422, offset = vec3(0.0, 0.00, -0.20), rotation = vec3(0.0, 0.0, 0.0) }, + idle = { dict = "amb@code_human_wander_drinking_fat@beer@male@base", anim = "static", time = 2000, params = { nil, nil, nil, 49 } }, + animation = { dict = "mini@sprunk", anim = "plyr_buy_drink_pt2", time = 2000, params = { nil, nil, nil, 49 } }, + status = { -- Per use. Values are based on percentage of the max value of the status. If below zero, it will remove the status percentage. + hunger = 0, + thirst = 20, + stress = 0, + armor = 0, + alcohol = 0, + stamina = 0, + } + }, + ["junk_energy"] = { + uses = 1, + prop = { model = `sf_prop_sf_can_01a`, boneId = 28422, offset = vec3(0.0, 0.00, -0.07), rotation = vec3(0.0, 0.0, 0.0) }, + idle = { dict = "amb@code_human_wander_drinking_fat@beer@male@base", anim = "static", time = 2000, params = { nil, nil, nil, 49 } }, + animation = { dict = "mini@sprunk", anim = "plyr_buy_drink_pt2", time = 2000, params = { nil, nil, nil, 49 } }, + status = { -- Per use. Values are based on percentage of the max value of the status. If below zero, it will remove the status percentage. + hunger = 0, + thirst = 15, + stress = 0, + armor = 0, + alcohol = 0, + stamina = 0, + } + }, + ["munky_juice"] = { + uses = 1, + prop = { model = `bzzz_food_capisun_a`, boneId = 28422, offset = vec3(0.0, 0.00, -0.07), rotation = vec3(0.0, 0.0, 0.0) }, + idle = { dict = "amb@code_human_wander_drinking_fat@beer@male@base", anim = "static", time = 2000, params = { nil, nil, nil, 49 } }, + animation = { dict = "mini@sprunk", anim = "plyr_buy_drink_pt2", time = 2000, params = { nil, nil, nil, 49 } }, + status = { -- Per use. Values are based on percentage of the max value of the status. If below zero, it will remove the status percentage. + hunger = 0, + thirst = 10, + stress = 0, + armor = 0, + alcohol = 0, + stamina = 0, + } + }, + ["munky_juice_ice_tea"] = { + uses = 1, + prop = { model = `ng_proc_sodacan_01b`, boneId = 28422, offset = vec3(0.0, 0.00, -0.07), rotation = vec3(0.0, 0.0, 0.0) }, + idle = { dict = "amb@code_human_wander_drinking_fat@beer@male@base", anim = "static", time = 2000, params = { nil, nil, nil, 49 } }, + animation = { dict = "mini@sprunk", anim = "plyr_buy_drink_pt2", time = 2000, params = { nil, nil, nil, 49 } }, + status = { -- Per use. Values are based on percentage of the max value of the status. If below zero, it will remove the status percentage. + hunger = 0, + thirst = 10, + stress = 0, + armor = 0, + alcohol = 0, + stamina = 0, + } + }, + ["campers_fuel"] = { + uses = 1, + prop = { model = `sf_prop_sf_can_01a`, boneId = 28422, offset = vec3(0.0, 0.00, -0.07), rotation = vec3(0.0, 0.0, 0.0) }, + idle = { dict = "amb@code_human_wander_drinking_fat@beer@male@base", anim = "static", time = 2000, params = { nil, nil, nil, 49 } }, + animation = { dict = "mini@sprunk", anim = "plyr_buy_drink_pt2", time = 2000, params = { nil, nil, nil, 49 } }, + status = { -- Per use. Values are based on percentage of the max value of the status. If below zero, it will remove the status percentage. + hunger = 0, + thirst = 20, + stress = 0, + armor = 0, + alcohol = 0, + stamina = 0, + } + }, + ["kakao"] = { + uses = 1, + prop = { model = `p_amb_coffeecup_01`, boneId = 28422, offset = vec3(0.0, 0.00, 0.00), rotation = vec3(0.0, 0.0, 0.0) }, + idle = { dict = "amb@world_human_drinking@coffee@male@idle_a", anim = "idle_c", time = 2000, params = { nil, nil, nil, 49 } }, + animation = { dict = "amb@world_human_drinking@coffee@male@idle_a", anim = "idle_c", time = 2000, params = { nil, nil, nil, 49 } }, + effect = { name = "caffeine_boost", time = 360000, intensity = 1.0 }, + status = { + hunger = 0, + thirst = 15, + stress = 0, + armor = 0, + alcohol = 0, + stamina = 0, + } + }, + ["billokaffee"] = { + uses = 1, + prop = { model = `p_amb_coffeecup_01`, boneId = 28422, offset = vec3(0.0, 0.0, 0.0), rotation = vec3(0.0, 0.0, 0.0) }, + idle = { dict = "amb@world_human_drinking@coffee@male@idle_a", anim = "idle_c", time = 2000, params = { nil, nil, nil, 49 } }, + animation = { dict = "amb@world_human_drinking@coffee@male@idle_a", anim = "idle_c", time = 2000, params = { nil, nil, nil, 49 } }, + effect = { name = "caffeine_boost", time = 360000, intensity = 1.0 }, + status = { + hunger = 0, + thirst = 15, + stress = 0, + armor = 0, + alcohol = 0, + stamina = 0, + } + }, + ["coffee"] = { + uses = 1, + prop = { model = `p_amb_coffeecup_01`, boneId = 28422, offset = vec3(0.0, 0.0, 0.0), rotation = vec3(0.0, 0.0, 0.0) }, + idle = { dict = "amb@world_human_drinking@coffee@male@idle_a", anim = "idle_c", time = 2000, params = { nil, nil, nil, 49 } }, + animation = { dict = "amb@world_human_drinking@coffee@male@idle_a", anim = "idle_c", time = 2000, params = { nil, nil, nil, 49 } }, + status = { + hunger = 0, + thirst = 20, + stress = 0, + armor = 0, + alcohol = 0, + stamina = 0, + } + }, + ["salep"] = { + uses = 2, + prop = { model = `p_ing_coffeecup_01`, boneId = 28422, offset = vec3(0.0, 0.0, 0.0), rotation = vec3(0.0, 0.0, 0.0) }, + idle = { dict = "amb@world_human_drinking@coffee@male@idle_a", anim = "idle_c", time = 2000, params = { nil, nil, nil, 49 } }, + animation = { dict = "amb@world_human_drinking@coffee@male@idle_a", anim = "idle_c", time = 2000, params = { nil, nil, nil, 49 } }, + status = { + hunger = 0, + thirst = 25, + stress = 0, + armor = 0, + alcohol = 0, + stamina = 0, + } + }, + ["ayran"] = { + uses = 2, + prop = { model = `v_ind_cfcup`, boneId = 28422, offset = vec3(0.0, 0.0, 0.0), rotation = vec3(0.0, 0.0, 0.0) }, + idle = { dict = "amb@world_human_drinking@coffee@male@idle_a", anim = "idle_c", time = 2000, params = { nil, nil, nil, 49 } }, + animation = { dict = "amb@world_human_drinking@coffee@male@idle_a", anim = "idle_c", time = 2000, params = { nil, nil, nil, 49 } }, + status = { + hunger = 0, + thirst = 25, + stress = 0, + armor = 0, + alcohol = 0, + stamina = 0, + } + }, + ["cay"] = { + uses = 2, + prop = { model = `v_ret_gc_cup`, boneId = 28422, offset = vec3(0.0, 0.0, 0.0), rotation = vec3(0.0, 0.0, 0.0) }, + idle = { dict = "amb@world_human_drinking@coffee@male@idle_a", anim = "idle_c", time = 2000, params = { nil, nil, nil, 49 } }, + animation = { dict = "amb@world_human_drinking@coffee@male@idle_a", anim = "idle_c", time = 2000, params = { nil, nil, nil, 49 } }, + status = { + hunger = 0, + thirst = 25, + stress = 0, + armor = 0, + alcohol = 0, + stamina = 0, + } + }, + ["raki"] = { + uses = 1, + prop = { model = `h4_prop_battle_shot_glass_01`, boneId = 28422, offset = vec3(0.0, 0.0, 0.0), rotation = vec3(0.0, 0.0, 0.0) }, + idle = { dict = "amb@world_human_drinking@coffee@male@idle_a", anim = "idle_c", time = 2000, params = { nil, nil, nil, 49 } }, + animation = { dict = "amb@world_human_drinking@coffee@male@idle_a", anim = "idle_c", time = 2000, params = { nil, nil, nil, 49 } }, + effect = { name = "drunk", time = 40000, intensity = 1.0 }, + status = { + hunger = 0, + thirst = 10, + stress = 0, + armor = 0, + alcohol = 0, + stamina = 0, + } + }, + ["gazoz"] = { + uses = 2, + prop = { model = `ng_proc_sodacan_01b`, boneId = 28422, offset = vec3(0.0, 0.00, 0.00), rotation = vec3(0.0, 0.0, 0.0) }, + idle = { dict = "amb@code_human_wander_drinking_fat@beer@male@base", anim = "static", time = 2000, params = { nil, nil, nil, 49 } }, + animation = { dict = "mini@sprunk", anim = "plyr_buy_drink_pt2", time = 2000, params = { nil, nil, nil, 49 } }, + status = { -- Per use. Values are based on percentage of the max value of the status. If below zero, it will remove the status percentage. + hunger = 0, + thirst = 25, + stress = 0, + armor = 0, + alcohol = 0, + stamina = 0, + } + }, + ["kayas_rotwein"] = { + uses = 2, + prop = { model = `p_wine_glass_s`, boneId = 28422, offset = vec3(0.0, 0.00, -0.20), rotation = vec3(0.0, 0.0, 0.0) }, + idle = { dict = "amb@code_human_wander_drinking_fat@beer@male@base", anim = "static", time = 2000, params = { nil, nil, nil, 49 } }, + animation = { dict = "mini@sprunk", anim = "plyr_buy_drink_pt2", time = 2000, params = { nil, nil, nil, 49 } }, + effect = { name = "drunk", time = 40000, intensity = 1.0 }, + status = { -- Per use. Values are based on percentage of the max value of the status. If below zero, it will remove the status percentage. + hunger = 0, + thirst = 15, + stress = 0, + armor = 0, + alcohol = 0, + stamina = 0, + } + }, + ["marble_pop_limo"] = { + uses = 2, + prop = { model = `h4_prop_club_tonic_bottle`, boneId = 28422, offset = vec3(0.0, 0.00, -0.20), rotation = vec3(0.0, 0.0, 0.0) }, + idle = { dict = "amb@code_human_wander_drinking_fat@beer@male@base", anim = "static", time = 2000, params = { nil, nil, nil, 49 } }, + animation = { dict = "mini@sprunk", anim = "plyr_buy_drink_pt2", time = 2000, params = { nil, nil, nil, 49 } }, + status = { -- Per use. Values are based on percentage of the max value of the status. If below zero, it will remove the status percentage. + hunger = 0, + thirst = 25, + stress = 0, + armor = 0, + alcohol = 0, + stamina = 0, + } + }, + ["cerveza_barracho"] = { + uses = 2, + prop = { model = `prop_beer_bar`, boneId = 28422, offset = vec3(0.0, 0.00, -0.20), rotation = vec3(0.0, 0.0, 0.0) }, + idle = { dict = "amb@code_human_wander_drinking_fat@beer@male@base", anim = "static", time = 2000, params = { nil, nil, nil, 49 } }, + animation = { dict = "mini@sprunk", anim = "plyr_buy_drink_pt2", time = 2000, params = { nil, nil, nil, 49 } }, + effect = { name = "drunk", time = 40000, intensity = 1.0 }, + status = { -- Per use. Values are based on percentage of the max value of the status. If below zero, it will remove the status percentage. + hunger = 0, + thirst = 25, + stress = 0, + armor = 0, + alcohol = 0, + stamina = 0, + } + }, + ["kadis_rostbite"] = { + uses = 2, + prop = { model = `ex_p_ex_tumbler_03_empty`, boneId = 28422, offset = vec3(0.0, 0.00, 0.00), rotation = vec3(0.0, 0.0, 0.0) }, + idle = { dict = "amb@code_human_wander_drinking_fat@beer@male@base", anim = "static", time = 2000, params = { nil, nil, nil, 49 } }, + animation = { dict = "mini@sprunk", anim = "plyr_buy_drink_pt2", time = 2000, params = { nil, nil, nil, 49 } }, + effect = { name = "drunk", time = 40000, intensity = 1.0 }, + status = { -- Per use. Values are based on percentage of the max value of the status. If below zero, it will remove the status percentage. + hunger = 0, + thirst = 10, + stress = 0, + armor = 0, + alcohol = 0, + stamina = 0, + } + }, + ["jords_cean_reeze_alkoholfrei"] = { + uses = 2, + prop = { model = `ex_p_ex_tumbler_03_empty`, boneId = 28422, offset = vec3(0.0, 0.00, 0.00), rotation = vec3(0.0, 0.0, 0.0) }, + idle = { dict = "amb@code_human_wander_drinking_fat@beer@male@base", anim = "static", time = 2000, params = { nil, nil, nil, 49 } }, + animation = { dict = "mini@sprunk", anim = "plyr_buy_drink_pt2", time = 2000, params = { nil, nil, nil, 49 } }, + status = { -- Per use. Values are based on percentage of the max value of the status. If below zero, it will remove the status percentage. + hunger = 0, + thirst = 10, + stress = 0, + armor = 0, + alcohol = 0, + stamina = 0, + } + }, + ["ifs_olden_ectar"] = { + uses = 2, + prop = { model = `ex_p_ex_tumbler_03_empty`, boneId = 28422, offset = vec3(0.0, 0.00, 0.00), rotation = vec3(0.0, 0.0, 0.0) }, + idle = { dict = "amb@code_human_wander_drinking_fat@beer@male@base", anim = "static", time = 2000, params = { nil, nil, nil, 49 } }, + animation = { dict = "mini@sprunk", anim = "plyr_buy_drink_pt2", time = 2000, params = { nil, nil, nil, 49 } }, + effect = { name = "drunk", time = 40000, intensity = 1.0 }, + status = { -- Per use. Values are based on percentage of the max value of the status. If below zero, it will remove the status percentage. + hunger = 0, + thirst = 10, + stress = 0, + armor = 0, + alcohol = 0, + stamina = 0, + } + }, + ["ggdrasils_ssence"] = { + uses = 2, + prop = { model = `ex_p_ex_tumbler_03_empty`, boneId = 28422, offset = vec3(0.0, 0.00, 0.00), rotation = vec3(0.0, 0.0, 0.0) }, + idle = { dict = "amb@code_human_wander_drinking_fat@beer@male@base", anim = "static", time = 2000, params = { nil, nil, nil, 49 } }, + animation = { dict = "mini@sprunk", anim = "plyr_buy_drink_pt2", time = 2000, params = { nil, nil, nil, 49 } }, + effect = { name = "drunk", time = 40000, intensity = 1.0 }, + status = { -- Per use. Values are based on percentage of the max value of the status. If below zero, it will remove the status percentage. + hunger = 0, + thirst = 10, + stress = 0, + armor = 0, + alcohol = 0, + stamina = 0, + } + }, + ["baldurslightelixir"] = { + uses = 2, + prop = { model = `ex_p_ex_tumbler_03_empty`, boneId = 28422, offset = vec3(0.0, 0.00, 0.00), rotation = vec3(0.0, 0.0, 0.0) }, + idle = { dict = "amb@code_human_wander_drinking_fat@beer@male@base", anim = "static", time = 2000, params = { nil, nil, nil, 49 } }, + animation = { dict = "mini@sprunk", anim = "plyr_buy_drink_pt2", time = 2000, params = { nil, nil, nil, 49 } }, + effect = { name = "drunk", time = 40000, intensity = 1.0 }, + status = { -- Per use. Values are based on percentage of the max value of the status. If below zero, it will remove the status percentage. + hunger = 0, + thirst = 10, + stress = 0, + armor = 0, + alcohol = 0, + stamina = 0, + } + }, + ["eimdalls_lear_ight"] = { + uses = 2, + prop = { model = `ex_p_ex_tumbler_03_empty`, boneId = 28422, offset = vec3(0.0, 0.00, 0.00), rotation = vec3(0.0, 0.0, 0.0) }, + idle = { dict = "amb@code_human_wander_drinking_fat@beer@male@base", anim = "static", time = 2000, params = { nil, nil, nil, 49 } }, + animation = { dict = "mini@sprunk", anim = "plyr_buy_drink_pt2", time = 2000, params = { nil, nil, nil, 49 } }, + effect = { name = "drunk", time = 40000, intensity = 1.0 }, + status = { -- Per use. Values are based on percentage of the max value of the status. If below zero, it will remove the status percentage. + hunger = 0, + thirst = 10, + stress = 0, + armor = 0, + alcohol = 0, + stamina = 0, + } + }, + ["lokis_trickster_punch"] = { + uses = 2, + prop = { model = `ex_p_ex_tumbler_03_empty`, boneId = 28422, offset = vec3(0.0, 0.00, 0.00), rotation = vec3(0.0, 0.0, 0.0) }, + idle = { dict = "amb@code_human_wander_drinking_fat@beer@male@base", anim = "static", time = 2000, params = { nil, nil, nil, 49 } }, + animation = { dict = "mini@sprunk", anim = "plyr_buy_drink_pt2", time = 2000, params = { nil, nil, nil, 49 } }, + effect = { name = "drunk", time = 40000, intensity = 1.0 }, + status = { -- Per use. Values are based on percentage of the max value of the status. If below zero, it will remove the status percentage. + hunger = 0, + thirst = 10, + stress = 0, + armor = 0, + alcohol = 0, + stamina = 0, + } + }, + ["hors_hunder_torm_alkoholfrei"] = { + uses = 2, + prop = { model = `ex_p_ex_tumbler_03_empty`, boneId = 28422, offset = vec3(0.0, 0.00, 0.00), rotation = vec3(0.0, 0.0, 0.0) }, + idle = { dict = "amb@code_human_wander_drinking_fat@beer@male@base", anim = "static", time = 2000, params = { nil, nil, nil, 49 } }, + animation = { dict = "mini@sprunk", anim = "plyr_buy_drink_pt2", time = 2000, params = { nil, nil, nil, 49 } }, + status = { -- Per use. Values are based on percentage of the max value of the status. If below zero, it will remove the status percentage. + hunger = 0, + thirst = 10, + stress = 0, + armor = 0, + alcohol = 0, + stamina = 0, + } + }, + ["freyas_blossom"] = { + uses = 2, + prop = { model = `ex_p_ex_tumbler_03_empty`, boneId = 28422, offset = vec3(0.0, 0.00, 0.00), rotation = vec3(0.0, 0.0, 0.0) }, + idle = { dict = "amb@code_human_wander_drinking_fat@beer@male@base", anim = "static", time = 2000, params = { nil, nil, nil, 49 } }, + animation = { dict = "mini@sprunk", anim = "plyr_buy_drink_pt2", time = 2000, params = { nil, nil, nil, 49 } }, + status = { -- Per use. Values are based on percentage of the max value of the status. If below zero, it will remove the status percentage. + hunger = 0, + thirst = 10, + stress = 0, + armor = 0, + alcohol = 0, + stamina = 0, + } + }, + ["odins_wisdom_brew"] = { + uses = 2, + prop = { model = `prop_beerdusche`, boneId = 28422, offset = vec3(0.0, 0.00, 0.00), rotation = vec3(0.0, 0.0, 0.0) }, + idle = { dict = "amb@code_human_wander_drinking_fat@beer@male@base", anim = "static", time = 2000, params = { nil, nil, nil, 49 } }, + animation = { dict = "mini@sprunk", anim = "plyr_buy_drink_pt2", time = 2000, params = { nil, nil, nil, 49 } }, + status = { -- Per use. Values are based on percentage of the max value of the status. If below zero, it will remove the status percentage. + hunger = 0, + thirst = 10, + stress = 0, + armor = 0, + alcohol = 0, + stamina = 0, + } + }, + ["skadis_hunt"] = { + uses = 2, + prop = { model = `prop_tequsunrise`, boneId = 28422, offset = vec3(0.0, 0.00, 0.00), rotation = vec3(0.0, 0.0, 0.0) }, + idle = { dict = "amb@code_human_wander_drinking_fat@beer@male@base", anim = "static", time = 2000, params = { nil, nil, nil, 49 } }, + animation = { dict = "mini@sprunk", anim = "plyr_buy_drink_pt2", time = 2000, params = { nil, nil, nil, 49 } }, + status = { -- Per use. Values are based on percentage of the max value of the status. If below zero, it will remove the status percentage. + hunger = 0, + thirst = 10, + stress = 0, + armor = 0, + alcohol = 0, + stamina = 0, + } + }, + ["njords_tide"] = { + uses = 2, + prop = { model = `ex_p_ex_tumbler_03_empty`, boneId = 28422, offset = vec3(0.0, 0.00, 0.00), rotation = vec3(0.0, 0.0, 0.0) }, + idle = { dict = "amb@code_human_wander_drinking_fat@beer@male@base", anim = "static", time = 2000, params = { nil, nil, nil, 49 } }, + animation = { dict = "mini@sprunk", anim = "plyr_buy_drink_pt2", time = 2000, params = { nil, nil, nil, 49 } }, + status = { -- Per use. Values are based on percentage of the max value of the status. If below zero, it will remove the status percentage. + hunger = 0, + thirst = 10, + stress = 0, + armor = 0, + alcohol = 0, + stamina = 0, + } + }, + ["sifs_golden-ale"] = { + uses = 2, + prop = { model = `prop_beer_logger`, boneId = 28422, offset = vec3(0.0, 0.00, 0.00), rotation = vec3(0.0, 0.0, 0.0) }, + idle = { dict = "amb@code_human_wander_drinking_fat@beer@male@base", anim = "static", time = 2000, params = { nil, nil, nil, 49 } }, + animation = { dict = "mini@sprunk", anim = "plyr_buy_drink_pt2", time = 2000, params = { nil, nil, nil, 49 } }, + status = { -- Per use. Values are based on percentage of the max value of the status. If below zero, it will remove the status percentage. + hunger = 0, + thirst = 10, + stress = 0, + armor = 0, + alcohol = 0, + stamina = 0, + } + }, + ["yggdrasils_root"] = { + uses = 2, + prop = { model = `ex_p_ex_tumbler_03_empty`, boneId = 28422, offset = vec3(0.0, 0.00, 0.00), rotation = vec3(0.0, 0.0, 0.0) }, + idle = { dict = "amb@code_human_wander_drinking_fat@beer@male@base", anim = "static", time = 2000, params = { nil, nil, nil, 49 } }, + animation = { dict = "mini@sprunk", anim = "plyr_buy_drink_pt2", time = 2000, params = { nil, nil, nil, 49 } }, + status = { -- Per use. Values are based on percentage of the max value of the status. If below zero, it will remove the status percentage. + hunger = 0, + thirst = 10, + stress = 0, + armor = 0, + alcohol = 0, + stamina = 0, + } + }, + ["baldurs_light"] = { + uses = 2, + prop = { model = `ex_p_ex_tumbler_03_empty`, boneId = 28422, offset = vec3(0.0, 0.00, 0.00), rotation = vec3(0.0, 0.0, 0.0) }, + idle = { dict = "amb@code_human_wander_drinking_fat@beer@male@base", anim = "static", time = 2000, params = { nil, nil, nil, 49 } }, + animation = { dict = "mini@sprunk", anim = "plyr_buy_drink_pt2", time = 2000, params = { nil, nil, nil, 49 } }, + status = { -- Per use. Values are based on percentage of the max value of the status. If below zero, it will remove the status percentage. + hunger = 0, + thirst = 10, + stress = 0, + armor = 0, + alcohol = 0, + stamina = 0, + } + }, + ["heimdalls_watch"] = { + uses = 2, + prop = { model = `prop_tequsunrise`, boneId = 28422, offset = vec3(0.0, 0.00, 0.00), rotation = vec3(0.0, 0.0, 0.0) }, + idle = { dict = "amb@code_human_wander_drinking_fat@beer@male@base", anim = "static", time = 2000, params = { nil, nil, nil, 49 } }, + animation = { dict = "mini@sprunk", anim = "plyr_buy_drink_pt2", time = 2000, params = { nil, nil, nil, 49 } }, + status = { -- Per use. Values are based on percentage of the max value of the status. If below zero, it will remove the status percentage. + hunger = 0, + thirst = 10, + stress = 0, + armor = 0, + alcohol = 0, + stamina = 0, + } + }, + ["freyas_kiss"] = { + uses = 2, + prop = { model = `prop_tequsunrise`, boneId = 28422, offset = vec3(0.0, 0.00, 0.00), rotation = vec3(0.0, 0.0, 0.0) }, + idle = { dict = "amb@code_human_wander_drinking_fat@beer@male@base", anim = "static", time = 2000, params = { nil, nil, nil, 49 } }, + animation = { dict = "mini@sprunk", anim = "plyr_buy_drink_pt2", time = 2000, params = { nil, nil, nil, 49 } }, + status = { -- Per use. Values are based on percentage of the max value of the status. If below zero, it will remove the status percentage. + hunger = 0, + thirst = 10, + stress = 0, + armor = 0, + alcohol = 0, + stamina = 0, + } + }, + ["thors_hammer"] = { + uses = 2, + prop = { model = `prop_tequsunrise`, boneId = 28422, offset = vec3(0.0, 0.00, 0.00), rotation = vec3(0.0, 0.0, 0.0) }, + idle = { dict = "amb@code_human_wander_drinking_fat@beer@male@base", anim = "static", time = 2000, params = { nil, nil, nil, 49 } }, + animation = { dict = "mini@sprunk", anim = "plyr_buy_drink_pt2", time = 2000, params = { nil, nil, nil, 49 } }, + status = { -- Per use. Values are based on percentage of the max value of the status. If below zero, it will remove the status percentage. + hunger = 0, + thirst = 10, + stress = 0, + armor = 0, + alcohol = 0, + stamina = 0, + } + }, + ["odins_mead"] = { + uses = 2, + prop = { model = `prop_tequsunrise`, boneId = 28422, offset = vec3(0.0, 0.00, 0.00), rotation = vec3(0.0, 0.0, 0.0) }, + idle = { dict = "amb@code_human_wander_drinking_fat@beer@male@base", anim = "static", time = 2000, params = { nil, nil, nil, 49 } }, + animation = { dict = "mini@sprunk", anim = "plyr_buy_drink_pt2", time = 2000, params = { nil, nil, nil, 49 } }, + status = { -- Per use. Values are based on percentage of the max value of the status. If below zero, it will remove the status percentage. + hunger = 0, + thirst = 10, + stress = 0, + armor = 0, + alcohol = 0, + stamina = 0, + } + }, + ["sprunk"] = { + uses = 2, + prop = { model = `prop_cs_bs_cup`, boneId = 28422, offset = vec3(0.0, 0.00, -0.07), rotation = vec3(0.0, 0.0, 0.0) }, + idle = { dict = "amb@code_human_wander_drinking_fat@beer@male@base", anim = "static", time = 2000, params = { nil, nil, nil, 49 } }, + animation = { dict = "mini@sprunk", anim = "plyr_buy_drink_pt2", time = 2000, params = { nil, nil, nil, 49 } }, + status = { -- Per use. Values are based on percentage of the max value of the status. If below zero, it will remove the status percentage. + hunger = 0, + thirst = 10, + stress = 0, + armor = 0, + alcohol = 0, + stamina = 0, + } + }, + ["ecola"] = { + uses = 2, + prop = { model = `prop_cs_bs_cup`, boneId = 28422, offset = vec3(0.0, 0.00, -0.07), rotation = vec3(0.0, 0.0, 0.0) }, + idle = { dict = "amb@code_human_wander_drinking_fat@beer@male@base", anim = "static", time = 2000, params = { nil, nil, nil, 49 } }, + animation = { dict = "mini@sprunk", anim = "plyr_buy_drink_pt2", time = 2000, params = { nil, nil, nil, 49 } }, + status = { -- Per use. Values are based on percentage of the max value of the status. If below zero, it will remove the status percentage. + hunger = 0, + thirst = 20, + stress = 0, + armor = 0, + alcohol = 0, + stamina = 0, + } + }, + ["ornageo"] = { + uses = 2, + prop = { model = `prop_cs_bs_cup`, boneId = 28422, offset = vec3(0.0, 0.00, -0.07), rotation = vec3(0.0, 0.0, 0.0) }, + idle = { dict = "amb@code_human_wander_drinking_fat@beer@male@base", anim = "static", time = 2000, params = { nil, nil, nil, 49 } }, + animation = { dict = "mini@sprunk", anim = "plyr_buy_drink_pt2", time = 2000, params = { nil, nil, nil, 49 } }, + status = { -- Per use. Values are based on percentage of the max value of the status. If below zero, it will remove the status percentage. + hunger = 0, + thirst = 20, + stress = 0, + armor = 0, + alcohol = 0, + stamina = 0, + } + }, + ["ecola_light"] = { + uses = 2, + prop = { model = `prop_cs_bs_cup`, boneId = 28422, offset = vec3(0.0, 0.00, -0.07), rotation = vec3(0.0, 0.0, 0.0) }, + idle = { dict = "amb@code_human_wander_drinking_fat@beer@male@base", anim = "static", time = 2000, params = { nil, nil, nil, 49 } }, + animation = { dict = "mini@sprunk", anim = "plyr_buy_drink_pt2", time = 2000, params = { nil, nil, nil, 49 } }, + status = { -- Per use. Values are based on percentage of the max value of the status. If below zero, it will remove the status percentage. + hunger = 0, + thirst = 20, + stress = 0, + armor = 0, + alcohol = 0, + stamina = 0, + } + }, + ["sludgie"] = { + uses = 2, + prop = { model = `prop_cs_bs_cup`, boneId = 28422, offset = vec3(0.0, 0.00, -0.07), rotation = vec3(0.0, 0.0, 0.0) }, + idle = { dict = "amb@code_human_wander_drinking_fat@beer@male@base", anim = "static", time = 2000, params = { nil, nil, nil, 49 } }, + animation = { dict = "mini@sprunk", anim = "plyr_buy_drink_pt2", time = 2000, params = { nil, nil, nil, 49 } }, + status = { -- Per use. Values are based on percentage of the max value of the status. If below zero, it will remove the status percentage. + hunger = 0, + thirst = 10, + stress = 0, + armor = 0, + alcohol = 0, + stamina = 0, + } + }, + ["juice"] = { + uses = 2, + prop = { model = `prop_cs_bs_cup`, boneId = 28422, offset = vec3(0.0, 0.00, -0.07), rotation = vec3(0.0, 0.0, 0.0) }, + idle = { dict = "amb@code_human_wander_drinking_fat@beer@male@base", anim = "static", time = 2000, params = { nil, nil, nil, 49 } }, + animation = { dict = "mini@sprunk", anim = "plyr_buy_drink_pt2", time = 2000, params = { nil, nil, nil, 49 } }, + status = { -- Per use. Values are based on percentage of the max value of the status. If below zero, it will remove the status percentage. + hunger = 0, + thirst = 10, + stress = 0, + armor = 0, + alcohol = 0, + stamina = 0, + } + }, + ["whiskey"] = { + uses = 4, + prop = { model = `prop_whiskey_bottle`, boneId = 28422, offset = vec3(0.0, 0.00, 0.00), rotation = vec3(0.0, 0.0, 0.0) }, + idle = { dict = "amb@code_human_wander_drinking_fat@beer@male@base", anim = "static", time = 2000, params = { nil, nil, nil, 49 } }, + animation = { dict = "mini@sprunk", anim = "plyr_buy_drink_pt2", time = 2000, params = { nil, nil, nil, 49 } }, + status = { -- Per use. Values are based on percentage of the max value of the status. If below zero, it will remove the status percentage. + hunger = 0, + thirst = 6, + stress = 0, + armor = 0, + alcohol = 0, + stamina = 0, + } + }, + ["vodka"] = { + uses = 4, + prop = { model = `prop_cherenkov_01`, boneId = 28422, offset = vec3(0.0, 0.00, 0.00), rotation = vec3(0.0, 0.0, 0.0) }, + idle = { dict = "amb@code_human_wander_drinking_fat@beer@male@base", anim = "static", time = 2000, params = { nil, nil, nil, 49 } }, + animation = { dict = "mini@sprunk", anim = "plyr_buy_drink_pt2", time = 2000, params = { nil, nil, nil, 49 } }, + status = { -- Per use. Values are based on percentage of the max value of the status. If below zero, it will remove the status percentage. + hunger = 0, + thirst = 6, + stress = 0, + armor = 0, + alcohol = 0, + stamina = 0, + } + }, + ["wine"] = { + uses = 4, + prop = { model = `prop_cherenkov_01`, boneId = 28422, offset = vec3(0.0, 0.00, -0.20), rotation = vec3(0.0, 0.0, 0.0) }, + idle = { dict = "amb@code_human_wander_drinking_fat@beer@male@base", anim = "static", time = 2000, params = { nil, nil, nil, 49 } }, + animation = { dict = "mini@sprunk", anim = "plyr_buy_drink_pt2", time = 2000, params = { nil, nil, nil, 49 } }, + status = { -- Per use. Values are based on percentage of the max value of the status. If below zero, it will remove the status percentage. + hunger = 0, + thirst = 6, + stress = 0, + armor = 0, + alcohol = 0, + stamina = 0, + } + }, + ["wwine"] = { + uses = 2, + prop = { model = `prop_drink_whtwine`, boneId = 28422, offset = vec3(0.0, 0.00, -0.20), rotation = vec3(0.0, 0.0, 0.0) }, + idle = { dict = "amb@code_human_wander_drinking_fat@beer@male@base", anim = "static", time = 2000, params = { nil, nil, nil, 49 } }, + animation = { dict = "mini@sprunk", anim = "plyr_buy_drink_pt2", time = 2000, params = { nil, nil, nil, 49 } }, + status = { -- Per use. Values are based on percentage of the max value of the status. If below zero, it will remove the status percentage. + hunger = 0, + thirst = 6, + stress = 0, + armor = 0, + alcohol = 0, + stamina = 0, + } + }, + ["cup_cola"] = { + uses = 2, + prop = { model = `apa_prop_cs_plastic_cup_01`, boneId = 28422, offset = vec3(0.0, 0.00, -0.20), rotation = vec3(0.0, 0.0, 0.0) }, + idle = { dict = "amb@code_human_wander_drinking_fat@beer@male@base", anim = "static", time = 2000, params = { nil, nil, nil, 49 } }, + animation = { dict = "mini@sprunk", anim = "plyr_buy_drink_pt2", time = 2000, params = { nil, nil, nil, 49 } }, + status = { -- Per use. Values are based on percentage of the max value of the status. If below zero, it will remove the status percentage. + hunger = 0, + thirst = 6, + stress = 0, + armor = 0, + alcohol = 0, + stamina = 0, + } + }, + ["cup_lemonade"] = { + uses = 2, + prop = { model = `apa_prop_cs_plastic_cup_01`, boneId = 28422, offset = vec3(0.0, 0.00, 0.00), rotation = vec3(0.0, 0.0, 0.0) }, + idle = { dict = "amb@code_human_wander_drinking_fat@beer@male@base", anim = "static", time = 2000, params = { nil, nil, nil, 49 } }, + animation = { dict = "mini@sprunk", anim = "plyr_buy_drink_pt2", time = 2000, params = { nil, nil, nil, 49 } }, + status = { -- Per use. Values are based on percentage of the max value of the status. If below zero, it will remove the status percentage. + hunger = 0, + thirst = 6, + stress = 0, + armor = 0, + alcohol = 0, + stamina = 0, + } + }, + ["cup_tide"] = { + uses = 2, + prop = { model = `apa_prop_cs_plastic_cup_01`, boneId = 28422, offset = vec3(0.0, 0.00, 0.00), rotation = vec3(0.0, 0.0, 0.0) }, + idle = { dict = "amb@code_human_wander_drinking_fat@beer@male@base", anim = "static", time = 2000, params = { nil, nil, nil, 49 } }, + animation = { dict = "mini@sprunk", anim = "plyr_buy_drink_pt2", time = 2000, params = { nil, nil, nil, 49 } }, + status = { -- Per use. Values are based on percentage of the max value of the status. If below zero, it will remove the status percentage. + hunger = 0, + thirst = 6, + stress = 0, + armor = 0, + alcohol = 0, + stamina = 0, + } + }, + ["cup_beer"] = { + uses = 2, + prop = { model = `apa_prop_cs_plastic_cup_01`, boneId = 28422, offset = vec3(0.0, 0.00, 0.00), rotation = vec3(0.0, 0.0, 0.0) }, + idle = { dict = "amb@code_human_wander_drinking_fat@beer@male@base", anim = "static", time = 2000, params = { nil, nil, nil, 49 } }, + animation = { dict = "mini@sprunk", anim = "plyr_buy_drink_pt2", time = 2000, params = { nil, nil, nil, 49 } }, + status = { -- Per use. Values are based on percentage of the max value of the status. If below zero, it will remove the status percentage. + hunger = 0, + thirst = 6, + stress = 0, + armor = 0, + alcohol = 0, + stamina = 0, + } + }, + ["coffeemug"] = { + uses = 2, + prop = { model = `v_ret_gc_mug01`, boneId = 28422, offset = vec3(0.0, 0.00, 0.00), rotation = vec3(0.0, 0.0, 0.0) }, + idle = { dict = "amb@code_human_wander_drinking_fat@beer@male@base", anim = "static", time = 2000, params = { nil, nil, nil, 49 } }, + animation = { dict = "mini@sprunk", anim = "plyr_buy_drink_pt2", time = 2000, params = { nil, nil, nil, 49 } }, + status = { -- Per use. Values are based on percentage of the max value of the status. If below zero, it will remove the status percentage. + hunger = 0, + thirst = 6, + stress = 0, + armor = 0, + alcohol = 0, + stamina = 0, + } + }, + ["latte"] = { + uses = 2, + prop = { model = `v_ret_gc_mug01`, boneId = 28422, offset = vec3(0.0, 0.00, 0.00), rotation = vec3(0.0, 0.0, 0.0) }, + idle = { dict = "amb@code_human_wander_drinking_fat@beer@male@base", anim = "static", time = 2000, params = { nil, nil, nil, 49 } }, + animation = { dict = "mini@sprunk", anim = "plyr_buy_drink_pt2", time = 2000, params = { nil, nil, nil, 49 } }, + status = { -- Per use. Values are based on percentage of the max value of the status. If below zero, it will remove the status percentage. + hunger = 0, + thirst = 6, + stress = 0, + armor = 0, + alcohol = 0, + stamina = 0, + } + }, + ["cappuccino"] = { + uses = 2, + prop = { model = `v_ret_gc_mug01`, boneId = 28422, offset = vec3(0.0, 0.00, 0.00), rotation = vec3(0.0, 0.0, 0.0) }, + idle = { dict = "amb@code_human_wander_drinking_fat@beer@male@base", anim = "static", time = 2000, params = { nil, nil, nil, 49 } }, + animation = { dict = "mini@sprunk", anim = "plyr_buy_drink_pt2", time = 2000, params = { nil, nil, nil, 49 } }, + status = { -- Per use. Values are based on percentage of the max value of the status. If below zero, it will remove the status percentage. + hunger = 0, + thirst = 6, + stress = 0, + armor = 0, + alcohol = 0, + stamina = 0, + } + }, + ["espresso"] = { + uses = 2, + prop = { model = `v_ret_gc_mug01`, boneId = 28422, offset = vec3(0.0, 0.00, 0.00), rotation = vec3(0.0, 0.0, 0.0) }, + idle = { dict = "amb@code_human_wander_drinking_fat@beer@male@base", anim = "static", time = 2000, params = { nil, nil, nil, 49 } }, + animation = { dict = "mini@sprunk", anim = "plyr_buy_drink_pt2", time = 2000, params = { nil, nil, nil, 49 } }, + status = { -- Per use. Values are based on percentage of the max value of the status. If below zero, it will remove the status percentage. + hunger = 0, + thirst = 6, + stress = 0, + armor = 0, + alcohol = 0, + stamina = 0, + } + }, + ["milk"] = { + uses = 2, + prop = { model = `v_res_tt_milk`, boneId = 28422, offset = vec3(0.0, 0.00, 0.00), rotation = vec3(0.0, 0.0, 0.0) }, + idle = { dict = "amb@code_human_wander_drinking_fat@beer@male@base", anim = "static", time = 2000, params = { nil, nil, nil, 49 } }, + animation = { dict = "mini@sprunk", anim = "plyr_buy_drink_pt2", time = 2000, params = { nil, nil, nil, 49 } }, + status = { -- Per use. Values are based on percentage of the max value of the status. If below zero, it will remove the status percentage. + hunger = 0, + thirst = 6, + stress = 0, + armor = 0, + alcohol = 0, + stamina = 0, + } + }, + ["kakao"] = { + uses = 2, + prop = { model = `v_ret_gc_mug01`, boneId = 28422, offset = vec3(0.0, 0.00, 0.00), rotation = vec3(0.0, 0.0, 0.0) }, + idle = { dict = "amb@code_human_wander_drinking_fat@beer@male@base", anim = "static", time = 2000, params = { nil, nil, nil, 49 } }, + animation = { dict = "mini@sprunk", anim = "plyr_buy_drink_pt2", time = 2000, params = { nil, nil, nil, 49 } }, + status = { -- Per use. Values are based on percentage of the max value of the status. If below zero, it will remove the status percentage. + hunger = 0, + thirst = 6, + stress = 0, + armor = 0, + alcohol = 0, + stamina = 0, + } + }, + ["kakao2"] = { + uses = 2, + prop = { model = `v_ret_gc_mug01`, boneId = 28422, offset = vec3(0.0, 0.00, 0.00), rotation = vec3(0.0, 0.0, 0.0) }, + idle = { dict = "amb@code_human_wander_drinking_fat@beer@male@base", anim = "static", time = 2000, params = { nil, nil, nil, 49 } }, + animation = { dict = "mini@sprunk", anim = "plyr_buy_drink_pt2", time = 2000, params = { nil, nil, nil, 49 } }, + status = { -- Per use. Values are based on percentage of the max value of the status. If below zero, it will remove the status percentage. + hunger = 0, + thirst = 6, + stress = 0, + armor = 0, + alcohol = 0, + stamina = 0, + } + }, + ["kakao3"] = { + uses = 2, + prop = { model = `v_ret_gc_mug01`, boneId = 28422, offset = vec3(0.0, 0.00, 0.00), rotation = vec3(0.0, 0.0, 0.0) }, + idle = { dict = "amb@code_human_wander_drinking_fat@beer@male@base", anim = "static", time = 2000, params = { nil, nil, nil, 49 } }, + animation = { dict = "mini@sprunk", anim = "plyr_buy_drink_pt2", time = 2000, params = { nil, nil, nil, 49 } }, + status = { -- Per use. Values are based on percentage of the max value of the status. If below zero, it will remove the status percentage. + hunger = 0, + thirst = 6, + stress = 0, + armor = 0, + alcohol = 0, + stamina = 0, + } + }, + ["applejuice"] = { + uses = 2, + prop = { model = `bzzz_tree_juice_red`, boneId = 28422, offset = vec3(0.0, 0.00, -0.20), rotation = vec3(0.0, 0.0, 0.0) }, + idle = { dict = "amb@code_human_wander_drinking_fat@beer@male@base", anim = "static", time = 2000, params = { nil, nil, nil, 49 } }, + animation = { dict = "mini@sprunk", anim = "plyr_buy_drink_pt2", time = 2000, params = { nil, nil, nil, 49 } }, + status = { -- Per use. Values are based on percentage of the max value of the status. If below zero, it will remove the status percentage. + hunger = 0, + thirst = 20, + stress = 0, + armor = 0, + alcohol = 0, + stamina = 0, + } + }, + ["orangejuice"] = { + uses = 2, + prop = { model = `bzzz_tree_juice_red`, boneId = 28422, offset = vec3(0.0, 0.00, -0.20), rotation = vec3(0.0, 0.0, 0.0) }, + idle = { dict = "amb@code_human_wander_drinking_fat@beer@male@base", anim = "static", time = 2000, params = { nil, nil, nil, 49 } }, + animation = { dict = "mini@sprunk", anim = "plyr_buy_drink_pt2", time = 2000, params = { nil, nil, nil, 49 } }, + status = { -- Per use. Values are based on percentage of the max value of the status. If below zero, it will remove the status percentage. + hunger = 0, + thirst = 20, + stress = 0, + armor = 0, + alcohol = 0, + stamina = 0, + } + }, + ["grapejuice"] = { + uses = 2, + prop = { model = `bzzz_tree_juice_red`, boneId = 28422, offset = vec3(0.0, 0.00, -0.20), rotation = vec3(0.0, 0.0, 0.0) }, + idle = { dict = "amb@code_human_wander_drinking_fat@beer@male@base", anim = "static", time = 2000, params = { nil, nil, nil, 49 } }, + animation = { dict = "mini@sprunk", anim = "plyr_buy_drink_pt2", time = 2000, params = { nil, nil, nil, 49 } }, + status = { -- Per use. Values are based on percentage of the max value of the status. If below zero, it will remove the status percentage. + hunger = 0, + thirst = 20, + stress = 0, + armor = 0, + alcohol = 0, + stamina = 0, + } + }, + ["cc_cino"] = { + uses = 2, + prop = { model = `bzzz_food_cooffeecup01_a`, boneId = 28422, offset = vec3(0.0, 0.00, 0.00), rotation = vec3(0.0, 0.0, 0.0) }, + idle = { dict = "amb@code_human_wander_drinking_fat@beer@male@base", anim = "static", time = 2000, params = { nil, nil, nil, 49 } }, + animation = { dict = "mini@sprunk", anim = "plyr_buy_drink_pt2", time = 2000, params = { nil, nil, nil, 49 } }, + status = { -- Per use. Values are based on percentage of the max value of the status. If below zero, it will remove the status percentage. + hunger = 0, + thirst = 25, + stress = 0, + armor = 0, + alcohol = 0, + stamina = 0, + } + }, + ["cc_kaffe"] = { + uses = 2, + prop = { model = `bzzz_food_cooffeecup01_a`, boneId = 28422, offset = vec3(0.0, 0.00, 0.00), rotation = vec3(0.0, 0.0, 0.0) }, + idle = { dict = "amb@code_human_wander_drinking_fat@beer@male@base", anim = "static", time = 2000, params = { nil, nil, nil, 49 } }, + animation = { dict = "mini@sprunk", anim = "plyr_buy_drink_pt2", time = 2000, params = { nil, nil, nil, 49 } }, + status = { -- Per use. Values are based on percentage of the max value of the status. If below zero, it will remove the status percentage. + hunger = 0, + thirst = 25, + stress = 0, + armor = 0, + alcohol = 0, + stamina = 0, + } + }, + ["h_choclate"] = { + uses = 2, + prop = { model = `bzzz_food_cooffeecup01_a`, boneId = 28422, offset = vec3(0.0, 0.00, 0.00), rotation = vec3(0.0, 0.0, 0.0) }, + idle = { dict = "amb@code_human_wander_drinking_fat@beer@male@base", anim = "static", time = 2000, params = { nil, nil, nil, 49 } }, + animation = { dict = "mini@sprunk", anim = "plyr_buy_drink_pt2", time = 2000, params = { nil, nil, nil, 49 } }, + status = { -- Per use. Values are based on percentage of the max value of the status. If below zero, it will remove the status percentage. + hunger = 0, + thirst = 25, + stress = 0, + armor = 0, + alcohol = 0, + stamina = 0, + } + }, + ["cc_latte"] = { + uses = 2, + prop = { model = `bzzz_food_cooffeecup01_a`, boneId = 28422, offset = vec3(0.0, 0.00, 0.00), rotation = vec3(0.0, 0.0, 0.0) }, + idle = { dict = "amb@code_human_wander_drinking_fat@beer@male@base", anim = "static", time = 2000, params = { nil, nil, nil, 49 } }, + animation = { dict = "mini@sprunk", anim = "plyr_buy_drink_pt2", time = 2000, params = { nil, nil, nil, 49 } }, + status = { -- Per use. Values are based on percentage of the max value of the status. If below zero, it will remove the status percentage. + hunger = 0, + thirst = 25, + stress = 0, + armor = 0, + alcohol = 0, + stamina = 0, + } + }, + ["cc_espresso"] = { + uses = 1, + prop = { model = `bzzz_food_cooffeecup01_a`, boneId = 28422, offset = vec3(0.0, 0.00, 0.00), rotation = vec3(0.0, 0.0, 0.0) }, + idle = { dict = "amb@code_human_wander_drinking_fat@beer@male@base", anim = "static", time = 2000, params = { nil, nil, nil, 49 } }, + animation = { dict = "mini@sprunk", anim = "plyr_buy_drink_pt2", time = 2000, params = { nil, nil, nil, 49 } }, + status = { -- Per use. Values are based on percentage of the max value of the status. If below zero, it will remove the status percentage. + hunger = 0, + thirst = 20, + stress = 0, + armor = 0, + alcohol = 0, + stamina = 0, + } + }, + ["olimo"] = { + uses = 2, + prop = { model = `v_ind_cfcup`, boneId = 28422, offset = vec3(0.0, 0.0, 0.0), rotation = vec3(0.0, 0.0, 0.0) }, + idle = { dict = "amb@world_human_drinking@coffee@male@idle_a", anim = "idle_c", time = 2000, params = { nil, nil, nil, 49 } }, + animation = { dict = "amb@world_human_drinking@coffee@male@idle_a", anim = "idle_c", time = 2000, params = { nil, nil, nil, 49 } }, + status = { + hunger = 0, + thirst = 25, + stress = 0, + armor = 0, + alcohol = 0, + stamina = 0, + } + }, + ["klimo"] = { + uses = 2, + prop = { model = `v_ind_cfcup`, boneId = 28422, offset = vec3(0.0, 0.0, 0.0), rotation = vec3(0.0, 0.0, 0.0) }, + idle = { dict = "amb@world_human_drinking@coffee@male@idle_a", anim = "idle_c", time = 2000, params = { nil, nil, nil, 49 } }, + animation = { dict = "amb@world_human_drinking@coffee@male@idle_a", anim = "idle_c", time = 2000, params = { nil, nil, nil, 49 } }, + status = { + hunger = 0, + thirst = 25, + stress = 0, + armor = 0, + alcohol = 0, + stamina = 0, + } + }, + ["zlimo"] = { + uses = 2, + prop = { model = `v_ind_cfcup`, boneId = 28422, offset = vec3(0.0, 0.0, 0.0), rotation = vec3(0.0, 0.0, 0.0) }, + idle = { dict = "amb@world_human_drinking@coffee@male@idle_a", anim = "idle_c", time = 2000, params = { nil, nil, nil, 49 } }, + animation = { dict = "amb@world_human_drinking@coffee@male@idle_a", anim = "idle_c", time = 2000, params = { nil, nil, nil, 49 } }, + status = { + hunger = 0, + thirst = 25, + stress = 0, + armor = 0, + alcohol = 0, + stamina = 0, + } + }, + ["s_shake"] = { + uses = 2, + prop = { model = `bzzz_food_bubbletea_a`, boneId = 28422, offset = vec3(0.0, 0.0, 0.0), rotation = vec3(0.0, 0.0, 0.0) }, + idle = { dict = "amb@world_human_drinking@coffee@male@idle_a", anim = "idle_c", time = 2000, params = { nil, nil, nil, 49 } }, + animation = { dict = "amb@world_human_drinking@coffee@male@idle_a", anim = "idle_c", time = 2000, params = { nil, nil, nil, 49 } }, + status = { + hunger = 0, + thirst = 25, + stress = 0, + armor = 0, + alcohol = 0, + stamina = 0, + } + }, + ["e_kaffee"] = { + uses = 2, + prop = { model = `bzzz_food_bubbletea_a`, boneId = 28422, offset = vec3(0.0, 0.0, 0.0), rotation = vec3(0.0, 0.0, 0.0) }, + idle = { dict = "amb@world_human_drinking@coffee@male@idle_a", anim = "idle_c", time = 2000, params = { nil, nil, nil, 49 } }, + animation = { dict = "amb@world_human_drinking@coffee@male@idle_a", anim = "idle_c", time = 2000, params = { nil, nil, nil, 49 } }, + status = { + hunger = 0, + thirst = 25, + stress = 0, + armor = 0, + alcohol = 0, + stamina = 0, + } + }, + +} diff --git a/resources/[inventory]/pickle_consumables/core/client.lua b/resources/[inventory]/pickle_consumables/core/client.lua new file mode 100644 index 000000000..64a090830 --- /dev/null +++ b/resources/[inventory]/pickle_consumables/core/client.lua @@ -0,0 +1,371 @@ +function CreateBlip(data) + local x,y,z = table.unpack(data.coords) + local blip = AddBlipForCoord(x, y, z) + SetBlipSprite(blip, data.id or 1) + SetBlipDisplay(blip, data.display or 4) + SetBlipScale(blip, data.scale or 1.0) + SetBlipColour(blip, data.color or 1) + if (data.rotation) then + SetBlipRotation(blip, math.ceil(data.rotation)) + end + SetBlipAsShortRange(blip, true) + BeginTextCommandSetBlipName("STRING") + AddTextComponentString(data.label) + EndTextCommandSetBlipName(blip) + return blip +end + +function CreateVeh(modelHash, ...) + RequestModel(modelHash) + while not HasModelLoaded(modelHash) do Wait(0) end + local veh = CreateVehicle(modelHash, ...) + SetModelAsNoLongerNeeded(modelHash) + if Config.GiveKeys then + Config.GiveKeys(veh) + end + return veh +end + +function CreateNPC(modelHash, ...) + RequestModel(modelHash) + while not HasModelLoaded(modelHash) do Wait(0) end + local ped = CreatePed(26, modelHash, ...) + SetModelAsNoLongerNeeded(modelHash) + return ped +end + +function CreateProp(modelHash, ...) + RequestModel(modelHash) + while not HasModelLoaded(modelHash) do Wait(0) end + local obj = CreateObject(modelHash, ...) + SetModelAsNoLongerNeeded(modelHash) + return obj +end + +function PlayAnim(ped, dict, ...) + RequestAnimDict(dict) + while not HasAnimDictLoaded(dict) do Wait(0) end + TaskPlayAnim(ped, dict, ...) +end + +function PlayEffect(dict, particleName, entity, off, rot, scale, networked) + RequestNamedPtfxAsset(dict) + while not HasNamedPtfxAssetLoaded(dict) do + Wait(0) + end + UseParticleFxAssetNextCall(dict) + local off = off or vector3(0.0, 0.0, 0.0) + local rot = rot or vector3(0.0, 0.0, 0.0) + local handle = StartParticleFxLoopedOnEntity(particleName, entity, off.x, off.y, off.z, rot.x, rot.y, rot.z, scale or 1.0) + if networked then + TriggerServerEvent("pickle_consumables:startEffect", ObjToNet(entity), dict, particleName, off, rot, scale) + end + return handle +end + +function GetClosestVehicleDoor(vehicle, coords) + local coords = coords or GetEntityCoords(PlayerPedId()) + local bones = { + "door_dside_f", + "door_dside_r", + "door_pside_f", + "door_pside_r", + "bonnet", + "boot" + } + local doors = { + 0, + 2, + 1, + 3, + 4, + 5 + } + local closest + for i=1, #bones do + local boneID = GetEntityBoneIndexByName(vehicle, bones[i]) + if boneID ~= -1 then + local vcoords = GetWorldPositionOfEntityBone(vehicle, boneID) + local dist = #(coords - vcoords) + if (not closest or closest.dist > dist) and dist < 3.0 then + closest = {door = doors[i], coords = vcoords, dist = dist} + end + end + end + if closest then + return closest.door, closest.dist + end +end + +function GetNearestEntity(pool, coords, radius, model) + local coords = coords or GetEntityCoords(PlayerPedId()) + local radius = radius or 3.0 + local pool = GetGamePool(pool) + local closest + for i=1, #pool do + local vcoords = GetEntityCoords(pool[i]) + local dist = #(coords - vcoords) + if (not closest or closest.dist > dist) and (not model or GetEntityModel(pool[i]) == model) then + closest = {entity = pool[i], dist = dist} + end + end + if closest then + return closest.entity, closest.dist + end +end + +function GetNearestVehicle(coords, radius) + return GetNearestEntity('CVehicle', coords, radius) +end + +function GetNearestEntityModel(model, coords, radius) + local entity = GetNearestEntity('CVehicle', coords, radius, model) + if entity then return entity end + local entity = GetNearestEntity('CPed', coords, radius, model) + if entity then return entity end + local entity = GetNearestEntity('CObject', coords, radius, model) + if entity then return entity end +end + +function GetClosestPlayer(coords, radius) + local coords = coords or GetEntityCoords(PlayerPedId()) + local radius = radius or 3.0 + local players = GetPlayersInArea(coords, radius) + local closest + for i=1, #players do + local pcoords = GetEntityCoords(GetPlayerPed(players[i])) + local dist = #(coords - pcoords) + if not closest or closest.dist > dist then + closest = {id = GetPlayerServerId(players[i]), dist = dist} + end + end + if closest then + return closest.id, closest.dist + end +end + +local interactTick = 0 +local interactCheck = false +local interactText = nil + +function ShowInteractText(text) + local timer = GetGameTimer() + interactTick = timer + if interactText == nil or interactText ~= text then + interactText = text + lib.showTextUI(text) + end + if interactCheck then return end + interactCheck = true + CreateThread(function() + Wait(150) + local timer = GetGameTimer() + interactCheck = false + if timer ~= interactTick then + lib.hideTextUI() + interactText = nil + interactTick = 0 + end + end) +end + +local Interactions = {} +EnableInteraction = true + +function FormatOptions(index, data) + local options = data.options + local list = {} + if not options or #options < 2 then + list[1] = ((options and options[1]) and options[1] or { label = data.label }) + list[1].name = GetCurrentResourceName() .. "_option_" .. math.random(1,999999999) + list[1].onSelect = function(data) + SelectInteraction(index, 1, data) + end + return list + end + for i=1, #options do + list[i] = options[i] + list[i].name = GetCurrentResourceName() .. "_option_" .. math.random(1,999999999) + list[i].onSelect = function(data) + SelectInteraction(index, i, data) + end + end + return list +end + +function EnsureInteractionModel(index) + local data = Interactions[index] + if not data or data.entity then return end + local entity + if not data.model and not data.hiddenKeypress and Config.UseTarget and Config.NoModelTargeting then + entity = CreateProp(`ng_proc_brick_01a`, data.coords.x, data.coords.y, data.coords.z, false, true, false) + SetEntityAlpha(entity, 0, false) + elseif data.model and (not data.model.modelType or data.model.modelType == "ped") then + local offset = data.model.offset or vector3(0.0, 0.0, 0.0) + entity = CreateNPC(data.model.hash, data.coords.x + offset.x, data.coords.y + offset.y, (data.coords.z - 1.0) + offset.z, data.heading, false, true) + SetEntityInvincible(entity, true) + SetBlockingOfNonTemporaryEvents(entity, true) + elseif data.model and data.model.modelType == "prop" then + local offset = data.model.offset or vector3(0.0, 0.0, 0.0) + entity = CreateProp(data.model.hash, data.coords.x + offset.x, data.coords.y + offset.y, (data.coords.z - 1.0) + offset.z, false, true, false) + else + return + end + FreezeEntityPosition(entity, true) + SetEntityHeading(entity, data.heading) + Interactions[index].entity = entity + return entity +end + +function DeleteInteractionEntity(index) + local data = Interactions[index] + if not data or not data.entity then return end + DeleteEntity(data.entity) + Interactions[index].entity = nil +end + +function SelectInteraction(index, selection, targetData) + if not EnableInteraction then return end + local pcoords = GetEntityCoords(PlayerPedId()) + local data = Interactions[index] + if not data.target and #(data.coords - pcoords) > Config.InteractDistance then + return ShowNotification(_L("interact_far")) + end + Interactions[index].selected(selection, targetData) +end + +function CreateInteraction(data, selected) + local index + repeat + index = math.random(1, 999999999) + until not Interactions[index] + local options = FormatOptions(index, data) + Interactions[index] = { + selected = selected, + options = options, + label = data.label, + model = data.model, + coords = data.coords, + target = data.target, + offset = data.offset, + radius = data.radius or 1.0, + heading = data.heading, + hiddenKeypress = data.hiddenKeypress + } + if Config.UseTarget then + if data.target then + AddTargetModel(data.target, Interactions[index].radius, Interactions[index].options) + else + Interactions[index].zone = AddTargetZone(Interactions[index].coords, Interactions[index].radius, Interactions[index].options) + end + end + return index +end + +function UpdateInteraction(index, data, selected) + if not Interactions[index] then return end + Interactions[index].selected = selected + for k,v in pairs(data) do + Interactions[index][k] = v + end + if data.options then + Interactions[index].options = FormatOptions(index, data) + end + if Config.UseTarget then + if Interactions[index].target then + RemoveTargetZone(Interactions[index].zone) + Interactions[index].zone = AddTargetZone(Interactions[index].coords, Interactions[index].radius, Interactions[index].options) + else + RemoveTargetModel(Interactions[index].target, Interactions[index].options) + AddTargetModel(Interactions[index].target, Interactions[index].radius, Interactions[index].options) + end + end +end + +function DeleteInteraction(index) + local data = Interactions[index] + if not data then return end + if (data.entity) then + DeleteInteractionEntity(index) + end + if Config.UseTarget then + if data.target then + RemoveTargetModel(data.target, data.options) + else + RemoveTargetZone(data.zone) + end + end + Interactions[index] = nil +end + +Citizen.CreateThread(function() + while true do + local ped = PlayerPedId() + local pcoords = GetEntityCoords(ped) + local wait = 1500 + for k,v in pairs(Interactions) do + local coords = v.coords + if coords then + local dist = #(pcoords-coords) + if (dist < Config.RenderDistance) then + EnsureInteractionModel(k) + if not Config.UseTarget or v.hiddenKeypress then + if not Config.UseTarget and not v.hiddenKeypress and not v.model and Config.Marker and Config.Marker.enabled then + wait = 0 + DrawMarker(Config.Marker.id, coords.x, coords.y, coords.z, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, + Config.Marker.scale, Config.Marker.scale, Config.Marker.scale, Config.Marker.color[1], + Config.Marker.color[2], Config.Marker.color[3], Config.Marker.color[4], false, true) + end + if dist < Config.InteractDistance then + wait = 0 + if not ShowInteractText("[E] - " .. v.label) and IsControlJustPressed(1, 51) then + if not v.options or #v.options < 2 then + SelectInteraction(k, 1) + else + lib.registerContext({ + id = 'lottery_'..k, + title = v.title or "Options", + options = v.options + }) + lib.showContext('lottery_'..k) + end + end + end + end + elseif v.entity then + DeleteInteractionEntity(k) + end + elseif not Config.UseTarget and v.target then + local entity = GetNearestEntityModel(v.target) + if entity then + local offset = v.offset or vector3(0.0, 0.0, 0.0) + local coords = GetOffsetFromEntityInWorldCoords(entity, offset.x, offset.y, offset.z) + local dist = #(pcoords-coords) + if dist < v.radius then + wait = 0 + if not ShowInteractText("[E] - " .. v.label) and IsControlJustPressed(1, 51) then + if not v.options or #v.options < 2 then + SelectInteraction(k, 1, {entity = entity, coords = coords, dist = dist}) + else + lib.registerContext({ + id = 'lottery_'..k, + title = v.title or "Options", + options = v.options + }) + lib.showContext('lottery_'..k) + end + end + end + end + end + end + Wait(wait) + end +end) + +AddEventHandler('onResourceStop', function(resourceName) + if (GetCurrentResourceName() ~= resourceName) then return end + for k,v in pairs(Interactions) do + DeleteInteraction(k) + end +end) \ No newline at end of file diff --git a/resources/[inventory]/pickle_consumables/core/shared.lua b/resources/[inventory]/pickle_consumables/core/shared.lua new file mode 100644 index 000000000..f8124df33 --- /dev/null +++ b/resources/[inventory]/pickle_consumables/core/shared.lua @@ -0,0 +1,27 @@ +Language = {} + +function _L(name, ...) + if name then + local str = Language[Config.Language][name] + if str then + return string.format(str, ...) + else + return "ERR_TRANSLATE_"..(name).."_404" + end + else + return "ERR_TRANSLATE_404" + end +end + +function lerp(a, b, t) return a + (b-a) * t end + +function v3(coords) return vec3(coords.x, coords.y, coords.z), coords.w end + +function GetRandomInt(min, max, exclude) + for i=1, 1000 do + local int = math.random(min, max) + if exclude == nil or exclude ~= int then + return int + end + end +end \ No newline at end of file diff --git a/resources/[inventory]/pickle_consumables/fxmanifest.lua b/resources/[inventory]/pickle_consumables/fxmanifest.lua new file mode 100644 index 000000000..0841b1fdd --- /dev/null +++ b/resources/[inventory]/pickle_consumables/fxmanifest.lua @@ -0,0 +1,35 @@ +fx_version 'cerulean' +lua54 'yes' +game 'gta5' + +name 'pickle_consumables' +version '1.0.3' +description 'A free alternative for consumable items.' +author 'Pickle Mods' + +ui_page "nui/index.html" + +files { + "nui/index.html", + "nui/assets/**/*.*", +} + +shared_scripts { + '@ox_lib/init.lua', + 'config.lua', + 'core/shared.lua', + "locales/*.lua", + 'modules/**/shared.lua', + 'bridge/**/shared.lua', +} + +server_scripts { + 'bridge/**/server.lua', + 'modules/**/server.lua', +} + +client_scripts { + 'core/client.lua', + 'bridge/**/client.lua', + 'modules/**/client.lua', +} diff --git a/resources/[inventory]/pickle_consumables/locales/de.lua b/resources/[inventory]/pickle_consumables/locales/de.lua new file mode 100644 index 000000000..90deec6b4 --- /dev/null +++ b/resources/[inventory]/pickle_consumables/locales/de.lua @@ -0,0 +1,20 @@ +Language["de"] = { + pickup_drop = "Hebe den Gebrauchsgegenstand auf.", + item_active = "Lege deinen aktuellen Gegenstand weg oder lasse ihn fallen, um einen anderen Gegenstand zu verwenden.", + no_uses_left = "Du kannst dieses Item nicht mehr benutzen.", + interact_far = "Du musst näher an diesem Punkt sein, um mit ihm zu interagieren.", + pickle_consumables_options = "Item Optionen", + give_item = "Gebe Gegenstsand", + give_item_desc = "Gives the equipped item to the nearest player.", + place_item = "Platziere Gegenstand", + place_item_desc = "Legt das asgerüstete Item auf den Boden.", + throw_item = "Wirf Item", + throw_item_desc = "Wirft den ausgerüsteten Gegenstand dorthin, wo du gerade schaust.", + cancel_action = "Aktion abbrechen", + cancel_action_desc = "Dadurch wird dieses Menü geschlossen.", + interact_place = "[E] - Platziere den Gebrauchsgegenstand.", + give_dialog_player = "%s (ID: %s)", + give_dialog_player_title = "Spieler:", + give_dialog_portion = "Anzahl der Verwendungen:", + nobody_near = "Es ist niemand in Ihrer Nähe, dem du ein Gegenstand geben könntest." +} \ No newline at end of file diff --git a/resources/[inventory]/pickle_consumables/locales/en.lua b/resources/[inventory]/pickle_consumables/locales/en.lua new file mode 100644 index 000000000..a6b07e0db --- /dev/null +++ b/resources/[inventory]/pickle_consumables/locales/en.lua @@ -0,0 +1,20 @@ +Language["en"] = { + pickup_drop = "Pickup Consumable", + item_active = "Put away or drop your current item to use another item.", + no_uses_left = "You cannot use this item anymore.", + interact_far = "You need to be closer to this point to interact with it.", + pickle_consumables_options = "Item Options", + give_item = "Give Item", + give_item_desc = "Gives the equipped item to the nearest player.", + place_item = "Place Item", + place_item_desc = "Places the equipped item on the ground.", + throw_item = "Throw Item", + throw_item_desc = "Throws the equipped item to where you are looking.", + cancel_action = "Cancel Action", + cancel_action_desc = "This will close this menu.", + interact_place = "[E] - Place Consumable", + give_dialog_player = "%s (ID: %s)", + give_dialog_player_title = "Player:", + give_dialog_portion = "Amount of Uses:", + nobody_near = "There is nobody near you to give an item to." +} \ No newline at end of file diff --git a/resources/[inventory]/pickle_consumables/modules/items/client.lua b/resources/[inventory]/pickle_consumables/modules/items/client.lua new file mode 100644 index 000000000..c8c57ef7d --- /dev/null +++ b/resources/[inventory]/pickle_consumables/modules/items/client.lua @@ -0,0 +1,166 @@ +EquippedItem = nil +ItemData = nil +local AttachedProp +local PerformingAction +local ProcessingEffect + +function DisableControls(denied) + for i=1, #denied do + DisableControlAction(0, denied[i], true) + end +end + +function RemoveAttachedProp() + if AttachedProp and DoesEntityExist(AttachedProp) then + DeleteEntity(AttachedProp) + end + AttachedProp = nil +end + +function AttachProp(name) + RemoveAttachedProp() + local ped = PlayerPedId() + local coords = GetEntityCoords(ped) + local cfg = Config.Items[name] + local prop = cfg.prop + AttachedProp = CreateProp(prop.model, coords.x, coords.y, coords.z, true, true, false) + SetEntityCollision(AttachedProp, false, true) + AttachEntityToEntity(AttachedProp, ped, GetPedBoneIndex(ped, prop.boneId), + prop.offset.x, prop.offset.y, prop.offset.z, + prop.rotation.x, prop.rotation.y, prop.rotation.z, false, false, false, true, 2, true) +end + +function ConsumeItem(name) + if PerformingAction then return end + PerformingAction = "consume" + local cfg = Config.Items[name] + local anim = cfg.animation + local ped = PlayerPedId() + CreateThread(function() + local timeLeft = anim.time + SendNUIMessage({ + type = "holdInteract", + bool = true + }) + while PerformingAction == "consume" and timeLeft > 0 do + if anim.time - timeLeft > 100 and not IsEntityPlayingAnim(ped, anim.dict, anim.anim, 13) then + timeLeft = timeLeft - 100 + PlayAnim(ped, anim.dict, anim.anim, anim.params[1] or 1.0, anim.params[2] or -1.0, anim.params[3] or -1, anim.params[4] or 1, anim.params[5] or 1, anim.params[6], anim.params[7], anim.params[8]) + Wait(100) + else + timeLeft = timeLeft - 10 + Wait(10) + end + end + SendNUIMessage({ + type = "holdInteract", + bool = false + }) + ClearPedTasks(ped) + if timeLeft > 0 and anim.time - timeLeft <= 100 then + OptionsMenu() + PerformingAction = nil + elseif timeLeft <= 0 then + lib.callback("pickle_consumables:useItem", "", function(result, uses) + if result and Config.Effects[cfg.effect?.name or ""] then + CreateThread(function() + if ProcessingEffect and not Config.Effects[cfg.effect.name].canOverlap then return end + ProcessingEffect = true + Config.Effects[cfg.effect.name].process(cfg.effect) + ProcessingEffect = false + end) + end + ItemData.uses = uses + if uses < 1 then + return RemoveItem() + end + local cfg = Config.Items[name] + SendNUIMessage({ + type = "displayApp", + data = { quantity = uses, time = cfg.animation.time } + }) + PerformingAction = nil + end) + else + PerformingAction = nil + end + end) +end + +function RemoveItem() + local ped = PlayerPedId() + SendNUIMessage({ + type = "hideApp", + }) + RemoveAttachedProp() + ClearPedTasks(ped) + EquippedItem = nil + ItemData = nil + PerformingAction = nil +end + +function ItemThread(name, metadata) + if EquippedItem then return end + EquippedItem = name + ItemData = metadata + AttachProp(name) + local cfg = Config.Items[name] + SendNUIMessage({ + type = "displayApp", + data = { quantity = ItemData.uses, time = cfg.animation.time } + }) + CreateThread(function() + local pressTime = 0 + local holding = false + while EquippedItem == name do + local ped = PlayerPedId() + if IsControlJustPressed(1, 45) then + TriggerServerEvent("pickle_consumables:returnItem") + RemoveItem() + elseif IsControlPressed(1, 191) or IsControlPressed(1, 51) then + if not PerformingAction then + ConsumeItem(name) + end + elseif PerformingAction then + PerformingAction = nil + end + if cfg.idle and not PerformingAction then + local anim = cfg.idle + if not IsEntityPlayingAnim(ped, anim.dict, anim.anim, 13) then + PlayAnim(ped, anim.dict, anim.anim, anim.params[1] or 1.0, anim.params[2] or -1.0, anim.params[3] or -1, anim.params[4] or 1, anim.params[5] or 1, anim.params[6], anim.params[7], anim.params[8]) + Wait(100) + end + end + if GetEntityHealth(ped) < 1 then + local coords = GetEntityCoords(AttachedProp) + local _, zCoords = GetGroundZFor_3dCoord(coords.x, coords.y, coords.z) + RemoveItem() + TriggerServerEvent("pickle_consumables:drop:createDrop", vector3(coords.x, coords.y, zCoords + 1.0)) + end + if insideMenu then + DisableControls({1, 2, 24, 69, 70, 92, 114, 140, 141, 142, 257, 263, 264}) + else + DisableControls({24, 69, 70, 92, 114, 140, 141, 142, 257, 263, 264}) + end + Wait(0) + end + local ped = PlayerPedId() + ClearPedTasks(ped) + end) +end + +RegisterNetEvent("pickle_consumables:equipItem", function(name, metadata) + if not Config.Items[name] then return print("^1ERROR: This item is not configured.^0") end + if EquippedItem then return ShowNotification(_L("item_active")) end + ItemThread(name, metadata) +end) + +RegisterNetEvent("pickle_consumables:removeItem", function() + RemoveItem() +end) + +AddEventHandler("onResourceStop", function(name) + if name ~= GetCurrentResourceName() then return end + TransitionFromBlurred(0) + RemoveAttachedProp() +end) \ No newline at end of file diff --git a/resources/[inventory]/pickle_consumables/modules/items/server.lua b/resources/[inventory]/pickle_consumables/modules/items/server.lua new file mode 100644 index 000000000..8084d2df8 --- /dev/null +++ b/resources/[inventory]/pickle_consumables/modules/items/server.lua @@ -0,0 +1,81 @@ +Players = {} + +function EquipItem(source, item, refund) + if Players[source] then + if refund then + Inventory.AddItem(source, item.itemKey, 1, {itemKey = item.itemKey, uses = item.uses}, item.slot) + end + return + end + Players[source] = item + TriggerClientEvent("pickle_consumables:equipItem", source, item.itemKey, item) +end + +function GiveRewards(source, rewards) + for i=1, #rewards do + local reward = rewards[i] + local amount = (type(reward.amount) == "table" and math.random(reward.amount[1], reward.amount[2]) or reward.amount) + if not reward.type or reward.type == "item" then + Inventory.AddItem(source, reward.name, amount) + elseif reward.type == "money" then + AddMoney(source, amount) + end + end +end + +CreateThread(function() + Wait(1000) + for k,v in pairs(Config.Items) do + RegisterUsableItem(k, function(source, metadata, slot) + if Players[source] then return end + local metadata = metadata or {} + if not metadata.itemKey then + metadata.itemKey = k + metadata.uses = v.uses + metadata.slot = slot + end + Inventory.RemoveItem(source, metadata.itemKey, 1, slot) + EquipItem(source, metadata, false) + end) + end +end) + +lib.callback.register("pickle_consumables:useItem", function(source) + if not Players[source] then return end + local metadata = Players[source] + local cfg = Config.Items[metadata.itemKey] + if metadata.uses < 1 then + ShowNotification(source, _L("no_uses_left")) + return false, metadata.uses + end + metadata.uses = metadata.uses - 1 + if metadata.uses < 1 then + Players[source] = nil + end + if cfg then + if cfg.rewards then + GiveRewards(source, cfg.rewards) + end + if cfg.status then + ExecuteStatus(source, cfg.status) + end + end + return true, metadata.uses +end) + +RegisterNetEvent("pickle_consumables:returnItem", function(destroy) + local source = source + if not Players[source] then return end + local item = Players[source] + if not destroy then + Inventory.AddItem(source, item.itemKey, 1, {itemKey = item.itemKey, uses = item.uses}, item.slot) + end + Players[source] = nil +end) + +-- CLIENT +-- lib.callback("pickle_consumables:canUseItem", "", function(game_id, games) +-- end) + +-- lib.callback("pickle_consumables:useItem", "", function(game_id, games) +-- end) \ No newline at end of file diff --git a/resources/[inventory]/pickle_consumables/modules/options/client.lua b/resources/[inventory]/pickle_consumables/modules/options/client.lua new file mode 100644 index 000000000..05c581553 --- /dev/null +++ b/resources/[inventory]/pickle_consumables/modules/options/client.lua @@ -0,0 +1,229 @@ +insideMenu = nil +local Throwables = {} +local Drops = {} +local DropInteracts = {} +local PlacingProp + +function OptionsMenu() + if insideMenu then return end + insideMenu = true + local options = { + { + title = _L("give_item"), + description = _L("give_item_desc"), + onSelect = function() + insideMenu = nil + local players = GetPlayersInArea() + local players_list = {} + for i=1, #players do + local id = GetPlayerServerId(players[i]) + players_list[#players_list + 1] = {label = _L("give_dialog_player", GetPlayerName(players[i]), id), value = id} + end + if #players_list < 1 then return ShowNotification(_L("nobody_near")) end + local input = lib.inputDialog(_L("give_item"), { + {type = 'select', label = _L("give_dialog_player_title"), default = players_list[1].value, required = true, options = players_list}, + {type = 'slider', label = _L("give_dialog_portion"), default = 1, required = true, min = 1, max = ItemData.uses }, + }) + if not input then return end + local target = input[1] + local amount = input[2] + TriggerServerEvent("pickle_consumables:giveItem", target, amount) + end + }, + { + title = _L("place_item"), + description = _L("place_item_desc"), + onSelect = function() + insideMenu = nil + local item = EquippedItem + RemoveItem() + PlaceProp(Config.Items[item].prop.model, function(coords) + TriggerServerEvent("pickle_consumables:drop:createDrop", vector3(coords.x, coords.y, coords.z + 1.04)) + end) + end + }, + { + title = _L("throw_item"), + description = _L("throw_item_desc"), + onSelect = function() + insideMenu = nil + ThrowItem() + end + }, + { + title = _L("cancel_action"), + description = _L("cancel_action_desc"), + onSelect = function() + insideMenu = nil + end + }, + } + + if #options < 1 or not EquippedItem then + insideMenu = nil + return + end + + lib.registerContext({ + id = 'pickle_consumables_options', + title = _L("pickle_consumables_options"), + options = options, + onExit = function() + insideMenu = nil + end + }) + lib.showContext('pickle_consumables_options') +end + +-- Throwing + +function GetDirectionFromRotation(rotation) + local dm = (math.pi / 180) + return vector3(-math.sin(dm * rotation.z) * math.abs(math.cos(dm * rotation.x)), math.cos(dm * rotation.z) * math.abs(math.cos(dm * rotation.x)), math.sin(dm * rotation.x)) +end + +function PerformPhysics(entity, action) + local power = 1.0 * Config.Options.throwing.power + FreezeEntityPosition(entity, false) + local rot = GetGameplayCamRot(2) + local dir = GetDirectionFromRotation(rot) + SetEntityHeading(entity, rot.z + 90.0) + if not action or action == "throw" then + SetEntityVelocity(entity, dir.x * power, dir.y * power, dir.z * power) + else + SetEntityVelocity(entity, dir.x * power, dir.y * power, (dir.z * 1.75) * power) + end +end + +function CreateThrowable(model, attach) + local ped = PlayerPedId() + local heading = GetEntityHeading(ped) + local coords = GetOffsetFromEntityInWorldCoords(ped, 0.0, 1.0, 0.5) + local prop = CreateProp(model, coords.x, coords.y, coords.z, true, true, true) + if not prop then return end + if attach then + local off, rot = vector3(0.05, 0.0, -0.085), vector3(90.0, 90.0, 0.0) + AttachEntityToEntity(prop, ped, GetPedBoneIndex(ped, 28422), off.x, off.y, off.z, rot.x, rot.y, rot.z, false, false, false, true, 2, true) + else + local coords = GetOffsetFromEntityInWorldCoords(ped, 0.0, 1.0, -0.9) + SetEntityCoords(prop, coords.x, coords.y, coords.z) + end + return prop +end + +function ThrowItem() + if not EquippedItem then return end + local item = EquippedItem + local ped = PlayerPedId() + TriggerServerEvent("pickle_consumables:returnItem", true) + RemoveItem() + ClearPedTasksImmediately(ped) + local prop = CreateThrowable(Config.Items[item].prop.model,true) + CreateThread(function() + PlayAnim(ped, "melee@thrown@streamed_core", "plyr_takedown_front", -8.0, 8.0, -1, 49) + Wait(600) + ClearPedTasks(ped) + end) + Wait(550) + DetachEntity(prop, false, true) + SetEntityCollision(prop, true, true) + SetEntityRecordsCollisions(prop, true) + TriggerServerEvent("pickle_consumables:throwing:throwObject", {net_id = ObjToNet(prop)}) + local coords = GetOffsetFromEntityInWorldCoords(ped, 0.0, 0.0, 1.0) + SetEntityCoords(prop, coords.x, coords.y, coords.z) + SetEntityHeading(prop, GetEntityHeading(ped) + 90.0) + PerformPhysics(prop) +end + +RegisterNetEvent("pickle_consumables:throwing:setObjectData", function(throwID, data) + Throwables[throwID] = data +end) + +-- Drops + +function GetDirectionCoords() + local range = 1000.0 + local coords = GetGameplayCamCoord() + local rot = GetGameplayCamRot(2) + local dir = GetDirectionFromRotation(rot) + local ecoords = vector3(coords.x + dir.x * range, coords.y + dir.y * range, coords.z + dir.z * range) + local retval, hit, endCoords, surfaceNormal, entityHit = GetShapeTestResult(StartShapeTestRay(coords.x, coords.y, coords.z, ecoords.x, ecoords.y, ecoords.z, -1, -1, 1)) + return hit, endCoords, entityHit +end + +function PlaceProp(model, cb) + if PlacingProp then return cb(nil, true) end + if not cb then return end + PlacingProp = true + local coords = GetEntityCoords(PlayerPedId()) + local heading = 0.0 + local prop = CreateObject(model, coords.x, coords.y, coords.z, false, true, false) + FreezeEntityPosition(prop, true) + SetEntityCollision(prop, false, false) + CreateThread(function() + while PlacingProp do + ShowInteractText(_L("interact_place")) + local hit, hitCoords, entity = GetDirectionCoords() + if hit and hitCoords then + coords = vector3(hitCoords.x, hitCoords.y, hitCoords.z + 0.04) + heading = GetGameplayCamRot(2).z + SetEntityCoords(prop, coords.x, coords.y, coords.z) + SetEntityRotation(prop, 0, 0, heading, 2) + if IsControlJustPressed(1, 51) then + PlacingProp = false + end + end + Wait(0) + end + DeleteEntity(prop) + if not cb then return end + cb(coords, heading) + end) +end + +function RemoveDrop(dropID) + Drops[dropID] = nil + DeleteInteraction(DropInteracts[dropID]) + DropInteracts[dropID] = nil +end + +RegisterNetEvent("pickle_consumables:drop:addDrop", function(dropID, data) + RemoveDrop(dropID) + Drops[dropID] = data + DropInteracts[dropID] = CreateInteraction({ + label = _L("pickup_drop"), + model = {modelType = "prop", hash = data.model, offset = vector3(0.0, 0.0, 0.0)}, + coords = data.coords, + heading = data.heading + }, function(selected) + local ped = PlayerPedId() + PlayAnim(ped, "random@domestic", "pickup_low", -8.0, 8.0, -1, 1, 1.0) + Wait(1500) + ClearPedTasks(ped) + TriggerServerEvent("pickle_consumables:drop:collectDrop", dropID) + end) +end) + +RegisterNetEvent("pickle_consumables:drop:removeDrop", function(dropID) + RemoveDrop(dropID) +end) + +RegisterNetEvent("pickle_consumables:updateUses", function(uses) + if not ItemData then return end + ItemData.uses = uses + if uses < 1 then + return RemoveItem() + end + local cfg = Config.Items[EquippedItem] + SendNUIMessage({ + type = "displayApp", + data = { quantity = uses, time = cfg.animation.time } + }) +end) + +AddEventHandler("onResourceStop", function(name) + if (GetCurrentResourceName() ~= name) then return end + for k,v in pairs(Throwables) do + DeleteEntity(NetToObj(v.net_id)) + end +end) \ No newline at end of file diff --git a/resources/[inventory]/pickle_consumables/modules/options/server.lua b/resources/[inventory]/pickle_consumables/modules/options/server.lua new file mode 100644 index 000000000..ab9e095dc --- /dev/null +++ b/resources/[inventory]/pickle_consumables/modules/options/server.lua @@ -0,0 +1,86 @@ +local Throwables = {} +local Drops = {} + +-- Throwing + +RegisterNetEvent("pickle_consumables:throwing:throwObject", function(data) + local source = source + local throwID = nil + repeat + throwID = os.time() .. "_" .. math.random(1000, 9999) + until not Throwables[throwID] + Throwables[throwID] = data + TriggerClientEvent("pickle_consumables:throwing:setObjectData", -1, throwID, data) + SetTimeout(1000 * Config.Options.throwing.despawnTime, function() + DeleteEntity(NetworkGetEntityFromNetworkId(Throwables[throwID].net_id)) + Throwables[throwID] = nil + TriggerClientEvent("pickle_consumables:throwing:setObjectData", -1, throwID, nil) + end) +end) + +-- Drops + +function CreateDrop(coords, data) + local dropID = nil + repeat + dropID = os.time() .. "_" .. math.random(1000, 9999) + until not Drops[dropID] + Drops[dropID] = data + Drops[dropID].coords = coords + Drops[dropID].heading = 0.0 + Drops[dropID].model = Config.Items[data.itemKey].prop.model + TriggerClientEvent("pickle_consumables:drop:addDrop", -1, dropID, data) + if Config.Options.drop.despawnTime and Config.Options.drop.despawnTime > 0 then + SetTimeout(1000 * Config.Options.drop.despawnTime, function() + RemoveDrop(dropID) + end) + end +end + +function RemoveDrop(dropID) + Drops[dropID] = nil + TriggerClientEvent("pickle_consumables:drop:removeDrop", -1, dropID) +end + +RegisterNetEvent("pickle_consumables:drop:collectDrop", function(dropID) + local source = source + local drop = Drops[dropID] + if not drop then return end + RemoveDrop(dropID) + EquipItem(source, drop, true) +end) + +RegisterNetEvent("pickle_consumables:drop:createDrop", function(coords) + local source = source + local item = Players[source] + if not item then return end + if #(GetEntityCoords(GetPlayerPed(source)) - coords) > 100.0 then return end + Players[source] = nil + TriggerClientEvent("pickle_consumables:removeItem", source) + CreateDrop(coords, item) +end) + +-- Giving + +RegisterNetEvent("pickle_consumables:giveItem", function(target, amount) + local source = source + local item = Players[source] + if not item or target < 1 then return end + local amount = amount + local uses = item.uses + if amount >= uses then + amount = uses + Players[source] = nil + TriggerClientEvent("pickle_consumables:removeItem", source) + else + Players[source].uses = Players[source].uses - amount + TriggerClientEvent("pickle_consumables:updateUses", source, Players[source].uses) + end + local targetItem = Players[target] + if targetItem and targetItem.itemKey == item.itemKey then + Players[target].uses = Players[target].uses + amount + TriggerClientEvent("pickle_consumables:updateUses", target, Players[target].uses) + else + EquipItem(target, {itemKey = item.itemKey, uses = amount}, true) + end +end) \ No newline at end of file diff --git a/resources/[inventory]/pickle_consumables/nui/assets/css/style.css b/resources/[inventory]/pickle_consumables/nui/assets/css/style.css new file mode 100644 index 000000000..7ec8a67d8 --- /dev/null +++ b/resources/[inventory]/pickle_consumables/nui/assets/css/style.css @@ -0,0 +1,128 @@ +body { + background-color: transparent; + color: white; + overflow: hidden; + font-size: 1vw; + user-select: none; + font-family: Arial, Helvetica, sans-serif; +} + +#app-main { + display: none; + position: absolute; + top: 0; + left: 0; + width: 100%; + height: 100%; + overflow: none; +} + +.container { + display: flex; + flex-direction: column; + position: absolute; + bottom: 0; + right: 0; + margin-bottom: 2.5vw; + margin-right: 2.5vw; +} + +.container > div { + display: flex; + flex-direction: row; + align-items: center; + margin-bottom: 1vw; +} + +.container > div { + text-shadow: black 1px 1px; +} + +.key { + position: relative; + display: flex; + align-self: center; + justify-content: center; + align-items: center; + width: 2.25vw; + height: 2.25vw; + color: black; + font-size: 0.8vw; + font-weight: bold; + margin-right: 0.5vw; + text-shadow: none; +} + +.secondary { + display: flex; + flex-direction: column; +} + +.secondary > div:nth-child(1) { + font-size: 0.85vw; +} + +.secondary > div:nth-child(2) { + font-size: 0.65vw; +} + + +.key .icon { + position: relative; + z-index: 3; + } + .key .circle { + position: absolute; + z-index: 2; + top: 0; + left: 0; + display: block; + width: 100%; + height: 100%; + background: rgba(234, 0, 255, 0.1); + border-radius: 100%; + } + .key .circle:after { + content: ''; + position: absolute; + top: calc(50% + 0.0vw); + left: 50%; + transform: translate(-50%, -50%); + width: calc(100% - 0.2vw); + height: calc(100% - 0.2vw); + border-radius: 100%; + background: white; + } + .key .circle span { + position: absolute; + width: 50%; + height: 100%; + overflow: hidden; + } + .key .circle span:first-child { + left: 0%; + } + .key .circle span:first-child em { + left: 100%; + border-top-left-radius: 0; + border-bottom-left-radius: 0; + transform-origin: 0% 50%; + } + .key .circle span:last-child { + left: 50%; + } + .key .circle span em { + position: absolute; + border-radius: 999px; + width: 100%; + height: 100%; + background:black; + transition: transform 500ms linear; + } + .key .circle span:last-child em { + left: -100%; + border-top-right-radius: 0; + border-bottom-right-radius: 0; + transform-origin: 100% 50%; + transition-delay: 500ms; + } \ No newline at end of file diff --git a/resources/[inventory]/pickle_consumables/nui/assets/js/main.js b/resources/[inventory]/pickle_consumables/nui/assets/js/main.js new file mode 100644 index 000000000..fcdafd106 --- /dev/null +++ b/resources/[inventory]/pickle_consumables/nui/assets/js/main.js @@ -0,0 +1,63 @@ +var holdTime; + +function DisplayApp(data) { + $("#interact > .secondary").html(` +
Use Item (${data.quantity})
+
Options (Tap)
+ `) + $("#app-main").fadeIn(500); + holdTime = data.time; + $(".key .circle span em").css("transition", "transform "+Math.ceil(holdTime/2)+"ms linear;"); + $(".key .circle span:last-child em").css("transition-delay", Math.ceil(holdTime/2)+"ms;"); +} + +function HideApp() { + $("#app-main").fadeOut(500); +} + +function HoldInteract(bool) { + if (bool) { + $("#interact > .key").addClass("holding"); + $("#interact > .key .circle span:first-child em").css({ + "transform": "rotate(-180deg)", + "transition": "transform "+Math.ceil(holdTime)+"ms ease-out", + "transitionDelay": Math.ceil(holdTime/2)+"ms", + }); + $("#interact > .key .circle span:last-child em").css({ + "transform": "rotate(-180deg)", + "transition": "transform "+ Math.ceil(holdTime/2) +"ms linear", + "transitionDelay": "0ms", + }); + } + else { + $("#interact > .key").removeClass("holding"); + $("#interact > .key .circle span:first-child em").css({ + "transform": "rotate(0deg)", + "transition": "transform 0ms", + "transitionDelay": "0ms", + }); + $("#interact > .key .circle span:last-child em").css({ + "transform": "rotate(0deg)", + "transition": "transform 0ms linear", + "transitionDelay": "0ms", + }); + } +} + +window.addEventListener('message', function(ev) { + if (ev.data.type == "displayApp") { + DisplayApp(ev.data.data); + } + else if (ev.data.type == "hideApp") { + HideApp(); + } + else if (ev.data.type == "holdInteract") { + HoldInteract(ev.data.bool) + } +}) + +$(document).ready(function() { + $('.key').each(function () { + $(this).html('' + $(this).html() + ''); + }); +}) \ No newline at end of file diff --git a/resources/[inventory]/pickle_consumables/nui/index.html b/resources/[inventory]/pickle_consumables/nui/index.html new file mode 100644 index 000000000..a1fcf9212 --- /dev/null +++ b/resources/[inventory]/pickle_consumables/nui/index.html @@ -0,0 +1,24 @@ + + + + + + + Pickle's Consumables + + + + + +
+
+
R
Store Item
+
+
E
+
+
+
+
+
+ + \ No newline at end of file