diff --git a/_resources/esx_jobs/.editorconfig b/_resources/esx_jobs/.editorconfig new file mode 100644 index 00000000..9b425256 --- /dev/null +++ b/_resources/esx_jobs/.editorconfig @@ -0,0 +1,9 @@ +root = true + +[*] +indent_size = 4 +indent_style = tab +end_of_line = crlf +charset = utf-8 +trim_trailing_whitespace = true +insert_final_newline = true \ No newline at end of file diff --git a/_resources/esx_jobs/LICENSE b/_resources/esx_jobs/LICENSE new file mode 100644 index 00000000..553b1cd3 --- /dev/null +++ b/_resources/esx_jobs/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. + + fxserver-esx_jobs + Copyright (C) 2015 Jérémie N'gadi + + 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: + + fxserver-esx_jobs Copyright (C) 2015 Jérémie N'gadi + 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 +. \ No newline at end of file diff --git a/_resources/esx_jobs/README.md b/_resources/esx_jobs/README.md new file mode 100644 index 00000000..bf319363 --- /dev/null +++ b/_resources/esx_jobs/README.md @@ -0,0 +1,65 @@ +# esx_jobs +### Requirements +- [esx_addonaccount](https://github.com/ESX-Org/esx_addonaccount) +- [esx_skin](https://github.com/ESX-Org/esx_skin) + +### Features +- Jobs: slaughterer, miner, fisherman, journalist, fueler, tailor +- Security deposit when renting a job vehicle (given back in case of crash, to the amount of damage the vehicle has already taken) +- Easy system to create jobs (samples in jobs folder) +- Item farming jobs +This addon is an easy way to have farming jobs on your server, there is no player management. + +## Download & Installation + +### Using [fvm](https://github.com/qlaffont/fvm-installer) +``` +fvm install --save --folder=esx esx-org/esx_jobs +``` + +### Using Git +``` +cd resources +git clone https://github.com/ESX-Org/esx_jobs [esx]/esx_jobs +``` + +### Manually +- Download https://github.com/ESX-Org/esx_jobs/archive/master.zip +- Put it in the `[esx]` directory + +## Installation +- Import `esx_jobs.sql` into your database +- Add this into your `server.cfg` +``` +start esx_jobs +``` + +## iZone integreation (optional) +- You can use iZone with esx_jobs by creating polynomial zones with iZone. When you finish the zone creation, take the zone name and set a Zone field on the job like so: +``` +CloakRoom = { + Zone = "miner_room", -- HERE + Size = {x = 3.0, y = 3.0, z = 1.0}, + Color = {r = 204, g = 204, b = 0}, + Marker = 1, + Blip = true, + Name = _U("m_miner_locker"), + Type = "cloakroom", + Hint = _U("cloak_change"), + GPS = {x = 884.86, y = -2176.51, z = 29.51} +} +``` +- Note that this is just to have custom zone and avoid using radius. +### [How to install and use iZone](https://github.com/izio38/iZone) + +# Legal +### License +esx_jobs - jobs + +Copyright (C) 2015-2020 Jérémie N'gadi + +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 http://www.gnu.org/licenses/. \ No newline at end of file diff --git a/_resources/esx_jobs/client/main.lua b/_resources/esx_jobs/client/main.lua new file mode 100644 index 00000000..5816c6c3 --- /dev/null +++ b/_resources/esx_jobs/client/main.lua @@ -0,0 +1,542 @@ +local Keys = { + ["ESC"] = 322, ["F1"] = 288, ["F2"] = 289, ["F3"] = 170, ["F5"] = 166, ["F6"] = 167, ["F7"] = 168, ["F8"] = 169, ["F9"] = 56, ["F10"] = 57, + ["~"] = 243, ["1"] = 157, ["2"] = 158, ["3"] = 160, ["4"] = 164, ["5"] = 165, ["6"] = 159, ["7"] = 161, ["8"] = 162, ["9"] = 163, ["-"] = 84, ["="] = 83, ["BACKSPACE"] = 177, + ["TAB"] = 37, ["Q"] = 44, ["W"] = 32, ["E"] = 38, ["R"] = 45, ["T"] = 245, ["Y"] = 246, ["U"] = 303, ["P"] = 199, ["["] = 39, ["]"] = 40, ["ENTER"] = 18, + ["CAPS"] = 137, ["A"] = 34, ["S"] = 8, ["D"] = 9, ["F"] = 23, ["G"] = 47, ["H"] = 74, ["K"] = 311, ["L"] = 182, + ["LEFTSHIFT"] = 21, ["Z"] = 20, ["X"] = 73, ["C"] = 26, ["V"] = 0, ["B"] = 29, ["N"] = 249, ["M"] = 244, [","] = 82, ["."] = 81, + ["LEFTCTRL"] = 36, ["LEFTALT"] = 19, ["SPACE"] = 22, ["RIGHTCTRL"] = 70, + ["HOME"] = 213, ["PAGEUP"] = 10, ["PAGEDOWN"] = 11, ["DELETE"] = 178, + ["LEFT"] = 174, ["RIGHT"] = 175, ["TOP"] = 27, ["DOWN"] = 173, + ["NENTER"] = 201, ["N4"] = 108, ["N5"] = 60, ["N6"] = 107, ["N+"] = 96, ["N-"] = 97, ["N7"] = 117, ["N8"] = 61, ["N9"] = 118 +} + +local PlayerData = {} +local menuIsShowed = false +local hintIsShowed = false +local hasAlreadyEnteredMarker = false +local Blips = {} +local JobBlips = {} +local isInMarker = false +local isInPublicMarker = false + +local hintToDisplay = "no hint to display" +local onDuty = false +local spawner = 0 +local myPlate = {} + +local vehicleObjInCaseofDrop = nil +local vehicleInCaseofDrop = nil + +local vehicleMaxHealth = nil + +ESX = nil + +Citizen.CreateThread(function() + while ESX == nil do + TriggerEvent('esx:getSharedObject', function(obj) ESX = obj end) + Citizen.Wait(0) + end + + while ESX.GetPlayerData().job == nil do + Citizen.Wait(10) + end + + PlayerData = ESX.GetPlayerData() + refreshBlips() +end) + +RegisterNetEvent('esx:playerLoaded') +AddEventHandler('esx:playerLoaded', function(xPlayer) + PlayerData = xPlayer + refreshBlips() +end) + +function OpenMenu() + ESX.UI.Menu.CloseAll() + + ESX.UI.Menu.Open('default', GetCurrentResourceName(), 'cloakroom', + { + title = _U('cloakroom'), + elements = { + {label = _U('job_wear'), value = 'job_wear'}, + {label = _U('citizen_wear'), value = 'citizen_wear'} + } + }, function(data, menu) + if data.current.value == 'citizen_wear' then + onDuty = false + ESX.TriggerServerCallback('esx_skin:getPlayerSkin', function(skin) + TriggerEvent('skinchanger:loadSkin', skin) + end) + elseif data.current.value == 'job_wear' then + onDuty = true + ESX.TriggerServerCallback('esx_skin:getPlayerSkin', function(skin, jobSkin) + if skin.sex == 0 then + TriggerEvent('skinchanger:loadClothes', skin, jobSkin.skin_male) + else + TriggerEvent('skinchanger:loadClothes', skin, jobSkin.skin_female) + end + end) + end + + menu.close() + end, function(data, menu) + menu.close() + end) +end + +AddEventHandler('esx_jobs:action', function(job, zone, zoneKey) + menuIsShowed = true + if zone.Type == "cloakroom" then + OpenMenu() + elseif zone.Type == "work" then + hintToDisplay = "no hint to display" + hintIsShowed = false + local playerPed = PlayerPedId() + + if IsPedInAnyVehicle(playerPed, false) then + ESX.ShowNotification(_U('foot_work')) + else + TriggerServerEvent('esx_jobs:startWork', zone.Item, zoneKey) + end + elseif zone.Type == "vehspawner" then + local spawnPoint = nil + local vehicle = nil + + for k,v in pairs(Config.Jobs) do + if PlayerData.job.name == k then + for l,w in pairs(v.Zones) do + if w.Type == "vehspawnpt" and w.Spawner == zone.Spawner then + spawnPoint = w + spawner = w.Spawner + end + end + + for m,x in pairs(v.Vehicles) do + if x.Spawner == zone.Spawner then + vehicle = x + end + end + end + end + + if ESX.Game.IsSpawnPointClear(spawnPoint.Pos, 5.0) then + spawnVehicle(spawnPoint, vehicle, zone.Caution) + else + ESX.ShowNotification(_U('spawn_blocked')) + end + + elseif zone.Type == "vehdelete" then + local looping = true + + for k,v in pairs(Config.Jobs) do + if PlayerData.job.name == k then + for l,w in pairs(v.Zones) do + if w.Type == "vehdelete" and w.Spawner == zone.Spawner then + local playerPed = PlayerPedId() + + if IsPedInAnyVehicle(playerPed, false) then + + local vehicle = GetVehiclePedIsIn(playerPed, false) + local plate = GetVehicleNumberPlateText(vehicle) + plate = string.gsub(plate, " ", "") + local driverPed = GetPedInVehicleSeat(vehicle, -1) + + if playerPed == driverPed then + + for i=1, #myPlate, 1 do + if myPlate[i] == plate then + + local vehicleHealth = GetVehicleEngineHealth(vehicleInCaseofDrop) + local giveBack = ESX.Math.Round(vehicleHealth / vehicleMaxHealth, 2) + + TriggerServerEvent('esx_jobs:caution', "give_back", giveBack, 0, 0) + DeleteVehicle(GetVehiclePedIsIn(playerPed, false)) + + if w.Teleport ~= 0 then + ESX.Game.Teleport(playerPed, w.Teleport) + end + + table.remove(myPlate, i) + + if vehicleObjInCaseofDrop.HasCaution then + vehicleInCaseofDrop = nil + vehicleObjInCaseofDrop = nil + vehicleMaxHealth = nil + end + + break + end + end + + else + ESX.ShowNotification(_U('not_your_vehicle')) + end + + end + + looping = false + break + end + + if looping == false then + break + end + end + end + if looping == false then + break + end + end + elseif zone.Type == "delivery" then + if Blips['delivery'] ~= nil then + RemoveBlip(Blips['delivery']) + Blips['delivery'] = nil + end + + hintToDisplay = "no hint to display" + hintIsShowed = false + TriggerServerEvent('esx_jobs:startWork', zone.Item, zoneKey) + end + --nextStep(zone.GPS) +end) + +function nextStep(gps) + if gps ~= 0 then + if Blips['delivery'] ~= nil then + RemoveBlip(Blips['delivery']) + Blips['delivery'] = nil + end + + Blips['delivery'] = AddBlipForCoord(gps.x, gps.y, gps.z) + SetBlipRoute(Blips['delivery'], true) + ESX.ShowNotification(_U('next_point')) + end +end + +AddEventHandler('esx_jobs:hasExitedMarker', function(zone) + TriggerServerEvent('esx_jobs:stopWork') + hintToDisplay = "no hint to display" + menuIsShowed = false + hintIsShowed = false + isInMarker = false +end) + +RegisterNetEvent('esx:setJob') +AddEventHandler('esx:setJob', function(job) + PlayerData.job = job + onDuty = false + myPlate = {} -- loosing vehicle caution in case player changes job. + spawner = 0 + deleteBlips() + refreshBlips() +end) + +function deleteBlips() + if JobBlips[1] ~= nil then + for i=1, #JobBlips, 1 do + RemoveBlip(JobBlips[i]) + JobBlips[i] = nil + end + end +end + +function refreshBlips() + local zones = {} + local blipInfo = {} + + if PlayerData.job ~= nil then + for jobKey,jobValues in pairs(Config.Jobs) do + + if jobKey == PlayerData.job.name then + for zoneKey,zoneValues in pairs(jobValues.Zones) do + + if zoneValues.Blip then + local _Pos = {} + if (zoneValues.Zone) then + TriggerEvent("izone:getZoneCenter", zoneValues.Zone, function(_center) + if (_center) then + _Pos = _center + end + end) + else + _Pos = zoneValues.Pos + end + print(_Pos.x) + local blip = AddBlipForCoord(_Pos.x, _Pos.y, _Pos.z) + SetBlipSprite (blip, jobValues.BlipInfos.Sprite) + SetBlipDisplay (blip, 4) + SetBlipScale (blip, 1.2) + SetBlipCategory(blip, 3) + SetBlipColour (blip, jobValues.BlipInfos.Color) + SetBlipAsShortRange(blip, true) + + BeginTextCommandSetBlipName("STRING") + AddTextComponentString(zoneValues.Name) + EndTextCommandSetBlipName(blip) + table.insert(JobBlips, blip) + end + end + end + end + end +end + +function spawnVehicle(spawnPoint, vehicle, vehicleCaution) + hintToDisplay = 'no hint to display' + hintIsShowed = false + TriggerServerEvent('esx_jobs:caution', 'take', vehicleCaution, spawnPoint, vehicle) +end + +RegisterNetEvent('esx_jobs:spawnJobVehicle') +AddEventHandler('esx_jobs:spawnJobVehicle', function(spawnPoint, vehicle) + local playerPed = PlayerPedId() + + ESX.Game.SpawnVehicle(vehicle.Hash, spawnPoint.Pos, spawnPoint.Heading, function(spawnedVehicle) + + if vehicle.Trailer ~= "none" then + ESX.Game.SpawnVehicle(vehicle.Trailer, spawnPoint.Pos, spawnPoint.Heading, function(trailer) + AttachVehicleToTrailer(spawnedVehicle, trailer, 1.1) + end) + end + + -- save & set plate + local plate = 'WORK' .. math.random(100, 900) + SetVehicleNumberPlateText(spawnedVehicle, plate) + table.insert(myPlate, plate) + plate = string.gsub(plate, " ", "") + + TaskWarpPedIntoVehicle(playerPed, spawnedVehicle, -1) + + if vehicle.HasCaution then + vehicleInCaseofDrop = spawnedVehicle + vehicleObjInCaseofDrop = vehicle + vehicleMaxHealth = GetVehicleEngineHealth(spawnedVehicle) + end + end) +end) + +-- Show top left hint +Citizen.CreateThread(function() + while true do + Citizen.Wait(10) + + if hintIsShowed then + ESX.ShowHelpNotification(hintToDisplay) + else + Citizen.Wait(500) + end + end +end) + +-- Display markers (only if on duty and the player's job ones) +Citizen.CreateThread(function() + while true do + Citizen.Wait(1) + local zones = {} + + if PlayerData.job ~= nil then + for k,v in pairs(Config.Jobs) do + if PlayerData.job.name == k then + zones = v.Zones + end + end + + local coords = GetEntityCoords(PlayerPedId()) + for k,v in pairs(zones) do + if onDuty or v.Type == "cloakroom" or PlayerData.job.name == "reporter" then + if (v.Zone) then + TriggerEvent("izone:getZoneCenter", v.Zone, function(center) + if (not(center == nil)) then + if(v.Marker ~= -1 and GetDistanceBetweenCoords(coords, center.x, center.y, center.z, true) < Config.DrawDistance) then + DrawMarker(v.Marker, center.x, center.y, center.z - 1, 0.0, 0.0, 0.0, 0, 0.0, 0.0, v.Size.x, v.Size.y, v.Size.z, v.Color.r, v.Color.g, v.Color.b, 100, false, true, 2, false, false, false, false) + end + end + end) + else + if(v.Marker ~= -1 and GetDistanceBetweenCoords(coords, v.Pos.x, v.Pos.y, v.Pos.z, true) < Config.DrawDistance) then + DrawMarker(v.Marker, v.Pos.x, v.Pos.y, v.Pos.z, 0.0, 0.0, 0.0, 0, 0.0, 0.0, v.Size.x, v.Size.y, v.Size.z, v.Color.r, v.Color.g, v.Color.b, 100, false, true, 2, false, false, false, false) + end + end + end + end + end + end +end) + +-- Display public markers +Citizen.CreateThread(function() + while true do + Citizen.Wait(0) + local coords = GetEntityCoords(PlayerPedId()) + for k,v in pairs(Config.PublicZones) do + if(v.Marker ~= -1 and GetDistanceBetweenCoords(coords, v.Pos.x, v.Pos.y, v.Pos.z, true) < Config.DrawDistance) then + DrawMarker(v.Marker, v.Pos.x, v.Pos.y, v.Pos.z, 0.0, 0.0, 0.0, 0, 0.0, 0.0, v.Size.x, v.Size.y, v.Size.z, v.Color.r, v.Color.g, v.Color.b, 100, false, true, 2, false, false, false, false) + end + end + end +end) + +-- Activate public marker +Citizen.CreateThread(function() + while true do + Citizen.Wait(0) + local coords = GetEntityCoords(PlayerPedId()) + local position = nil + local zone = nil + + for k,v in pairs(Config.PublicZones) do + if GetDistanceBetweenCoords(coords, v.Pos.x, v.Pos.y, v.Pos.z, true) < v.Size.x/2 then + isInPublicMarker = true + position = v.Teleport + zone = v + break + else + isInPublicMarker = false + end + end + + if IsControlJustReleased(0, Keys['E']) and isInPublicMarker then + ESX.Game.Teleport(PlayerPedId(), position) + isInPublicMarker = false + end + + -- hide or show top left zone hints + if isInPublicMarker then + hintToDisplay = zone.Hint + hintIsShowed = true + else + if not isInMarker then + hintToDisplay = "no hint to display" + hintIsShowed = false + end + end + end +end) + +-- Activate menu when player is inside marker +Citizen.CreateThread(function() + while true do + + Citizen.Wait(1) + + if PlayerData.job ~= nil and PlayerData.job.name ~= 'unemployed' then + local zones = nil + local job = nil + + for k,v in pairs(Config.Jobs) do + if PlayerData.job.name == k then + job = v + zones = v.Zones + end + end + + if zones ~= nil then + local coords = GetEntityCoords(PlayerPedId()) + local currentZone = nil + local zone = nil + local lastZone = nil + + for k,v in pairs(zones) do + -- If we defined a zone from iZone + if v.Zone then + TriggerEvent("izone:isPlayerInZone", v.Zone, function(isIn) + if isIn then + isInMarker = true + currentZone = k + zone = v + return + else + isInMarker = false + end + end) + -- Because we were in a routine + if isInMarker then + break + end + -- Else use radius defined from center + else + if GetDistanceBetweenCoords(coords, v.Pos.x, v.Pos.y, v.Pos.z, true) < v.Size.x then + isInMarker = true + currentZone = k + zone = v + break + else + isInMarker = false + end + end + + end + + if IsControlJustReleased(0, Keys['E']) and not menuIsShowed and isInMarker then + if onDuty or zone.Type == "cloakroom" or PlayerData.job.name == "reporter" then + TriggerEvent('esx_jobs:action', job, zone, currentZone) + end + end + + -- hide or show top left zone hints + if isInMarker and not menuIsShowed then + hintIsShowed = true + if (onDuty or zone.Type == "cloakroom" or PlayerData.job.name == "reporter") and zone.Type ~= "vehdelete" then + hintToDisplay = zone.Hint + hintIsShowed = true + elseif zone.Type == "vehdelete" and (onDuty or PlayerData.job.name == "reporter") then + local playerPed = PlayerPedId() + + if IsPedInAnyVehicle(playerPed, false) then + local vehicle = GetVehiclePedIsIn(playerPed, false) + local driverPed = GetPedInVehicleSeat(vehicle, -1) + local plate = GetVehicleNumberPlateText(vehicle) + plate = string.gsub(plate, " ", "") + + if playerPed == driverPed then + + for i=1, #myPlate, 1 do + if myPlate[i] == plate then + hintToDisplay = zone.Hint + break + end + end + + else + hintToDisplay = _U('not_your_vehicle') + end + else + hintToDisplay = _U('in_vehicle') + end + hintIsShowed = true + elseif onDuty and zone.Spawner ~= spawner then + hintToDisplay = _U('wrong_point') + hintIsShowed = true + else + if not isInPublicMarker then + hintToDisplay = "no hint to display" + hintIsShowed = false + end + end + end + + if isInMarker and not hasAlreadyEnteredMarker then + hasAlreadyEnteredMarker = true + end + + if not isInMarker and hasAlreadyEnteredMarker then + hasAlreadyEnteredMarker = false + TriggerEvent('esx_jobs:hasExitedMarker', zone) + end + end + end + end +end) + +Citizen.CreateThread(function() + -- Slaughterer + RemoveIpl("CS1_02_cf_offmission") + RequestIpl("CS1_02_cf_onmission1") + RequestIpl("CS1_02_cf_onmission2") + RequestIpl("CS1_02_cf_onmission3") + RequestIpl("CS1_02_cf_onmission4") + + -- Tailor + RequestIpl("id2_14_during_door") + RequestIpl("id2_14_during1") +end) diff --git a/_resources/esx_jobs/config.lua b/_resources/esx_jobs/config.lua new file mode 100644 index 00000000..a91fe606 --- /dev/null +++ b/_resources/esx_jobs/config.lua @@ -0,0 +1,34 @@ +Config = {} +Config.DrawDistance = 100.0 +Config.Locale = 'en' +Config.Jobs = {} + +Config.MaxCaution = 10000 -- the max caution allowed + +Config.PublicZones = { + + EnterBuilding = { + Pos = { x = -118.21, y = -607.14, z = 35.28 }, + Size = {x = 3.0, y = 3.0, z = 0.2}, + Color = {r = 204, g = 204, b = 0}, + Marker= 1, + Blip = false, + Name = _U('reporter_name'), + Type = "teleport", + Hint = _U('public_enter'), + Teleport = { x = -139.09, y = -620.74, z = 167.82 } + }, + + ExitBuilding = { + Pos = { x = -139.45, y = -617.32, z = 167.82 }, + Size = {x = 3.0, y = 3.0, z = 0.2}, + Color = {r = 204, g = 204, b = 0}, + Marker= 1, + Blip = false, + Name = _U('reporter_name'), + Type = "teleport", + Hint = _U('public_leave'), + Teleport = { x = -113.07, y = -604.93, z = 35.28 }, + } + +} diff --git a/_resources/esx_jobs/esx_jobs.sql b/_resources/esx_jobs/esx_jobs.sql new file mode 100644 index 00000000..7d4a4b9a --- /dev/null +++ b/_resources/esx_jobs/esx_jobs.sql @@ -0,0 +1,47 @@ +USE `es_extended`; + +INSERT INTO `addon_account` (name, label, shared) VALUES + ('caution', 'Caution', 0) +; + +INSERT INTO `jobs` (name, label) VALUES + ('slaughterer', 'Abatteur'), + ('fisherman', 'Pêcheur'), + ('miner', 'Mineur'), + ('lumberjack', 'Bûcheron'), + ('fueler', 'Raffineur'), + ('reporter', 'Journaliste'), + ('tailor', 'Couturier') +; + +INSERT INTO `job_grades` (job_name, grade, name, label, salary, skin_male, skin_female) VALUES + ('lumberjack', 0, 'employee', 'Intérimaire', 0, '{}', '{}'), + ('fisherman', 0, 'employee', 'Intérimaire', 0, '{}', '{}'), + ('fueler', 0, 'employee', 'Intérimaire', 0, '{}', '{}'), + ('reporter', 0, 'employee', 'Intérimaire', 0, '{}', '{}'), + ('tailor',0,'employee','Intérimaire',0,'{\"mask_1\":0,\"arms\":1,\"glasses_1\":0,\"hair_color_2\":4,\"makeup_1\":0,\"face\":19,\"glasses\":0,\"mask_2\":0,\"makeup_3\":0,\"skin\":29,\"helmet_2\":0,\"lipstick_4\":0,\"sex\":0,\"torso_1\":24,\"makeup_2\":0,\"bags_2\":0,\"chain_2\":0,\"ears_1\":-1,\"bags_1\":0,\"bproof_1\":0,\"shoes_2\":0,\"lipstick_2\":0,\"chain_1\":0,\"tshirt_1\":0,\"eyebrows_3\":0,\"pants_2\":0,\"beard_4\":0,\"torso_2\":0,\"beard_2\":6,\"ears_2\":0,\"hair_2\":0,\"shoes_1\":36,\"tshirt_2\":0,\"beard_3\":0,\"hair_1\":2,\"hair_color_1\":0,\"pants_1\":48,\"helmet_1\":-1,\"bproof_2\":0,\"eyebrows_4\":0,\"eyebrows_2\":0,\"decals_1\":0,\"age_2\":0,\"beard_1\":5,\"shoes\":10,\"lipstick_1\":0,\"eyebrows_1\":0,\"glasses_2\":0,\"makeup_4\":0,\"decals_2\":0,\"lipstick_3\":0,\"age_1\":0}','{\"mask_1\":0,\"arms\":5,\"glasses_1\":5,\"hair_color_2\":4,\"makeup_1\":0,\"face\":19,\"glasses\":0,\"mask_2\":0,\"makeup_3\":0,\"skin\":29,\"helmet_2\":0,\"lipstick_4\":0,\"sex\":1,\"torso_1\":52,\"makeup_2\":0,\"bags_2\":0,\"chain_2\":0,\"ears_1\":-1,\"bags_1\":0,\"bproof_1\":0,\"shoes_2\":1,\"lipstick_2\":0,\"chain_1\":0,\"tshirt_1\":23,\"eyebrows_3\":0,\"pants_2\":0,\"beard_4\":0,\"torso_2\":0,\"beard_2\":6,\"ears_2\":0,\"hair_2\":0,\"shoes_1\":42,\"tshirt_2\":4,\"beard_3\":0,\"hair_1\":2,\"hair_color_1\":0,\"pants_1\":36,\"helmet_1\":-1,\"bproof_2\":0,\"eyebrows_4\":0,\"eyebrows_2\":0,\"decals_1\":0,\"age_2\":0,\"beard_1\":5,\"shoes\":10,\"lipstick_1\":0,\"eyebrows_1\":0,\"glasses_2\":0,\"makeup_4\":0,\"decals_2\":0,\"lipstick_3\":0,\"age_1\":0}'), + ('miner', 0, 'employee', 'Intérimaire', 0, '{"tshirt_2":1,"ears_1":8,"glasses_1":15,"torso_2":0,"ears_2":2,"glasses_2":3,"shoes_2":1,"pants_1":75,"shoes_1":51,"bags_1":0,"helmet_2":0,"pants_2":7,"torso_1":71,"tshirt_1":59,"arms":2,"bags_2":0,"helmet_1":0}', '{}'), + ('slaughterer',0,'employee','Intérimaire',0,'{\"age_1\":0,\"glasses_2\":0,\"beard_1\":5,\"decals_2\":0,\"beard_4\":0,\"shoes_2\":0,\"tshirt_2\":0,\"lipstick_2\":0,\"hair_2\":0,\"arms\":67,\"pants_1\":36,\"skin\":29,\"eyebrows_2\":0,\"shoes\":10,\"helmet_1\":-1,\"lipstick_1\":0,\"helmet_2\":0,\"hair_color_1\":0,\"glasses\":0,\"makeup_4\":0,\"makeup_1\":0,\"hair_1\":2,\"bproof_1\":0,\"bags_1\":0,\"mask_1\":0,\"lipstick_3\":0,\"chain_1\":0,\"eyebrows_4\":0,\"sex\":0,\"torso_1\":56,\"beard_2\":6,\"shoes_1\":12,\"decals_1\":0,\"face\":19,\"lipstick_4\":0,\"tshirt_1\":15,\"mask_2\":0,\"age_2\":0,\"eyebrows_3\":0,\"chain_2\":0,\"glasses_1\":0,\"ears_1\":-1,\"bags_2\":0,\"ears_2\":0,\"torso_2\":0,\"bproof_2\":0,\"makeup_2\":0,\"eyebrows_1\":0,\"makeup_3\":0,\"pants_2\":0,\"beard_3\":0,\"hair_color_2\":4}','{\"age_1\":0,\"glasses_2\":0,\"beard_1\":5,\"decals_2\":0,\"beard_4\":0,\"shoes_2\":0,\"tshirt_2\":0,\"lipstick_2\":0,\"hair_2\":0,\"arms\":72,\"pants_1\":45,\"skin\":29,\"eyebrows_2\":0,\"shoes\":10,\"helmet_1\":-1,\"lipstick_1\":0,\"helmet_2\":0,\"hair_color_1\":0,\"glasses\":0,\"makeup_4\":0,\"makeup_1\":0,\"hair_1\":2,\"bproof_1\":0,\"bags_1\":0,\"mask_1\":0,\"lipstick_3\":0,\"chain_1\":0,\"eyebrows_4\":0,\"sex\":1,\"torso_1\":49,\"beard_2\":6,\"shoes_1\":24,\"decals_1\":0,\"face\":19,\"lipstick_4\":0,\"tshirt_1\":9,\"mask_2\":0,\"age_2\":0,\"eyebrows_3\":0,\"chain_2\":0,\"glasses_1\":5,\"ears_1\":-1,\"bags_2\":0,\"ears_2\":0,\"torso_2\":0,\"bproof_2\":0,\"makeup_2\":0,\"eyebrows_1\":0,\"makeup_3\":0,\"pants_2\":0,\"beard_3\":0,\"hair_color_2\":4}') +; + +INSERT INTO `items` (`name`, `label`, `weight`) VALUES + ('alive_chicken', 'Poulet vivant', 1), + ('slaughtered_chicken', 'Poulet abattu', 1), + ('packaged_chicken', 'Poulet en barquette', 1), + ('fish', 'Poisson', 1), + ('stone', 'Pierre', 1), + ('washed_stone', 'Pierre Lavée', 1), + ('copper', 'Cuivre', 1), + ('iron', 'Fer', 1), + ('gold', 'Or', 1), + ('diamond', 'Diamant', 1), + ('wood', 'Bois', 1), + ('cutted_wood', 'Bois coupé', 1), + ('packaged_plank', 'Paquet de planches', 1), + ('petrol', 'Pétrole', 1), + ('petrol_raffin', 'Pétrole Raffiné', 1), + ('essence', 'Essence', 1), + ('wool', 'Laine', 1), + ('fabric', 'Tissu', 1), + ('clothe', 'Vêtement', 1) +; diff --git a/_resources/esx_jobs/fxmanifest.lua b/_resources/esx_jobs/fxmanifest.lua new file mode 100644 index 00000000..44b23a2c --- /dev/null +++ b/_resources/esx_jobs/fxmanifest.lua @@ -0,0 +1,59 @@ +fx_version 'adamant' + +game 'gta5' + +description 'ESX Jobs' + +version '1.1.0' + +server_scripts { + '@es_extended/locale.lua', + 'locales/br.lua', + 'locales/en.lua', + 'locales/es.lua', + 'locales/fi.lua', + 'locales/fr.lua', + 'locales/sv.lua', + 'locales/cs.lua', + 'locales/de.lua', + 'config.lua', + + 'jobs/fisherman.lua', + 'jobs/fueler.lua', + 'jobs/lumberjack.lua', + 'jobs/miner.lua', + 'jobs/reporter.lua', + 'jobs/slaughterer.lua', + 'jobs/tailor.lua', + + 'server/main.lua' +} + +client_scripts { + '@es_extended/locale.lua', + 'locales/br.lua', + 'locales/fi.lua', + 'locales/en.lua', + 'locales/es.lua', + 'locales/fr.lua', + 'locales/sv.lua', + 'locales/cs.lua', + 'config.lua', + + 'jobs/fisherman.lua', + 'jobs/fueler.lua', + 'jobs/lumberjack.lua', + 'jobs/miner.lua', + 'jobs/reporter.lua', + 'jobs/slaughterer.lua', + 'jobs/tailor.lua', + + 'client/main.lua' +} + +dependencies { + 'es_extended', + 'esx_addonaccount', + 'skinchanger', + 'esx_skin' +} diff --git a/_resources/esx_jobs/jobs/fisherman.lua b/_resources/esx_jobs/jobs/fisherman.lua new file mode 100644 index 00000000..cbad08c0 --- /dev/null +++ b/_resources/esx_jobs/jobs/fisherman.lua @@ -0,0 +1,175 @@ +Config.Jobs.fisherman = { + + BlipInfos = { + Sprite = 68, + Color = 38 + }, + + Vehicles = { + + Truck = { + Spawner = 1, + Hash = 'benson', + Trailer = 'none', + HasCaution = true + }, + + Boat = { + Spawner = 2, + Hash = 'tug', + Trailer = 'none', + HasCaution = true + } + + }, + + Zones = { + + CloakRoom = { + Pos = {x = 868.39, y = -1639.75, z = 29.33}, + Size = {x = 3.0, y = 3.0, z = 1.0}, + Color = {r = 204, g = 204, b = 0}, + Marker= 1, + Blip = true, + Name = _U('fm_fish_locker'), + Type = 'cloakroom', + Hint = _U('cloak_change'), + GPS = {x = 880.74, y = -1663.96, z = 29.37} + }, + + FishingSpot = { + Pos = {x = 4435.21, y = 4829.60, z = 0.34}, + Color = {r = 204, g = 204, b = 0}, + Size = {x = 110.0, y = 110.0, z = 10.0}, + Marker= 1, + Blip = true, + Name = _U('fm_fish_area'), + Type = 'work', + Hint = _U('fm_fish_button'), + GPS = {x = 3859.43, y = 4448.83, z = 0.39}, + Item = { + { + name = _U('fm_fish'), + db_name= 'fish', + time = 2, + max = 100, + add = 1, + remove = 1, + requires = 'nothing', + requires_name = 'Nothing', + drop = 100 + } + }, + + }, + + BoatSpawner = { + Pos = {x = 3867.44, y = 4463.62, z = 1.72}, + Size = {x = 3.0, y = 3.0, z = 1.0}, + Color = {r = 204, g = 204, b = 0}, + Marker= 1, + Blip = true, + Name = _U('fm_spawnboat_title'), + Type = 'vehspawner', + Spawner = 2, + Hint = _U('fm_spawnboat'), + Caution = 0, + GPS = {x = 4435.21, y = 4829.60, z = 0.34} + }, + + BoatSpawnPoint = { + Pos = {x = 3888.3, y = 4468.09, z = 0.0}, + Size = {x = 3.0, y = 3.0, z = 1.0}, + Marker= -1, + Blip = false, + Name = _U('fm_boat_title'), + Type = 'vehspawnpt', + Spawner = 2, + GPS = 0, + Heading = 270.1 + }, + + BoatDeletePoint = { + Pos = {x = 3859.43, y = 4448.83, z = 0.39}, + Size = {x = 10.0, y = 10.0, z = 1.0}, + Color = {r = 255, g = 0, b = 0}, + Marker= 1, + Blip = false, + Name = _U('fm_boat_return_title'), + Type = 'vehdelete', + Hint = _U('fm_boat_return_button'), + Spawner = 2, + Caution = 0, + GPS = {x = -1012.64, y = -1354.62, z = 5.54}, + Teleport = {x = 3867.44, y = 4463.62, z = 1.72} + }, + + VehicleSpawner = { + Pos = {x = 880.74, y = -1663.96, z = 29.37}, + Size = {x = 3.0, y = 3.0, z = 1.0}, + Color = {r = 204, g = 204, b = 0}, + Marker= 1, + Blip = false, + Name = _U('spawn_veh'), + Type = 'vehspawner', + Spawner = 1, + Hint = _U('spawn_veh_button'), + Caution = 2000, + GPS = {x = 3867.44, y = 4463.62, z = 1.72} + }, + + VehicleSpawnPoint = { + Pos = {x = 859.35, y = -1656.21, z = 29.56}, + Size = {x = 3.0, y = 3.0, z = 1.0}, + Marker= -1, + Blip = false, + Name = _U('service_vh'), + Type = 'vehspawnpt', + Spawner = 1, + GPS = 0, + Heading = 70.1 + }, + + VehicleDeletePoint = { + Pos = {x = 863.23, y = -1718.28, z = 28.63}, + Size = {x = 5.0, y = 5.0, z = 1.0}, + Color = {r = 255, g = 0, b = 0}, + Marker= 1, + Blip = false, + Name = _U('return_vh'), + Type = 'vehdelete', + Hint = _U('return_vh_button'), + Spawner = 1, + Caution = 2000, + GPS = 0, + Teleport = 0 + }, + + Delivery = { + Pos = {x = -1012.64, y = -1354.62, z = 5.54}, + Color = {r = 204, g = 204, b = 0}, + Size = {x = 5.0, y = 5.0, z = 3.0}, + Color = {r = 204, g = 204, b = 0}, + Marker= 1, + Blip = true, + Name = _U('delivery_point'), + Type = 'delivery', + Spawner = 2, + Hint = _U('fm_deliver_fish'), + GPS = {x = 3867.44, y = 4463.62, z = 1.72}, + Item = { + { + name = _U('delivery'), + time = 0.5, + remove = 1, + max = 100, -- if not present, probably an error at itemQtty >= item.max in esx_jobs_sv.lua + price = 11, + requires = 'fish', + requires_name = _U('fm_fish'), + drop = 100 + } + } + } + + } +} diff --git a/_resources/esx_jobs/jobs/fueler.lua b/_resources/esx_jobs/jobs/fueler.lua new file mode 100644 index 00000000..8b6edeb6 --- /dev/null +++ b/_resources/esx_jobs/jobs/fueler.lua @@ -0,0 +1,176 @@ +Config.Jobs.fueler = { + + BlipInfos = { + Sprite = 436, + Color = 5 + }, + + Vehicles = { + + Truck = { + Spawner = 1, + Hash = 'phantom', + Trailer = 'tanker', + HasCaution = true + } + + }, + + Zones = { + + CloakRoom = { + Pos = {x = 557.93, y = -2327.90, z = 4.82}, + Size = {x = 3.0, y = 3.0, z = 2.0}, + Color = {r = 204, g = 204, b = 0}, + Marker = 1, + Blip = true, + Name = _U('f_oil_refiner'), + Type = 'cloakroom', + Hint = _U('cloak_change'), + GPS = {x = 554.59, y = -2314.43, z = 4.86} + }, + + OilFarm = { + Pos = {x = 609.58, y = 2856.74, z = 38.90}, + Size = {x = 20.0, y = 20.0, z = 1.0}, + Color = {r = 204, g = 204, b = 0}, + Marker = 1, + Blip = true, + Name = _U('f_drill_oil'), + Type = 'work', + Item = { + { + name = _U('f_fuel'), + db_name = 'petrol', + time = 5, + max = 24, + add = 1, + remove = 1, + requires = 'nothing', + requires_name = 'Nothing', + drop = 100 + } + }, + Hint = _U('f_drillbutton'), + GPS = {x = 2736.94, y = 1417.99, z = 23.48} + }, + + OilRefinement = { + Pos = {x = 2736.94, y = 1417.99, z = 23.48}, + Size = {x = 10.0, y = 10.0, z = 1.0}, + Color = {r = 204, g = 204, b = 0}, + Marker = 1, + Blip = true, + Name = _U('f_fuel_refine'), + Type = 'work', + Item = { + { + name = _U('f_fuel_refine'), + db_name = 'petrol_raffin', + time = 5, + max = 24, + add = 1, + remove = 2, + requires = 'petrol', + requires_name = _U('f_fuel'), + drop = 100 + } + }, + Hint = _U('f_refine_fuel_button'), + GPS = {x = 265.75, y = -3013.39, z = 4.73} + }, + + OilMix = { + Pos = {x = 265.75, y = -3013.39, z = 4.73}, + Size = {x = 10.0, y = 10.0, z = 1.0}, + Color = {r = 204, g = 204, b = 0}, + Marker = 1, + Blip = true, + Name = _U('f_fuel_mixture'), + Type = 'work', + Item = { + { + name = _U('f_gas'), + db_name = 'essence', + time = 5, + max = 24, + add = 2, + remove = 1, + requires = 'petrol_raffin', + requires_name = _U('f_fuel_refine'), + drop = 100 + } + }, + Hint = _U('f_fuel_mixture_button'), + GPS = {x = 491.40, y = -2163.37, z = 4.91} + }, + + VehicleSpawner = { + Pos = {x = 554.59, y = -2314.43, z = 4.86}, + Size = {x = 3.0, y = 3.0, z = 2.0}, + Color = {r = 204, g = 204, b = 0}, + Marker = 1, + Blip = false, + Name = _U('spawn_veh'), + Type = 'vehspawner', + Spawner = 1, + Hint = _U('spawn_truck_button'), + Caution = 2000, + GPS = {x = 602.25, y = 2926.62, z = 39.68} + }, + + VehicleSpawnPoint = { + Pos = {x = 570.54, y = -2309.70, z = 4.90}, + Size = {x = 3.0, y = 3.0, z = 1.0}, + Marker = -1, + Blip = false, + Name = _U('service_vh'), + Type = 'vehspawnpt', + Spawner = 1, + GPS = 0, + Heading = 0 + }, + + VehicleDeletePoint = { + Pos = {x = 520.68, y = -2124.21, z = 4.98}, + Size = {x = 5.0, y = 5.0, z = 1.0}, + Color = {r = 255, g = 0, b = 0}, + Marker = 1, + Blip = false, + Name = _U('return_vh'), + Type = 'vehdelete', + Hint = _U('return_vh_button'), + Spawner = 1, + Caution = 2000, + GPS = 0, + Teleport = 0 + }, + + Delivery = { + Pos = {x = 491.40, y = -2163.37, z = 4.91}, + Color = {r = 204, g = 204, b = 0}, + Size = {x = 10.0, y = 10.0, z = 1.0}, + Marker = 1, + Blip = true, + Name = _U('f_deliver_gas'), + Type = 'delivery', + Spawner = 1, + Item = { + { + name = _U('delivery'), + time = 0.5, + remove = 1, + max = 100, -- if not present, probably an error at itemQtty >= item.max in esx_jobs_sv.lua + price = 61, + requires = 'essence', + requires_name = _U('f_gas'), + drop = 100 + } + }, + + Hint = _U('f_deliver_gas_button'), + GPS = {x = 609.58, y = 2856.74, z = 39.49} + } + + } +} diff --git a/_resources/esx_jobs/jobs/lumberjack.lua b/_resources/esx_jobs/jobs/lumberjack.lua new file mode 100644 index 00000000..5eca3b24 --- /dev/null +++ b/_resources/esx_jobs/jobs/lumberjack.lua @@ -0,0 +1,168 @@ +Config.Jobs.lumberjack = { + + BlipInfos = { + Sprite = 237, + Color = 4 + }, + + Vehicles = { + + Truck = { + Spawner = 1, + Hash = 'phantom', + Trailer = 'trailers', + HasCaution = true + } + + }, + + Zones = { + + CloakRoom = { + Pos = {x = 1200.63, y = -1276.87, z = 34.38}, + Size = {x = 3.0, y = 3.0, z = 1.0}, + Color = {r = 204, g = 204, b = 0}, + Marker = 1, + Blip = true, + Name = _U('lj_locker_room'), + Type = 'cloakroom', + Hint = _U('cloak_change') + }, + + Wood = { + Pos = {x = -534.32, y = 5373.79, z = 69.50}, + Size = {x = 3.0, y = 3.0, z = 1.0}, + Color = {r = 204, g = 204, b = 0}, + Marker = 1, + Blip = true, + Name = _U('lj_mapblip'), + Type = 'work', + Item = { + { + name = _U('lj_wood'), + db_name = 'wood', + time = 3, + max = 20, + add = 1, + remove = 1, + requires = 'nothing', + requires_name = 'Nothing', + drop = 100 + } + }, + Hint = _U('lj_pickup') + }, + + CuttedWood = { + Pos = {x = -552.21, y = 5326.90, z = 72.59}, + Size = {x = 3.0, y = 3.0, z = 1.0}, + Color = {r = 204, g = 204, b = 0}, + Marker = 1, + Blip = false, + Name = _U('lj_cutwood'), + Type = 'work', + Item = { + { + name = _U('lj_cutwood'), + db_name = 'cutted_wood', + time = 5, + max = 20, + add = 1, + remove = 1, + requires = 'wood', + requires_name = _U('lj_wood'), + drop = 100 + } + }, + Hint = _U('lj_cutwood_button') + }, + + Planks = { + Pos = {x = -501.38, y = 5280.53, z = 79.61}, + Size = {x = 3.0, y = 3.0, z = 1.0}, + Color = {r = 204, g = 204, b = 0}, + Marker = 1, + Blip = false, + Name = _U('lj_board'), + Type = 'work', + Item = { + { + name = _U('lj_planks'), + db_name = 'packaged_plank', + time = 4, + max = 100, + add = 5, + remove = 1, + requires = 'cutted_wood', + requires_name = _U('lj_cutwood'), + drop = 100 + } + }, + Hint = _U('lj_pick_boards') + }, + + VehicleSpawner = { + Pos = {x = 1191.96, y = -1261.77, z = 34.17}, + Size = {x = 3.0, y = 3.0, z = 1.0}, + Color = {r = 204, g = 204, b = 0}, + Marker = 1, + Blip = false, + Name = _U('spawn_veh'), + Type = 'vehspawner', + Spawner = 1, + Hint = _U('spawn_veh_button'), + Caution = 2000 + }, + + VehicleSpawnPoint = { + Pos = {x = 1194.62, y = -1286.95, z = 34.12}, + Size = {x = 3.0, y = 3.0, z = 1.0}, + Marker = -1, + Blip = false, + Name = _U('service_vh'), + Type = 'vehspawnpt', + Spawner = 1, + Heading = 264.40 + }, + + VehicleDeletePoint = { + Pos = {x = 1216.89, y = -1229.23, z = 34.40}, + Size = {x = 5.0, y = 5.0, z = 1.0}, + Color = {r = 255, g = 0, b = 0}, + Marker = 1, + Blip = false, + Name = _U('return_vh'), + Type = 'vehdelete', + Hint = _U('return_vh_button'), + Spawner = 1, + Caution = 2000, + GPS = 0, + Teleport = 0 + }, + + Delivery = { + Pos = {x = 1201.35, y = -1327.51, z = 34.22}, + Color = {r = 204, g = 204, b = 0}, + Size = {x = 5.0, y = 5.0, z = 3.0}, + Marker = 1, + Blip = true, + Name = _U('delivery_point'), + Type = 'delivery', + Spawner = 1, + Item = { + { + name = _U('delivery'), + time = 0.5, + remove = 1, + max = 100, -- if not present, probably an error at itemQtty >= item.max in esx_jobs_sv.lua + price = 13, + requires = 'packaged_plank', + requires_name = _U('lj_planks'), + drop = 100 + } + }, + Hint = _U('lj_deliver_button') + } + + } +} diff --git a/_resources/esx_jobs/jobs/miner.lua b/_resources/esx_jobs/jobs/miner.lua new file mode 100644 index 00000000..edbffb6d --- /dev/null +++ b/_resources/esx_jobs/jobs/miner.lua @@ -0,0 +1,274 @@ +Config.Jobs.miner = { + + BlipInfos = { + Sprite = 318, + Color = 5 + }, + + Vehicles = { + + Truck = { + Spawner = 1, + Hash = 'rubble', + Trailer = 'none', + HasCaution = true + } + + }, + + Zones = { + + CloakRoom = { + Pos = {x = 892.35, y = -2172.77, z = 31.28}, + Size = {x = 3.0, y = 3.0, z = 1.0}, + Color = {r = 204, g = 204, b = 0}, + Marker = 1, + Blip = true, + Name = _U('m_miner_locker'), + Type = 'cloakroom', + Hint = _U('cloak_change'), + GPS = {x = 884.86, y = -2176.51, z = 29.51} + }, + + Mine = { + Pos = {x = 2962.40, y = 2746.20, z = 42.39}, + Size = {x = 5.0, y = 5.0, z = 1.0}, + Color = {r = 204, g = 204, b = 0}, + Marker = 1, + Blip = true, + Name = _U('m_rock'), + Type = 'work', + Item = { + { + name = _U('m_rock'), + db_name = 'stone', + time = 3, + max = 7, + add = 1, + remove = 1, + requires = 'nothing', + requires_name = 'Nothing', + drop = 100 + } + }, + Hint = _U('m_pickrocks'), + GPS = {x = 289.24, y = 2862.90, z = 42.64} + }, + + StoneWash = { + Pos = {x = 289.24, y = 2862.90, z = 42.64}, + Size = {x = 5.0, y = 5.0, z = 1.0}, + Color = {r = 204, g = 204, b = 0}, + Marker = 1, + Blip = true, + Name = _U('m_washrock'), + Type = 'work', + Item = { + { + name = _U('m_washrock'), + db_name = 'washed_stone', + time = 5, + max = 7, + add = 1, + remove = 1, + requires = 'stone', + requires_name = _U('m_rock'), + drop = 100 + } + }, + Hint = _U('m_rock_button'), + GPS = {x = 1109.14, y = -2007.87, z = 30.01} + }, + + Foundry = { + Pos = {x = 1109.14, y = -2007.87, z = 30.01}, + Size = {x = 5.0, y = 5.0, z = 1.0}, + Color = {r = 204, g = 204, b = 0}, + Marker = 1, + Blip = true, + Name = _U('m_rock_smelting'), + Type = 'work', + Item = { + { + name = _U('m_copper'), + db_name = 'copper', + time = 4, + max = 56, + add = 8, + remove = 1, + requires = 'washed_stone', + requires_name = _U('m_washrock'), + drop = 100 + }, + { + name = _U('m_iron'), + db_name = 'iron', + max = 42, + add = 6, + drop = 100 + }, + { + name = _U('m_gold'), + db_name = 'gold', + max = 21, + add = 3, + drop = 100 + }, + { + name = _U('m_diamond'), + db_name = 'diamond', + max = 50, + add = 1, + drop = 5 + } + }, + Hint = _U('m_melt_button'), + GPS = {x = -169.48, y = -2659.16, z = 5.00} + }, + + VehicleSpawner = { + Pos = {x = 884.86, y = -2176.51, z = 29.51}, + Size = {x = 5.0, y = 5.0, z = 1.0}, + Color = {r = 204, g = 204, b = 0}, + Marker = 1, + Blip = false, + Name = _U('spawn_veh'), + Type = 'vehspawner', + Spawner = 1, + Hint = _U('spawn_veh_button'), + Caution = 2000, + GPS = {x = 2962.40, y = 2746.20, z = 42.39} + }, + + VehicleSpawnPoint = { + Pos = {x = 879.55, y = -2189.79, z = 29.51}, + Size = {x = 5.0, y = 5.0, z = 1.0}, + Marker = -1, + Blip = false, + Name = _U('service_vh'), + Type = 'vehspawnpt', + Spawner = 1, + Heading = 90.1, + GPS = 0 + }, + + VehicleDeletePoint = { + Pos = {x = 881.93, y = -2198.01, z = 29.51}, + Size = {x = 5.0, y = 5.0, z = 1.0}, + Color = {r = 255, g = 0, b = 0}, + Marker = 1, + Blip = false, + Name = _U('return_vh'), + Type = 'vehdelete', + Hint = _U('return_vh_button'), + Spawner = 1, + Caution = 2000, + GPS = 0, + Teleport = 0 + }, + + CopperDelivery = { + Pos = {x = -169.481, y = -2659.16, z = 5.00103}, + Color = {r = 204, g = 204, b = 0}, + Size = {x = 5.0, y = 5.0, z = 3.0}, + Marker = 1, + Blip = true, + Name = _U('m_sell_copper'), + Type = 'delivery', + Spawner = 1, + Item = { + { + name = _U('delivery'), + time = 0.5, + remove = 1, + max = 56, -- if not present, probably an error at itemQtty >= item.max in esx_jobs_sv.lua + price = 5, + requires = 'copper', + requires_name = _U('m_copper'), + drop = 100 + } + }, + Hint = _U('m_deliver_copper'), + GPS = {x = -148.78, y = -1040.38, z = 26.27} + }, + + IronDelivery = { + Pos = {x = -148.78, y = -1040.38, z = 26.27}, + Color = {r = 204, g = 204, b = 0}, + Size = {x = 5.0, y = 5.0, z = 3.0}, + Color = {r = 204, g = 204, b = 0}, + Marker = 1, + Blip = true, + Name = _U('m_sell_iron'), + Type = 'delivery', + Spawner = 1, + Item = { + { + name = _U('delivery'), + time = 0.5, + remove = 1, + max = 42, -- if not present, probably an error at itemQtty >= item.max in esx_jobs_sv.lua + price = 9, + requires = 'iron', + requires_name = _U('m_iron'), + drop = 100 + } + }, + Hint = _U('m_deliver_iron'), + GPS = {x = 261.48, y = 207.35, z = 109.28} + }, + + GoldDelivery = { + Pos = {x = 261.48, y = 207.35, z = 109.28}, + Color = {r = 204, g = 204, b = 0}, + Size = {x = 5.0, y = 5.0, z = 3.0}, + Color = {r = 204, g = 204, b = 0}, + Marker = 1, + Blip = true, + Name = _U('m_sell_gold'), + Type = 'delivery', + Spawner = 1, + Item = { + { + name = _U('delivery'), + time = 0.5, + remove = 1, + max = 21, -- if not present, probably an error at itemQtty >= item.max in esx_jobs_sv.lua + price = 25, + requires = 'gold', + requires_name = _U('m_gold'), + drop = 100 + } + }, + Hint = _U('m_deliver_gold'), + GPS = {x = -621.04, y = -228.53, z = 37.05} + }, + + DiamondDelivery = { + Pos = {x = -621.04, y = -228.53, z = 37.05}, + Color = {r = 204, g = 204, b = 0}, + Size = {x = 5.0, y = 5.0, z = 3.0}, + Color = {r = 204, g = 204, b = 0}, + Marker = 1, + Blip = true, + Name = _U('m_sell_diamond'), + Type = 'delivery', + Spawner = 1, + Item = { + { + name = _U('delivery'), + time = 0.5, + remove = 1, + max = 50, -- if not present, probably an error at itemQtty >= item.max in esx_jobs_sv.lua + price = 250, + requires = 'diamond', + requires_name = _U('m_diamond'), + drop = 100 + } + }, + Hint = _U('m_deliver_diamond'), + GPS = {x = 2962.40, y = 2746.20, z = 42.39} + } + + } +} diff --git a/_resources/esx_jobs/jobs/reporter.lua b/_resources/esx_jobs/jobs/reporter.lua new file mode 100644 index 00000000..71766d2e --- /dev/null +++ b/_resources/esx_jobs/jobs/reporter.lua @@ -0,0 +1,61 @@ +Config.Jobs.reporter = { + + BlipInfos = { + Sprite = 184, + Color = 1 + }, + + Vehicles = { + + Truck = { + Spawner = 1, + Hash = 'rumpo', + Trailer = 'none', + HasCaution = true + } + + }, + + Zones = { + + VehicleSpawner = { + Pos = {x = -141.41, y = -620.80, z = 167.82}, + Size = {x = 2.0, y = 2.0, z = 0.2}, + Color = {r = 204, g = 204, b = 0}, + Marker = 1, + Blip = true, + Name = _U('reporter_name'), + Type = 'vehspawner', + Spawner = 1, + Hint = _U('reporter_garage'), + Caution = 2000 + }, + + VehicleSpawnPoint = { + Pos = {x = -149.32, y = -592.17, z = 31.42}, + Size = {x = 3.0, y = 3.0, z = 1.0}, + Marker = -1, + Blip = false, + Name = _U('service_vh'), + Type = 'vehspawnpt', + Spawner = 1, + Heading = 200.1 + }, + + VehicleDeletePoint = { + Pos = {x = -144.22, y = -577.02, z = 31.42}, + Size = {x = 5.0, y = 5.0, z = 0.2}, + Color = {r = 255, g = 0, b = 0}, + Marker = 1, + Blip = false, + Name = _U('return_vh'), + Type = 'vehdelete', + Hint = _U('return_vh_button'), + Spawner = 1, + Caution = 2000, + GPS = 0, + Teleport = {x = -139.09, y = -620.74, z = 167.82} + } + + } +} diff --git a/_resources/esx_jobs/jobs/slaughterer.lua b/_resources/esx_jobs/jobs/slaughterer.lua new file mode 100644 index 00000000..d07077c6 --- /dev/null +++ b/_resources/esx_jobs/jobs/slaughterer.lua @@ -0,0 +1,166 @@ +Config.Jobs.slaughterer = { + + BlipInfos = { + Sprite = 256, + Color = 5 + }, + + Vehicles = { + + Truck = { + Spawner = 1, + Hash = 'benson', + Trailer = 'none', + HasCaution = true + } + }, + + Zones = { + + CloakRoom = { + Pos = {x = -1071.13, y = -2003.78, z = 14.78}, + Size = {x = 3.0, y = 3.0, z = 1.0}, + Color = {r = 204, g = 204, b = 0}, + Marker = 1, + Blip = true, + Name = _U('s_slaughter_locker'), + Type = 'cloakroom', + Hint = _U('cloak_change') + }, + + AliveChicken = { + Pos = {x = -62.90, y = 6241.46, z = 30.09}, + Size = {x = 3.0, y = 3.0, z = 1.0}, + Color = {r = 204, g = 204, b = 0}, + Marker = 1, + Blip = true, + Name = _U('s_hen'), + Type = 'work', + Item = { + { + name = _U('s_alive_chicken'), + db_name = 'alive_chicken', + time = 3, + max = 20, + add = 1, + remove = 1, + requires = 'nothing', + requires_name = 'Nothing', + drop = 100 + } + }, + Hint = _U('s_catch_hen') + }, + + SlaughterHouse = { + Pos = {x = -77.99, y = 6229.06, z = 30.09}, + Size = {x = 3.0, y = 3.0, z = 1.0}, + Color = {r = 204, g = 204, b = 0}, + Marker = 1, + Blip = false, + Name = _U('s_slaughtered'), + Type = 'work', + Item = { + { + name = _U('s_slaughtered_chicken'), + db_name = 'slaughtered_chicken', + time = 5, + max = 20, + add = 1, + remove = 1, + requires = 'alive_chicken', + requires_name = _U('s_alive_chicken'), + drop = 100 + } + }, + Hint = _U('s_chop_animal') + }, + + Packaging = { + Pos = {x = -101.97, y = 6208.79, z = 30.02}, + Size = {x = 3.0, y = 3.0, z = 1.0}, + Color = {r = 204, g = 204, b = 0}, + Marker = 1, + Blip = false, + Name = _U('s_package'), + Type = 'work', + Item = { + { + name = _U('s_packagechicken'), + db_name = 'packaged_chicken', + time = 4, + max = 100, + add = 5, + remove = 1, + requires = 'slaughtered_chicken', + requires_name = _U('s_unpackaged'), + drop = 100 + } + }, + Hint = _U('s_unpackaged_button') + }, + + VehicleSpawner = { + Pos = {x = -1042.94, y = -2023.25, z = 12.16}, + Size = {x = 3.0, y = 3.0, z = 1.0}, + Color = {r = 204, g = 204, b = 0}, + Marker = 1, + Blip = false, + Name = _U('spawn_veh'), + Type = 'vehspawner', + Spawner = 1, + Hint = _U('spawn_veh_button'), + Caution = 2000 + }, + + VehicleSpawnPoint = { + Pos = {x = -1048.85, y = -2025.32, z = 12.16}, + Size = {x = 3.0, y = 3.0, z = 1.0}, + Marker = -1, + Blip = false, + Name = _U('service_vh'), + Type = 'vehspawnpt', + Spawner = 1, + Heading = 130.1 + }, + + VehicleDeletePoint = { + Pos = {x = -1061.51, y = -2008.35, z = 12.16}, + Size = {x = 5.0, y = 5.0, z = 1.0}, + Color = {r = 255, g = 0, b = 0}, + Marker = 1, + Blip = false, + Name = _U('return_vh'), + Type = 'vehdelete', + Hint = _U('return_vh_button'), + Spawner = 1, + Caution = 2000, + GPS = 0, + Teleport = 0 + }, + + Delivery = { + Pos = {x = -596.15, y = -889.32, z = 24.50}, + Color = {r = 204, g = 204, b = 0}, + Size = {x = 5.0, y = 5.0, z = 1.0}, + Marker = 1, + Blip = true, + Name = _U('delivery_point'), + Type = 'delivery', + Spawner = 1, + Item = { + { + name = _U('delivery'), + time = 0.5, + remove = 1, + max = 100, -- if not present, probably an error at itemQtty >= item.max in esx_jobs_sv.lua + price = 23, + requires = 'packaged_chicken', + requires_name = _U('s_packagechicken'), + drop = 100 + } + }, + Hint = _U('s_deliver') + } + } +} diff --git a/_resources/esx_jobs/jobs/tailor.lua b/_resources/esx_jobs/jobs/tailor.lua new file mode 100644 index 00000000..bac08078 --- /dev/null +++ b/_resources/esx_jobs/jobs/tailor.lua @@ -0,0 +1,174 @@ +Config.Jobs.tailor = { + + BlipInfos = { + Sprite = 366, + Color = 4 + }, + + Vehicles = { + + Truck = { + Spawner = 1, + Hash = 'youga2', + Trailer = 'none', + HasCaution = true + } + + }, + + Zones = { + + CloakRoom = { + Pos = {x = 706.73, y = -960.90, z = 29.39}, + Size = {x = 3.0, y = 3.0, z = 1.0}, + Color = {r = 204, g = 204, b = 0}, + Marker = 1, + Blip = true, + Name = _U('dd_dress_locker'), + Type = 'cloakroom', + Hint = _U('cloak_change'), + GPS = {x = 740.80, y = -970.06, z = 23.46} + }, + + Wool = { + Pos = {x = 1978.92, y = 5171.70, z = 46.63}, + Size = {x = 3.0, y = 3.0, z = 1.0}, + Color = {r = 204, g = 204, b = 0}, + Marker = 1, + Blip = true, + Name = _U('dd_wool'), + Type = 'work', + Item = { + { + name = _U('dd_wool'), + db_name = 'wool', + time = 3, + max = 40, + add = 1, + remove = 1, + requires = 'nothing', + requires_name = 'Nothing', + drop = 100 + } + }, + Hint = _U('dd_pickup'), + GPS = {x = 715.95, y = -959.63, z = 29.39} + }, + + Fabric = { + Pos = {x = 715.95, y = -959.63, z = 29.39}, + Size = {x = 3.0, y = 3.0, z = 1.0}, + Color = {r = 204, g = 204, b = 0}, + Marker = 1, + Blip = false, + Name = _U('dd_fabric'), + Type = 'work', + Item = { + { + name = _U('dd_fabric'), + db_name = 'fabric', + time = 5, + max = 80, + add = 2, + remove = 1, + requires = 'wool', + requires_name = _U('dd_wool'), + drop = 100 + } + }, + Hint = _U('dd_makefabric'), + GPS = {x = 712.92, y = -970.58, z = 29.39} + }, + + Clothe = { + Pos = {x = 712.92, y = -970.58, z = 29.39}, + Size = {x = 3.0, y = 3.0, z = 1.0}, + Color = {r = 204, g = 204, b = 0}, + Marker = 1, + Blip = false, + Name = _U('dd_clothing'), + Type = 'work', + Item = { + { + name = _U('dd_clothing'), + db_name = 'clothe', + time = 4, + max = 40, + add = 1, + remove = 2, + requires = 'fabric', + requires_name = _U('dd_fabric'), + drop = 100 + } + }, + Hint = _U('dd_makeclothing'), + GPS = {x = 429.59, y = -807.34, z = 28.49} + }, + + VehicleSpawner = { + Pos = {x = 740.80, y = -970.06, z = 23.46}, + Size = {x = 3.0, y = 3.0, z = 1.0}, + Color = {r = 204, g = 204, b = 0}, + Marker = 1, + Blip = false, + Name = _U('spawn_veh'), + Type = 'vehspawner', + Spawner = 1, + Hint = _U('spawn_veh_button'), + Caution = 2000, + GPS = {x = 1978.92, y = 5171.70, z = 46.63} + }, + + VehicleSpawnPoint = { + Pos = {x = 747.31, y = -966.23, z = 23.70}, + Size = {x = 3.0, y = 3.0, z = 1.0}, + Marker = -1, + Blip = false, + Name = _U('service_vh'), + Type = 'vehspawnpt', + Spawner = 1, + Heading = 270.1, + GPS = 0 + }, + + VehicleDeletePoint = { + Pos = {x = 693.79, y = -963.01, z = 22.82}, + Size = {x = 3.0, y = 3.0, z = 1.0}, + Color = {r = 255, g = 0, b = 0}, + Marker = 1, + Blip = false, + Name = _U('return_vh'), + Type = 'vehdelete', + Hint = _U('return_vh_button'), + Spawner = 1, + Caution = 2000, + GPS = 0, + Teleport = 0 + }, + + Delivery = { + Pos = {x = 429.59, y = -807.34, z = 28.49}, + Color = {r = 204, g = 204, b = 0}, + Size = {x = 5.0, y = 5.0, z = 3.0}, + Marker = 1, + Blip = true, + Name = _U('delivery_point'), + Type = 'delivery', + Spawner = 1, + Item = { + { + name = _U('delivery'), + time = 0.5, + remove = 1, + max = 100, -- if not present, probably an error at itemQtty >= item.max in esx_jobs_sv.lua + price = 40, + requires = 'clothe', + requires_name = _U('dd_clothing'), + drop = 100 + } + }, + Hint = _U('dd_deliver_clothes'), + GPS = {x = 1978.92, y = 5171.70, z = 46.63} + } + } +} diff --git a/_resources/esx_jobs/locales/br.lua b/_resources/esx_jobs/locales/br.lua new file mode 100644 index 00000000..2c1b838a --- /dev/null +++ b/_resources/esx_jobs/locales/br.lua @@ -0,0 +1,115 @@ +Locales['br'] = { + -- Global menus + ['cloakroom'] = 'vestiário', + ['cloak_change'] = 'pressione ~INPUT_PICKUP~ mudar de roupa.', + ['citizen_wear'] = 'retirar uniforme', + ['job_wear'] = 'colocar uniforme', + ['bank_deposit_returned'] = 'um depósito de segurança de ~g~$%s~s~ foi devolvido a você.', + ['bank_deposit_taken'] = 'um depósito de segurança de ~g~$%s~s~ foi tirado de você.', + ['caution_afford'] = 'you cannot afford the caution of ~g~$%s~s~', + ['foot_work'] = 'você deve estar a pé para poder trabalhar.', + ['next_point'] = 'vá para o próximo passo depois de completar este.', + ['not_your_vehicle'] = 'este não é o seu veículo ou você deve ser um motorista.', + ['in_vehicle'] = 'você deve estar em um veículo.', + ['wrong_point'] = 'você não está no ponto certo de entrega.', + ['max_limit'] = 'você tem o máximo ~y~%s~s~', + ['not_enough'] = 'você não tem o suficiente ~y~%s~s~ para continuar esta tarefa.', + ['spawn_veh'] = 'veiculo Spawnado', + ['spawn_veh_button'] = 'pressione ~INPUT_PICKUP~ chamar o veículo de entrega.', + ['spawn_truck_button'] = 'pressione ~INPUT_PICKUP~ spawnar o caminhão.', + ['spawn_blocked'] = 'an vehicle is blocking the spawnpoint!', + ['service_vh'] = 'veículo de serviço', + ['return_vh'] = 'veiculo devolvido', + ['return_vh_button'] = 'pressione ~INPUT_PICKUP~ para devolver o veiculo.', + ['delivery_point'] = 'ponto de entrega', + ['delivery'] = 'entrega', + ['public_enter'] = 'pressione ~INPUT_PICKUP~ para entrar no prédio.', + ['public_leave'] = 'pressione ~INPUT_PICKUP~ para ir à entrada do edifício.', + + -- Lumber Jack job + ['lj_locker_room'] = 'vestiario Lenhador', + ['lj_mapblip'] = 'pilha de madeira', + ['lj_wood'] = 'madeira', + ['lj_pickup'] = 'pressione ~INPUT_PICKUP~ para recuperar madeira.', + ['lj_cutwood'] = 'corte de Madeira', + ['lj_cutwood_button'] = 'pressione ~INPUT_PICKUP~ para cortar madeira.', + ['lj_board'] = 'tábua', + ['lj_planks'] = 'tábua embalada', + ['lj_cutwood'] = 'madeira cortada', + ['lj_pick_boards'] = 'pressione ~INPUT_PICKUP~ para recuperar tábuas.', + ['lj_deliver_button'] = 'pressione ~INPUT_PICKUP~ para entregar as tábuas.', + + -- Fisherman + ['fm_fish_locker'] = 'vestiario Pescador', + ['fm_fish'] = 'peixe', + ['fm_fish_area'] = 'area de pesca', + ['fm_fish_button'] = 'pressione ~INPUT_PICKUP~ para pescar.', + ['fm_spawnboat_title'] = 'Spawnar Barco', + ['fm_spawnboat'] = 'pressione ~INPUT_PICKUP~ para chamar um barco.', + ['fm_boat_title'] = 'barco', + ['fm_boat_return_title'] = 'devolver barco', + ['fm_boat_return_button'] = 'Pressione ~INPUT_PICKUP~ para devolver o barco.', + ['fm_deliver_fish'] = 'pressione ~INPUT_PICKUP~ para entregar os peixes.', + + -- Fuel + ['f_oil_refiner'] = 'vestiario Refinador', + ['f_drill_oil'] = 'broca de óleo', + ['f_fuel'] = 'óleo', + ['f_drillbutton'] = 'pressione ~INPUT_PICKUP~ para perfurar.', + ['f_fuel_refine'] = 'refinar óleo', + ['f_refine_fuel_button'] = 'pressione ~INPUT_PICKUP~ para refinar.', + ['f_fuel_mixture'] = 'misturar o óleo refinado', + ['f_gas'] = 'gasolina', + ['f_fuel_mixture_button'] = 'pressione ~INPUT_PICKUP~ para misturar.', + ['f_deliver_gas'] = 'entregar Gasolina', + ['f_deliver_gas_button'] = 'pressione ~INPUT_PICKUP~ para entregar a gasolina.', + + -- Miner + ['m_miner_locker'] = 'vestiario Minerador', + ['m_rock'] = 'pedregulho', + ['m_pickrocks'] = 'pressione ~INPUT_PICKUP~ para obter pedras.', + ['m_washrock'] = 'pedras limpas ', + ['m_rock_button'] = 'pressione ~INPUT_PICKUP~ para lavar as pedras.', + ['m_rock_smelting'] = 'fundição', + ['m_copper'] = 'cobre', + ['m_sell_copper'] = 'vender cobre', + ['m_deliver_copper'] = 'pressione ~INPUT_PICKUP~ para entregar cobre.', + ['m_iron'] = 'ferro', + ['m_sell_iron'] = 'vender ferro', + ['m_deliver_iron'] = 'pressione ~INPUT_PICKUP~ para entregar ferro.', + ['m_gold'] = 'ouro', + ['m_sell_gold'] = 'vender ouro', + ['m_deliver_gold'] = 'pressione ~INPUT_PICKUP~ para entregar ouro.', + ['m_diamond'] = 'diamante', + ['m_sell_diamond'] = 'vender diamante', + ['m_deliver_diamond'] = 'pressione ~INPUT_PICKUP~ para entregar diamantes.', + ['m_melt_button'] = 'pressione ~INPUT_PICKUP~ para derreter as pedras.', + + -- Reporter + ['reporter_name'] = 'globo News', + ['reporter_garage'] = 'pressione ~INPUT_PICKUP~ para descer à garagem.', + + -- Slaughterer + ['s_slaughter_locker'] = 'vestiario Abatedor', + ['s_hen'] = 'galinheiro', + ['s_alive_chicken'] = 'galinha viva', + ['s_catch_hen'] = 'pressione ~INPUT_PICKUP~ para pegar galinha viva.', + ['s_slaughtered_chicken'] = 'frango para ser embalado', + ['s_chop_animal'] = 'pressione ~INPUT_PICKUP~ para cortar as galinhas.', + ['s_slaughtered'] = 'matadouro', + ['s_package'] = 'embalamento', + ['s_packagechicken'] = 'frango na bandeija', + ['s_unpackaged'] = 'frango para ser embalado', + ['s_unpackaged_button'] = 'pressione ~INPUT_PICKUP~ para colocar o frango em uma bandeja.', + ['s_deliver'] = 'pressione ~INPUT_PICKUP~ para entregar as bandejas de frango.', + + -- Dress Designer + ['dd_dress_locker'] = 'vestiario Costureiro', + ['dd_wool'] = 'lã', + ['dd_pickup'] = 'pressione ~INPUT_PICKUP~ para obter lã.', + ['dd_fabric'] = 'tecido', + ['dd_makefabric'] = 'pressione ~INPUT_PICKUP~ para fazer tecido.', + ['dd_clothing'] = 'roupas', + ['dd_makeclothing'] = 'pressione ~INPUT_PICKUP~ para obter roupas.', + ['dd_deliver_clothes'] = 'pressione ~INPUT_PICKUP~ para entregar roupas.', +} diff --git a/_resources/esx_jobs/locales/cs.lua b/_resources/esx_jobs/locales/cs.lua new file mode 100644 index 00000000..18cb39ae --- /dev/null +++ b/_resources/esx_jobs/locales/cs.lua @@ -0,0 +1,115 @@ +Locales['cs'] = { + -- Global menus + ['cloakroom'] = 'satna', + ['cloak_change'] = 'stiskni ~INPUT_PICKUP~ pro prevleceni.', + ['citizen_wear'] = 'civilni obleceni', + ['job_wear'] = 'pracovni obleceni', + ['bank_deposit_returned'] = 'bezpecnostni poplatek ~g~$%s~s~ ti byl vracen.', + ['bank_deposit_taken'] = 'bezpecnostni poplatek ~r~$%s~s~ ti byl odebram.', + ['caution_afford'] = 'nemuzes si dovolit kauci ~g~$%s~s~', + ['foot_work'] = 'musis byt na nohach, aby jsi mohl pracovat.', + ['next_point'] = 'bez do dalsiho bodu po dokonceni tohoto.', + ['not_your_vehicle'] = 'nejsi ridic tohoto vozidla.', + ['in_vehicle'] = 'musis byt ve vozidle.', + ['wrong_point'] = 'nejsi na spravnem bodu doruceni.', + ['max_limit'] = 'neuneses vic ~y~%s~s~', + ['not_enough'] = 'nemas dostatek ~y~%s~s~ pro pokracovani v tomto ukolu.', + ['spawn_veh'] = 'spawnout vozidlo', + ['spawn_veh_button'] = 'stiksni ~INPUT_PICKUP~ pro privolani dorucovaciho voziidla.', + ['spawn_truck_button'] = 'stiskni ~INPUT_PICKUP~ pro spawnuti trucku.', + ['spawn_blocked'] = 'vozidlo blokuje spawn!', + ['service_vh'] = 'opravit vozidlo', + ['return_vh'] = 'vraceni vozidla', + ['return_vh_button'] = 'stiskni ~INPUT_PICKUP~ pro navrat vozidla.', + ['delivery_point'] = 'dorucovaci bod', + ['delivery'] = 'doruceni', + ['public_enter'] = 'stiskni ~INPUT_PICKUP~ pro vstup do budovy.', + ['public_leave'] = 'stiskni ~INPUT_PICKUP~ pro odchod z budovy.', + + -- Lumber Jack job + ['lj_locker_room'] = 'drevorubcova satna', + ['lj_mapblip'] = 'vyroba dreva', + ['lj_wood'] = 'drevo', + ['lj_pickup'] = 'stiskni ~INPUT_PICKUP~ pro ziskani dreva.', + ['lj_cutwood'] = 'rezani dreva', + ['lj_cutwood_button'] = 'stiskni ~INPUT_PICKUP~ pro rezani dreva.', + ['lj_board'] = 'prkna', + ['lj_planks'] = 'baleni prken', + ['lj_cutwood'] = 'rezat drevo', + ['lj_pick_boards'] = 'stiskni ~INPUT_PICKUP~ pro ziskani prken.', + ['lj_deliver_button'] = 'stiskni ~INPUT_PICKUP~ pro doruceni prken.', + + -- Fisherman + ['fm_fish_locker'] = 'rybarova satna', + ['fm_fish'] = 'ryba', + ['fm_fish_area'] = 'rybarska oblast', + ['fm_fish_button'] = 'stiskni ~INPUT_PICKUP~ pro rybareni.', + ['fm_spawnboat_title'] = 'spawnout lod', + ['fm_spawnboat'] = 'stiskni ~INPUT_PICKUP~ pro privolani lodi.', + ['fm_boat_title'] = 'lod', + ['fm_boat_return_title'] = 'vraceni lodi', + ['fm_boat_return_button'] = 'stiskni ~INPUT_PICKUP~ pro vraceni lodi.', + ['fm_deliver_fish'] = 'stiskni ~INPUT_PICKUP~ pro doruceni ryby.', + + -- Fuel + ['f_oil_refiner'] = 'satna ropne rafinerie', + ['f_drill_oil'] = 'ropny vrtak', + ['f_fuel'] = 'ropa', + ['f_drillbutton'] = 'stiskni ~INPUT_PICKUP~ pro vrtani.', + ['f_fuel_refine'] = 'refinovat ropu', + ['f_refine_fuel_button'] = 'stiskni ~INPUT_PICKUP~ pro refinovani.', + ['f_fuel_mixture'] = 'mix. rafinovaneho oleje', + ['f_gas'] = 'palivo', + ['f_fuel_mixture_button'] = 'stiskni ~INPUT_PICKUP~ pro smichani ropy.', + ['f_deliver_gas'] = 'doruceni paliva', + ['f_deliver_gas_button'] = 'stiskni ~INPUT_PICKUP~ pro doruceni paliva.', + + -- Miner + ['m_miner_locker'] = 'hornikova satna', + ['m_rock'] = 'kamen', + ['m_pickrocks'] = 'stiskni ~INPUT_PICKUP~ pro ziskani kamenu.', + ['m_washrock'] = 'myti kamenu', + ['m_rock_button'] = 'stiskni ~INPUT_PICKUP~ pro myti kamenu.', + ['m_rock_smelting'] = 'drceni kamenu', + ['m_copper'] = 'med', + ['m_sell_copper'] = 'prodejce medi', + ['m_deliver_copper'] = 'stiskni ~INPUT_PICKUP~ pro doruceni medi.', + ['m_iron'] = 'zelezo', + ['m_sell_iron'] = 'prodejce zeleza', + ['m_deliver_iron'] = 'stiskni ~INPUT_PICKUP~ pro doruceni zeleza.', + ['m_gold'] = 'zlato', + ['m_sell_gold'] = 'zlaty prodejce', + ['m_deliver_gold'] = 'stiskni ~INPUT_PICKUP~ pro doruceni zlata.', + ['m_diamond'] = 'diamant', + ['m_sell_diamond'] = 'diamantovy prodejce', + ['m_deliver_diamond'] = 'stiskni ~INPUT_PICKUP~ pro doruceni diamantu.', + ['m_melt_button'] = 'stiskni ~INPUT_PICKUP~ pro drceni kamenu.', + + -- Reporter + ['reporter_name'] = 'noviny San Andreas', + ['reporter_garage'] = 'stiskni ~INPUT_PICKUP~ pro pristup do garaze.', + + -- Slaughterer + ['s_slaughter_locker'] = 'reznikova satna', + ['s_hen'] = 'kurnik', + ['s_alive_chicken'] = 'zive kure', + ['s_catch_hen'] = 'stiskni ~INPUT_PICKUP~ pro chyceni ziveho kurete.', + ['s_slaughtered_chicken'] = 'kure na zabaleni', + ['s_chop_animal'] = 'stiskni ~INPUT_PICKUP~ pro nasekani kurat.', + ['s_slaughtered'] = 'reznikuv dum', + ['s_package'] = 'baleni', + ['s_packagechicken'] = 'kure v zasobniku', + ['s_unpackaged'] = 'kure k zabaleni', + ['s_unpackaged_button'] = 'stiskni ~INPUT_PICKUP~ pro vlozeni kurete do prihradky.', + ['s_deliver'] = 'stiskni ~INPUT_PICKUP~ pro doruceni kurat v prihradkach.', + + -- Dress Designer + ['dd_dress_locker'] = 'satna navrhare obleceni', + ['dd_wool'] = 'vlna', + ['dd_pickup'] = 'stiskni ~INPUT_PICKUP~ pro ziskani vlny.', + ['dd_fabric'] = 'latka', + ['dd_makefabric'] = 'stiskni ~INPUT_PICKUP~ pro vyrobu latky.', + ['dd_clothing'] = 'obleceni', + ['dd_makeclothing'] = 'stiskni ~INPUT_PICKUP~ pro vyrobu obleceni.', + ['dd_deliver_clothes'] = 'stiskni ~INPUT_PICKUP~ pro doruceni obleceni.', +} diff --git a/_resources/esx_jobs/locales/de.lua b/_resources/esx_jobs/locales/de.lua new file mode 100644 index 00000000..abdb99ef --- /dev/null +++ b/_resources/esx_jobs/locales/de.lua @@ -0,0 +1,115 @@ +Locales['de'] = { + -- Global menus + ['cloakroom'] = 'Umkleide', + ['cloak_change'] = 'Drücke ~INPUT_PICKUP~ to change clothes.', + ['citizen_wear'] = 'Zivilkleidung', + ['job_wear'] = 'Arbeitskleidung', + ['bank_deposit_returned'] = 'Ein Pfand über ~g~$%s~s~ wurde dir zurückgegeben.', + ['bank_deposit_taken'] = 'Ein Pfand über ~r~$%s~s~ wurde von dir genommen.', + ['caution_afford'] = 'Du kannst die Kaution über ~g~$%s~s~ nicht bezahlen', + ['foot_work'] = 'Du musst dafür zu Fuß sein.', + ['next_point'] = 'Gehe zum nächsten Schritt nach diesem.', + ['not_your_vehicle'] = 'Du bist nicht der Fahrer von diesem Fahrzeug.', + ['in_vehicle'] = 'Du musst in einem Fahrzeug sitzen.', + ['wrong_point'] = 'Du bist nicht am richtigen Lieferpunkt.', + ['max_limit'] = 'Du kannst nicht mehr ~y~%s~s~ tragen', + ['not_enough'] = 'Du hast nicht genug ~y~%s~s~ um diese Aufgabe weiterhin zu erledigen.', + ['spawn_veh'] = 'Fahrzeug spawnen', + ['spawn_veh_button'] = 'Drücke ~INPUT_PICKUP~ um ein Lieferfahrzeug zu holen.', + ['spawn_truck_button'] = 'Drücke ~INPUT_PICKUP~ um einen Truck zu spawnen.', + ['spawn_blocked'] = 'Ein Fahrzeug blockiert den Spawnpoint!', + ['service_vh'] = 'Service Fahrzeug', + ['return_vh'] = 'Fahrzeugrückgabe', + ['return_vh_button'] = 'Drücke ~INPUT_PICKUP~ um das Fahrzeug zurückzugeben.', + ['delivery_point'] = 'Lieferpunkt', + ['delivery'] = 'Lieferung', + ['public_enter'] = 'Drücke ~INPUT_PICKUP~ um das Gebäude zu betreten.', + ['public_leave'] = 'Drücke ~INPUT_PICKUP~ um das Gebäude zu verlassen.', + + -- Lumber Jack job + ['lj_locker_room'] = 'Umkleide', + ['lj_mapblip'] = 'Holzstapel', + ['lj_wood'] = 'Holz', + ['lj_pickup'] = 'Drücke ~INPUT_PICKUP~ um Holz zu sammeln.', + ['lj_cutwood'] = 'Holzverarbeitung', + ['lj_cutwood_button'] = 'Drücke ~INPUT_PICKUP~ um das Holz zu schneiden.', + ['lj_board'] = 'Bretter', + ['lj_planks'] = 'Holz verarbeiten', + ['lj_cutwood'] = 'Holz schneiden', + ['lj_pick_boards'] = 'Drücke ~INPUT_PICKUP~ um Bretter zu bekommen.', + ['lj_deliver_button'] = 'Drücke ~INPUT_PICKUP~ um die Bretter zu liefern.', + + -- Fisherman + ['fm_fish_locker'] = 'Umkleide', + ['fm_fish'] = 'Fisch', + ['fm_fish_area'] = 'Fischerzone', + ['fm_fish_button'] = 'Drücke ~INPUT_PICKUP~ um zu fischen.', + ['fm_spawnboat_title'] = 'Boot spawnen', + ['fm_spawnboat'] = 'Drücke ~INPUT_PICKUP~ um ein Boot auszuparken.', + ['fm_boat_title'] = 'Boot', + ['fm_boat_return_title'] = 'Bootsrückgabe', + ['fm_boat_return_button'] = 'Drücke ~INPUT_PICKUP~ um das Boot zurückzugeben.', + ['fm_deliver_fish'] = 'Drücke ~INPUT_PICKUP~ um den Fisch zu liefern.', + + -- Fuel + ['f_oil_refiner'] = 'Umkleide', + ['f_drill_oil'] = 'Nach Öl bohren', + ['f_fuel'] = 'Öl', + ['f_drillbutton'] = 'Drücke ~INPUT_PICKUP~ um nach Öl zu bohren.', + ['f_fuel_refine'] = 'Öl verarbeiten', + ['f_refine_fuel_button'] = 'Drücke ~INPUT_PICKUP~ zum verarbeiten.', + ['f_fuel_mixture'] = 'Öl mischen', + ['f_gas'] = 'Benzin', + ['f_fuel_mixture_button'] = 'Drücke ~INPUT_PICKUP~ um das Öl zu mixen.', + ['f_deliver_gas'] = 'Benzin liefern', + ['f_deliver_gas_button'] = 'Drücke ~INPUT_PICKUP~ um Benzin zu liefern.', + + -- Miner + ['m_miner_locker'] = 'Umkleide', + ['m_rock'] = 'Stein', + ['m_pickrocks'] = 'Drücke ~INPUT_PICKUP~ um Stein abzubauen.', + ['m_washrock'] = 'Steine waschen', + ['m_rock_button'] = 'Drücke ~INPUT_PICKUP~ um die Steine zu waschen.', + ['m_rock_smelting'] = 'Steine schmelzen', + ['m_copper'] = 'Kupfer', + ['m_sell_copper'] = 'Kupfer Verkäufer', + ['m_deliver_copper'] = 'Drücke ~INPUT_PICKUP~ um Kupfer zu liefern.', + ['m_iron'] = 'Eisen', + ['m_sell_iron'] = 'Eisen Verkäufer', + ['m_deliver_iron'] = 'Drücke ~INPUT_PICKUP~ um Eisen zu liefern.', + ['m_gold'] = 'Gold', + ['m_sell_gold'] = 'Gold verkaufen', + ['m_deliver_gold'] = 'Drücke ~INPUT_PICKUP~ um Gold zu verkaufen.', + ['m_diamond'] = 'Diamant', + ['m_sell_diamond'] = 'Diamanten verkaufen', + ['m_deliver_diamond'] = 'Drücke ~INPUT_PICKUP~ um die Diamanten zu verkaufen.', + ['m_melt_button'] = 'Drücke ~INPUT_PICKUP~ um die Steine zu schmelzen.', + + -- Reporter + ['reporter_name'] = 'san Andreas Times', + ['reporter_garage'] = 'Drücke ~INPUT_PICKUP~ to go down to the garage.', + + -- Slaughterer + ['s_slaughter_locker'] = 'Umkleide', + ['s_hen'] = 'Hühner', + ['s_alive_chicken'] = 'lebende Hühner', + ['s_catch_hen'] = 'Drücke ~INPUT_PICKUP~ um Hühner zu fangen.', + ['s_slaughtered_chicken'] = 'Hühner verpacken', + ['s_chop_animal'] = 'Drücke ~INPUT_PICKUP~ um die Hühner zu schneiden.', + ['s_slaughtered'] = 'SChlachthaus', + ['s_package'] = 'Verpackung', + ['s_packagechicken'] = 'Hühnchen in Verpackung', + ['s_unpackaged'] = 'Verpackbereite Hühnchen', + ['s_unpackaged_button'] = 'Drücke ~INPUT_PICKUP~ um die Hühnchen zu verpacken.', + ['s_deliver'] = 'Drücke ~INPUT_PICKUP~ um die Hühnchen zu liefern.', + + -- Dress Designer + ['dd_dress_locker'] = 'dress Designer\'s Locker Room', + ['dd_wool'] = 'wool', + ['dd_pickup'] = 'Drücke ~INPUT_PICKUP~ to retrieve wool.', + ['dd_fabric'] = 'fabric', + ['dd_makefabric'] = 'Drücke ~INPUT_PICKUP~ to make fabric.', + ['dd_clothing'] = 'clothing', + ['dd_makeclothing'] = 'Drücke ~INPUT_PICKUP~ to retrieve clothing.', + ['dd_deliver_clothes'] = 'Drücke ~INPUT_PICKUP~ to deliver the clothes.', + } diff --git a/_resources/esx_jobs/locales/en.lua b/_resources/esx_jobs/locales/en.lua new file mode 100644 index 00000000..8cd6ba0b --- /dev/null +++ b/_resources/esx_jobs/locales/en.lua @@ -0,0 +1,115 @@ +Locales['en'] = { + -- Global menus + ['cloakroom'] = 'locker Room', + ['cloak_change'] = 'press ~INPUT_PICKUP~ to change clothes.', + ['citizen_wear'] = 'civilian clothes', + ['job_wear'] = 'workers clothes', + ['bank_deposit_returned'] = 'a security deposit of ~g~$%s~s~ was returned to you.', + ['bank_deposit_taken'] = 'a security deposit of ~r~$%s~s~ was taken from you.', + ['caution_afford'] = 'you cannot afford the caution of ~g~$%s~s~', + ['foot_work'] = 'you have to be on foot to be able to work.', + ['next_point'] = 'go to the next step after completing this one.', + ['not_your_vehicle'] = 'you are not the driver of this vehicle.', + ['in_vehicle'] = 'you must sit in a vehicle.', + ['wrong_point'] = 'you are not at the right point of delivery.', + ['max_limit'] = 'you cannot carry more ~y~%s~s~', + ['not_enough'] = 'you do not have enough ~y~%s~s~ to continue this task.', + ['spawn_veh'] = 'spawn vehicle', + ['spawn_veh_button'] = 'press ~INPUT_PICKUP~ to call the delivery vehicle.', + ['spawn_truck_button'] = 'press ~INPUT_PICKUP~ to spawn the truck.', + ['spawn_blocked'] = 'an vehicle is blocking the spawnpoint!', + ['service_vh'] = 'service vehicle', + ['return_vh'] = 'vehicle return', + ['return_vh_button'] = 'press ~INPUT_PICKUP~ to return the vehicle.', + ['delivery_point'] = 'delivery point', + ['delivery'] = 'delivery', + ['public_enter'] = 'press ~INPUT_PICKUP~ to enter the building.', + ['public_leave'] = 'press ~INPUT_PICKUP~ to go to the entrance of the building.', + + -- Lumber Jack job + ['lj_locker_room'] = 'lumberjack\'s Locker Room', + ['lj_mapblip'] = 'wood pile', + ['lj_wood'] = 'wood', + ['lj_pickup'] = 'press ~INPUT_PICKUP~ to retrieve wood.', + ['lj_cutwood'] = 'wood cutting', + ['lj_cutwood_button'] = 'press ~INPUT_PICKUP~ to cut wood.', + ['lj_board'] = 'boards', + ['lj_planks'] = 'package board', + ['lj_cutwood'] = 'cut wood', + ['lj_pick_boards'] = 'press ~INPUT_PICKUP~ to retrieve boards.', + ['lj_deliver_button'] = 'press ~INPUT_PICKUP~ to deliver the boards.', + + -- Fisherman + ['fm_fish_locker'] = 'fishermen\'s Locker Room', + ['fm_fish'] = 'fish', + ['fm_fish_area'] = 'fishing area', + ['fm_fish_button'] = 'press ~INPUT_PICKUP~ to fish.', + ['fm_spawnboat_title'] = 'spawn boat', + ['fm_spawnboat'] = 'press ~INPUT_PICKUP~ to call the boat.', + ['fm_boat_title'] = 'boat', + ['fm_boat_return_title'] = 'boat return', + ['fm_boat_return_button'] = 'press ~INPUT_PICKUP~ to return the boat.', + ['fm_deliver_fish'] = 'press ~INPUT_PICKUP~ to deliver the fish.', + + -- Fuel + ['f_oil_refiner'] = 'oil Refiner Locker Room', + ['f_drill_oil'] = 'drill for oil', + ['f_fuel'] = 'oil', + ['f_drillbutton'] = 'press ~INPUT_PICKUP~ to drill.', + ['f_fuel_refine'] = 'refine oil', + ['f_refine_fuel_button'] = 'press ~INPUT_PICKUP~ to refine.', + ['f_fuel_mixture'] = 'mix refined oil', + ['f_gas'] = 'gas', + ['f_fuel_mixture_button'] = 'press ~INPUT_PICKUP~ to mix oil.', + ['f_deliver_gas'] = 'deliver Gas', + ['f_deliver_gas_button'] = 'press ~INPUT_PICKUP~ to deliver gasoline.', + + -- Miner + ['m_miner_locker'] = 'miner\'s Locker Room', + ['m_rock'] = 'rock', + ['m_pickrocks'] = 'press ~INPUT_PICKUP~ to retrieve rocks.', + ['m_washrock'] = 'rock Washing', + ['m_rock_button'] = 'press ~INPUT_PICKUP~ to wash the rocks.', + ['m_rock_smelting'] = 'rock Smelting', + ['m_copper'] = 'copper', + ['m_sell_copper'] = 'copper Seller', + ['m_deliver_copper'] = 'press ~INPUT_PICKUP~ to deliver the copper.', + ['m_iron'] = 'iron', + ['m_sell_iron'] = 'iron Seller', + ['m_deliver_iron'] = 'press ~INPUT_PICKUP~ to deliver the iron.', + ['m_gold'] = 'gold', + ['m_sell_gold'] = 'gold Seller', + ['m_deliver_gold'] = 'press ~INPUT_PICKUP~ to deliver the gold.', + ['m_diamond'] = 'diamond', + ['m_sell_diamond'] = 'diamond Seller', + ['m_deliver_diamond'] = 'press ~INPUT_PICKUP~ to deliver the diamonds.', + ['m_melt_button'] = 'press ~INPUT_PICKUP~ to melt the rocks.', + + -- Reporter + ['reporter_name'] = 'san Andreas Times', + ['reporter_garage'] = 'press ~INPUT_PICKUP~ to go down to the garage.', + + -- Slaughterer + ['s_slaughter_locker'] = 'butcher\'s Locker Room', + ['s_hen'] = 'chicken coop', + ['s_alive_chicken'] = 'live Chicken', + ['s_catch_hen'] = 'press ~INPUT_PICKUP~ to catch live chickens.', + ['s_slaughtered_chicken'] = 'chicken to be packed', + ['s_chop_animal'] = 'press ~INPUT_PICKUP~ to chop the chickens.', + ['s_slaughtered'] = 'slaughter house', + ['s_package'] = 'packaging', + ['s_packagechicken'] = 'chicken in tray', + ['s_unpackaged'] = 'chicken to be packed', + ['s_unpackaged_button'] = 'press ~INPUT_PICKUP~ to set the chicken in a tray.', + ['s_deliver'] = 'press ~INPUT_PICKUP~ to deliver the chicken trays.', + + -- Dress Designer + ['dd_dress_locker'] = 'dress Designer\'s Locker Room', + ['dd_wool'] = 'wool', + ['dd_pickup'] = 'press ~INPUT_PICKUP~ to retrieve wool.', + ['dd_fabric'] = 'fabric', + ['dd_makefabric'] = 'press ~INPUT_PICKUP~ to make fabric.', + ['dd_clothing'] = 'clothing', + ['dd_makeclothing'] = 'press ~INPUT_PICKUP~ to retrieve clothing.', + ['dd_deliver_clothes'] = 'press ~INPUT_PICKUP~ to deliver the clothes.', + } diff --git a/_resources/esx_jobs/locales/es.lua b/_resources/esx_jobs/locales/es.lua new file mode 100644 index 00000000..89c82ec3 --- /dev/null +++ b/_resources/esx_jobs/locales/es.lua @@ -0,0 +1,115 @@ +Locales['es'] = { + -- Global menus + ['cloakroom'] = 'guardarropas', + ['cloak_change'] = 'presiona ~INPUT_PICKUP~ para cambiarte la ropa.', + ['citizen_wear'] = 'ropa de civil', + ['job_wear'] = 'ropa de trabajo', + ['bank_deposit_returned'] = 'un deposito de seguro de ~g~$%s~s~ se te devolvió.', + ['bank_deposit_taken'] = 'un deposito de seguro de ~r~$%s~s~ se te tomó.', + ['caution_afford'] = 'no puedes pagar el deposito de seguro de ~g~$%s~s~', + ['foot_work'] = 'debes estar en pie para trabajar.', + ['next_point'] = 've al siguiente punto tras terminar este.', + ['not_your_vehicle'] = 'no eres el conductor.', + ['in_vehicle'] = 'debes estar en un vehiculo.', + ['wrong_point'] = 'no estas en el punto correcto de entrega.', + ['max_limit'] = 'no puedes llevar mas ~y~%s~s~', + ['not_enough'] = 'no tienes suficientes ~y~%s~s~ para continuar esta tarea.', + ['spawn_veh'] = 'spawnear vehiculo', + ['spawn_veh_button'] = 'presiona ~INPUT_PICKUP~ para pedir el vehiculo de entrega.', + ['spawn_truck_button'] = 'presiona ~INPUT_PICKUP~ para spawnear un camion.', + ['spawn_blocked'] = 'el punto de spawn esta bloqueado!', + ['service_vh'] = 'vehiculo de servicio', + ['return_vh'] = 'devolver vehiculo', + ['return_vh_button'] = 'presiona ~INPUT_PICKUP~ para devolver vehiculo.', + ['delivery_point'] = 'punto de entrega', + ['delivery'] = 'entrega', + ['public_enter'] = 'presiona ~INPUT_PICKUP~ para entrar al edificio.', + ['public_leave'] = 'presiona ~INPUT_PICKUP~ para ir a la entrada del edificio.', + + -- Lumber Jack job + ['lj_locker_room'] = 'guardarropas', + ['lj_mapblip'] = 'pila de madera', + ['lj_wood'] = 'madera', + ['lj_pickup'] = 'presiona ~INPUT_PICKUP~ para agarrar madera.', + ['lj_cutwood'] = 'cortar madera', + ['lj_cutwood_button'] = 'presiona ~INPUT_PICKUP~ para cortar madera.', + ['lj_board'] = 'tablas', + ['lj_planks'] = 'empaquetar', + ['lj_cutwood'] = 'cortar madera', + ['lj_pick_boards'] = 'presiona ~INPUT_PICKUP~ para agarrar tablas.', + ['lj_deliver_button'] = 'presiona ~INPUT_PICKUP~ para entregar tablas.', + + -- Fisherman + ['fm_fish_locker'] = 'guardarropas', + ['fm_fish'] = 'pescar', + ['fm_fish_area'] = 'area de pesca', + ['fm_fish_button'] = 'presiona ~INPUT_PICKUP~ para pescar.', + ['fm_spawnboat_title'] = 'spawnear bote', + ['fm_spawnboat'] = 'presiona ~INPUT_PICKUP~ para pedir un bote.', + ['fm_boat_title'] = 'bote', + ['fm_boat_return_title'] = 'devolver bote', + ['fm_boat_return_button'] = 'presiona ~INPUT_PICKUP~ para devolver un bote.', + ['fm_deliver_fish'] = 'presiona ~INPUT_PICKUP~ para entregar pescados.', + + -- Fuel + ['f_oil_refiner'] = 'guardarropas', + ['f_drill_oil'] = 'agujerear para encontrar petroleo', + ['f_fuel'] = 'petroleo', + ['f_drillbutton'] = 'presiona ~INPUT_PICKUP~ para agujerear.', + ['f_fuel_refine'] = 'refinar petroleo', + ['f_refine_fuel_button'] = 'presiona ~INPUT_PICKUP~ para refinar.', + ['f_fuel_mixture'] = 'mezclar petroleo refinado', + ['f_gas'] = 'gas', + ['f_fuel_mixture_button'] = 'presiona ~INPUT_PICKUP~ para mezclar petroleo.', + ['f_deliver_gas'] = 'entregar gas', + ['f_deliver_gas_button'] = 'presiona ~INPUT_PICKUP~ para entregar gasolina.', + + -- Miner + ['m_miner_locker'] = 'guardarropas', + ['m_rock'] = 'roca', + ['m_pickrocks'] = 'presiona ~INPUT_PICKUP~ para agarrar rocas.', + ['m_washrock'] = 'lavado de rocas', + ['m_rock_button'] = 'presiona ~INPUT_PICKUP~ para lavar rocas.', + ['m_rock_smelting'] = 'derretir rocas', + ['m_copper'] = 'cobre', + ['m_sell_copper'] = 'vender cobre', + ['m_deliver_copper'] = 'presiona ~INPUT_PICKUP~ para entregar el cobre.', + ['m_iron'] = 'hierro', + ['m_sell_iron'] = 'vender hierro', + ['m_deliver_iron'] = 'presiona ~INPUT_PICKUP~ para entregar el hierro.', + ['m_gold'] = 'oro', + ['m_sell_gold'] = 'vender oro', + ['m_deliver_gold'] = 'presiona ~INPUT_PICKUP~ para entregar oro.', + ['m_diamond'] = 'diamantes', + ['m_sell_diamond'] = 'vender diamantes', + ['m_deliver_diamond'] = 'presiona ~INPUT_PICKUP~ para entregar los diamantes.', + ['m_melt_button'] = 'presiona ~INPUT_PICKUP~ para derretir rocas.', + + -- Reporter + ['reporter_name'] = 'periódico San Andreas', + ['reporter_garage'] = 'presiona ~INPUT_PICKUP~ para ir al garage.', + + -- Slaughterer + ['s_slaughter_locker'] = 'guardarropas', + ['s_hen'] = 'gGallinero', + ['s_alive_chicken'] = 'pollos vivos', + ['s_catch_hen'] = 'presiona ~INPUT_PICKUP~ para agarrar pollos vivos.', + ['s_slaughtered_chicken'] = 'pollo listo para empaquetar', + ['s_chop_animal'] = 'presiona ~INPUT_PICKUP~ para cortar los pollos.', + ['s_slaughtered'] = 'matadero', + ['s_package'] = 'empaquetando', + ['s_packagechicken'] = 'pollo en bandeja', + ['s_unpackaged'] = 'pollo para empaquetar', + ['s_unpackaged_button'] = 'presiona ~INPUT_PICKUP~ para poner el pollo en una bandeja.', + ['s_deliver'] = 'presiona ~INPUT_PICKUP~ para entregar bandejas de pollos.', + + -- Dress Designer + ['dd_dress_locker'] = 'guardarropas', + ['dd_wool'] = 'lana', + ['dd_pickup'] = 'presiona ~INPUT_PICKUP~ para agarrar lana.', + ['dd_fabric'] = 'tela', + ['dd_makefabric'] = 'presiona ~INPUT_PICKUP~ para hacer tela.', + ['dd_clothing'] = 'ropa', + ['dd_makeclothing'] = 'presiona ~INPUT_PICKUP~ para agarrar ropa.', + ['dd_deliver_clothes'] = 'presiona ~INPUT_PICKUP~ para entregar ropa.', +} diff --git a/_resources/esx_jobs/locales/fi.lua b/_resources/esx_jobs/locales/fi.lua new file mode 100644 index 00000000..a656b526 --- /dev/null +++ b/_resources/esx_jobs/locales/fi.lua @@ -0,0 +1,115 @@ +Locales['fi'] = { + -- Global menus + ['cloakroom'] = 'vaatelokero', + ['cloak_change'] = 'paina ~INPUT_PICKUP~ vaihtaaksesi vaatteet', + ['citizen_wear'] = 'siviilivaatteet', + ['job_wear'] = 'työvaatteet', + ['bank_deposit_returned'] = 'vakuuden summa ~g~€%s~s~ palautettiin sinulle.', + ['bank_deposit_taken'] = 'vakuuden summa ~r~€%s~s~ otettiin sinulta.', + ['caution_afford'] = 'you cannot afford the caution of ~g~$%s~s~', + ['foot_work'] = 'sinun täytyy olla jalan, jotta voit työskennellä', + ['next_point'] = 'mene seuraavaan pisteeseen kun olet valmis täällä', + ['not_your_vehicle'] = 'tämä ei ole sinun ajoneuvo tai et ole sen kuski', + ['in_vehicle'] = 'sinun täytyy olla ajoneuvossa', + ['wrong_point'] = 'et ole oikeassa paikassa', + ['max_limit'] = 'sinulla on jo maksimi määrä ~y~%s~s~', + ['not_enough'] = 'sinulla ei ole tarpeeksi ~y~%s~s~ jatkaaksesi täällä.', + ['spawn_veh'] = 'spawnaa ajoneuvo', + ['spawn_veh_button'] = 'paina ~INPUT_PICKUP~ soittaaksesi kuljetus ajoneuvo', + ['spawn_truck_button'] = 'paina ~INPUT_PICKUP~ spawnataksesi rekka.', + ['spawn_blocked'] = 'an vehicle is blocking the spawnpoint!', + ['service_vh'] = 'huolla ajonevuo', + ['return_vh'] = 'palauta ajoneuvo', + ['return_vh_button'] = 'paina ~INPUT_PICKUP~ palautaaksesi ajoneuvo.', + ['delivery_point'] = 'toimituspiste', + ['delivery'] = 'toimitus', + ['public_enter'] = 'paina ~INPUT_PICKUP~ mennäksesi taloon sisälle.', + ['public_leave'] = 'paina ~INPUT_PICKUP~ poistuaksesi talosta.', + + -- Lumber Jack job + ['lj_locker_room'] = 'metsurin Pukulokero', + ['lj_mapblip'] = 'puukasa', + ['lj_wood'] = 'puu', + ['lj_pickup'] = 'paina ~INPUT_PICKUP~ kerätäksesi puita', + ['lj_cutwood'] = 'puun hakkuu', + ['lj_cutwood_button'] = 'paina ~INPUT_PICKUP~ pilkkoaksesi puita.', + ['lj_board'] = 'lankkuja', + ['lj_planks'] = 'paketoituja lankkuja', + ['lj_cutwood'] = 'pilko puita', + ['lj_pick_boards'] = 'paina ~INPUT_PICKUP~ saadaksesi lankkuja', + ['lj_deliver_button'] = 'paina ~INPUT_PICKUP~ toimitaaksesi lankut.', + + -- Fisherman + ['fm_fish_locker'] = 'kalastajan Pukulokero', + ['fm_fish'] = 'kala', + ['fm_fish_area'] = 'kalastus alue', + ['fm_fish_button'] = 'paina ~INPUT_PICKUP~ kalastaaksesi', + ['fm_spawnboat_title'] = 'spawnaa laiva', + ['fm_spawnboat'] = 'paina ~INPUT_PICKUP~ soittaaksesi laiva.', + ['fm_boat_title'] = 'laiva', + ['fm_boat_return_title'] = 'laivan palautus', + ['fm_boat_return_button'] = 'paina ~INPUT_PICKUP~ palautaaksesi laiva', + ['fm_deliver_fish'] = 'paina ~INPUT_PICKUP~ myydäksesi kalat', + + -- Fuel + ['f_oil_refiner'] = 'öljynjalostajan Pukulokero', + ['f_drill_oil'] = 'poraa että saat öljyä', + ['f_fuel'] = 'öljy', + ['f_drillbutton'] = 'paina ~INPUT_PICKUP~ porataksesi', + ['f_fuel_refine'] = 'puhdista öljy', + ['f_refine_fuel_button'] = 'paina ~INPUT_PICKUP~ puhdistaaksesi', + ['f_fuel_mixture'] = 'sekoita puhdistettu öljy', + ['f_gas'] = 'polttoöljy', + ['f_fuel_mixture_button'] = 'paina ~INPUT_PICKUP~ sekoita', + ['f_deliver_gas'] = 'toimita polttoöljy', + ['f_deliver_gas_button'] = 'paina ~INPUT_PICKUP~ myydäksesi Polttoöljyä', + + -- Miner + ['m_miner_locker'] = 'kaivostyöläisen Pukulokero', + ['m_rock'] = 'kivi', + ['m_pickrocks'] = 'paina ~INPUT_PICKUP~ louhiaksesi kiviä.', + ['m_washrock'] = 'puhdistettu kivi', + ['m_rock_button'] = 'paina ~INPUT_PICKUP~ puhdistaaksesi kiviä', + ['m_rock_smelting'] = 'sulatus', + ['m_copper'] = 'kupari', + ['m_sell_copper'] = 'myy kupari', + ['m_deliver_copper'] = 'paina ~INPUT_PICKUP~ myydäksesi kuparit', + ['m_iron'] = 'metalli', + ['m_sell_iron'] = 'myy metalli', + ['m_deliver_iron'] = 'paina ~INPUT_PICKUP~ myydäksesi metallit', + ['m_gold'] = 'kulta', + ['m_sell_gold'] = 'myy kulta', + ['m_deliver_gold'] = 'paina ~INPUT_PICKUP~ myydäksesi kullat', + ['m_diamond'] = 'timantti', + ['m_sell_diamond'] = 'myy timantti', + ['m_deliver_diamond'] = 'paina ~INPUT_PICKUP~ myydäksesi timantit', + ['m_melt_button'] = 'paina ~INPUT_PICKUP~ sulattaaksesi kivet', + + -- Reporter + ['reporter_name'] = 'san Andreas Times', + ['reporter_garage'] = 'paina ~INPUT_PICKUP~ mennäksesi alas talliin', + + -- Slaughterer + ['s_slaughter_locker'] = 'teurastajan Pukulokero', + ['s_hen'] = 'kanakoppi', + ['s_alive_chicken'] = 'elävä kana', + ['s_catch_hen'] = 'paina ~INPUT_PICKUP~ ottaaksesi kana kiinni', + ['s_slaughtered_chicken'] = 'teurasta kana', + ['s_chop_animal'] = 'paina ~INPUT_PICKUP~ teurastaaksesi kanoja.', + ['s_slaughtered'] = 'teurastamo', + ['s_package'] = 'paketointi', + ['s_packagechicken'] = 'kananfilee', + ['s_unpackaged'] = 'kana paketoitavaksi', + ['s_unpackaged_button'] = 'paina ~INPUT_PICKUP~ laittaaksesi kanoja pakettiin', + ['s_deliver'] = 'paina ~INPUT_PICKUP~ myydäksesi kananfileet', + + -- Dress Designer + ['dd_dress_locker'] = 'vaatevalmistajan Pukulokero', + ['dd_wool'] = 'villa', + ['dd_pickup'] = 'paina ~INPUT_PICKUP~ kerätäksesi villaa', + ['dd_fabric'] = 'kangas', + ['dd_makefabric'] = 'paina ~INPUT_PICKUP~ tehdäksesi kangasta', + ['dd_clothing'] = 'asuste', + ['dd_makeclothing'] = 'paina ~INPUT_PICKUP~ tehdäksesi asusteita', + ['dd_deliver_clothes'] = 'paina ~INPUT_PICKUP~ myydäksesi asusteita', +} diff --git a/_resources/esx_jobs/locales/fr.lua b/_resources/esx_jobs/locales/fr.lua new file mode 100644 index 00000000..ab76c2a4 --- /dev/null +++ b/_resources/esx_jobs/locales/fr.lua @@ -0,0 +1,115 @@ +Locales['fr'] = { + -- Global menus + ['cloakroom'] = 'vestiaire', + ['cloak_change'] = 'appuyez sur ~INPUT_PICKUP~ pour vous changer.', + ['citizen_wear'] = 'tenue civile', + ['job_wear'] = 'tenue de travail', + ['bank_deposit_returned'] = 'une caution de ~g~$%s~s~ vous a été rendue.', + ['bank_deposit_taken'] = 'une caution de ~g~$%s~s~ vous a été prélevée.', + ['caution_afford'] = 'you cannot afford the caution of ~g~$%s~s~', + ['foot_work'] = 'vous devez être à pied pour pouvoir travailler.', + ['next_point'] = 'rendez-vous à la prochaine étape après avoir complété celle-ci.', + ['not_your_vehicle'] = 'ce n\'est pas votre véhicule ou vous devez être conducteur.', + ['in_vehicle'] = 'vous devez être dans un véhicule.', + ['wrong_point'] = 'vous n\'êtes pas au bon point de livraison.', + ['max_limit'] = 'vous avez le maximum de ~y~%s~s~', + ['not_enough'] = 'vous n\'avez plus assez de ~y~%s~s~ pour continuer cette tâche.', + ['spawn_veh'] = 'spawner véhicule de fonction', + ['spawn_veh_button'] = 'appuyez sur ~INPUT_PICKUP~ pour appeler le véhicule de livraison.', + ['spawn_truck_button'] = 'appuyez sur ~INPUT_PICKUP~ pour appeler le camion.', + ['spawn_blocked'] = 'an vehicle is blocking the spawnpoint!', + ['service_vh'] = 'véhicule de fonction', + ['return_vh'] = 'supression du véhicule', + ['return_vh_button'] = 'appuyez sur ~INPUT_PICKUP~ pour rendre le véhicule.', + ['delivery_point'] = 'point de livraison', + ['delivery'] = 'livraison', + ['public_enter'] = 'appuyez sur ~INPUT_PICKUP~ pour entrer dans l\'immeuble.', + ['public_leave'] = 'appuyez sur ~INPUT_PICKUP~ pour aller à l\'entrée de l\'immeuble.', + + -- Lumber Jack job + ['lj_locker_room'] = 'vestiaire du bûcheron', + ['lj_mapblip'] = 'tas de bois', + ['lj_wood'] = 'bois', + ['lj_pickup'] = 'appuyez sur ~INPUT_PICKUP~ pour récupérer du bois.', + ['lj_cutwood'] = 'découpe du bois', + ['lj_cutwood_button'] = 'appuyez sur ~INPUT_PICKUP~ pour couper du bois.', + ['lj_board'] = 'planches', + ['lj_planks'] = 'paquet de planche', + ['lj_cutwood'] = 'bois coupé', + ['lj_pick_boards'] = 'appuyez sur ~INPUT_PICKUP~ pour récupérer des planches.', + ['lj_deliver_button'] = 'appuyez sur ~INPUT_PICKUP~ pour livrer les planches.', + + -- Fisherman + ['fm_fish_locker'] = 'vestiaire du pêcheur', + ['fm_fish'] = 'poisson', + ['fm_fish_area'] = 'zone de pêche', + ['fm_fish_button'] = 'appuyez sur ~INPUT_PICKUP~ pour pêcher.', + ['fm_spawnboat_title'] = 'spawner bateau', + ['fm_spawnboat'] = 'appuyez sur ~INPUT_PICKUP~ pour appeler le bateau.', + ['fm_boat_title'] = 'bateau', + ['fm_boat_return_title'] = 'supression du bateau', + ['fm_boat_return_button'] = 'appuyez sur ~INPUT_PICKUP~ pour rendre le bateau.', + ['fm_deliver_fish'] = 'appuyez sur ~INPUT_PICKUP~ pour livrer le poisson.', + + -- Fuel + ['f_oil_refiner'] = 'vestiaire du raffineur', + ['f_drill_oil'] = 'extraction le pétrole', + ['f_fuel'] = 'pétrole', + ['f_drillbutton'] = 'appuyez sur ~INPUT_PICKUP~ pour forer.', + ['f_fuel_refine'] = 'pétrol raffiné', + ['f_refine_fuel_button'] = 'appuyez sur ~INPUT_PICKUP~ pour raffiner le pétrole.', + ['f_fuel_mixture'] = 'mélange', + ['f_gas'] = 'essence', + ['f_fuel_mixture_button'] = 'appuyez sur ~INPUT_PICKUP~ pour mélanger.', + ['f_deliver_gas'] = 'livraison d\'essence.', + ['f_deliver_gas_button'] = 'appuyez sur ~INPUT_PICKUP~ pour livrer l\'essence.', + + -- Miner + ['m_miner_locker'] = 'vestiaire du mineur', + ['m_rock'] = 'rocher', + ['m_pickrocks'] = 'appuyez sur ~INPUT_PICKUP~ pour récupérer des rochers.', + ['m_washrock'] = 'roche lavé', + ['m_rock_button'] = 'appuyez sur ~INPUT_PICKUP~ pour laver les roches.', + ['m_rock_smelting'] = 'fonderie', + ['m_copper'] = 'cuivre', + ['m_sell_copper'] = 'revente de cuivre', + ['m_deliver_copper'] = 'appuyez sur ~INPUT_PICKUP~ pour livrer le cuivre.', + ['m_iron'] = 'fer', + ['m_sell_iron'] = 'revente de fer', + ['m_deliver_iron'] = 'appuyez sur ~INPUT_PICKUP~ pour livrer le fer.', + ['m_gold'] = 'or', + ['m_sell_gold'] = 'revente d\'or', + ['m_deliver_gold'] = 'appuyez sur ~INPUT_PICKUP~ pour livrer l\'or\'.', + ['m_diamond'] = 'diamant', + ['m_sell_diamond'] = 'revente de diamants', + ['m_deliver_diamond'] = 'appuyez sur ~INPUT_PICKUP~ pour livrer les diamants.', + ['m_melt_button'] = 'appuyez sur ~INPUT_PICKUP~ pour fondre les roches.', + + -- Reporter + ['reporter_name'] = 'le Maclerait Libéré', + ['reporter_garage'] = 'appuyez sur ~INPUT_PICKUP~ pour descendre au garage.', + + -- Slaughterer + ['s_slaughter_locker'] = 'vestiaire de l\'abatteur', + ['s_hen'] = 'poulailler', + ['s_alive_chicken'] = 'poulet vivant', + ['s_catch_hen'] = 'appuyez sur ~INPUT_PICKUP~ pour attrapper des poulets vivants.', + ['s_slaughtered_chicken'] = 'poulet à conditionner', + ['s_chop_animal'] = 'appuyez sur ~INPUT_PICKUP~ pour dépecer les poulets.', + ['s_slaughtered'] = 'abattoir', + ['s_package'] = 'emballage', + ['s_packagechicken'] = 'poulet en barquette', + ['s_unpackaged'] = 'poulet à conditionner', + ['s_unpackaged_button'] = 'appuyez sur ~INPUT_PICKUP~ pour conditionner le poulet en barquette.', + ['s_deliver'] = 'appuyez sur ~INPUT_PICKUP~ pour livrer les barquettes de poulet.', + + -- Dress Designer + ['dd_dress_locker'] = 'vestiaire du couturier', + ['dd_wool'] = 'laine', + ['dd_pickup'] = 'appuyez sur ~INPUT_PICKUP~ pour récupérer de la laine.', + ['dd_fabric'] = 'tissu', + ['dd_makefabric'] = 'appuyez sur ~INPUT_PICKUP~ pour fabriquer du tissu.', + ['dd_clothing'] = 'vêtement', + ['dd_makeclothing'] = 'appuyez sur ~INPUT_PICKUP~ pour récupérer des vêtements.', + ['dd_deliver_clothes'] = 'appuyez sur ~INPUT_PICKUP~ pour livrer les vêtements.', +} diff --git a/_resources/esx_jobs/locales/sv.lua b/_resources/esx_jobs/locales/sv.lua new file mode 100644 index 00000000..3a39f355 --- /dev/null +++ b/_resources/esx_jobs/locales/sv.lua @@ -0,0 +1,115 @@ +Locales['sv'] = { + -- Global menus + ['cloakroom'] = 'omklädningsrum', + ['cloak_change'] = 'tryck ~INPUT_PICKUP~ för att byta kläder.', + ['citizen_wear'] = 'civilkläder', + ['job_wear'] = 'arbetskläder', + ['bank_deposit_returned'] = 'en deposition på ~g~%s SEK~s~ har återvänts till dig.', + ['bank_deposit_taken'] = 'en deposition på ~r~%s SEK~s~ togs från dig.', + ['caution_afford'] = 'you cannot afford the caution of ~g~$%s~s~', + ['foot_work'] = 'du måste vara till fots för att kunna arbeta.', + ['next_point'] = 'gå till nästa steg efter att du har avslutat här.', + ['not_your_vehicle'] = 'det här är inte ditt fordon eller så måste du vara föraren.', + ['in_vehicle'] = 'du måste sitta i ett fordon!', + ['wrong_point'] = 'du är inte på rätt leveranspunkt!', + ['max_limit'] = 'du kan inte bära mer ~y~%s~s~', + ['not_enough'] = 'du har inte tillräckligt med ~y~%s~s~ för att fortsätta denna uppgift.', + ['spawn_veh'] = 'spawna fordon', + ['spawn_veh_button'] = 'tryck ~INPUT_PICKUP~ för att ringa leveransfordonet.', + ['spawn_truck_button'] = 'tryck ~INPUT_PICKUP~ för att spawna bilen.', + ['spawn_blocked'] = 'ett fordon blockerar spawnpointen!', + ['service_vh'] = 'service fordon', + ['return_vh'] = 'lämna service fordon', + ['return_vh_button'] = 'tryck ~INPUT_PICKUP~ för att ge tillbaka fordonet.', + ['delivery_point'] = 'leveranspunkt', + ['delivery'] = 'leverans', + ['public_enter'] = 'tryck ~INPUT_PICKUP~ för att gå in i byggnaden.', + ['public_leave'] = 'tryck ~INPUT_PICKUP~ för att lämna byggnaden.', + + -- Lumber Jack job + ['lj_locker_room'] = 'skogshuggare omklädningsrum', + ['lj_mapblip'] = 'trähög', + ['lj_wood'] = 'träd', + ['lj_pickup'] = 'tryck ~INPUT_PICKUP~ för att hämta trä.', + ['lj_cutwood'] = 'trädfällning', + ['lj_cutwood_button'] = 'tryck ~INPUT_PICKUP~ för att hugga trä.', + ['lj_board'] = 'brädor', + ['lj_planks'] = 'brädpaket', + ['lj_cutwood'] = 'hugg trä', + ['lj_pick_boards'] = 'tryck ~INPUT_PICKUP~ för att hämta brädorna.', + ['lj_deliver_button'] = 'tryck ~INPUT_PICKUP~ för att sälja brädorna.', + + -- Fisherman + ['fm_fish_locker'] = 'fiskarens omklädningsrum', + ['fm_fish'] = 'fisk', + ['fm_fish_area'] = 'fiskeoområde', + ['fm_fish_button'] = 'tryck ~INPUT_PICKUP~ för att fiska.', + ['fm_spawnboat_title'] = 'spawn boat', + ['fm_spawnboat'] = 'tryck ~INPUT_PICKUP~ för att spawna båten.', + ['fm_boat_title'] = 'båt', + ['fm_boat_return_title'] = 'lämna tillbaka båt', + ['fm_boat_return_button'] = 'tryck ~INPUT_PICKUP~ för att återvända båten.', + ['fm_deliver_fish'] = 'tryck ~INPUT_PICKUP~ för att sälja fisk.', + + -- Fuel + ['f_oil_refiner'] = 'ojeraffinaderi Omklädningsrum', + ['f_drill_oil'] = 'borra efter olja', + ['f_fuel'] = 'olja', + ['f_drillbutton'] = 'tryck ~INPUT_PICKUP~ för att borra efter olja.', + ['f_fuel_refine'] = 'raffinera oljan', + ['f_refine_fuel_button'] = 'tryck ~INPUT_PICKUP~ för att raffinera olja.', + ['f_fuel_mixture'] = 'blanda raffinerad olja', + ['f_gas'] = 'gas', + ['f_fuel_mixture_button'] = 'tryck ~INPUT_PICKUP~ för att mixa olja.', + ['f_deliver_gas'] = 'leverera gas', + ['f_deliver_gas_button'] = 'tryck ~INPUT_PICKUP~ för att sälja bensin.', + + -- Miner + ['m_miner_locker'] = 'Gruvarbetarnas Omklädningsrum', + ['m_rock'] = 'sten', + ['m_pickrocks'] = 'tryck ~INPUT_PICKUP~ för att hämta sten.', + ['m_washrock'] = 'sten tvättning', + ['m_rock_button'] = 'tryck ~INPUT_PICKUP~ för att tvätta sten.', + ['m_rock_smelting'] = 'stensmältning', + ['m_copper'] = 'koppar', + ['m_sell_copper'] = 'kopparsäljare', + ['m_deliver_copper'] = 'tryck ~INPUT_PICKUP~ för att sälja koppar.', + ['m_iron'] = 'järn', + ['m_sell_iron'] = 'järnsäljare', + ['m_deliver_iron'] = 'tryck ~INPUT_PICKUP~ för att sälja järn.', + ['m_gold'] = 'guld', + ['m_sell_gold'] = 'guldsäljare', + ['m_deliver_gold'] = 'tryck ~INPUT_PICKUP~ för att sälja guld.', + ['m_diamond'] = 'diamant', + ['m_sell_diamond'] = 'diamantsäljare', + ['m_deliver_diamond'] = 'tryck ~INPUT_PICKUP~ för att sälja diamant.', + ['m_melt_button'] = 'tryck ~INPUT_PICKUP~ för att smälta sten.', + + -- Reporter + ['reporter_name'] = 'aftonbladet', + ['reporter_garage'] = 'tryck ~INPUT_PICKUP~ för att gå ner till garaget.', + + -- Slaughterer + ['s_slaughter_locker'] = 'slaktarens omklädningsrum', + ['s_hen'] = 'hönshus', + ['s_alive_chicken'] = 'levande Kyckling', + ['s_catch_hen'] = 'tryck ~INPUT_PICKUP~ för att fånga en kyckling.', + ['s_slaughtered_chicken'] = 'kyckling som ska packas', + ['s_chop_animal'] = 'tryck ~INPUT_PICKUP~ för att slakta kycklingar.', + ['s_slaughtered'] = 'slaktarhus', + ['s_package'] = 'förpackning', + ['s_packagechicken'] = 'kyckling i förpackning', + ['s_unpackaged'] = 'kyckling väntar på att förpackas', + ['s_unpackaged_button'] = 'tryck ~INPUT_PICKUP~ för att packa kycklingen.', + ['s_deliver'] = 'tryck ~INPUT_PICKUP~ för att sälja kycklingsförpackningar.', + + -- Dress Designer + ['dd_dress_locker'] = 'Klädesdesigners omklädningsrum', + ['dd_wool'] = 'ull', + ['dd_pickup'] = 'tryck ~INPUT_PICKUP~ för att skörda ull.', + ['dd_fabric'] = 'tyg', + ['dd_makefabric'] = 'tryck ~INPUT_PICKUP~ för att framställa tyg.', + ['dd_clothing'] = 'plagg', + ['dd_makeclothing'] = 'tryck ~INPUT_PICKUP~ för att hämta kläder.', + ['dd_deliver_clothes'] = 'tryck ~INPUT_PICKUP~ för att sälja plagg.', +} diff --git a/_resources/esx_jobs/localization/br_esx_jobs.sql b/_resources/esx_jobs/localization/br_esx_jobs.sql new file mode 100644 index 00000000..aa7edbba --- /dev/null +++ b/_resources/esx_jobs/localization/br_esx_jobs.sql @@ -0,0 +1,47 @@ +USE `es_extended`; + +INSERT INTO `addon_account` (name, label, shared) VALUES + ('caution', 'Deposito', 0) +; + +INSERT INTO `jobs` (name, label) VALUES + ('slaughterer', 'Abatedor'), + ('fisherman', 'Pescador'), + ('miner', 'Minerador'), + ('lumberjack', 'Lenhador'), + ('fueler', 'Refinador'), + ('reporter', 'Jornalista'), + ('tailor', 'Costureiro') +; + +INSERT INTO `job_grades` (job_name, grade, name, label, salary, skin_male, skin_female) VALUES + ('lumberjack', 0, 'employee', 'Temporario', 0, '{}', '{}'), + ('fisherman', 0, 'employee', 'Temporario', 0, '{}', '{}'), + ('fueler', 0, 'employee', 'Temporario', 0, '{}', '{}'), + ('reporter', 0, 'employee', 'Temporario', 0, '{}', '{}'), + ('tailor',0, 'employee','Temporario',0,'{\"mask_1\":0,\"arms\":1,\"glasses_1\":0,\"hair_color_2\":4,\"makeup_1\":0,\"face\":19,\"glasses\":0,\"mask_2\":0,\"makeup_3\":0,\"skin\":29,\"helmet_2\":0,\"lipstick_4\":0,\"sex\":0,\"torso_1\":24,\"makeup_2\":0,\"bags_2\":0,\"chain_2\":0,\"ears_1\":-1,\"bags_1\":0,\"bproof_1\":0,\"shoes_2\":0,\"lipstick_2\":0,\"chain_1\":0,\"tshirt_1\":0,\"eyebrows_3\":0,\"pants_2\":0,\"beard_4\":0,\"torso_2\":0,\"beard_2\":6,\"ears_2\":0,\"hair_2\":0,\"shoes_1\":36,\"tshirt_2\":0,\"beard_3\":0,\"hair_1\":2,\"hair_color_1\":0,\"pants_1\":48,\"helmet_1\":-1,\"bproof_2\":0,\"eyebrows_4\":0,\"eyebrows_2\":0,\"decals_1\":0,\"age_2\":0,\"beard_1\":5,\"shoes\":10,\"lipstick_1\":0,\"eyebrows_1\":0,\"glasses_2\":0,\"makeup_4\":0,\"decals_2\":0,\"lipstick_3\":0,\"age_1\":0}','{\"mask_1\":0,\"arms\":5,\"glasses_1\":5,\"hair_color_2\":4,\"makeup_1\":0,\"face\":19,\"glasses\":0,\"mask_2\":0,\"makeup_3\":0,\"skin\":29,\"helmet_2\":0,\"lipstick_4\":0,\"sex\":1,\"torso_1\":52,\"makeup_2\":0,\"bags_2\":0,\"chain_2\":0,\"ears_1\":-1,\"bags_1\":0,\"bproof_1\":0,\"shoes_2\":1,\"lipstick_2\":0,\"chain_1\":0,\"tshirt_1\":23,\"eyebrows_3\":0,\"pants_2\":0,\"beard_4\":0,\"torso_2\":0,\"beard_2\":6,\"ears_2\":0,\"hair_2\":0,\"shoes_1\":42,\"tshirt_2\":4,\"beard_3\":0,\"hair_1\":2,\"hair_color_1\":0,\"pants_1\":36,\"helmet_1\":-1,\"bproof_2\":0,\"eyebrows_4\":0,\"eyebrows_2\":0,\"decals_1\":0,\"age_2\":0,\"beard_1\":5,\"shoes\":10,\"lipstick_1\":0,\"eyebrows_1\":0,\"glasses_2\":0,\"makeup_4\":0,\"decals_2\":0,\"lipstick_3\":0,\"age_1\":0}'), + ('miner', 0, 'employee', 'Temporario', 0, '{"tshirt_2":1,"ears_1":8,"glasses_1":15,"torso_2":0,"ears_2":2,"glasses_2":3,"shoes_2":1,"pants_1":75,"shoes_1":51,"bags_1":0,"helmet_2":0,"pants_2":7,"torso_1":71,"tshirt_1":59,"arms":2,"bags_2":0,"helmet_1":0}', '{}'), + ('slaughterer',0,'employee','Temporario',0,'{\"age_1\":0,\"glasses_2\":0,\"beard_1\":5,\"decals_2\":0,\"beard_4\":0,\"shoes_2\":0,\"tshirt_2\":0,\"lipstick_2\":0,\"hair_2\":0,\"arms\":67,\"pants_1\":36,\"skin\":29,\"eyebrows_2\":0,\"shoes\":10,\"helmet_1\":-1,\"lipstick_1\":0,\"helmet_2\":0,\"hair_color_1\":0,\"glasses\":0,\"makeup_4\":0,\"makeup_1\":0,\"hair_1\":2,\"bproof_1\":0,\"bags_1\":0,\"mask_1\":0,\"lipstick_3\":0,\"chain_1\":0,\"eyebrows_4\":0,\"sex\":0,\"torso_1\":56,\"beard_2\":6,\"shoes_1\":12,\"decals_1\":0,\"face\":19,\"lipstick_4\":0,\"tshirt_1\":15,\"mask_2\":0,\"age_2\":0,\"eyebrows_3\":0,\"chain_2\":0,\"glasses_1\":0,\"ears_1\":-1,\"bags_2\":0,\"ears_2\":0,\"torso_2\":0,\"bproof_2\":0,\"makeup_2\":0,\"eyebrows_1\":0,\"makeup_3\":0,\"pants_2\":0,\"beard_3\":0,\"hair_color_2\":4}','{\"age_1\":0,\"glasses_2\":0,\"beard_1\":5,\"decals_2\":0,\"beard_4\":0,\"shoes_2\":0,\"tshirt_2\":0,\"lipstick_2\":0,\"hair_2\":0,\"arms\":72,\"pants_1\":45,\"skin\":29,\"eyebrows_2\":0,\"shoes\":10,\"helmet_1\":-1,\"lipstick_1\":0,\"helmet_2\":0,\"hair_color_1\":0,\"glasses\":0,\"makeup_4\":0,\"makeup_1\":0,\"hair_1\":2,\"bproof_1\":0,\"bags_1\":0,\"mask_1\":0,\"lipstick_3\":0,\"chain_1\":0,\"eyebrows_4\":0,\"sex\":1,\"torso_1\":49,\"beard_2\":6,\"shoes_1\":24,\"decals_1\":0,\"face\":19,\"lipstick_4\":0,\"tshirt_1\":9,\"mask_2\":0,\"age_2\":0,\"eyebrows_3\":0,\"chain_2\":0,\"glasses_1\":5,\"ears_1\":-1,\"bags_2\":0,\"ears_2\":0,\"torso_2\":0,\"bproof_2\":0,\"makeup_2\":0,\"eyebrows_1\":0,\"makeup_3\":0,\"pants_2\":0,\"beard_3\":0,\"hair_color_2\":4}') +; + +INSERT INTO `items` (`name`, `label`, `weight`) VALUES + ('alive_chicken', 'Frango Vivo', 1), + ('slaughtered_chicken', 'Frango Abatido', 1), + ('packaged_chicken', 'Frango na Bandeja', 1), + ('fish', 'Peixe', 1), + ('stone', 'Pedra', 1), + ('washed_stone', 'Pedra Limpa', 1), + ('copper', 'Cobre', 1), + ('iron', 'Ferro', 1), + ('gold', 'Ouro', 1), + ('diamond', 'Diamante', 1), + ('wood', 'Madeira', 1), + ('cutted_wood', 'Madeira Cortada', 1), + ('packaged_plank', 'Tábua Embalada', 1), + ('petrol', 'Petroleo', 1), + ('petrol_raffin', 'Petroleo Refinado', 1), + ('essence', 'Gasolina', 1), + ('wool', 'Lã', 1), + ('fabric', 'Tecido', 1), + ('clothe', 'Roupa', 1) +; diff --git a/_resources/esx_jobs/localization/de_esx_jobs.sql b/_resources/esx_jobs/localization/de_esx_jobs.sql new file mode 100644 index 00000000..7105f605 --- /dev/null +++ b/_resources/esx_jobs/localization/de_esx_jobs.sql @@ -0,0 +1,47 @@ +USE `es_extended`; + +INSERT INTO `addon_account` (name, label, shared) VALUES + ('caution', 'Caution', 0) +; + +INSERT INTO `jobs` (name, label) VALUES + ('slaughterer', 'Schlachterei'), + ('fisherman', 'Fischerei'), + ('miner', 'Bergbau'), + ('lumberjack', 'Holzbetrieb'), + ('fueler', 'Raffinerie'), + ('reporter', 'Kanal 7'), + ('tailor', 'Schneiderei') +; + +INSERT INTO `job_grades` (job_name, grade, name, label, salary, skin_male, skin_female) VALUES + ('lumberjack', 0, 'employee', 'Mitarbeiter', 0, '{}', '{}'), + ('fisherman', 0, 'employee', 'Mitarbeiter', 0, '{}', '{}'), + ('fueler', 0, 'employee', 'Mitarbeiter', 0, '{}', '{}'), + ('reporter', 0, 'employee', 'Mitarbeiter', 0, '{}', '{}'), + ('tailor', 0, 'employee', 'Mitarbeiter', 0,'{\"mask_1\":0,\"arms\":1,\"glasses_1\":0,\"hair_color_2\":4,\"makeup_1\":0,\"face\":19,\"glasses\":0,\"mask_2\":0,\"makeup_3\":0,\"skin\":29,\"helmet_2\":0,\"lipstick_4\":0,\"sex\":0,\"torso_1\":24,\"makeup_2\":0,\"bags_2\":0,\"chain_2\":0,\"ears_1\":-1,\"bags_1\":0,\"bproof_1\":0,\"shoes_2\":0,\"lipstick_2\":0,\"chain_1\":0,\"tshirt_1\":0,\"eyebrows_3\":0,\"pants_2\":0,\"beard_4\":0,\"torso_2\":0,\"beard_2\":6,\"ears_2\":0,\"hair_2\":0,\"shoes_1\":36,\"tshirt_2\":0,\"beard_3\":0,\"hair_1\":2,\"hair_color_1\":0,\"pants_1\":48,\"helmet_1\":-1,\"bproof_2\":0,\"eyebrows_4\":0,\"eyebrows_2\":0,\"decals_1\":0,\"age_2\":0,\"beard_1\":5,\"shoes\":10,\"lipstick_1\":0,\"eyebrows_1\":0,\"glasses_2\":0,\"makeup_4\":0,\"decals_2\":0,\"lipstick_3\":0,\"age_1\":0}','{\"mask_1\":0,\"arms\":5,\"glasses_1\":5,\"hair_color_2\":4,\"makeup_1\":0,\"face\":19,\"glasses\":0,\"mask_2\":0,\"makeup_3\":0,\"skin\":29,\"helmet_2\":0,\"lipstick_4\":0,\"sex\":1,\"torso_1\":52,\"makeup_2\":0,\"bags_2\":0,\"chain_2\":0,\"ears_1\":-1,\"bags_1\":0,\"bproof_1\":0,\"shoes_2\":1,\"lipstick_2\":0,\"chain_1\":0,\"tshirt_1\":23,\"eyebrows_3\":0,\"pants_2\":0,\"beard_4\":0,\"torso_2\":0,\"beard_2\":6,\"ears_2\":0,\"hair_2\":0,\"shoes_1\":42,\"tshirt_2\":4,\"beard_3\":0,\"hair_1\":2,\"hair_color_1\":0,\"pants_1\":36,\"helmet_1\":-1,\"bproof_2\":0,\"eyebrows_4\":0,\"eyebrows_2\":0,\"decals_1\":0,\"age_2\":0,\"beard_1\":5,\"shoes\":10,\"lipstick_1\":0,\"eyebrows_1\":0,\"glasses_2\":0,\"makeup_4\":0,\"decals_2\":0,\"lipstick_3\":0,\"age_1\":0}'), + ('miner', 0, 'employee', 'Mitarbeiter', 0, '{"tshirt_2":1,"ears_1":8,"glasses_1":15,"torso_2":0,"ears_2":2,"glasses_2":3,"shoes_2":1,"pants_1":75,"shoes_1":51,"bags_1":0,"helmet_2":0,"pants_2":7,"torso_1":71,"tshirt_1":59,"arms":2,"bags_2":0,"helmet_1":0}', '{}'), + ('slaughterer',0,'employee','Mitarbeiter', 0,'{\"age_1\":0,\"glasses_2\":0,\"beard_1\":5,\"decals_2\":0,\"beard_4\":0,\"shoes_2\":0,\"tshirt_2\":0,\"lipstick_2\":0,\"hair_2\":0,\"arms\":67,\"pants_1\":36,\"skin\":29,\"eyebrows_2\":0,\"shoes\":10,\"helmet_1\":-1,\"lipstick_1\":0,\"helmet_2\":0,\"hair_color_1\":0,\"glasses\":0,\"makeup_4\":0,\"makeup_1\":0,\"hair_1\":2,\"bproof_1\":0,\"bags_1\":0,\"mask_1\":0,\"lipstick_3\":0,\"chain_1\":0,\"eyebrows_4\":0,\"sex\":0,\"torso_1\":56,\"beard_2\":6,\"shoes_1\":12,\"decals_1\":0,\"face\":19,\"lipstick_4\":0,\"tshirt_1\":15,\"mask_2\":0,\"age_2\":0,\"eyebrows_3\":0,\"chain_2\":0,\"glasses_1\":0,\"ears_1\":-1,\"bags_2\":0,\"ears_2\":0,\"torso_2\":0,\"bproof_2\":0,\"makeup_2\":0,\"eyebrows_1\":0,\"makeup_3\":0,\"pants_2\":0,\"beard_3\":0,\"hair_color_2\":4}','{\"age_1\":0,\"glasses_2\":0,\"beard_1\":5,\"decals_2\":0,\"beard_4\":0,\"shoes_2\":0,\"tshirt_2\":0,\"lipstick_2\":0,\"hair_2\":0,\"arms\":72,\"pants_1\":45,\"skin\":29,\"eyebrows_2\":0,\"shoes\":10,\"helmet_1\":-1,\"lipstick_1\":0,\"helmet_2\":0,\"hair_color_1\":0,\"glasses\":0,\"makeup_4\":0,\"makeup_1\":0,\"hair_1\":2,\"bproof_1\":0,\"bags_1\":0,\"mask_1\":0,\"lipstick_3\":0,\"chain_1\":0,\"eyebrows_4\":0,\"sex\":1,\"torso_1\":49,\"beard_2\":6,\"shoes_1\":24,\"decals_1\":0,\"face\":19,\"lipstick_4\":0,\"tshirt_1\":9,\"mask_2\":0,\"age_2\":0,\"eyebrows_3\":0,\"chain_2\":0,\"glasses_1\":5,\"ears_1\":-1,\"bags_2\":0,\"ears_2\":0,\"torso_2\":0,\"bproof_2\":0,\"makeup_2\":0,\"eyebrows_1\":0,\"makeup_3\":0,\"pants_2\":0,\"beard_3\":0,\"hair_color_2\":4}') +; + +INSERT INTO `items` (`name`, `label`, `weight`) VALUES + ('alive_chicken', 'lebendes Huhn', 1), + ('slaughtered_chicken', 'geschlachtetes Huhn', 1), + ('packaged_chicken', 'Hähnchenfilet', 1), + ('fish', 'Fisch', 1), + ('stone', 'Felsbrocken', 1), + ('washed_stone', 'gewaschener Felsbrocken', 1), + ('copper', 'Kupfer', 1), + ('iron', 'Eisen', 1), + ('gold', 'Gold', 1), + ('diamond', 'Diamant', 1), + ('wood', 'Holz', 1), + ('cutted_wood', 'Holzstämme', 1), + ('packaged_plank', 'Bretterpaket', 1), + ('petrol', 'Öl', 1), + ('petrol_raffin', 'bearbeitetes Öl', 1), + ('essence', 'Benzin', 1), + ('wool', 'Wolle', 1), + ('fabric', 'Tuch', 1), + ('clothe', 'Kleidung', 1) +; diff --git a/_resources/esx_jobs/localization/en_esx_jobs.sql b/_resources/esx_jobs/localization/en_esx_jobs.sql new file mode 100644 index 00000000..a6fe73eb --- /dev/null +++ b/_resources/esx_jobs/localization/en_esx_jobs.sql @@ -0,0 +1,47 @@ +USE `es_extended`; + +INSERT INTO `addon_account` (name, label, shared) VALUES + ('caution', 'caution', 0) +; + +INSERT INTO `jobs` (name, label) VALUES + ('slaughterer', 'Butcher'), + ('fisherman', 'Fisherman'), + ('miner', 'Miner'), + ('lumberjack', 'Lumberjack'), + ('fueler', 'Fueler'), + ('reporter', 'Reporter'), + ('tailor', 'Tailor') +; + +INSERT INTO `job_grades` (job_name, grade, name, label, salary, skin_male, skin_female) VALUES + ('lumberjack', 0, 'employee', 'Employee', 0, '{}', '{}'), + ('fisherman', 0, 'employee', 'Employee', 0, '{}', '{}'), + ('fueler', 0, 'employee', 'Employee', 0, '{}', '{}'), + ('reporter', 0, 'employee', 'Employee', 0, '{}', '{}'), + ('tailor', 0, 'employee', 'Employee', 0, '{\"mask_1\":0,\"arms\":1,\"glasses_1\":0,\"hair_color_2\":4,\"makeup_1\":0,\"face\":19,\"glasses\":0,\"mask_2\":0,\"makeup_3\":0,\"skin\":29,\"helmet_2\":0,\"lipstick_4\":0,\"sex\":0,\"torso_1\":24,\"makeup_2\":0,\"bags_2\":0,\"chain_2\":0,\"ears_1\":-1,\"bags_1\":0,\"bproof_1\":0,\"shoes_2\":0,\"lipstick_2\":0,\"chain_1\":0,\"tshirt_1\":0,\"eyebrows_3\":0,\"pants_2\":0,\"beard_4\":0,\"torso_2\":0,\"beard_2\":6,\"ears_2\":0,\"hair_2\":0,\"shoes_1\":36,\"tshirt_2\":0,\"beard_3\":0,\"hair_1\":2,\"hair_color_1\":0,\"pants_1\":48,\"helmet_1\":-1,\"bproof_2\":0,\"eyebrows_4\":0,\"eyebrows_2\":0,\"decals_1\":0,\"age_2\":0,\"beard_1\":5,\"shoes\":10,\"lipstick_1\":0,\"eyebrows_1\":0,\"glasses_2\":0,\"makeup_4\":0,\"decals_2\":0,\"lipstick_3\":0,\"age_1\":0}','{\"mask_1\":0,\"arms\":5,\"glasses_1\":5,\"hair_color_2\":4,\"makeup_1\":0,\"face\":19,\"glasses\":0,\"mask_2\":0,\"makeup_3\":0,\"skin\":29,\"helmet_2\":0,\"lipstick_4\":0,\"sex\":1,\"torso_1\":52,\"makeup_2\":0,\"bags_2\":0,\"chain_2\":0,\"ears_1\":-1,\"bags_1\":0,\"bproof_1\":0,\"shoes_2\":1,\"lipstick_2\":0,\"chain_1\":0,\"tshirt_1\":23,\"eyebrows_3\":0,\"pants_2\":0,\"beard_4\":0,\"torso_2\":0,\"beard_2\":6,\"ears_2\":0,\"hair_2\":0,\"shoes_1\":42,\"tshirt_2\":4,\"beard_3\":0,\"hair_1\":2,\"hair_color_1\":0,\"pants_1\":36,\"helmet_1\":-1,\"bproof_2\":0,\"eyebrows_4\":0,\"eyebrows_2\":0,\"decals_1\":0,\"age_2\":0,\"beard_1\":5,\"shoes\":10,\"lipstick_1\":0,\"eyebrows_1\":0,\"glasses_2\":0,\"makeup_4\":0,\"decals_2\":0,\"lipstick_3\":0,\"age_1\":0}'), + ('miner', 0, 'employee', 'Employee', 0, '{"tshirt_2":1,"ears_1":8,"glasses_1":15,"torso_2":0,"ears_2":2,"glasses_2":3,"shoes_2":1,"pants_1":75,"shoes_1":51,"bags_1":0,"helmet_2":0,"pants_2":7,"torso_1":71,"tshirt_1":59,"arms":2,"bags_2":0,"helmet_1":0}', '{}'), + ('slaughterer', 0, 'employee', 'Employee', 0, '{\"age_1\":0,\"glasses_2\":0,\"beard_1\":5,\"decals_2\":0,\"beard_4\":0,\"shoes_2\":0,\"tshirt_2\":0,\"lipstick_2\":0,\"hair_2\":0,\"arms\":67,\"pants_1\":36,\"skin\":29,\"eyebrows_2\":0,\"shoes\":10,\"helmet_1\":-1,\"lipstick_1\":0,\"helmet_2\":0,\"hair_color_1\":0,\"glasses\":0,\"makeup_4\":0,\"makeup_1\":0,\"hair_1\":2,\"bproof_1\":0,\"bags_1\":0,\"mask_1\":0,\"lipstick_3\":0,\"chain_1\":0,\"eyebrows_4\":0,\"sex\":0,\"torso_1\":56,\"beard_2\":6,\"shoes_1\":12,\"decals_1\":0,\"face\":19,\"lipstick_4\":0,\"tshirt_1\":15,\"mask_2\":0,\"age_2\":0,\"eyebrows_3\":0,\"chain_2\":0,\"glasses_1\":0,\"ears_1\":-1,\"bags_2\":0,\"ears_2\":0,\"torso_2\":0,\"bproof_2\":0,\"makeup_2\":0,\"eyebrows_1\":0,\"makeup_3\":0,\"pants_2\":0,\"beard_3\":0,\"hair_color_2\":4}','{\"age_1\":0,\"glasses_2\":0,\"beard_1\":5,\"decals_2\":0,\"beard_4\":0,\"shoes_2\":0,\"tshirt_2\":0,\"lipstick_2\":0,\"hair_2\":0,\"arms\":72,\"pants_1\":45,\"skin\":29,\"eyebrows_2\":0,\"shoes\":10,\"helmet_1\":-1,\"lipstick_1\":0,\"helmet_2\":0,\"hair_color_1\":0,\"glasses\":0,\"makeup_4\":0,\"makeup_1\":0,\"hair_1\":2,\"bproof_1\":0,\"bags_1\":0,\"mask_1\":0,\"lipstick_3\":0,\"chain_1\":0,\"eyebrows_4\":0,\"sex\":1,\"torso_1\":49,\"beard_2\":6,\"shoes_1\":24,\"decals_1\":0,\"face\":19,\"lipstick_4\":0,\"tshirt_1\":9,\"mask_2\":0,\"age_2\":0,\"eyebrows_3\":0,\"chain_2\":0,\"glasses_1\":5,\"ears_1\":-1,\"bags_2\":0,\"ears_2\":0,\"torso_2\":0,\"bproof_2\":0,\"makeup_2\":0,\"eyebrows_1\":0,\"makeup_3\":0,\"pants_2\":0,\"beard_3\":0,\"hair_color_2\":4}') +; + +INSERT INTO `items` (`name`, `label`, `weight`) VALUES + ('alive_chicken', 'Living chicken', 1), + ('slaughtered_chicken', 'Slaughtered chicken', 1), + ('packaged_chicken', 'Chicken fillet', 1), + ('fish', 'Fish', 1), + ('stone', 'Stone', 1), + ('washed_stone', 'Washed stone', 1), + ('copper', 'Copper', 1), + ('iron', 'Iron', 1), + ('gold', 'Gold', 1), + ('diamond', 'Diamond', 1), + ('wood', 'Wood', 1), + ('cutted_wood', 'Cut wood', 1), + ('packaged_plank', 'Packaged wood', 1), + ('petrol', 'Oil', 1), + ('petrol_raffin', 'Processed oil', 1), + ('essence', 'Gas', 1), + ('wool', 'Wool', 1), + ('fabric', 'Fabric', 1), + ('clothe', 'Cloth', 1) +; diff --git a/_resources/esx_jobs/localization/es_esx_jobs.sql b/_resources/esx_jobs/localization/es_esx_jobs.sql new file mode 100644 index 00000000..f6a2b470 --- /dev/null +++ b/_resources/esx_jobs/localization/es_esx_jobs.sql @@ -0,0 +1,47 @@ +USE `es_extended`; + +INSERT INTO `addon_account` (name, label, shared) VALUES + ('caution', 'Precaución', 0) +; + +INSERT INTO `jobs` (name, label) VALUES + ('slaughterer', 'Carnicero'), + ('fisherman', 'Pescador'), + ('miner', 'Minero'), + ('lumberjack', 'Leñador'), + ('fueler', 'Camionero'), + ('reporter', 'Repartidor'), + ('tailor', 'Sastre') +; + +INSERT INTO `job_grades` (job_name, grade, name, label, salary, skin_male, skin_female) VALUES + ('lumberjack', 0, 'employee', 'Trabajador', 0, '{}', '{}'), + ('fisherman', 0, 'employee', 'Trabajador', 0, '{}', '{}'), + ('fueler', 0, 'employee', 'Trabajador', 0, '{}', '{}'), + ('reporter', 0, 'employee', 'Trabajador', 0, '{}', '{}'), + ('tailor', 0, 'employee', 'Trabajador', 0, '{\"mask_1\":0,\"arms\":1,\"glasses_1\":0,\"hair_color_2\":4,\"makeup_1\":0,\"face\":19,\"glasses\":0,\"mask_2\":0,\"makeup_3\":0,\"skin\":29,\"helmet_2\":0,\"lipstick_4\":0,\"sex\":0,\"torso_1\":24,\"makeup_2\":0,\"bags_2\":0,\"chain_2\":0,\"ears_1\":-1,\"bags_1\":0,\"bproof_1\":0,\"shoes_2\":0,\"lipstick_2\":0,\"chain_1\":0,\"tshirt_1\":0,\"eyebrows_3\":0,\"pants_2\":0,\"beard_4\":0,\"torso_2\":0,\"beard_2\":6,\"ears_2\":0,\"hair_2\":0,\"shoes_1\":36,\"tshirt_2\":0,\"beard_3\":0,\"hair_1\":2,\"hair_color_1\":0,\"pants_1\":48,\"helmet_1\":-1,\"bproof_2\":0,\"eyebrows_4\":0,\"eyebrows_2\":0,\"decals_1\":0,\"age_2\":0,\"beard_1\":5,\"shoes\":10,\"lipstick_1\":0,\"eyebrows_1\":0,\"glasses_2\":0,\"makeup_4\":0,\"decals_2\":0,\"lipstick_3\":0,\"age_1\":0}','{\"mask_1\":0,\"arms\":5,\"glasses_1\":5,\"hair_color_2\":4,\"makeup_1\":0,\"face\":19,\"glasses\":0,\"mask_2\":0,\"makeup_3\":0,\"skin\":29,\"helmet_2\":0,\"lipstick_4\":0,\"sex\":1,\"torso_1\":52,\"makeup_2\":0,\"bags_2\":0,\"chain_2\":0,\"ears_1\":-1,\"bags_1\":0,\"bproof_1\":0,\"shoes_2\":1,\"lipstick_2\":0,\"chain_1\":0,\"tshirt_1\":23,\"eyebrows_3\":0,\"pants_2\":0,\"beard_4\":0,\"torso_2\":0,\"beard_2\":6,\"ears_2\":0,\"hair_2\":0,\"shoes_1\":42,\"tshirt_2\":4,\"beard_3\":0,\"hair_1\":2,\"hair_color_1\":0,\"pants_1\":36,\"helmet_1\":-1,\"bproof_2\":0,\"eyebrows_4\":0,\"eyebrows_2\":0,\"decals_1\":0,\"age_2\":0,\"beard_1\":5,\"shoes\":10,\"lipstick_1\":0,\"eyebrows_1\":0,\"glasses_2\":0,\"makeup_4\":0,\"decals_2\":0,\"lipstick_3\":0,\"age_1\":0}'), + ('miner', 0, 'employee', 'Trabajador', 0, '{"tshirt_2":1,"ears_1":8,"glasses_1":15,"torso_2":0,"ears_2":2,"glasses_2":3,"shoes_2":1,"pants_1":75,"shoes_1":51,"bags_1":0,"helmet_2":0,"pants_2":7,"torso_1":71,"tshirt_1":59,"arms":2,"bags_2":0,"helmet_1":0}', '{}'), + ('slaughterer', 0, 'employee', 'Trabajador', 0, '{\"age_1\":0,\"glasses_2\":0,\"beard_1\":5,\"decals_2\":0,\"beard_4\":0,\"shoes_2\":0,\"tshirt_2\":0,\"lipstick_2\":0,\"hair_2\":0,\"arms\":67,\"pants_1\":36,\"skin\":29,\"eyebrows_2\":0,\"shoes\":10,\"helmet_1\":-1,\"lipstick_1\":0,\"helmet_2\":0,\"hair_color_1\":0,\"glasses\":0,\"makeup_4\":0,\"makeup_1\":0,\"hair_1\":2,\"bproof_1\":0,\"bags_1\":0,\"mask_1\":0,\"lipstick_3\":0,\"chain_1\":0,\"eyebrows_4\":0,\"sex\":0,\"torso_1\":56,\"beard_2\":6,\"shoes_1\":12,\"decals_1\":0,\"face\":19,\"lipstick_4\":0,\"tshirt_1\":15,\"mask_2\":0,\"age_2\":0,\"eyebrows_3\":0,\"chain_2\":0,\"glasses_1\":0,\"ears_1\":-1,\"bags_2\":0,\"ears_2\":0,\"torso_2\":0,\"bproof_2\":0,\"makeup_2\":0,\"eyebrows_1\":0,\"makeup_3\":0,\"pants_2\":0,\"beard_3\":0,\"hair_color_2\":4}','{\"age_1\":0,\"glasses_2\":0,\"beard_1\":5,\"decals_2\":0,\"beard_4\":0,\"shoes_2\":0,\"tshirt_2\":0,\"lipstick_2\":0,\"hair_2\":0,\"arms\":72,\"pants_1\":45,\"skin\":29,\"eyebrows_2\":0,\"shoes\":10,\"helmet_1\":-1,\"lipstick_1\":0,\"helmet_2\":0,\"hair_color_1\":0,\"glasses\":0,\"makeup_4\":0,\"makeup_1\":0,\"hair_1\":2,\"bproof_1\":0,\"bags_1\":0,\"mask_1\":0,\"lipstick_3\":0,\"chain_1\":0,\"eyebrows_4\":0,\"sex\":1,\"torso_1\":49,\"beard_2\":6,\"shoes_1\":24,\"decals_1\":0,\"face\":19,\"lipstick_4\":0,\"tshirt_1\":9,\"mask_2\":0,\"age_2\":0,\"eyebrows_3\":0,\"chain_2\":0,\"glasses_1\":5,\"ears_1\":-1,\"bags_2\":0,\"ears_2\":0,\"torso_2\":0,\"bproof_2\":0,\"makeup_2\":0,\"eyebrows_1\":0,\"makeup_3\":0,\"pants_2\":0,\"beard_3\":0,\"hair_color_2\":4}') +; + +INSERT INTO `items` (`name`, `label`, `weight`) VALUES + ('alive_chicken', 'Pollo vivo', 1), + ('slaughtered_chicken', 'Pollo sacrificado', 1), + ('packaged_chicken', 'Filete de pollo', 1), + ('fish', 'Pez', 1), + ('stone', 'Piedra', 1), + ('washed_stone', 'Piedra pulida', 1), + ('copper', 'Cobre', 1), + ('iron', 'Hierro', 1), + ('gold', 'Oro', 1), + ('diamond', 'Diamante', 1), + ('wood', 'Madera', 1), + ('cutted_wood', 'Madera cortada', 1), + ('packaged_plank', 'Madera empaquetada', 1), + ('petrol', 'Gasolina', 1), + ('petrol_raffin', 'Gasolina destilada', 1), + ('essence', 'Gas', 1), + ('wool', 'Lana', 1), + ('fabric', 'Tela', 1), + ('clothe', 'Paño', 1) +; diff --git a/_resources/esx_jobs/localization/fi_esx_jobs.sql b/_resources/esx_jobs/localization/fi_esx_jobs.sql new file mode 100644 index 00000000..69191aa7 --- /dev/null +++ b/_resources/esx_jobs/localization/fi_esx_jobs.sql @@ -0,0 +1,47 @@ +USE `es_extended`; + +INSERT INTO `addon_account` (name, label, shared) VALUES + ('caution', 'caution', 0) +; + +INSERT INTO `jobs` (name, label) VALUES + ('slaughterer', 'Teurastaja'), + ('fisherman', 'Kalastaja'), + ('miner', 'Kaivostyöläinen'), + ('lumberjack', 'Metsuri'), + ('fueler', 'Öljynjalostaja'), + ('reporter', 'Journalisti'), + ('tailor', 'Räätäli') +; + +INSERT INTO `job_grades` (job_name, grade, name, label, salary, skin_male, skin_female) VALUES + ('lumberjack', 0, 'interim', 'Työläinen', 0, '{}', '{}'), + ('fisherman', 0, 'interim', 'Työläinen', 0, '{}', '{}'), + ('fueler', 0, 'interim', 'Työläinen', 0, '{}', '{}'), + ('reporter', 0, 'employee', 'Työläinen', 0, '{}', '{}'), + ('tailor', 0, 'interim', 'Työläinen', 0, '{\"mask_1\":0,\"arms\":1,\"glasses_1\":0,\"hair_color_2\":4,\"makeup_1\":0,\"face\":19,\"glasses\":0,\"mask_2\":0,\"makeup_3\":0,\"skin\":29,\"helmet_2\":0,\"lipstick_4\":0,\"sex\":0,\"torso_1\":24,\"makeup_2\":0,\"bags_2\":0,\"chain_2\":0,\"ears_1\":-1,\"bags_1\":0,\"bproof_1\":0,\"shoes_2\":0,\"lipstick_2\":0,\"chain_1\":0,\"tshirt_1\":0,\"eyebrows_3\":0,\"pants_2\":0,\"beard_4\":0,\"torso_2\":0,\"beard_2\":6,\"ears_2\":0,\"hair_2\":0,\"shoes_1\":36,\"tshirt_2\":0,\"beard_3\":0,\"hair_1\":2,\"hair_color_1\":0,\"pants_1\":48,\"helmet_1\":-1,\"bproof_2\":0,\"eyebrows_4\":0,\"eyebrows_2\":0,\"decals_1\":0,\"age_2\":0,\"beard_1\":5,\"shoes\":10,\"lipstick_1\":0,\"eyebrows_1\":0,\"glasses_2\":0,\"makeup_4\":0,\"decals_2\":0,\"lipstick_3\":0,\"age_1\":0}','{\"mask_1\":0,\"arms\":5,\"glasses_1\":5,\"hair_color_2\":4,\"makeup_1\":0,\"face\":19,\"glasses\":0,\"mask_2\":0,\"makeup_3\":0,\"skin\":29,\"helmet_2\":0,\"lipstick_4\":0,\"sex\":1,\"torso_1\":52,\"makeup_2\":0,\"bags_2\":0,\"chain_2\":0,\"ears_1\":-1,\"bags_1\":0,\"bproof_1\":0,\"shoes_2\":1,\"lipstick_2\":0,\"chain_1\":0,\"tshirt_1\":23,\"eyebrows_3\":0,\"pants_2\":0,\"beard_4\":0,\"torso_2\":0,\"beard_2\":6,\"ears_2\":0,\"hair_2\":0,\"shoes_1\":42,\"tshirt_2\":4,\"beard_3\":0,\"hair_1\":2,\"hair_color_1\":0,\"pants_1\":36,\"helmet_1\":-1,\"bproof_2\":0,\"eyebrows_4\":0,\"eyebrows_2\":0,\"decals_1\":0,\"age_2\":0,\"beard_1\":5,\"shoes\":10,\"lipstick_1\":0,\"eyebrows_1\":0,\"glasses_2\":0,\"makeup_4\":0,\"decals_2\":0,\"lipstick_3\":0,\"age_1\":0}'), + ('miner', 0, 'interim', 'Työläinen', 0, '{"tshirt_2":1,"ears_1":8,"glasses_1":15,"torso_2":0,"ears_2":2,"glasses_2":3,"shoes_2":1,"pants_1":75,"shoes_1":51,"bags_1":0,"helmet_2":0,"pants_2":7,"torso_1":71,"tshirt_1":59,"arms":2,"bags_2":0,"helmet_1":0}', '{}'), + ('slaughterer', 0, 'interim', 'Työläinen', 0, '{\"age_1\":0,\"glasses_2\":0,\"beard_1\":5,\"decals_2\":0,\"beard_4\":0,\"shoes_2\":0,\"tshirt_2\":0,\"lipstick_2\":0,\"hair_2\":0,\"arms\":67,\"pants_1\":36,\"skin\":29,\"eyebrows_2\":0,\"shoes\":10,\"helmet_1\":-1,\"lipstick_1\":0,\"helmet_2\":0,\"hair_color_1\":0,\"glasses\":0,\"makeup_4\":0,\"makeup_1\":0,\"hair_1\":2,\"bproof_1\":0,\"bags_1\":0,\"mask_1\":0,\"lipstick_3\":0,\"chain_1\":0,\"eyebrows_4\":0,\"sex\":0,\"torso_1\":56,\"beard_2\":6,\"shoes_1\":12,\"decals_1\":0,\"face\":19,\"lipstick_4\":0,\"tshirt_1\":15,\"mask_2\":0,\"age_2\":0,\"eyebrows_3\":0,\"chain_2\":0,\"glasses_1\":0,\"ears_1\":-1,\"bags_2\":0,\"ears_2\":0,\"torso_2\":0,\"bproof_2\":0,\"makeup_2\":0,\"eyebrows_1\":0,\"makeup_3\":0,\"pants_2\":0,\"beard_3\":0,\"hair_color_2\":4}','{\"age_1\":0,\"glasses_2\":0,\"beard_1\":5,\"decals_2\":0,\"beard_4\":0,\"shoes_2\":0,\"tshirt_2\":0,\"lipstick_2\":0,\"hair_2\":0,\"arms\":72,\"pants_1\":45,\"skin\":29,\"eyebrows_2\":0,\"shoes\":10,\"helmet_1\":-1,\"lipstick_1\":0,\"helmet_2\":0,\"hair_color_1\":0,\"glasses\":0,\"makeup_4\":0,\"makeup_1\":0,\"hair_1\":2,\"bproof_1\":0,\"bags_1\":0,\"mask_1\":0,\"lipstick_3\":0,\"chain_1\":0,\"eyebrows_4\":0,\"sex\":1,\"torso_1\":49,\"beard_2\":6,\"shoes_1\":24,\"decals_1\":0,\"face\":19,\"lipstick_4\":0,\"tshirt_1\":9,\"mask_2\":0,\"age_2\":0,\"eyebrows_3\":0,\"chain_2\":0,\"glasses_1\":5,\"ears_1\":-1,\"bags_2\":0,\"ears_2\":0,\"torso_2\":0,\"bproof_2\":0,\"makeup_2\":0,\"eyebrows_1\":0,\"makeup_3\":0,\"pants_2\":0,\"beard_3\":0,\"hair_color_2\":4}') +; + +INSERT INTO `items` (`name`, `label`, `weight`) VALUES + ('alive_chicken', 'Elävä kana', 1), + ('slaughtered_chicken', 'Teurastettu kana', 1), + ('packaged_chicken', 'Kananfilee', 1), + ('fish', 'Kala', 1), + ('stone', 'Kivi', 1), + ('washed_stone', 'Puhdistettu Kivi', 1), + ('copper', 'Kupari', 1), + ('iron', 'Rauta', 1), + ('gold', 'Kulta', 1), + ('diamond', 'Timantti', 1), + ('wood', 'Puu', 1), + ('cutted_wood', 'Pilkottu Puu', 1), + ('packaged_plank', 'Paketoitu Lankku', 1), + ('petrol', 'Öljy', 1), + ('petrol_raffin', 'Prosessoitu Öljy', 1), + ('essence', 'Polttoöljy', 1), + ('wool', 'Villa', 1), + ('fabric', 'Kangas', 1), + ('clothe', 'Vaate', 1) +; diff --git a/_resources/esx_jobs/localization/sv_esx_jobs.sql b/_resources/esx_jobs/localization/sv_esx_jobs.sql new file mode 100644 index 00000000..ddc1f8aa --- /dev/null +++ b/_resources/esx_jobs/localization/sv_esx_jobs.sql @@ -0,0 +1,47 @@ +USE `es_extended`; + +INSERT INTO `addon_account` (name, label, shared) VALUES + ('caution', 'caution', 0) +; + +INSERT INTO `jobs` (name, label) VALUES + ('slaughterer', 'Slaktare'), + ('fisherman', 'Fiskare'), + ('miner', 'Gruvarbetare'), + ('lumberjack', 'Skogshuggare'), + ('fueler', 'Bensintankare'), + ('reporter', 'Reporter'), + ('tailor', 'Skräddare') +; + +INSERT INTO `job_grades` (job_name, grade, name, label, salary, skin_male, skin_female) VALUES + ('lumberjack', 0, 'employee', 'Anställd', 0, '{}', '{}'), + ('fisherman', 0, 'employee', 'Anställd', 0, '{}', '{}'), + ('fueler', 0, 'employee', 'Anställd', 0, '{}', '{}'), + ('reporter', 0, 'employee', 'Anställd', 0, '{}', '{}'), + ('tailor', 0, 'employee', 'Anställd', 0, '{\"mask_1\":0,\"arms\":1,\"glasses_1\":0,\"hair_color_2\":4,\"makeup_1\":0,\"face\":19,\"glasses\":0,\"mask_2\":0,\"makeup_3\":0,\"skin\":29,\"helmet_2\":0,\"lipstick_4\":0,\"sex\":0,\"torso_1\":24,\"makeup_2\":0,\"bags_2\":0,\"chain_2\":0,\"ears_1\":-1,\"bags_1\":0,\"bproof_1\":0,\"shoes_2\":0,\"lipstick_2\":0,\"chain_1\":0,\"tshirt_1\":0,\"eyebrows_3\":0,\"pants_2\":0,\"beard_4\":0,\"torso_2\":0,\"beard_2\":6,\"ears_2\":0,\"hair_2\":0,\"shoes_1\":36,\"tshirt_2\":0,\"beard_3\":0,\"hair_1\":2,\"hair_color_1\":0,\"pants_1\":48,\"helmet_1\":-1,\"bproof_2\":0,\"eyebrows_4\":0,\"eyebrows_2\":0,\"decals_1\":0,\"age_2\":0,\"beard_1\":5,\"shoes\":10,\"lipstick_1\":0,\"eyebrows_1\":0,\"glasses_2\":0,\"makeup_4\":0,\"decals_2\":0,\"lipstick_3\":0,\"age_1\":0}','{\"mask_1\":0,\"arms\":5,\"glasses_1\":5,\"hair_color_2\":4,\"makeup_1\":0,\"face\":19,\"glasses\":0,\"mask_2\":0,\"makeup_3\":0,\"skin\":29,\"helmet_2\":0,\"lipstick_4\":0,\"sex\":1,\"torso_1\":52,\"makeup_2\":0,\"bags_2\":0,\"chain_2\":0,\"ears_1\":-1,\"bags_1\":0,\"bproof_1\":0,\"shoes_2\":1,\"lipstick_2\":0,\"chain_1\":0,\"tshirt_1\":23,\"eyebrows_3\":0,\"pants_2\":0,\"beard_4\":0,\"torso_2\":0,\"beard_2\":6,\"ears_2\":0,\"hair_2\":0,\"shoes_1\":42,\"tshirt_2\":4,\"beard_3\":0,\"hair_1\":2,\"hair_color_1\":0,\"pants_1\":36,\"helmet_1\":-1,\"bproof_2\":0,\"eyebrows_4\":0,\"eyebrows_2\":0,\"decals_1\":0,\"age_2\":0,\"beard_1\":5,\"shoes\":10,\"lipstick_1\":0,\"eyebrows_1\":0,\"glasses_2\":0,\"makeup_4\":0,\"decals_2\":0,\"lipstick_3\":0,\"age_1\":0}'), + ('miner', 0, 'employee', 'Anställd', 0, '{"tshirt_2":1,"ears_1":8,"glasses_1":15,"torso_2":0,"ears_2":2,"glasses_2":3,"shoes_2":1,"pants_1":75,"shoes_1":51,"bags_1":0,"helmet_2":0,"pants_2":7,"torso_1":71,"tshirt_1":59,"arms":2,"bags_2":0,"helmet_1":0}', '{}'), + ('slaughterer', 0, 'employee', 'Anställd', 0, '{\"age_1\":0,\"glasses_2\":0,\"beard_1\":5,\"decals_2\":0,\"beard_4\":0,\"shoes_2\":0,\"tshirt_2\":0,\"lipstick_2\":0,\"hair_2\":0,\"arms\":67,\"pants_1\":36,\"skin\":29,\"eyebrows_2\":0,\"shoes\":10,\"helmet_1\":-1,\"lipstick_1\":0,\"helmet_2\":0,\"hair_color_1\":0,\"glasses\":0,\"makeup_4\":0,\"makeup_1\":0,\"hair_1\":2,\"bproof_1\":0,\"bags_1\":0,\"mask_1\":0,\"lipstick_3\":0,\"chain_1\":0,\"eyebrows_4\":0,\"sex\":0,\"torso_1\":56,\"beard_2\":6,\"shoes_1\":12,\"decals_1\":0,\"face\":19,\"lipstick_4\":0,\"tshirt_1\":15,\"mask_2\":0,\"age_2\":0,\"eyebrows_3\":0,\"chain_2\":0,\"glasses_1\":0,\"ears_1\":-1,\"bags_2\":0,\"ears_2\":0,\"torso_2\":0,\"bproof_2\":0,\"makeup_2\":0,\"eyebrows_1\":0,\"makeup_3\":0,\"pants_2\":0,\"beard_3\":0,\"hair_color_2\":4}','{\"age_1\":0,\"glasses_2\":0,\"beard_1\":5,\"decals_2\":0,\"beard_4\":0,\"shoes_2\":0,\"tshirt_2\":0,\"lipstick_2\":0,\"hair_2\":0,\"arms\":72,\"pants_1\":45,\"skin\":29,\"eyebrows_2\":0,\"shoes\":10,\"helmet_1\":-1,\"lipstick_1\":0,\"helmet_2\":0,\"hair_color_1\":0,\"glasses\":0,\"makeup_4\":0,\"makeup_1\":0,\"hair_1\":2,\"bproof_1\":0,\"bags_1\":0,\"mask_1\":0,\"lipstick_3\":0,\"chain_1\":0,\"eyebrows_4\":0,\"sex\":1,\"torso_1\":49,\"beard_2\":6,\"shoes_1\":24,\"decals_1\":0,\"face\":19,\"lipstick_4\":0,\"tshirt_1\":9,\"mask_2\":0,\"age_2\":0,\"eyebrows_3\":0,\"chain_2\":0,\"glasses_1\":5,\"ears_1\":-1,\"bags_2\":0,\"ears_2\":0,\"torso_2\":0,\"bproof_2\":0,\"makeup_2\":0,\"eyebrows_1\":0,\"makeup_3\":0,\"pants_2\":0,\"beard_3\":0,\"hair_color_2\":4}') +; + +INSERT INTO `items` (`name`, `label`, `weight`) VALUES + ('alive_chicken', 'Levande kyckling', 1), + ('slaughtered_chicken', 'Slaktad kyckling', 1), + ('packaged_chicken', 'Paketerad kyckling', 1), + ('fish', 'Fisk', 1), + ('stone', 'Sten', 1), + ('washed_stone', 'Tvättad sten', 1), + ('copper', 'Koppar', 1), + ('iron', 'Järn', 1), + ('gold', 'Guld', 1), + ('diamond', 'Diamant', 1), + ('wood', 'Trä', 1), + ('cutted_wood', 'Sågat trä', 1), + ('packaged_plank', 'Paketerad trä', 1), + ('petrol', 'Råolja', 1), + ('petrol_raffin', 'Raffinerad olja', 1), + ('essence', 'Gas', 1), + ('wool', 'Ull', 1), + ('fabric', 'Textil', 1), + ('clothe', 'Tyg', 1) +; diff --git a/_resources/esx_jobs/server/main.lua b/_resources/esx_jobs/server/main.lua new file mode 100644 index 00000000..18f465ef --- /dev/null +++ b/_resources/esx_jobs/server/main.lua @@ -0,0 +1,139 @@ +local playersWorking = {} + +ESX = nil + +TriggerEvent('esx:getSharedObject', function(obj) ESX = obj end) + +Citizen.CreateThread(function() + while true do + Citizen.Wait(1000) + local timeNow = os.clock() + + for playerId,data in pairs(playersWorking) do + Citizen.Wait(10) + local xPlayer = ESX.GetPlayerFromId(playerId) + + -- is player still online? + if xPlayer then + local distance = #(xPlayer.getCoords(true) - data.zoneCoords) + + -- player still within zone limits? + if distance <= data.zoneMaxDistance then + -- calculate the elapsed time + local timeElapsed = timeNow - data.time + + if timeElapsed > data.jobItem[1].time then + data.time = os.clock() + + for k,v in ipairs(data.jobItem) do + local itemQtty, requiredItemQtty = 0, 0 + + if v.name ~= _U('delivery') then + itemQtty = xPlayer.getInventoryItem(v.db_name).count + end + + if data.jobItem[1].requires ~= 'nothing' then + requiredItemQtty = xPlayer.getInventoryItem(data.jobItem[1].requires).count + end + + if v.name ~= _U('delivery') and itemQtty >= v.max then + xPlayer.showNotification(_U('max_limit', v.name)) + playersWorking[playerId] = nil + elseif v.requires ~= 'nothing' and requiredItemQtty <= 0 then + xPlayer.showNotification(_U('not_enough', data.jobItem[1].requires_name)) + playersWorking[playerId] = nil + else + if v.name ~= _U('delivery') then + -- chances to drop the item + if v.drop == 100 then + xPlayer.addInventoryItem(v.db_name, v.add) + else + local chanceToDrop = math.random(100) + if chanceToDrop <= v.drop then + xPlayer.addInventoryItem(v.db_name, v.add) + end + end + else + xPlayer.addMoney(v.price) + end + end + end + + if data.jobItem[1].requires ~= 'nothing' then + local itemToRemoveQtty = xPlayer.getInventoryItem(data.jobItem[1].requires).count + if itemToRemoveQtty > 0 then + xPlayer.removeInventoryItem(data.jobItem[1].requires, data.jobItem[1].remove) + end + end + end + else + playersWorking[playerId] = nil + end + else + playersWorking[playerId] = nil + end + end + end +end) + +RegisterServerEvent('esx_jobs:startWork') +AddEventHandler('esx_jobs:startWork', function(zoneIndex, zoneKey) + if not playersWorking[source] then + local xPlayer = ESX.GetPlayerFromId(source) + + if xPlayer then + local jobObject = Config.Jobs[xPlayer.job.name] + + if jobObject then + local jobZone = jobObject.Zones[zoneKey] + + if jobZone and jobZone.Item then + playersWorking[source] = { + jobItem = jobZone.Item, + zoneCoords = vector3(jobZone.Pos.x, jobZone.Pos.y, jobZone.Pos.z), + zoneMaxDistance = jobZone.Size.x, + time = os.clock() + } + end + end + end + end +end) + +RegisterServerEvent('esx_jobs:stopWork') +AddEventHandler('esx_jobs:stopWork', function() + if playersWorking[source] then + playersWorking[source] = nil + end +end) + +RegisterNetEvent('esx_jobs:caution') +AddEventHandler('esx_jobs:caution', function(cautionType, cautionAmount, spawnPoint, vehicle) + local xPlayer = ESX.GetPlayerFromId(source) + + if cautionType == 'take' then + if cautionAmount <= Config.MaxCaution and cautionAmount > 0 then + TriggerEvent('esx_addonaccount:getAccount', 'caution', xPlayer.identifier, function(account) + if xPlayer.getAccount('bank').money >= cautionAmount then + xPlayer.removeAccountMoney('bank', cautionAmount) + account.addMoney(cautionAmount) + xPlayer.showNotification(_U('bank_deposit_taken', ESX.Math.GroupDigits(cautionAmount))) + TriggerClientEvent('esx_jobs:spawnJobVehicle', xPlayer.source, spawnPoint, vehicle) + else + xPlayer.showNotification(_U('caution_afford', ESX.Math.GroupDigits(cautionAmount))) + end + end) + end + elseif cautionType == 'give_back' then + if cautionAmount <= 1 and cautionAmount > 0 then + TriggerEvent('esx_addonaccount:getAccount', 'caution', xPlayer.identifier, function(account) + local caution = account.money + local toGive = ESX.Math.Round(caution * cautionAmount) + + xPlayer.addAccountMoney('bank', toGive) + account.removeMoney(toGive) + TriggerClientEvent('esx:showNotification', source, _U('bank_deposit_returned', ESX.Math.GroupDigits(toGive))) + end) + end + end +end)