mirror of
https://github.com/esx-framework/esx_core.git
synced 2026-08-29 23:01:30 +00:00
Merge remote-tracking branch 'esx_mechanicjob/master'
This commit is contained in:
@@ -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
|
||||
@@ -0,0 +1,674 @@
|
||||
GNU GENERAL PUBLIC LICENSE
|
||||
Version 3, 29 June 2007
|
||||
|
||||
Copyright (C) 2007 Free Software Foundation, Inc. <http://fsf.org/>
|
||||
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_mecanojob
|
||||
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 <http://www.gnu.org/licenses/>.
|
||||
|
||||
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:
|
||||
|
||||
esx_mechanicjob Copyright (C) 2015-2020 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
|
||||
<http://www.gnu.org/licenses/>.
|
||||
|
||||
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
|
||||
<http://www.gnu.org/philosophy/why-not-lgpl.html>.
|
||||
@@ -0,0 +1,48 @@
|
||||
# esx_mechanicjob
|
||||
|
||||
## Requirements
|
||||
|
||||
* Auto mode
|
||||
* No need to download another resource
|
||||
|
||||
* Player management (billing and boss actions)
|
||||
* [esx_society](https://github.com/ESX-Org/esx_society)
|
||||
* [esx_billing](https://github.com/ESX-Org/esx_billing)
|
||||
|
||||
## Download & Installation
|
||||
|
||||
### Using [fvm](https://github.com/qlaffont/fvm-installer)
|
||||
```
|
||||
fvm install --save --folder=esx esx-org/esx_mechanicjob
|
||||
```
|
||||
|
||||
### Using Git
|
||||
```
|
||||
cd resources
|
||||
git clone https://github.com/ESX-Org/esx_mechanicjob [esx]/esx_mechanicjob
|
||||
```
|
||||
|
||||
### Manually
|
||||
- Download https://github.com/ESX-Org/esx_mechanicjob/archive/master.zip
|
||||
- Put it in the `[esx]` directory
|
||||
|
||||
## Installation
|
||||
- Import `esx_mechanicjob.sql` in your database
|
||||
- If you want player management you have to set `Config.EnablePlayerManagement` to `true` in `config.lua`
|
||||
- Add this to your `server.cfg`:
|
||||
|
||||
```
|
||||
start esx_mechanicjob
|
||||
```
|
||||
|
||||
# Legal
|
||||
### License
|
||||
esx_mechanicjob - mechanic job for ESX
|
||||
|
||||
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/.
|
||||
@@ -0,0 +1,999 @@
|
||||
local HasAlreadyEnteredMarker, LastZone = false, nil
|
||||
local CurrentAction, CurrentActionMsg, CurrentActionData = nil, '', {}
|
||||
local CurrentlyTowedVehicle, Blips, NPCOnJob, NPCTargetTowable, NPCTargetTowableZone = nil, {}, false, nil, nil
|
||||
local NPCHasSpawnedTowable, NPCLastCancel, NPCHasBeenNextToTowable, NPCTargetDeleterZone = false, GetGameTimer() - 5 * 60000, false, false
|
||||
local isDead, isBusy = false, false
|
||||
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
|
||||
|
||||
ESX.PlayerData = ESX.GetPlayerData()
|
||||
end)
|
||||
|
||||
function SelectRandomTowable()
|
||||
local index = GetRandomIntInRange(1, #Config.Towables)
|
||||
|
||||
for k,v in pairs(Config.Zones) do
|
||||
if v.Pos.x == Config.Towables[index].x and v.Pos.y == Config.Towables[index].y and v.Pos.z == Config.Towables[index].z then
|
||||
return k
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
function StartNPCJob()
|
||||
NPCOnJob = true
|
||||
|
||||
NPCTargetTowableZone = SelectRandomTowable()
|
||||
local zone = Config.Zones[NPCTargetTowableZone]
|
||||
|
||||
Blips['NPCTargetTowableZone'] = AddBlipForCoord(zone.Pos.x, zone.Pos.y, zone.Pos.z)
|
||||
SetBlipRoute(Blips['NPCTargetTowableZone'], true)
|
||||
|
||||
ESX.ShowNotification(_U('drive_to_indicated'))
|
||||
end
|
||||
|
||||
function StopNPCJob(cancel)
|
||||
if Blips['NPCTargetTowableZone'] then
|
||||
RemoveBlip(Blips['NPCTargetTowableZone'])
|
||||
Blips['NPCTargetTowableZone'] = nil
|
||||
end
|
||||
|
||||
if Blips['NPCDelivery'] then
|
||||
RemoveBlip(Blips['NPCDelivery'])
|
||||
Blips['NPCDelivery'] = nil
|
||||
end
|
||||
|
||||
Config.Zones.VehicleDelivery.Type = -1
|
||||
|
||||
NPCOnJob = false
|
||||
NPCTargetTowable = nil
|
||||
NPCTargetTowableZone = nil
|
||||
NPCHasSpawnedTowable = false
|
||||
NPCHasBeenNextToTowable = false
|
||||
|
||||
if cancel then
|
||||
ESX.ShowNotification(_U('mission_canceled'))
|
||||
else
|
||||
--TriggerServerEvent('esx_mechanicjob:onNPCJobCompleted')
|
||||
end
|
||||
end
|
||||
|
||||
function OpenMechanicActionsMenu()
|
||||
local elements = {
|
||||
{label = _U('vehicle_list'), value = 'vehicle_list'},
|
||||
{label = _U('work_wear'), value = 'cloakroom'},
|
||||
{label = _U('civ_wear'), value = 'cloakroom2'},
|
||||
{label = _U('deposit_stock'), value = 'put_stock'},
|
||||
{label = _U('withdraw_stock'), value = 'get_stock'}
|
||||
}
|
||||
|
||||
if Config.EnablePlayerManagement and ESX.PlayerData.job and ESX.PlayerData.job.grade_name == 'boss' then
|
||||
table.insert(elements, {label = _U('boss_actions'), value = 'boss_actions'})
|
||||
end
|
||||
|
||||
ESX.UI.Menu.CloseAll()
|
||||
|
||||
ESX.UI.Menu.Open('default', GetCurrentResourceName(), 'mechanic_actions', {
|
||||
title = _U('mechanic'),
|
||||
align = 'top-left',
|
||||
elements = elements
|
||||
}, function(data, menu)
|
||||
if data.current.value == 'vehicle_list' then
|
||||
if Config.EnableSocietyOwnedVehicles then
|
||||
|
||||
local elements = {}
|
||||
|
||||
ESX.TriggerServerCallback('esx_society:getVehiclesInGarage', function(vehicles)
|
||||
for i=1, #vehicles, 1 do
|
||||
table.insert(elements, {
|
||||
label = GetDisplayNameFromVehicleModel(vehicles[i].model) .. ' [' .. vehicles[i].plate .. ']',
|
||||
value = vehicles[i]
|
||||
})
|
||||
end
|
||||
|
||||
ESX.UI.Menu.Open('default', GetCurrentResourceName(), 'vehicle_spawner', {
|
||||
title = _U('service_vehicle'),
|
||||
align = 'top-left',
|
||||
elements = elements
|
||||
}, function(data, menu)
|
||||
menu.close()
|
||||
local vehicleProps = data.current.value
|
||||
|
||||
ESX.Game.SpawnVehicle(vehicleProps.model, Config.Zones.VehicleSpawnPoint.Pos, 270.0, function(vehicle)
|
||||
ESX.Game.SetVehicleProperties(vehicle, vehicleProps)
|
||||
local playerPed = PlayerPedId()
|
||||
TaskWarpPedIntoVehicle(playerPed, vehicle, -1)
|
||||
end)
|
||||
|
||||
TriggerServerEvent('esx_society:removeVehicleFromGarage', 'mechanic', vehicleProps)
|
||||
end, function(data, menu)
|
||||
menu.close()
|
||||
end)
|
||||
end, 'mechanic')
|
||||
|
||||
else
|
||||
|
||||
local elements = {
|
||||
{label = _U('flat_bed'), value = 'flatbed'},
|
||||
{label = _U('tow_truck'), value = 'towtruck2'}
|
||||
}
|
||||
|
||||
if Config.EnablePlayerManagement and ESX.PlayerData.job and (ESX.PlayerData.job.grade_name == 'boss' or ESX.PlayerData.job.grade_name == 'chief' or ESX.PlayerData.job.grade_name == 'experimente') then
|
||||
table.insert(elements, {label = 'SlamVan', value = 'slamvan3'})
|
||||
end
|
||||
|
||||
ESX.UI.Menu.CloseAll()
|
||||
|
||||
ESX.UI.Menu.Open('default', GetCurrentResourceName(), 'spawn_vehicle', {
|
||||
title = _U('service_vehicle'),
|
||||
align = 'top-left',
|
||||
elements = elements
|
||||
}, function(data, menu)
|
||||
if Config.MaxInService == -1 then
|
||||
ESX.Game.SpawnVehicle(data.current.value, Config.Zones.VehicleSpawnPoint.Pos, 90.0, function(vehicle)
|
||||
local playerPed = PlayerPedId()
|
||||
TaskWarpPedIntoVehicle(playerPed, vehicle, -1)
|
||||
end)
|
||||
else
|
||||
ESX.TriggerServerCallback('esx_service:enableService', function(canTakeService, maxInService, inServiceCount)
|
||||
if canTakeService then
|
||||
ESX.Game.SpawnVehicle(data.current.value, Config.Zones.VehicleSpawnPoint.Pos, 90.0, function(vehicle)
|
||||
local playerPed = PlayerPedId()
|
||||
TaskWarpPedIntoVehicle(playerPed, vehicle, -1)
|
||||
end)
|
||||
else
|
||||
ESX.ShowNotification(_U('service_full') .. inServiceCount .. '/' .. maxInService)
|
||||
end
|
||||
end, 'mechanic')
|
||||
end
|
||||
|
||||
menu.close()
|
||||
end, function(data, menu)
|
||||
menu.close()
|
||||
OpenMechanicActionsMenu()
|
||||
end)
|
||||
|
||||
end
|
||||
elseif data.current.value == 'cloakroom' then
|
||||
menu.close()
|
||||
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)
|
||||
elseif data.current.value == 'cloakroom2' then
|
||||
menu.close()
|
||||
ESX.TriggerServerCallback('esx_skin:getPlayerSkin', function(skin, jobSkin)
|
||||
TriggerEvent('skinchanger:loadSkin', skin)
|
||||
end)
|
||||
elseif data.current.value == 'put_stock' then
|
||||
OpenPutStocksMenu()
|
||||
elseif data.current.value == 'get_stock' then
|
||||
OpenGetStocksMenu()
|
||||
elseif data.current.value == 'boss_actions' then
|
||||
TriggerEvent('esx_society:openBossMenu', 'mechanic', function(data, menu)
|
||||
menu.close()
|
||||
end)
|
||||
end
|
||||
end, function(data, menu)
|
||||
menu.close()
|
||||
|
||||
CurrentAction = 'mechanic_actions_menu'
|
||||
CurrentActionMsg = _U('open_actions')
|
||||
CurrentActionData = {}
|
||||
end)
|
||||
end
|
||||
|
||||
function OpenMechanicHarvestMenu()
|
||||
if Config.EnablePlayerManagement and ESX.PlayerData.job and ESX.PlayerData.job.grade_name ~= 'recrue' then
|
||||
local elements = {
|
||||
{label = _U('gas_can'), value = 'gaz_bottle'},
|
||||
{label = _U('repair_tools'), value = 'fix_tool'},
|
||||
{label = _U('body_work_tools'), value = 'caro_tool'}
|
||||
}
|
||||
|
||||
ESX.UI.Menu.CloseAll()
|
||||
|
||||
ESX.UI.Menu.Open('default', GetCurrentResourceName(), 'mechanic_harvest', {
|
||||
title = _U('harvest'),
|
||||
align = 'top-left',
|
||||
elements = elements
|
||||
}, function(data, menu)
|
||||
menu.close()
|
||||
|
||||
if data.current.value == 'gaz_bottle' then
|
||||
TriggerServerEvent('esx_mechanicjob:startHarvest')
|
||||
elseif data.current.value == 'fix_tool' then
|
||||
TriggerServerEvent('esx_mechanicjob:startHarvest2')
|
||||
elseif data.current.value == 'caro_tool' then
|
||||
TriggerServerEvent('esx_mechanicjob:startHarvest3')
|
||||
end
|
||||
end, function(data, menu)
|
||||
menu.close()
|
||||
CurrentAction = 'mechanic_harvest_menu'
|
||||
CurrentActionMsg = _U('harvest_menu')
|
||||
CurrentActionData = {}
|
||||
end)
|
||||
else
|
||||
ESX.ShowNotification(_U('not_experienced_enough'))
|
||||
end
|
||||
end
|
||||
|
||||
function OpenMechanicCraftMenu()
|
||||
if Config.EnablePlayerManagement and ESX.PlayerData.job and ESX.PlayerData.job.grade_name ~= 'recrue' then
|
||||
local elements = {
|
||||
{label = _U('blowtorch'), value = 'blow_pipe'},
|
||||
{label = _U('repair_kit'), value = 'fix_kit'},
|
||||
{label = _U('body_kit'), value = 'caro_kit'}
|
||||
}
|
||||
|
||||
ESX.UI.Menu.CloseAll()
|
||||
|
||||
ESX.UI.Menu.Open('default', GetCurrentResourceName(), 'mechanic_craft', {
|
||||
title = _U('craft'),
|
||||
align = 'top-left',
|
||||
elements = elements
|
||||
}, function(data, menu)
|
||||
menu.close()
|
||||
|
||||
if data.current.value == 'blow_pipe' then
|
||||
TriggerServerEvent('esx_mechanicjob:startCraft')
|
||||
elseif data.current.value == 'fix_kit' then
|
||||
TriggerServerEvent('esx_mechanicjob:startCraft2')
|
||||
elseif data.current.value == 'caro_kit' then
|
||||
TriggerServerEvent('esx_mechanicjob:startCraft3')
|
||||
end
|
||||
end, function(data, menu)
|
||||
menu.close()
|
||||
|
||||
CurrentAction = 'mechanic_craft_menu'
|
||||
CurrentActionMsg = _U('craft_menu')
|
||||
CurrentActionData = {}
|
||||
end)
|
||||
else
|
||||
ESX.ShowNotification(_U('not_experienced_enough'))
|
||||
end
|
||||
end
|
||||
|
||||
function OpenMobileMechanicActionsMenu()
|
||||
ESX.UI.Menu.CloseAll()
|
||||
|
||||
ESX.UI.Menu.Open('default', GetCurrentResourceName(), 'mobile_mechanic_actions', {
|
||||
title = _U('mechanic'),
|
||||
align = 'top-left',
|
||||
elements = {
|
||||
{label = _U('billing'), value = 'billing'},
|
||||
{label = _U('hijack'), value = 'hijack_vehicle'},
|
||||
{label = _U('repair'), value = 'fix_vehicle'},
|
||||
{label = _U('clean'), value = 'clean_vehicle'},
|
||||
{label = _U('imp_veh'), value = 'del_vehicle'},
|
||||
{label = _U('flat_bed'), value = 'dep_vehicle'},
|
||||
{label = _U('place_objects'), value = 'object_spawner'}
|
||||
}}, function(data, menu)
|
||||
if isBusy then return end
|
||||
|
||||
if data.current.value == 'billing' then
|
||||
ESX.UI.Menu.Open('dialog', GetCurrentResourceName(), 'billing', {
|
||||
title = _U('invoice_amount')
|
||||
}, function(data, menu)
|
||||
local amount = tonumber(data.value)
|
||||
|
||||
if amount == nil or amount < 0 then
|
||||
ESX.ShowNotification(_U('amount_invalid'))
|
||||
else
|
||||
local closestPlayer, closestDistance = ESX.Game.GetClosestPlayer()
|
||||
if closestPlayer == -1 or closestDistance > 3.0 then
|
||||
ESX.ShowNotification(_U('no_players_nearby'))
|
||||
else
|
||||
menu.close()
|
||||
TriggerServerEvent('esx_billing:sendBill', GetPlayerServerId(closestPlayer), 'society_mechanic', _U('mechanic'), amount)
|
||||
end
|
||||
end
|
||||
end, function(data, menu)
|
||||
menu.close()
|
||||
end)
|
||||
elseif data.current.value == 'hijack_vehicle' then
|
||||
local playerPed = PlayerPedId()
|
||||
local vehicle = ESX.Game.GetVehicleInDirection()
|
||||
local coords = GetEntityCoords(playerPed)
|
||||
|
||||
if IsPedSittingInAnyVehicle(playerPed) then
|
||||
ESX.ShowNotification(_U('inside_vehicle'))
|
||||
return
|
||||
end
|
||||
|
||||
if DoesEntityExist(vehicle) then
|
||||
isBusy = true
|
||||
TaskStartScenarioInPlace(playerPed, 'WORLD_HUMAN_WELDING', 0, true)
|
||||
Citizen.CreateThread(function()
|
||||
Citizen.Wait(10000)
|
||||
|
||||
SetVehicleDoorsLocked(vehicle, 1)
|
||||
SetVehicleDoorsLockedForAllPlayers(vehicle, false)
|
||||
ClearPedTasksImmediately(playerPed)
|
||||
|
||||
ESX.ShowNotification(_U('vehicle_unlocked'))
|
||||
isBusy = false
|
||||
end)
|
||||
else
|
||||
ESX.ShowNotification(_U('no_vehicle_nearby'))
|
||||
end
|
||||
elseif data.current.value == 'fix_vehicle' then
|
||||
local playerPed = PlayerPedId()
|
||||
local vehicle = ESX.Game.GetVehicleInDirection()
|
||||
local coords = GetEntityCoords(playerPed)
|
||||
|
||||
if IsPedSittingInAnyVehicle(playerPed) then
|
||||
ESX.ShowNotification(_U('inside_vehicle'))
|
||||
return
|
||||
end
|
||||
|
||||
if DoesEntityExist(vehicle) then
|
||||
isBusy = true
|
||||
TaskStartScenarioInPlace(playerPed, 'PROP_HUMAN_BUM_BIN', 0, true)
|
||||
Citizen.CreateThread(function()
|
||||
Citizen.Wait(20000)
|
||||
|
||||
SetVehicleFixed(vehicle)
|
||||
SetVehicleDeformationFixed(vehicle)
|
||||
SetVehicleUndriveable(vehicle, false)
|
||||
SetVehicleEngineOn(vehicle, true, true)
|
||||
ClearPedTasksImmediately(playerPed)
|
||||
|
||||
ESX.ShowNotification(_U('vehicle_repaired'))
|
||||
isBusy = false
|
||||
end)
|
||||
else
|
||||
ESX.ShowNotification(_U('no_vehicle_nearby'))
|
||||
end
|
||||
elseif data.current.value == 'clean_vehicle' then
|
||||
local playerPed = PlayerPedId()
|
||||
local vehicle = ESX.Game.GetVehicleInDirection()
|
||||
local coords = GetEntityCoords(playerPed)
|
||||
|
||||
if IsPedSittingInAnyVehicle(playerPed) then
|
||||
ESX.ShowNotification(_U('inside_vehicle'))
|
||||
return
|
||||
end
|
||||
|
||||
if DoesEntityExist(vehicle) then
|
||||
isBusy = true
|
||||
TaskStartScenarioInPlace(playerPed, 'WORLD_HUMAN_MAID_CLEAN', 0, true)
|
||||
Citizen.CreateThread(function()
|
||||
Citizen.Wait(10000)
|
||||
|
||||
SetVehicleDirtLevel(vehicle, 0)
|
||||
ClearPedTasksImmediately(playerPed)
|
||||
|
||||
ESX.ShowNotification(_U('vehicle_cleaned'))
|
||||
isBusy = false
|
||||
end)
|
||||
else
|
||||
ESX.ShowNotification(_U('no_vehicle_nearby'))
|
||||
end
|
||||
elseif data.current.value == 'del_vehicle' then
|
||||
local playerPed = PlayerPedId()
|
||||
|
||||
if IsPedSittingInAnyVehicle(playerPed) then
|
||||
local vehicle = GetVehiclePedIsIn(playerPed, false)
|
||||
|
||||
if GetPedInVehicleSeat(vehicle, -1) == playerPed then
|
||||
ESX.ShowNotification(_U('vehicle_impounded'))
|
||||
ESX.Game.DeleteVehicle(vehicle)
|
||||
else
|
||||
ESX.ShowNotification(_U('must_seat_driver'))
|
||||
end
|
||||
else
|
||||
local vehicle = ESX.Game.GetVehicleInDirection()
|
||||
|
||||
if DoesEntityExist(vehicle) then
|
||||
ESX.ShowNotification(_U('vehicle_impounded'))
|
||||
ESX.Game.DeleteVehicle(vehicle)
|
||||
else
|
||||
ESX.ShowNotification(_U('must_near'))
|
||||
end
|
||||
end
|
||||
elseif data.current.value == 'dep_vehicle' then
|
||||
local playerPed = PlayerPedId()
|
||||
local vehicle = GetVehiclePedIsIn(playerPed, true)
|
||||
|
||||
local towmodel = GetHashKey('flatbed')
|
||||
local isVehicleTow = IsVehicleModel(vehicle, towmodel)
|
||||
|
||||
if isVehicleTow then
|
||||
local targetVehicle = ESX.Game.GetVehicleInDirection()
|
||||
|
||||
if CurrentlyTowedVehicle == nil then
|
||||
if targetVehicle ~= 0 then
|
||||
if not IsPedInAnyVehicle(playerPed, true) then
|
||||
if vehicle ~= targetVehicle then
|
||||
AttachEntityToEntity(targetVehicle, vehicle, 20, -0.5, -5.0, 1.0, 0.0, 0.0, 0.0, false, false, false, false, 20, true)
|
||||
CurrentlyTowedVehicle = targetVehicle
|
||||
ESX.ShowNotification(_U('vehicle_success_attached'))
|
||||
|
||||
if NPCOnJob then
|
||||
if NPCTargetTowable == targetVehicle then
|
||||
ESX.ShowNotification(_U('please_drop_off'))
|
||||
Config.Zones.VehicleDelivery.Type = 1
|
||||
|
||||
if Blips['NPCTargetTowableZone'] then
|
||||
RemoveBlip(Blips['NPCTargetTowableZone'])
|
||||
Blips['NPCTargetTowableZone'] = nil
|
||||
end
|
||||
|
||||
Blips['NPCDelivery'] = AddBlipForCoord(Config.Zones.VehicleDelivery.Pos.x, Config.Zones.VehicleDelivery.Pos.y, Config.Zones.VehicleDelivery.Pos.z)
|
||||
SetBlipRoute(Blips['NPCDelivery'], true)
|
||||
end
|
||||
end
|
||||
else
|
||||
ESX.ShowNotification(_U('cant_attach_own_tt'))
|
||||
end
|
||||
end
|
||||
else
|
||||
ESX.ShowNotification(_U('no_veh_att'))
|
||||
end
|
||||
else
|
||||
AttachEntityToEntity(CurrentlyTowedVehicle, vehicle, 20, -0.5, -12.0, 1.0, 0.0, 0.0, 0.0, false, false, false, false, 20, true)
|
||||
DetachEntity(CurrentlyTowedVehicle, true, true)
|
||||
|
||||
if NPCOnJob then
|
||||
if NPCTargetDeleterZone then
|
||||
|
||||
if CurrentlyTowedVehicle == NPCTargetTowable then
|
||||
ESX.Game.DeleteVehicle(NPCTargetTowable)
|
||||
TriggerServerEvent('esx_mechanicjob:onNPCJobMissionCompleted')
|
||||
StopNPCJob()
|
||||
NPCTargetDeleterZone = false
|
||||
else
|
||||
ESX.ShowNotification(_U('not_right_veh'))
|
||||
end
|
||||
|
||||
else
|
||||
ESX.ShowNotification(_U('not_right_place'))
|
||||
end
|
||||
end
|
||||
|
||||
CurrentlyTowedVehicle = nil
|
||||
ESX.ShowNotification(_U('veh_det_succ'))
|
||||
end
|
||||
else
|
||||
ESX.ShowNotification(_U('imp_flatbed'))
|
||||
end
|
||||
elseif data.current.value == 'object_spawner' then
|
||||
local playerPed = PlayerPedId()
|
||||
|
||||
if IsPedSittingInAnyVehicle(playerPed) then
|
||||
ESX.ShowNotification(_U('inside_vehicle'))
|
||||
return
|
||||
end
|
||||
|
||||
ESX.UI.Menu.Open('default', GetCurrentResourceName(), 'mobile_mechanic_actions_spawn', {
|
||||
title = _U('objects'),
|
||||
align = 'top-left',
|
||||
elements = {
|
||||
{label = _U('roadcone'), value = 'prop_roadcone02a'},
|
||||
{label = _U('toolbox'), value = 'prop_toolchest_01'}
|
||||
}}, function(data2, menu2)
|
||||
local model = data2.current.value
|
||||
local coords = GetEntityCoords(playerPed)
|
||||
local forward = GetEntityForwardVector(playerPed)
|
||||
local x, y, z = table.unpack(coords + forward * 1.0)
|
||||
|
||||
if model == 'prop_roadcone02a' then
|
||||
z = z - 2.0
|
||||
elseif model == 'prop_toolchest_01' then
|
||||
z = z - 2.0
|
||||
end
|
||||
|
||||
ESX.Game.SpawnObject(model, {x = x, y = y, z = z}, function(obj)
|
||||
SetEntityHeading(obj, GetEntityHeading(playerPed))
|
||||
PlaceObjectOnGroundProperly(obj)
|
||||
end)
|
||||
end, function(data2, menu2)
|
||||
menu2.close()
|
||||
end)
|
||||
end
|
||||
end, function(data, menu)
|
||||
menu.close()
|
||||
end)
|
||||
end
|
||||
|
||||
function OpenGetStocksMenu()
|
||||
ESX.TriggerServerCallback('esx_mechanicjob:getStockItems', function(items)
|
||||
local elements = {}
|
||||
|
||||
for i=1, #items, 1 do
|
||||
table.insert(elements, {
|
||||
label = 'x' .. items[i].count .. ' ' .. items[i].label,
|
||||
value = items[i].name
|
||||
})
|
||||
end
|
||||
|
||||
ESX.UI.Menu.Open('default', GetCurrentResourceName(), 'stocks_menu', {
|
||||
title = _U('mechanic_stock'),
|
||||
align = 'top-left',
|
||||
elements = elements
|
||||
}, function(data, menu)
|
||||
local itemName = data.current.value
|
||||
|
||||
ESX.UI.Menu.Open('dialog', GetCurrentResourceName(), 'stocks_menu_get_item_count', {
|
||||
title = _U('quantity')
|
||||
}, function(data2, menu2)
|
||||
local count = tonumber(data2.value)
|
||||
|
||||
if count == nil then
|
||||
ESX.ShowNotification(_U('invalid_quantity'))
|
||||
else
|
||||
menu2.close()
|
||||
menu.close()
|
||||
TriggerServerEvent('esx_mechanicjob:getStockItem', itemName, count)
|
||||
|
||||
Citizen.Wait(1000)
|
||||
OpenGetStocksMenu()
|
||||
end
|
||||
end, function(data2, menu2)
|
||||
menu2.close()
|
||||
end)
|
||||
end, function(data, menu)
|
||||
menu.close()
|
||||
end)
|
||||
end)
|
||||
end
|
||||
|
||||
function OpenPutStocksMenu()
|
||||
ESX.TriggerServerCallback('esx_mechanicjob:getPlayerInventory', function(inventory)
|
||||
local elements = {}
|
||||
|
||||
for i=1, #inventory.items, 1 do
|
||||
local item = inventory.items[i]
|
||||
|
||||
if item.count > 0 then
|
||||
table.insert(elements, {
|
||||
label = item.label .. ' x' .. item.count,
|
||||
type = 'item_standard',
|
||||
value = item.name
|
||||
})
|
||||
end
|
||||
end
|
||||
|
||||
ESX.UI.Menu.Open('default', GetCurrentResourceName(), 'stocks_menu', {
|
||||
title = _U('inventory'),
|
||||
align = 'top-left',
|
||||
elements = elements
|
||||
}, function(data, menu)
|
||||
local itemName = data.current.value
|
||||
|
||||
ESX.UI.Menu.Open('dialog', GetCurrentResourceName(), 'stocks_menu_put_item_count', {
|
||||
title = _U('quantity')
|
||||
}, function(data2, menu2)
|
||||
local count = tonumber(data2.value)
|
||||
|
||||
if count == nil then
|
||||
ESX.ShowNotification(_U('invalid_quantity'))
|
||||
else
|
||||
menu2.close()
|
||||
menu.close()
|
||||
TriggerServerEvent('esx_mechanicjob:putStockItems', itemName, count)
|
||||
|
||||
Citizen.Wait(1000)
|
||||
OpenPutStocksMenu()
|
||||
end
|
||||
end, function(data2, menu2)
|
||||
menu2.close()
|
||||
end)
|
||||
end, function(data, menu)
|
||||
menu.close()
|
||||
end)
|
||||
end)
|
||||
end
|
||||
|
||||
RegisterNetEvent('esx_mechanicjob:onHijack')
|
||||
AddEventHandler('esx_mechanicjob:onHijack', function()
|
||||
local playerPed = PlayerPedId()
|
||||
local coords = GetEntityCoords(playerPed)
|
||||
|
||||
if IsAnyVehicleNearPoint(coords.x, coords.y, coords.z, 5.0) then
|
||||
local vehicle
|
||||
|
||||
if IsPedInAnyVehicle(playerPed, false) then
|
||||
vehicle = GetVehiclePedIsIn(playerPed, false)
|
||||
else
|
||||
vehicle = GetClosestVehicle(coords.x, coords.y, coords.z, 5.0, 0, 71)
|
||||
end
|
||||
|
||||
local chance = math.random(100)
|
||||
local alarm = math.random(100)
|
||||
|
||||
if DoesEntityExist(vehicle) then
|
||||
if alarm <= 33 then
|
||||
SetVehicleAlarm(vehicle, true)
|
||||
StartVehicleAlarm(vehicle)
|
||||
end
|
||||
|
||||
TaskStartScenarioInPlace(playerPed, 'WORLD_HUMAN_WELDING', 0, true)
|
||||
|
||||
Citizen.CreateThread(function()
|
||||
Citizen.Wait(10000)
|
||||
if chance <= 66 then
|
||||
SetVehicleDoorsLocked(vehicle, 1)
|
||||
SetVehicleDoorsLockedForAllPlayers(vehicle, false)
|
||||
ClearPedTasksImmediately(playerPed)
|
||||
ESX.ShowNotification(_U('veh_unlocked'))
|
||||
else
|
||||
ESX.ShowNotification(_U('hijack_failed'))
|
||||
ClearPedTasksImmediately(playerPed)
|
||||
end
|
||||
end)
|
||||
end
|
||||
end
|
||||
end)
|
||||
|
||||
RegisterNetEvent('esx_mechanicjob:onCarokit')
|
||||
AddEventHandler('esx_mechanicjob:onCarokit', function()
|
||||
local playerPed = PlayerPedId()
|
||||
local coords = GetEntityCoords(playerPed)
|
||||
|
||||
if IsAnyVehicleNearPoint(coords.x, coords.y, coords.z, 5.0) then
|
||||
local vehicle
|
||||
|
||||
if IsPedInAnyVehicle(playerPed, false) then
|
||||
vehicle = GetVehiclePedIsIn(playerPed, false)
|
||||
else
|
||||
vehicle = GetClosestVehicle(coords.x, coords.y, coords.z, 5.0, 0, 71)
|
||||
end
|
||||
|
||||
if DoesEntityExist(vehicle) then
|
||||
TaskStartScenarioInPlace(playerPed, 'WORLD_HUMAN_HAMMERING', 0, true)
|
||||
Citizen.CreateThread(function()
|
||||
Citizen.Wait(10000)
|
||||
SetVehicleFixed(vehicle)
|
||||
SetVehicleDeformationFixed(vehicle)
|
||||
ClearPedTasksImmediately(playerPed)
|
||||
ESX.ShowNotification(_U('body_repaired'))
|
||||
end)
|
||||
end
|
||||
end
|
||||
end)
|
||||
|
||||
RegisterNetEvent('esx_mechanicjob:onFixkit')
|
||||
AddEventHandler('esx_mechanicjob:onFixkit', function()
|
||||
local playerPed = PlayerPedId()
|
||||
local coords = GetEntityCoords(playerPed)
|
||||
|
||||
if IsAnyVehicleNearPoint(coords.x, coords.y, coords.z, 5.0) then
|
||||
local vehicle
|
||||
|
||||
if IsPedInAnyVehicle(playerPed, false) then
|
||||
vehicle = GetVehiclePedIsIn(playerPed, false)
|
||||
else
|
||||
vehicle = GetClosestVehicle(coords.x, coords.y, coords.z, 5.0, 0, 71)
|
||||
end
|
||||
|
||||
if DoesEntityExist(vehicle) then
|
||||
TaskStartScenarioInPlace(playerPed, 'PROP_HUMAN_BUM_BIN', 0, true)
|
||||
Citizen.CreateThread(function()
|
||||
Citizen.Wait(20000)
|
||||
SetVehicleFixed(vehicle)
|
||||
SetVehicleDeformationFixed(vehicle)
|
||||
SetVehicleUndriveable(vehicle, false)
|
||||
ClearPedTasksImmediately(playerPed)
|
||||
ESX.ShowNotification(_U('veh_repaired'))
|
||||
end)
|
||||
end
|
||||
end
|
||||
end)
|
||||
|
||||
RegisterNetEvent('esx:playerLoaded')
|
||||
AddEventHandler('esx:playerLoaded', function(xPlayer)
|
||||
ESX.PlayerData = xPlayer
|
||||
end)
|
||||
|
||||
RegisterNetEvent('esx:setJob')
|
||||
AddEventHandler('esx:setJob', function(job)
|
||||
ESX.PlayerData.job = job
|
||||
end)
|
||||
|
||||
AddEventHandler('esx_mechanicjob:hasEnteredMarker', function(zone)
|
||||
if zone == 'NPCJobTargetTowable' then
|
||||
|
||||
elseif zone =='VehicleDelivery' then
|
||||
NPCTargetDeleterZone = true
|
||||
elseif zone == 'MechanicActions' then
|
||||
CurrentAction = 'mechanic_actions_menu'
|
||||
CurrentActionMsg = _U('open_actions')
|
||||
CurrentActionData = {}
|
||||
elseif zone == 'Garage' then
|
||||
CurrentAction = 'mechanic_harvest_menu'
|
||||
CurrentActionMsg = _U('harvest_menu')
|
||||
CurrentActionData = {}
|
||||
elseif zone == 'Craft' then
|
||||
CurrentAction = 'mechanic_craft_menu'
|
||||
CurrentActionMsg = _U('craft_menu')
|
||||
CurrentActionData = {}
|
||||
elseif zone == 'VehicleDeleter' then
|
||||
local playerPed = PlayerPedId()
|
||||
|
||||
if IsPedInAnyVehicle(playerPed, false) then
|
||||
local vehicle = GetVehiclePedIsIn(playerPed, false)
|
||||
|
||||
CurrentAction = 'delete_vehicle'
|
||||
CurrentActionMsg = _U('veh_stored')
|
||||
CurrentActionData = {vehicle = vehicle}
|
||||
end
|
||||
end
|
||||
end)
|
||||
|
||||
AddEventHandler('esx_mechanicjob:hasExitedMarker', function(zone)
|
||||
if zone =='VehicleDelivery' then
|
||||
NPCTargetDeleterZone = false
|
||||
elseif zone == 'Craft' then
|
||||
TriggerServerEvent('esx_mechanicjob:stopCraft')
|
||||
TriggerServerEvent('esx_mechanicjob:stopCraft2')
|
||||
TriggerServerEvent('esx_mechanicjob:stopCraft3')
|
||||
elseif zone == 'Garage' then
|
||||
TriggerServerEvent('esx_mechanicjob:stopHarvest')
|
||||
TriggerServerEvent('esx_mechanicjob:stopHarvest2')
|
||||
TriggerServerEvent('esx_mechanicjob:stopHarvest3')
|
||||
end
|
||||
|
||||
CurrentAction = nil
|
||||
ESX.UI.Menu.CloseAll()
|
||||
end)
|
||||
|
||||
AddEventHandler('esx_mechanicjob:hasEnteredEntityZone', function(entity)
|
||||
local playerPed = PlayerPedId()
|
||||
|
||||
if ESX.PlayerData.job and ESX.PlayerData.job.name == 'mechanic' and not IsPedInAnyVehicle(playerPed, false) then
|
||||
CurrentAction = 'remove_entity'
|
||||
CurrentActionMsg = _U('press_remove_obj')
|
||||
CurrentActionData = {entity = entity}
|
||||
end
|
||||
end)
|
||||
|
||||
AddEventHandler('esx_mechanicjob:hasExitedEntityZone', function(entity)
|
||||
if CurrentAction == 'remove_entity' then
|
||||
CurrentAction = nil
|
||||
end
|
||||
end)
|
||||
|
||||
RegisterNetEvent('esx_phone:loaded')
|
||||
AddEventHandler('esx_phone:loaded', function(phoneNumber, contacts)
|
||||
local specialContact = {
|
||||
name = _U('mechanic'),
|
||||
number = 'mechanic',
|
||||
base64Icon = 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAABHNCSVQICAgIfAhkiAAAAAlwSFlzAAALEwAACxMBAJqcGAAAA4BJREFUWIXtll9oU3cUx7/nJA02aSSlFouWMnXVB0ejU3wcRteHjv1puoc9rA978cUi2IqgRYWIZkMwrahUGfgkFMEZUdg6C+u21z1o3fbgqigVi7NzUtNcmsac40Npltz7S3rvUHzxQODec87vfD+/e0/O/QFv7Q0beV3QeXqmgV74/7H7fZJvuLwv8q/Xeux1gUrNBpN/nmtavdaqDqBK8VT2RDyV2VHmF1lvLERSBtCVynzYmcp+A9WqT9kcVKX4gHUehF0CEVY+1jYTTIwvt7YSIQnCTvsSUYz6gX5uDt7MP7KOKuQAgxmqQ+neUA+I1B1AiXi5X6ZAvKrabirmVYFwAMRT2RMg7F9SyKspvk73hfrtbkMPyIhA5FVqi0iBiEZMMQdAui/8E4GPv0oAJkpc6Q3+6goAAGpWBxNQmTLFmgL3jSJNgQdGv4pMts2EKm7ICJB/aG0xNdz74VEk13UYCx1/twPR8JjDT8wttyLZtkoAxSb8ZDCz0gdfKxWkFURf2v9qTYH7SK7rQIDn0P3nA0ehixvfwZwE0X9vBE/mW8piohhl1WH18UQBhYnre8N/L8b8xQvlx4ACbB4NnzaeRYDnKm0EALCMLXy84hwuTCXL/ExoB1E7qcK/8NCLIq5HcTT0i6u8TYbXUM1cAyyveVq8Xls7XhYrvY/4n3gC8C+dsmAzL1YUiyfWxvHzsy/w/dNd+KjhW2yvv/RfXr7x9QDcmo1he2RBiCCI1Q8jVj9szPNixVfgz+UiIGyDSrcoRu2J16d3I6e1VYvNSQjXpnucAcEPUOkGYZs/l4uUhowt/3kqu1UIv9n90fAY9jT3YBlbRvFTD4fw++wHjhiTRL/bG75t0jI2ITcHb5om4Xgmhv57xpGOg3d/NIqryOR7z+r+MC6qBJB/ZB2t9Om1D5lFm843G/3E3HI7Yh1xDRAfzLQr5EClBf/HBHK462TG2J0OABXeyWDPZ8VqxmBWYscpyghwtTd4EKpDTjCZdCNmzFM9k+4LHXIFACJN94Z6FiFEpKDQw9HndWsEuhnADVMhAUaYJBp9XrcGQKJ4qFE9k+6r2+MG3k5N8VQ22TVglbX2ZwOzX2VvNKr91zmY6S7N6zqZicVT2WNLyVSehESaBhxnOALfMeYX+K/S2yv7wmMAlvwyuR7FxQUyf0fgc/jztfkJr7XeGgC8BJJgWNV8ImT+AAAAAElFTkSuQmCC'
|
||||
}
|
||||
|
||||
TriggerEvent('esx_phone:addSpecialContact', specialContact.name, specialContact.number, specialContact.base64Icon)
|
||||
end)
|
||||
|
||||
-- Pop NPC mission vehicle when inside area
|
||||
Citizen.CreateThread(function()
|
||||
while true do
|
||||
Citizen.Wait(10)
|
||||
|
||||
if NPCTargetTowableZone and not NPCHasSpawnedTowable then
|
||||
local coords = GetEntityCoords(PlayerPedId())
|
||||
local zone = Config.Zones[NPCTargetTowableZone]
|
||||
|
||||
if GetDistanceBetweenCoords(coords, zone.Pos.x, zone.Pos.y, zone.Pos.z, true) < Config.NPCSpawnDistance then
|
||||
local model = Config.Vehicles[GetRandomIntInRange(1, #Config.Vehicles)]
|
||||
|
||||
ESX.Game.SpawnVehicle(model, zone.Pos, 0, function(vehicle)
|
||||
NPCTargetTowable = vehicle
|
||||
end)
|
||||
|
||||
NPCHasSpawnedTowable = true
|
||||
end
|
||||
end
|
||||
|
||||
if NPCTargetTowableZone and NPCHasSpawnedTowable and not NPCHasBeenNextToTowable then
|
||||
local coords = GetEntityCoords(PlayerPedId())
|
||||
local zone = Config.Zones[NPCTargetTowableZone]
|
||||
|
||||
if GetDistanceBetweenCoords(coords, zone.Pos.x, zone.Pos.y, zone.Pos.z, true) < Config.NPCNextToDistance then
|
||||
ESX.ShowNotification(_U('please_tow'))
|
||||
NPCHasBeenNextToTowable = true
|
||||
end
|
||||
end
|
||||
end
|
||||
end)
|
||||
|
||||
-- Create Blips
|
||||
Citizen.CreateThread(function()
|
||||
local blip = AddBlipForCoord(Config.Zones.MechanicActions.Pos.x, Config.Zones.MechanicActions.Pos.y, Config.Zones.MechanicActions.Pos.z)
|
||||
|
||||
SetBlipSprite (blip, 446)
|
||||
SetBlipDisplay(blip, 4)
|
||||
SetBlipScale (blip, 1.0)
|
||||
SetBlipColour (blip, 5)
|
||||
SetBlipAsShortRange(blip, true)
|
||||
|
||||
BeginTextCommandSetBlipName('STRING')
|
||||
AddTextComponentSubstringPlayerName(_U('mechanic'))
|
||||
EndTextCommandSetBlipName(blip)
|
||||
end)
|
||||
|
||||
-- Display markers
|
||||
Citizen.CreateThread(function()
|
||||
while true do
|
||||
Citizen.Wait(0)
|
||||
|
||||
if ESX.PlayerData.job and ESX.PlayerData.job.name == 'mechanic' then
|
||||
local coords, letSleep = GetEntityCoords(PlayerPedId()), true
|
||||
|
||||
for k,v in pairs(Config.Zones) do
|
||||
if v.Type ~= -1 and GetDistanceBetweenCoords(coords, v.Pos.x, v.Pos.y, v.Pos.z, true) < Config.DrawDistance then
|
||||
DrawMarker(v.Type, v.Pos.x, v.Pos.y, v.Pos.z, 0.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, nil, nil, false)
|
||||
letSleep = false
|
||||
end
|
||||
end
|
||||
|
||||
if letSleep then
|
||||
Citizen.Wait(500)
|
||||
end
|
||||
else
|
||||
Citizen.Wait(500)
|
||||
end
|
||||
end
|
||||
end)
|
||||
|
||||
-- Enter / Exit marker events
|
||||
Citizen.CreateThread(function()
|
||||
while true do
|
||||
Citizen.Wait(10)
|
||||
|
||||
if ESX.PlayerData.job and ESX.PlayerData.job.name == 'mechanic' then
|
||||
|
||||
local coords = GetEntityCoords(PlayerPedId())
|
||||
local isInMarker = false
|
||||
local currentZone = nil
|
||||
|
||||
for k,v in pairs(Config.Zones) do
|
||||
if(GetDistanceBetweenCoords(coords, v.Pos.x, v.Pos.y, v.Pos.z, true) < v.Size.x) then
|
||||
isInMarker = true
|
||||
currentZone = k
|
||||
end
|
||||
end
|
||||
|
||||
if (isInMarker and not HasAlreadyEnteredMarker) or (isInMarker and LastZone ~= currentZone) then
|
||||
HasAlreadyEnteredMarker = true
|
||||
LastZone = currentZone
|
||||
TriggerEvent('esx_mechanicjob:hasEnteredMarker', currentZone)
|
||||
end
|
||||
|
||||
if not isInMarker and HasAlreadyEnteredMarker then
|
||||
HasAlreadyEnteredMarker = false
|
||||
TriggerEvent('esx_mechanicjob:hasExitedMarker', LastZone)
|
||||
end
|
||||
|
||||
end
|
||||
end
|
||||
end)
|
||||
|
||||
Citizen.CreateThread(function()
|
||||
local trackedEntities = {
|
||||
'prop_roadcone02a',
|
||||
'prop_toolchest_01'
|
||||
}
|
||||
|
||||
while true do
|
||||
Citizen.Wait(500)
|
||||
|
||||
local playerPed = PlayerPedId()
|
||||
local coords = GetEntityCoords(playerPed)
|
||||
|
||||
local closestDistance = -1
|
||||
local closestEntity = nil
|
||||
|
||||
for i=1, #trackedEntities, 1 do
|
||||
local object = GetClosestObjectOfType(coords, 3.0, GetHashKey(trackedEntities[i]), false, false, false)
|
||||
|
||||
if DoesEntityExist(object) then
|
||||
local objCoords = GetEntityCoords(object)
|
||||
local distance = GetDistanceBetweenCoords(coords, objCoords, true)
|
||||
|
||||
if closestDistance == -1 or closestDistance > distance then
|
||||
closestDistance = distance
|
||||
closestEntity = object
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
if closestDistance ~= -1 and closestDistance <= 3.0 then
|
||||
if LastEntity ~= closestEntity then
|
||||
TriggerEvent('esx_mechanicjob:hasEnteredEntityZone', closestEntity)
|
||||
LastEntity = closestEntity
|
||||
end
|
||||
else
|
||||
if LastEntity then
|
||||
TriggerEvent('esx_mechanicjob:hasExitedEntityZone', LastEntity)
|
||||
LastEntity = nil
|
||||
end
|
||||
end
|
||||
end
|
||||
end)
|
||||
|
||||
-- Key Controls
|
||||
Citizen.CreateThread(function()
|
||||
while true do
|
||||
Citizen.Wait(0)
|
||||
|
||||
if CurrentAction then
|
||||
ESX.ShowHelpNotification(CurrentActionMsg)
|
||||
|
||||
if IsControlJustReleased(0, 38) and ESX.PlayerData.job and ESX.PlayerData.job.name == 'mechanic' then
|
||||
|
||||
if CurrentAction == 'mechanic_actions_menu' then
|
||||
OpenMechanicActionsMenu()
|
||||
elseif CurrentAction == 'mechanic_harvest_menu' then
|
||||
OpenMechanicHarvestMenu()
|
||||
elseif CurrentAction == 'mechanic_craft_menu' then
|
||||
OpenMechanicCraftMenu()
|
||||
elseif CurrentAction == 'delete_vehicle' then
|
||||
|
||||
if Config.EnableSocietyOwnedVehicles then
|
||||
|
||||
local vehicleProps = ESX.Game.GetVehicleProperties(CurrentActionData.vehicle)
|
||||
TriggerServerEvent('esx_society:putVehicleInGarage', 'mechanic', vehicleProps)
|
||||
|
||||
else
|
||||
|
||||
if
|
||||
GetEntityModel(vehicle) == GetHashKey('flatbed') or
|
||||
GetEntityModel(vehicle) == GetHashKey('towtruck2') or
|
||||
GetEntityModel(vehicle) == GetHashKey('slamvan3')
|
||||
then
|
||||
TriggerServerEvent('esx_service:disableService', 'mechanic')
|
||||
end
|
||||
|
||||
end
|
||||
|
||||
ESX.Game.DeleteVehicle(CurrentActionData.vehicle)
|
||||
|
||||
elseif CurrentAction == 'remove_entity' then
|
||||
DeleteEntity(CurrentActionData.entity)
|
||||
end
|
||||
|
||||
CurrentAction = nil
|
||||
end
|
||||
end
|
||||
|
||||
if IsControlJustReleased(0, 167) and not isDead and ESX.PlayerData.job and ESX.PlayerData.job.name == 'mechanic' then
|
||||
OpenMobileMechanicActionsMenu()
|
||||
end
|
||||
|
||||
if IsControlJustReleased(0, 178) and not isDead and ESX.PlayerData.job and ESX.PlayerData.job.name == 'mechanic' then
|
||||
if NPCOnJob then
|
||||
if GetGameTimer() - NPCLastCancel > 5 * 60000 then
|
||||
StopNPCJob(true)
|
||||
NPCLastCancel = GetGameTimer()
|
||||
else
|
||||
ESX.ShowNotification(_U('wait_five'))
|
||||
end
|
||||
else
|
||||
local playerPed = PlayerPedId()
|
||||
|
||||
if IsPedInAnyVehicle(playerPed, false) and IsVehicleModel(GetVehiclePedIsIn(playerPed, false), GetHashKey('flatbed')) then
|
||||
StartNPCJob()
|
||||
else
|
||||
ESX.ShowNotification(_U('must_in_flatbed'))
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
end
|
||||
end)
|
||||
|
||||
AddEventHandler('esx:onPlayerDeath', function(data) isDead = true end)
|
||||
AddEventHandler('esx:onPlayerSpawn', function(spawn) isDead = false end)
|
||||
@@ -0,0 +1,117 @@
|
||||
Config = {}
|
||||
Config.Locale = 'en'
|
||||
|
||||
Config.DrawDistance = 20.0 -- How close you need to be in order for the markers to be drawn (in GTA units).
|
||||
Config.MaxInService = -1
|
||||
Config.EnablePlayerManagement = true -- Enable society managing.
|
||||
Config.EnableSocietyOwnedVehicles = false
|
||||
|
||||
Config.NPCSpawnDistance = 500.0
|
||||
Config.NPCNextToDistance = 25.0
|
||||
Config.NPCJobEarnings = { min = 15, max = 40 }
|
||||
|
||||
Config.Vehicles = {
|
||||
'adder',
|
||||
'asea',
|
||||
'asterope',
|
||||
'banshee',
|
||||
'buffalo',
|
||||
'sultan',
|
||||
'baller3'
|
||||
}
|
||||
|
||||
Config.Zones = {
|
||||
|
||||
MechanicActions = {
|
||||
Pos = { x = -342.291, y = -133.370, z = 38.009 },
|
||||
Size = { x = 1.5, y = 1.5, z = 1.0 },
|
||||
Color = { r = 204, g = 204, b = 0 },
|
||||
Type = 1
|
||||
},
|
||||
|
||||
Garage = {
|
||||
Pos = { x = -97.5, y = 6496.1, z = 30.4 },
|
||||
Size = { x = 1.5, y = 1.5, z = 1.0 },
|
||||
Color = { r = 204, g = 204, b = 0 },
|
||||
Type = 1
|
||||
},
|
||||
|
||||
Craft = {
|
||||
Pos = { x = -323.140, y = -129.882, z = 37.999 },
|
||||
Size = { x = 1.5, y = 1.5, z = 1.0 },
|
||||
Color = { r = 204, g = 204, b = 0 },
|
||||
Type = 1
|
||||
},
|
||||
|
||||
VehicleSpawnPoint = {
|
||||
Pos = { x = -366.354, y = -110.766, z = 37.696 },
|
||||
Size = { x = 1.5, y = 1.5, z = 1.0 },
|
||||
Type = -1
|
||||
},
|
||||
|
||||
VehicleDeleter = {
|
||||
Pos = { x = -386.899, y = -105.675, z = 37.683 },
|
||||
Size = { x = 3.0, y = 3.0, z = 1.0 },
|
||||
Color = { r = 204, g = 204, b = 0 },
|
||||
Type = 1
|
||||
},
|
||||
|
||||
VehicleDelivery = {
|
||||
Pos = { x = -382.925, y = -133.748, z = 37.685 },
|
||||
Size = { x = 20.0, y = 20.0, z = 3.0 },
|
||||
Color = { r = 204, g = 204, b = 0 },
|
||||
Type = -1
|
||||
}
|
||||
}
|
||||
|
||||
Config.Towables = {
|
||||
vector3(-2480.9, -212.0, 17.4),
|
||||
vector3(-2723.4, 13.2, 15.1),
|
||||
vector3(-3169.6, 976.2, 15.0),
|
||||
vector3(-3139.8, 1078.7, 20.2),
|
||||
vector3(-1656.9, -246.2, 54.5),
|
||||
vector3(-1586.7, -647.6, 29.4),
|
||||
vector3(-1036.1, -491.1, 36.2),
|
||||
vector3(-1029.2, -475.5, 36.4),
|
||||
vector3(75.2, 164.9, 104.7),
|
||||
vector3(-534.6, -756.7, 31.6),
|
||||
vector3(487.2, -30.8, 88.9),
|
||||
vector3(-772.2, -1281.8, 4.6),
|
||||
vector3(-663.8, -1207.0, 10.2),
|
||||
vector3(719.1, -767.8, 24.9),
|
||||
vector3(-971.0, -2410.4, 13.3),
|
||||
vector3(-1067.5, -2571.4, 13.2),
|
||||
vector3(-619.2, -2207.3, 5.6),
|
||||
vector3(1192.1, -1336.9, 35.1),
|
||||
vector3(-432.8, -2166.1, 9.9),
|
||||
vector3(-451.8, -2269.3, 7.2),
|
||||
vector3(939.3, -2197.5, 30.5),
|
||||
vector3(-556.1, -1794.7, 22.0),
|
||||
vector3(591.7, -2628.2, 5.6),
|
||||
vector3(1654.5, -2535.8, 74.5),
|
||||
vector3(1642.6, -2413.3, 93.1),
|
||||
vector3(1371.3, -2549.5, 47.6),
|
||||
vector3(383.8, -1652.9, 37.3),
|
||||
vector3(27.2, -1030.9, 29.4),
|
||||
vector3(229.3, -365.9, 43.8),
|
||||
vector3(-85.8, -51.7, 61.1),
|
||||
vector3(-4.6, -670.3, 31.9),
|
||||
vector3(-111.9, 92.0, 71.1),
|
||||
vector3(-314.3, -698.2, 32.5),
|
||||
vector3(-366.9, 115.5, 65.6),
|
||||
vector3(-592.1, 138.2, 60.1),
|
||||
vector3(-1613.9, 18.8, 61.8),
|
||||
vector3(-1709.8, 55.1, 65.7),
|
||||
vector3(-521.9, -266.8, 34.9),
|
||||
vector3(-451.1, -333.5, 34.0),
|
||||
vector3(322.4, -1900.5, 25.8)
|
||||
}
|
||||
|
||||
for k,v in ipairs(Config.Towables) do
|
||||
Config.Zones['Towable' .. k] = {
|
||||
Pos = v,
|
||||
Size = { x = 1.5, y = 1.5, z = 1.0 },
|
||||
Color = { r = 204, g = 204, b = 0 },
|
||||
Type = -1
|
||||
}
|
||||
end
|
||||
@@ -0,0 +1,34 @@
|
||||
USE `es_extended`;
|
||||
|
||||
INSERT INTO `addon_account` (name, label, shared) VALUES
|
||||
('society_mechanic', 'Mécano', 1)
|
||||
;
|
||||
|
||||
INSERT INTO `addon_inventory` (name, label, shared) VALUES
|
||||
('society_mechanic', 'Mécano', 1)
|
||||
;
|
||||
|
||||
INSERT INTO `datastore` (name, label, shared) VALUES
|
||||
('society_mechanic', 'Mécano', 1)
|
||||
;
|
||||
|
||||
INSERT INTO `jobs` (name, label) VALUES
|
||||
('mechanic', 'Mécano')
|
||||
;
|
||||
|
||||
INSERT INTO `job_grades` (job_name, grade, name, label, salary, skin_male, skin_female) VALUES
|
||||
('mechanic',0,'recrue','Recrue',12,'{}','{}'),
|
||||
('mechanic',1,'novice','Novice',24,'{}','{}'),
|
||||
('mechanic',2,'experimente','Experimente',36,'{}','{}'),
|
||||
('mechanic',3,'chief',"Chef d\'équipe",48,'{}','{}'),
|
||||
('mechanic',4,'boss','Patron',0,'{}','{}')
|
||||
;
|
||||
|
||||
INSERT INTO `items` (name, label, weight) VALUES
|
||||
('gazbottle', 'bouteille de gaz', 2),
|
||||
('fixtool', 'outils réparation', 2),
|
||||
('carotool', 'outils carosserie', 2),
|
||||
('blowpipe', 'Chalumeaux', 2),
|
||||
('fixkit', 'Kit réparation', 3),
|
||||
('carokit', 'Kit carosserie', 3)
|
||||
;
|
||||
@@ -0,0 +1,41 @@
|
||||
fx_version 'adamant'
|
||||
|
||||
game 'gta5'
|
||||
|
||||
description 'ESX Mechanic Job'
|
||||
|
||||
version '1.1.0'
|
||||
|
||||
client_scripts {
|
||||
'@es_extended/locale.lua',
|
||||
'locales/en.lua',
|
||||
'locales/es.lua',
|
||||
'locales/fi.lua',
|
||||
'locales/fr.lua',
|
||||
'locales/br.lua',
|
||||
'locales/sv.lua',
|
||||
'locales/pl.lua',
|
||||
'locales/nl.lua',
|
||||
'config.lua',
|
||||
'client/main.lua'
|
||||
}
|
||||
|
||||
server_scripts {
|
||||
'@es_extended/locale.lua',
|
||||
'locales/en.lua',
|
||||
'locales/es.lua',
|
||||
'locales/fi.lua',
|
||||
'locales/fr.lua',
|
||||
'locales/br.lua',
|
||||
'locales/sv.lua',
|
||||
'locales/pl.lua',
|
||||
'locales/nl.lua',
|
||||
'config.lua',
|
||||
'server/main.lua'
|
||||
}
|
||||
|
||||
dependencies {
|
||||
'es_extended',
|
||||
'esx_society',
|
||||
'esx_billing'
|
||||
}
|
||||
@@ -0,0 +1,85 @@
|
||||
Locales['br'] = {
|
||||
['mechanic'] = 'Mecânico',
|
||||
['drive_to_indicated'] = '~y~Dirija~s~ para a localização indicada.',
|
||||
['mission_canceled'] = 'Missão ~r~cancelada~s~',
|
||||
['vehicle_list'] = 'Lista de veículos',
|
||||
['work_wear'] = 'Vestuário de trabalho',
|
||||
['civ_wear'] = 'Roupas normal',
|
||||
['deposit_stock'] = 'Depósito de estoque',
|
||||
['withdraw_stock'] = 'Retirar do estoque',
|
||||
['boss_actions'] = 'Administração',
|
||||
['service_vehicle'] = 'Veículo de serviço',
|
||||
['flat_bed'] = 'Reboque Pranha',
|
||||
['tow_truck'] = 'Reboque Guincho',
|
||||
['service_full'] = 'Serviço cheio: ',
|
||||
['open_actions'] = 'Aperte ~INPUT_CONTEXT~ para acessar menu.',
|
||||
['harvest'] = 'Processando',
|
||||
['harvest_menu'] = 'Aperte ~INPUT_CONTEXT~ para acessar o menu de processamento.',
|
||||
['not_experienced_enough'] = 'Você não é ~r~experiente o suficiente~s~ para executar está ação.',
|
||||
['gas_can'] = 'Lata de gás',
|
||||
['repair_tools'] = 'Ferramentas de reparo',
|
||||
['body_work_tools'] = 'Ferramentas de carroçaria',
|
||||
['blowtorch'] = 'Maçarico',
|
||||
['repair_kit'] = 'Kit de reparação',
|
||||
['body_kit'] = 'Kit de corpo',
|
||||
['craft'] = 'Construir',
|
||||
['craft_menu'] = 'Aperte ~INPUT_CONTEXT~ para acessar menu de criar feramentas.',
|
||||
['billing'] = 'Faturamento',
|
||||
['hijack'] = 'Sequestro',
|
||||
['repair'] = 'Reparar',
|
||||
['clean'] = 'Limpar',
|
||||
['imp_veh'] = 'Veículo rebocado',
|
||||
['place_objects'] = 'Objetos de trabalho',
|
||||
['invoice_amount'] = 'Valor da fatura',
|
||||
['amount_invalid'] = 'Valor inválido',
|
||||
['no_players_nearby'] = 'Sem jogadores nas proximidades',
|
||||
['no_vehicle_nearby'] = 'there is no nearby vehicle',
|
||||
['inside_vehicle'] = 'you can\'t do this from inside the vehicle!',
|
||||
['vehicle_unlocked'] = 'Veículo ~g~Destrancado',
|
||||
['vehicle_repaired'] = 'Veículo ~g~Reparado',
|
||||
['vehicle_cleaned'] = 'Veículo ~g~Limpo',
|
||||
['vehicle_impounded'] = 'Veículo ~r~removido',
|
||||
['must_seat_driver'] = 'Você deve estar sentado ~r~no banco do motorista!',
|
||||
['must_near'] = 'Você deve estar perto de um ~r~veículo~s~ para rebocalo.',
|
||||
['vehicle_success_attached'] = 'Veículo foi ~b~rebocado~s~ com sucesso!.',
|
||||
['please_drop_off'] = 'Por favor, deixe o veículo na oficina mecânica',
|
||||
['cant_attach_own_tt'] = '~r~Você não pode~s~ rebocar seu próprio veículo!',
|
||||
['no_veh_att'] = 'Não há ~r~veículo~s~ para ser rebocado!',
|
||||
['not_right_veh'] = 'Este não é o veículo certo',
|
||||
['veh_det_succ'] = 'Veículo foi ~b~entregue~s~ com sucesso...',
|
||||
['imp_flatbed'] = '~r~Ação impossível!~s~ você precisa de um ~b~reboque de prancha~s~ para isso.',
|
||||
['objects'] = 'Objetos',
|
||||
['roadcone'] = 'Cone',
|
||||
['toolbox'] = 'Caixa de ferramentas',
|
||||
['mechanic_stock'] = 'Estoque do mecânico',
|
||||
['quantity'] = 'Quantidade',
|
||||
['invalid_quantity'] = 'Quantidade inválida',
|
||||
['inventory'] = 'Inventário',
|
||||
['veh_unlocked'] = '~g~Veículo destrancado',
|
||||
['hijack_failed'] = '~r~Destrava falhou',
|
||||
['body_repaired'] = '~g~Carro reparado',
|
||||
['veh_repaired'] = '~g~Veículo reparado',
|
||||
['veh_stored'] = 'Aperte ~INPUT_CONTEXT~ para armazenar o veículo.',
|
||||
['press_remove_obj'] = 'Aperte ~INPUT_CONTEXT~ para remover o objeto',
|
||||
['please_tow'] = 'Por favor ~y~reboque~s~ este veículo!',
|
||||
['wait_five'] = 'Você deve ~r~aguardar~s~ 5 minutos',
|
||||
['must_in_flatbed'] = 'Você deve estar em um caminhão de mecânico para iniciar a missão',
|
||||
['mechanic_customer'] = 'Cliente mecânico',
|
||||
['you_do_not_room'] = '~r~Você não tem mais espaço',
|
||||
['recovery_gas_can'] = '~b~Lata de gâs~s~ fabricado...',
|
||||
['recovery_repair_tools'] = '~b~Ferramentas de reparo~s~ fabricado...',
|
||||
['recovery_body_tools'] = '~b~Ferramentas de capo~s~ fabricado...',
|
||||
['not_enough_gas_can'] = 'Você não tem ~r~lata de gás ~s~ o suficiente.',
|
||||
['assembling_blowtorch'] = 'Montagem ~b~Maçarico~s~...',
|
||||
['not_enough_repair_tools'] = 'Você não tem ~r~ferramentas de reparo~s~ o suficiente.',
|
||||
['assembling_repair_kit'] = 'Fabricando ~b~Kit de reparação~s~...',
|
||||
['not_enough_body_tools'] = 'Você não tem ~r~ferramentas corporais~s~ o suficiente.',
|
||||
['assembling_body_kit'] = 'Fabricando ~b~Kit de corpo~s~...',
|
||||
['your_comp_earned'] = 'Sua empresa ~g~recebeu~s~ ~g~$',
|
||||
['you_used_blowtorch'] = 'Você usou um ~b~maçarico',
|
||||
['you_used_repair_kit'] = 'Você usou um ~b~Kit de reparação',
|
||||
['you_used_body_kit'] = 'Você usou um ~b~Kit de corpo',
|
||||
['have_withdrawn'] = 'você retirou ~y~x%s~s~ ~b~%s~s~',
|
||||
['have_deposited'] = 'você depositou ~y~x%s~s~ ~b~%s~s~',
|
||||
['player_cannot_hold'] = 'you do ~r~not~s~ have enough ~y~free space~s~ in your inventory!',
|
||||
}
|
||||
@@ -0,0 +1,85 @@
|
||||
Locales['en'] = {
|
||||
['mechanic'] = 'mechanic',
|
||||
['drive_to_indicated'] = '~y~Drive~s~ to the indicated location.',
|
||||
['mission_canceled'] = 'Mission ~r~canceled~s~',
|
||||
['vehicle_list'] = 'vehicle List',
|
||||
['work_wear'] = 'workwear',
|
||||
['civ_wear'] = 'civilian clothes',
|
||||
['deposit_stock'] = 'deposit Stock',
|
||||
['withdraw_stock'] = 'withdraw Stock',
|
||||
['boss_actions'] = 'boss Actions',
|
||||
['service_vehicle'] = 'service Vehicle',
|
||||
['flat_bed'] = 'flatbed',
|
||||
['tow_truck'] = 'tow Truck',
|
||||
['service_full'] = 'service full: ',
|
||||
['open_actions'] = 'Press ~INPUT_CONTEXT~ to access the menu.',
|
||||
['harvest'] = 'harvest',
|
||||
['harvest_menu'] = 'press ~INPUT_CONTEXT~ to access the harvest menu.',
|
||||
['not_experienced_enough'] = 'you are not ~r~experienced enough~s~ to perform this action.',
|
||||
['gas_can'] = 'gas Can',
|
||||
['repair_tools'] = 'repair Tools',
|
||||
['body_work_tools'] = 'bodywork Tools',
|
||||
['blowtorch'] = 'blowtorch',
|
||||
['repair_kit'] = 'repair Kit',
|
||||
['body_kit'] = 'body Kit',
|
||||
['craft'] = 'craft',
|
||||
['craft_menu'] = 'press ~INPUT_CONTEXT~ to access the crafting menu.',
|
||||
['billing'] = 'billing',
|
||||
['hijack'] = 'hijack',
|
||||
['repair'] = 'repair',
|
||||
['clean'] = 'clean',
|
||||
['imp_veh'] = 'impound',
|
||||
['place_objects'] = 'place Objects',
|
||||
['invoice_amount'] = 'invoice Amount',
|
||||
['amount_invalid'] = 'invalid amount',
|
||||
['no_players_nearby'] = 'there is no nearby player',
|
||||
['no_vehicle_nearby'] = 'there is no nearby vehicle',
|
||||
['inside_vehicle'] = 'you can\'t do this from inside the vehicle!',
|
||||
['vehicle_unlocked'] = 'the vehicle has been ~g~unlocked',
|
||||
['vehicle_repaired'] = 'the vehicle has been ~g~repaired',
|
||||
['vehicle_cleaned'] = 'the vehicle has been ~g~cleaned',
|
||||
['vehicle_impounded'] = 'the vehicle has been ~r~impounded',
|
||||
['must_seat_driver'] = 'you must be in the driver seat!',
|
||||
['must_near'] = 'you must be ~r~near a vehicle~s~ to impound it.',
|
||||
['vehicle_success_attached'] = 'vehicle successfully ~b~attached~s~',
|
||||
['please_drop_off'] = 'please drop off the vehicle at the garage',
|
||||
['cant_attach_own_tt'] = '~r~you can\'t~s~ attach own tow truck',
|
||||
['no_veh_att'] = 'there is no ~r~vehicle~s~ to be attached',
|
||||
['not_right_veh'] = 'this is not the right vehicle',
|
||||
['veh_det_succ'] = 'vehicle successfully ~b~dettached~s~!',
|
||||
['imp_flatbed'] = '~r~Action impossible!~s~ You need a ~b~Flatbed~s~ to load a vehicle',
|
||||
['objects'] = 'objects',
|
||||
['roadcone'] = 'roadcone',
|
||||
['toolbox'] = 'toolbox',
|
||||
['mechanic_stock'] = 'mechanic Stock',
|
||||
['quantity'] = 'quantity',
|
||||
['invalid_quantity'] = 'invalid quantity',
|
||||
['inventory'] = 'inventory',
|
||||
['veh_unlocked'] = '~g~Vehicle Unlocked',
|
||||
['hijack_failed'] = '~r~Hijack Failed',
|
||||
['body_repaired'] = '~g~Body repaired',
|
||||
['veh_repaired'] = '~g~Vehicle Repaired',
|
||||
['veh_stored'] = 'press ~INPUT_CONTEXT~ to store the vehicle.',
|
||||
['press_remove_obj'] = 'press ~INPUT_CONTEXT~ to remove the object',
|
||||
['please_tow'] = 'please ~y~tow~s~ the vehicle',
|
||||
['wait_five'] = 'you must ~r~wait~s~ 5 mintes',
|
||||
['must_in_flatbed'] = 'you must be in a flatbed to being the mission',
|
||||
['mechanic_customer'] = 'mechanic Customer',
|
||||
['you_do_not_room'] = '~r~You do not have more room',
|
||||
['recovery_gas_can'] = '~b~Gas Can~s~ Retrieval...',
|
||||
['recovery_repair_tools'] = '~b~Repair Tools~s~ Retrieval...',
|
||||
['recovery_body_tools'] = '~b~Body Tools~s~ Retrieval...',
|
||||
['not_enough_gas_can'] = 'You do not ~r~have enough~s~ gas cans.',
|
||||
['assembling_blowtorch'] = 'Assembling ~b~Blowtorch~s~...',
|
||||
['not_enough_repair_tools'] = 'You do not ~r~have enough~s~ repair tools.',
|
||||
['assembling_repair_kit'] = 'Assembling ~b~Repair Kit~s~...',
|
||||
['not_enough_body_tools'] = 'You do not ~r~have enough~s~ body tools.',
|
||||
['assembling_body_kit'] = 'Assembling ~b~Body Kit~s~...',
|
||||
['your_comp_earned'] = 'your company has ~g~earned~s~ ~g~$',
|
||||
['you_used_blowtorch'] = 'you used a ~b~blowtorch',
|
||||
['you_used_repair_kit'] = 'you used a ~b~Repair Kit',
|
||||
['you_used_body_kit'] = 'you used a ~b~Body Kit',
|
||||
['have_withdrawn'] = 'you have withdrawn ~y~x%s~s~ ~b~%s~s~',
|
||||
['have_deposited'] = 'you have deposited ~y~x%s~s~ ~b~%s~s~',
|
||||
['player_cannot_hold'] = 'you do ~r~not~s~ have enough ~y~free space~s~ in your inventory!',
|
||||
}
|
||||
@@ -0,0 +1,87 @@
|
||||
-- Traducción by: https://github.com/ItsManueh
|
||||
|
||||
Locales['es'] = {
|
||||
['mechanic'] = 'Mecánico',
|
||||
['drive_to_indicated'] = '~y~Conduce~s~ a la ubicación indicada.',
|
||||
['mission_canceled'] = 'Misión ~r~cancelada~s~',
|
||||
['vehicle_list'] = 'Lista de vehículos',
|
||||
['work_wear'] = 'Ropa de trabajo',
|
||||
['civ_wear'] = 'Ropa de civil',
|
||||
['deposit_stock'] = 'Depositar stock',
|
||||
['withdraw_stock'] = 'Retirar stock',
|
||||
['boss_actions'] = 'Acciones del jefe',
|
||||
['service_vehicle'] = 'Vehículo de servicio',
|
||||
['flat_bed'] = 'Cama plana',
|
||||
['tow_truck'] = 'Camión de remolque',
|
||||
['service_full'] = 'Servicio completo: ',
|
||||
['open_actions'] = 'Presiona ~INPUT_CONTEXT~ para acceder al menú.',
|
||||
['harvest'] = 'Cosecha',
|
||||
['harvest_menu'] = 'Presiona ~INPUT_CONTEXT~ para acceder al menú de cosecha.',
|
||||
['not_experienced_enough'] = 'Usted no ~r~está lo suficientemente experimentado~s~ para realizar esta acción.',
|
||||
['gas_can'] = 'Lata de gas',
|
||||
['repair_tools'] = 'Herramientas para reparar',
|
||||
['body_work_tools'] = 'Herramientas de carrocería',
|
||||
['blowtorch'] = 'Soplete',
|
||||
['repair_kit'] = 'kit de reparación',
|
||||
['body_kit'] = 'kit de carrocería',
|
||||
['craft'] = 'Craftear',
|
||||
['craft_menu'] = 'Presiona ~INPUT_CONTEXT~ para acceder al menú de crafteo.',
|
||||
['billing'] = 'Facturación',
|
||||
['hijack'] = 'Secuestrar',
|
||||
['repair'] = 'Reparar',
|
||||
['clean'] = 'Limpiar',
|
||||
['imp_veh'] = 'Confiscar',
|
||||
['place_objects'] = 'Colocar objetos',
|
||||
['invoice_amount'] = 'Cantidad de factura',
|
||||
['amount_invalid'] = 'Cantidad Inválida',
|
||||
['no_players_nearby'] = 'No hay un jugador/a cercano',
|
||||
['no_vehicle_nearby'] = 'No hay ningún vehículo cercano',
|
||||
['inside_vehicle'] = '¡No puedes hacer esto desde el interior del vehículo!',
|
||||
['vehicle_unlocked'] = 'El vehículo ha sido ~g~desbloqueado',
|
||||
['vehicle_repaired'] = 'El vehículo ha sido ~g~reparado',
|
||||
['vehicle_cleaned'] = 'El vehículo ha sido ~g~limpiado',
|
||||
['vehicle_impounded'] = 'El vehículo ha sido ~r~incautado',
|
||||
['must_seat_driver'] = '¡Debes estar en el asiento del conductor!',
|
||||
['must_near'] = 'Usted debe estar ~r~cerca de un vehículo~s~ incautarlo.',
|
||||
['vehicle_success_attached'] = 'Vehículo con éxito ~b~adjuntado~s~',
|
||||
['please_drop_off'] = 'Por favor, deje el vehículo en el garaje',
|
||||
['cant_attach_own_tt'] = '~r~No puedes~s~ adjuntar su propia grúa',
|
||||
['no_veh_att'] = 'No hay ~r~vehículo~s~ que se adjunte',
|
||||
['not_right_veh'] = 'Este no es el vehículo correcto',
|
||||
['veh_det_succ'] = 'Vehículo con éxito ~b~separado~s~!',
|
||||
['imp_flatbed'] = '~r~¡Acción imposible!~s~ Necesitas una ~b~Cama plana~s~ para cargar un vehículo',
|
||||
['objects'] = 'Objetos',
|
||||
['roadcone'] = 'Cono',
|
||||
['toolbox'] = 'Caja de herramientas',
|
||||
['mechanic_stock'] = 'Stock mecánico',
|
||||
['quantity'] = 'Cantidad',
|
||||
['invalid_quantity'] = 'Cantidad inválida',
|
||||
['inventory'] = 'Inventario',
|
||||
['veh_unlocked'] = '~g~Vehículo desbloqueado',
|
||||
['hijack_failed'] = '~r~Secuestro fallido',
|
||||
['body_repaired'] = '~g~Carrocería reparado',
|
||||
['veh_repaired'] = '~g~Vehículo reparado',
|
||||
['veh_stored'] = 'Presiona ~INPUT_CONTEXT~ para almacenar el vehículo.',
|
||||
['press_remove_obj'] = 'Presiona ~INPUT_CONTEXT~ para quitar el objeto',
|
||||
['please_tow'] = 'Por favor ~y~remolca~s~ el vehículo',
|
||||
['wait_five'] = 'Debes ~r~esperar~s~ 5 minutos',
|
||||
['must_in_flatbed'] = 'Debes estar en una plataforma para ser la misión',
|
||||
['mechanic_customer'] = 'Cliente mecánico',
|
||||
['you_do_not_room'] = '~r~No tienes mas espacio',
|
||||
['recovery_gas_can'] = '~b~Lata de gas~s~ Recuperando...',
|
||||
['recovery_repair_tools'] = '~b~Herramientas para reparar~s~ Recuperando...',
|
||||
['recovery_body_tools'] = '~b~Herramientas de carrocería~s~ Recuperando...',
|
||||
['not_enough_gas_can'] = 'No ~r~tienes suficiente~s~ latas de gas.',
|
||||
['assembling_blowtorch'] = 'Montando ~b~Soplete~s~...',
|
||||
['not_enough_repair_tools'] = 'No ~r~tienes suficiente~s~ herramientas para reparar.',
|
||||
['assembling_repair_kit'] = 'Montando ~b~Kit de reparación~s~...',
|
||||
['not_enough_body_tools'] = 'No ~r~tienes suficiente~s~ herramientas de carrocería.',
|
||||
['assembling_body_kit'] = 'Montando ~b~Kit de carrocería~s~...',
|
||||
['your_comp_earned'] = 'Tu empresa ha ~g~ganado~s~ ~g~$',
|
||||
['you_used_blowtorch'] = 'Usaste un ~b~soplete',
|
||||
['you_used_repair_kit'] = 'Usaste un ~b~Kit de reparación',
|
||||
['you_used_body_kit'] = 'Usaste un ~b~Kit de carrocería',
|
||||
['have_withdrawn'] = 'Has retirado ~y~x%s~s~ ~b~%s~s~',
|
||||
['have_deposited'] = 'Has depositado ~y~x%s~s~ ~b~%s~s~',
|
||||
['player_cannot_hold'] = 'Tu ~r~no~s~ tienes suficiente ~y~espacio suficiente~s~ en tu inventario!',
|
||||
}
|
||||
@@ -0,0 +1,85 @@
|
||||
Locales['fi'] = {
|
||||
['mechanic'] = 'mekaanikko',
|
||||
['drive_to_indicated'] = '~y~Aja~s~ merkattuun pisteeseen.',
|
||||
['mission_canceled'] = 'tehtävä ~r~peruutettu~s~',
|
||||
['vehicle_list'] = 'ajoneuvo lista',
|
||||
['work_wear'] = 'työvaatteet',
|
||||
['civ_wear'] = 'siviilivaatteet',
|
||||
['deposit_stock'] = 'talleta varastoon',
|
||||
['withdraw_stock'] = 'ota varastosta',
|
||||
['boss_actions'] = 'pomo toiminnot',
|
||||
['service_vehicle'] = 'huoltoajoneuvo',
|
||||
['flat_bed'] = 'flatbed',
|
||||
['tow_truck'] = 'hinausajoneuvo',
|
||||
['service_full'] = 'työntekijöitä tarpeeksi: ',
|
||||
['open_actions'] = 'paina ~INPUT_CONTEXT~ avataksesi menun.',
|
||||
['harvest'] = 'kerää',
|
||||
['harvest_menu'] = 'paina ~INPUT_CONTEXT~ avataksesi keräys menun.',
|
||||
['not_experienced_enough'] = 'et ole ~r~tarpeeksi koulutettu~s~ että voit tehdä tätä.',
|
||||
['gas_can'] = 'kaasupullo',
|
||||
['repair_tools'] = 'korjaustyökalut',
|
||||
['body_work_tools'] = 'korin korjaustyökalut',
|
||||
['blowtorch'] = 'polttoleikkuri',
|
||||
['repair_kit'] = 'korjauskitti',
|
||||
['body_kit'] = 'korikitti',
|
||||
['craft'] = 'valmista',
|
||||
['craft_menu'] = 'paina ~INPUT_CONTEXT~ avataksesi valmistus menu',
|
||||
['billing'] = 'laskutus',
|
||||
['hijack'] = 'avaa lukot',
|
||||
['repair'] = 'korjaa',
|
||||
['clean'] = 'pese',
|
||||
['imp_veh'] = 'takavarikoi',
|
||||
['place_objects'] = 'aseta objekteja',
|
||||
['invoice_amount'] = 'laskun summa',
|
||||
['amount_invalid'] = 'virheellinen summa',
|
||||
['no_players_nearby'] = 'ei pelaajia lähettyvillä',
|
||||
['no_vehicle_nearby'] = 'there is no nearby vehicle',
|
||||
['inside_vehicle'] = 'you can\'t do this from inside the vehicle!',
|
||||
['vehicle_unlocked'] = 'ajoneuvo ~g~Avattu',
|
||||
['vehicle_repaired'] = 'ajoneuvo ~g~Korjattu',
|
||||
['vehicle_cleaned'] = 'ajoneuvo ~g~pesty',
|
||||
['vehicle_impounded'] = 'ajoneuvo ~r~Takavarikoitu',
|
||||
['must_seat_driver'] = 'sinun pitää olla ~r~kuskin paikalla',
|
||||
['must_near'] = 'sinun pitää olla ~r~ajoneuvon lähellä~s~ että voit takavarikoida.',
|
||||
['vehicle_success_attached'] = 'ajoneuvo onnistuneesti ~b~kytketty~s~!.',
|
||||
['please_drop_off'] = 'vie ajoneuvo korjauspajan pihalle, kiitos.',
|
||||
['cant_attach_own_tt'] = '~r~Et voi~s~ kytkeä omaa hinausautoa',
|
||||
['no_veh_att'] = 'täällä ei ole ~r~ajoneuvoa~s~ jota kytkeä',
|
||||
['not_right_veh'] = 'tämä ei ole oikea ajoneuvo',
|
||||
['veh_det_succ'] = 'ajoneuvo onnistuunesti ~b~irroitettu~s~!',
|
||||
['imp_flatbed'] = '~r~Toiminto mahdoton!~s~ Sinulla pitää olla ~b~Flatbed~s~ tähän.',
|
||||
['objects'] = 'objektit',
|
||||
['roadcone'] = 'kartio',
|
||||
['toolbox'] = 'työkalupakki',
|
||||
['mechanic_stock'] = 'mekaanikon varasto',
|
||||
['quantity'] = 'määrä',
|
||||
['invalid_quantity'] = 'virheellinen summa',
|
||||
['inventory'] = 'reppu',
|
||||
['veh_unlocked'] = '~g~Ajoneuvo avattu',
|
||||
['hijack_failed'] = '~r~Tiirikointi epäonnistu',
|
||||
['body_repaired'] = '~g~Kori korjattu',
|
||||
['veh_repaired'] = '~g~Ajoneuvo korjattu',
|
||||
['veh_stored'] = 'paina ~INPUT_CONTEXT~ laittaaksesi auto talliin.',
|
||||
['press_remove_obj'] = 'paina ~INPUT_CONTEXT~ poistaaksesi objekti',
|
||||
['please_tow'] = 'voisitko ~y~hinata~s~ ajoneuvon, kiitos',
|
||||
['wait_five'] = 'sinun pitää ~r~odottaa~s~ 5 minuuttia',
|
||||
['must_in_flatbed'] = 'sinun pitää olla flatbedin kyydissä aloitaaksesi.',
|
||||
['mechanic_customer'] = 'mekaanikon Asiakas',
|
||||
['you_do_not_room'] = '~r~Sinulla ei ole enempää tilaa',
|
||||
['recovery_gas_can'] = '~b~Kaasupullon~s~ täyttö menossa...',
|
||||
['recovery_repair_tools'] = '~b~Korjaustyökalujen~s~ kerääminen menossa...',
|
||||
['recovery_body_tools'] = '~b~Korin työkalujen~s~ kerääminen menossa...',
|
||||
['not_enough_gas_can'] = 'sinulla ~r~ei ole tarpeeksi~s~ kaasupulloja.',
|
||||
['assembling_blowtorch'] = 'kasataan ~b~Polttoleikkuria~s~...',
|
||||
['not_enough_repair_tools'] = 'sinulla ~r~ei ole tarpeeksi~s~ korjaus työkaluja.',
|
||||
['assembling_repair_kit'] = 'kasataan ~b~Korjauskittiä~s~...',
|
||||
['not_enough_body_tools'] = 'sinulla ~r~ei ole tarpeeksi~s~ kori työkaluja.',
|
||||
['assembling_body_kit'] = 'kasataan ~b~Korikittiä~s~...',
|
||||
['your_comp_earned'] = 'yrityksesi ~g~tienasi~s~ ~g~$',
|
||||
['you_used_blowtorch'] = 'sinä käytit yhden ~b~Polttoleikkurin',
|
||||
['you_used_repair_kit'] = 'sinä käytit yhden ~b~Korjauskitin',
|
||||
['you_used_body_kit'] = 'sinä käytit yhden ~b~Korikitin',
|
||||
['have_withdrawn'] = 'sinä nostit ~y~x%s~s~ ~b~%s~s~',
|
||||
['have_deposited'] = 'sinä talletit ~y~x%s~s~ ~b~%s~s~',
|
||||
['player_cannot_hold'] = 'sinulla ~r~ei ole~s~ tarpeeksi ~y~vapaata tilaa~s~ repussasi!',
|
||||
}
|
||||
@@ -0,0 +1,86 @@
|
||||
Locales['fr'] = {
|
||||
['mechanic'] = 'mecano',
|
||||
['drive_to_indicated'] = '~y~Conduisez~s~ jusqu\'à l\'endroit indiqué',
|
||||
['mission_canceled'] = 'Mission ~r~annulée~s~',
|
||||
['vehicle_list'] = 'sortir véhicule',
|
||||
['work_wear'] = 'tenue de travail',
|
||||
['civ_wear'] = 'Tenue civile',
|
||||
['deposit_stock'] = 'Déposer Stock',
|
||||
['withdraw_stock'] = 'Prendre Stock',
|
||||
['boss_actions'] = 'action patron',
|
||||
['service_vehicle'] = 'Véhicule de service',
|
||||
['flat_bed'] = 'plateau',
|
||||
['tow_truck'] = 'dépanneuse',
|
||||
['service_full'] = 'service complet : ',
|
||||
['open_actions'] = 'Appuyez sur ~INPUT_CONTEXT~ pour accéder au menu.',
|
||||
['harvest'] = 'récolte',
|
||||
['harvest_menu'] = 'Appuyez sur ~INPUT_CONTEXT~ pour accéder au menu de récolte.',
|
||||
['not_experienced_enough'] = 'Vous n\'êtes ~r~pas assez expérimenté~s~ pour effectuer cette action.',
|
||||
['gas_can'] = 'Bouteille de gaz',
|
||||
['repair_tools'] = 'Outils réparation',
|
||||
['body_work_tools'] = 'Outils carosserie',
|
||||
['blowtorch'] = 'chalumeaux',
|
||||
['repair_kit'] = 'kit réparation',
|
||||
['body_kit'] = 'kit carosserie',
|
||||
['craft'] = 'établi',
|
||||
['craft_menu'] = 'appuyez sur ~INPUT_CONTEXT~ pour accéder au menu établi.',
|
||||
['billing'] = 'facturation',
|
||||
['hijack'] = 'crocheter',
|
||||
['repair'] = 'réparer',
|
||||
['clean'] = 'nettoyer',
|
||||
['imp_veh'] = 'fourrière',
|
||||
['place_objects'] = 'placer objets',
|
||||
['invoice_amount'] = 'montant de la facture',
|
||||
['amount_invalid'] = 'montant invalide',
|
||||
['no_players_nearby'] = 'aucun joueur à proximité',
|
||||
['no_vehicle_nearby'] = 'aucun véhicule à proximité',
|
||||
['inside_vehicle'] = 'vous ne pouvez pas effectuer cette action depuis un véhicule!',
|
||||
['vehicle_unlocked'] = 'véhicule ~g~déverrouillé',
|
||||
['vehicle_repaired'] = 'véhicule ~g~réparé',
|
||||
['vehicle_cleaned'] = 'véhicule ~g~nettoyé',
|
||||
['vehicle_impounded'] = 'vehicule ~r~mis en fourrière',
|
||||
['must_seat_driver'] = 'vous devez être assis du ~r~côté conducteur!',
|
||||
['must_near'] = 'vous devez être ~r~près d\'un véhicule~s~ pour le mettre en fourrière',
|
||||
['vehicle_success_attached'] = 'vehicule ~b~attaché~s~ avec succès!',
|
||||
['please_drop_off'] = 'veuillez déposer le véhicule à la concession',
|
||||
['cant_attach_own_tt'] = '~r~Impossible~s~ d\'attacher votre propre dépanneuse',
|
||||
['no_veh_att'] = 'il n\'y a ~r~pas de véhicule~s~ à attacher',
|
||||
['not_right_veh'] = 'ce n\'est pas le bon véhicule',
|
||||
['veh_det_succ'] = 'vehicule ~b~détaché~s~ avec succès!',
|
||||
['imp_flatbed'] = '~r~Impossible! ~s~Vous devez avoir un ~b~Flatbed ~s~pour ça',
|
||||
['objects'] = 'objets',
|
||||
['roadcone'] = 'plot',
|
||||
['toolbox'] = 'boîte à outils',
|
||||
['mechanic_stock'] = 'coffre de l\'entreprise',
|
||||
['quantity'] = 'quantité',
|
||||
['invalid_quantity'] = 'quantité invalide',
|
||||
['inventory'] = 'inventaire',
|
||||
['veh_unlocked'] = '~g~Véhicule déverouillé',
|
||||
['hijack_failed'] = '~r~Crochetage raté',
|
||||
['body_repaired'] = '~g~Carosserie réparée',
|
||||
['veh_repaired'] = '~g~Véhicule réparé',
|
||||
['veh_stored'] = 'appuyez sur ~INPUT_CONTEXT~ pour ranger le véhicule.',
|
||||
['press_remove_obj'] = 'appuyez sur ~INPUT_CONTEXT~ pour enlever l\'objet',
|
||||
['please_tow'] = 'veuillez ~y~remorquer~s~ le véhicule',
|
||||
['wait_five'] = 'Vous devez ~r~attendre~s~ 5 minutes',
|
||||
['must_in_flatbed'] = 'Vous devez être en flatbed pour commencer la mission',
|
||||
['not_right_place'] = 'Vous devez être au bon endroit pour faire cela',
|
||||
['mechanic_customer'] = 'client mecano',
|
||||
['you_do_not_room'] = '~r~Vous n\'avez plus de place',
|
||||
['recovery_gas_can'] = 'Récupération de ~b~bouteille de gaz~s~...',
|
||||
['recovery_repair_tools'] = 'Récupération d\'~b~outils réparation~s~...',
|
||||
['recovery_body_tools'] = 'Récupération d\'~b~outils carosserie~s~...',
|
||||
['not_enough_gas_can'] = 'Vous n\'avez ~r~pas assez~s~ de bouteille de gaz',
|
||||
['assembling_blowtorch'] = 'Assemblage de ~b~chalumeaux~s~...',
|
||||
['not_enough_repair_tools'] = 'Vous n\'avez ~r~pas assez~s~ d\'outils réparation',
|
||||
['assembling_blowtorch'] = 'Assemblage de ~b~kit réparation~s~...',
|
||||
['not_enough_body_tools'] = 'Vous n\'avez ~r~pas assez~s~ d\'outils carosserie',
|
||||
['assembling_body_kit'] = 'Assemblage de ~b~kit carosserie~s~...',
|
||||
['your_comp_earned'] = 'Votre société a ~g~gagné~s~ ~g~$',
|
||||
['you_used_blowtorch'] = 'Vous avez utilisé un ~b~chalumeau',
|
||||
['you_used_repair_kit'] = 'Vous avez utilisé un ~b~kit de réparation',
|
||||
['you_used_body_kit'] = 'Vous avez utilisé un ~b~kit de carosserie',
|
||||
['have_withdrawn'] = 'vous avez pris ~y~x%s~s~ ~b~%s~s~',
|
||||
['have_deposited'] = 'vous avez déposé ~y~x%s~s~ ~b~%s~s~',
|
||||
['player_cannot_hold'] = 'vous n\'avez ~r~pas assez~s~ d\'~y~espace libre~s~ dans votre inventaire!',
|
||||
}
|
||||
@@ -0,0 +1,85 @@
|
||||
Locales['nl'] = {
|
||||
['mechanic'] = 'monteur',
|
||||
['drive_to_indicated'] = '~y~Rij~s~ naar de aangegeven locatie',
|
||||
['mission_canceled'] = 'opdracht ~r~Geannuleerd~s~',
|
||||
['vehicle_list'] = 'voertuigenlijst',
|
||||
['work_wear'] = 'werk kleding',
|
||||
['civ_wear'] = 'burger kleding',
|
||||
['deposit_stock'] = 'vooraad wegleggen',
|
||||
['withdraw_stock'] = 'vooraad opbergen',
|
||||
['boss_actions'] = 'baas acties',
|
||||
['service_vehicle'] = 'service voertuig',
|
||||
['flat_bed'] = 'oprijwagen',
|
||||
['tow_truck'] = 'sleep wagen',
|
||||
['service_full'] = 'dienst voledig: ',
|
||||
['open_actions'] = 'Druk op ~INPUT_CONTEXT~ om in het menu te komen.',
|
||||
['harvest'] = 'oogsten',
|
||||
['harvest_menu'] = 'druk op ~INPUT_CONTEXT~ om in het oogst menu te komen.',
|
||||
['not_experienced_enough'] = 'je hebt ~r~niet genoeg ervaring~s~ om dit te doen.',
|
||||
['gas_can'] = 'jerrycan',
|
||||
['repair_tools'] = 'reparatie gereedschap',
|
||||
['body_work_tools'] = 'plaatwerk gereedschap',
|
||||
['blowtorch'] = 'gasbrannder',
|
||||
['repair_kit'] = 'reparatie set',
|
||||
['body_kit'] = 'plaatwerk set',
|
||||
['craft'] = 'maaken',
|
||||
['craft_menu'] = 'druk op ~INPUT_CONTEXT~ om in het maak menu te komen.',
|
||||
['billing'] = 'facturen',
|
||||
['hijack'] = 'openbreken',
|
||||
['repair'] = 'repareer',
|
||||
['clean'] = 'maak schoon',
|
||||
['imp_veh'] = 'inbeslag nemen',
|
||||
['place_objects'] = 'plaats objecten',
|
||||
['invoice_amount'] = 'factuur bedrag',
|
||||
['amount_invalid'] = 'ongeldig aantal',
|
||||
['no_players_nearby'] = 'er is geen speler in de buurt',
|
||||
['no_vehicle_nearby'] = 'er is geen voertuig in de buurt',
|
||||
['inside_vehicle'] = 'je kan dit niet doen in een voertuig!',
|
||||
['vehicle_unlocked'] = 'het voortuig is ~g~opengebroken',
|
||||
['vehicle_repaired'] = 'het voortuig is ~g~gerepareerd',
|
||||
['vehicle_cleaned'] = 'het voortuig is ~g~schoongemaakt',
|
||||
['vehicle_impounded'] = 'het voortuig is ~r~in beslag genomen',
|
||||
['must_seat_driver'] = 'je moet in de bestuurders stoel zitten',
|
||||
['must_near'] = 'je moet ~r~dicht bij een voertuig zijn~s~ om hem in beslag te nemen.',
|
||||
['vehicle_success_attached'] = 'voertuig succesvol ~b~vastgemaakt~s~',
|
||||
['please_drop_off'] = 'graag voertuig naar de garage brengen',
|
||||
['cant_attach_own_tt'] = '~r~je kan niet~s~ je eigen wagen vast maken',
|
||||
['no_veh_att'] = 'er zijn geen ~r~voertuigen~s~ om vast te maken',
|
||||
['not_right_veh'] = 'dit is niet het juiste voertuig',
|
||||
['veh_det_succ'] = 'voertuig succesvol ~b~losgekoppeld~s~!',
|
||||
['imp_flatbed'] = '~r~Actie onmogelijk!~s~ je moet een ~b~oprijwagen~s~ nodig om deze te laden',
|
||||
['objects'] = 'objecten',
|
||||
['roadcone'] = 'pion',
|
||||
['toolbox'] = 'gereedschaps kist',
|
||||
['mechanic_stock'] = 'monteurs opslag',
|
||||
['quantity'] = 'hoeveelheid',
|
||||
['invalid_quantity'] = 'ongeldige hoeveelheid',
|
||||
['inventory'] = 'inventaris',
|
||||
['veh_unlocked'] = '~g~Voertuig opgengemaakt',
|
||||
['hijack_failed'] = '~r~Openbreken mislukt',
|
||||
['body_repaired'] = '~g~Plaatwerk gerepareerd',
|
||||
['veh_repaired'] = '~g~Voertuig gerepareerd',
|
||||
['veh_stored'] = 'Druk op ~INPUT_CONTEXT~ om voertuig op te slaan.',
|
||||
['press_remove_obj'] = 'Druk op ~INPUT_CONTEXT~ om object weg te halen',
|
||||
['please_tow'] = 'graag voertuig ~y~afslepen~s~',
|
||||
['wait_five'] = 'je moet 5 minuten ~r~wachten~s~',
|
||||
['must_in_flatbed'] = 'je bent een oprijwagen nodig voor deze klant',
|
||||
['mechanic_customer'] = 'klant van garage',
|
||||
['you_do_not_room'] = '~r~Je hebt geen ruimte',
|
||||
['recovery_gas_can'] = '~b~Jerrycan~s~ Ophalen...',
|
||||
['recovery_repair_tools'] = '~b~Reparatie gereedschap~s~ Ophalen...',
|
||||
['recovery_body_tools'] = '~b~Plaatwerk gereedschap~s~ Ophalen...',
|
||||
['not_enough_gas_can'] = 'je hebt ~r~niet genoeg~s~ jerrycans.',
|
||||
['assembling_blowtorch'] = 'In elkaar aan het zetten ~b~gasbrannder~s~...',
|
||||
['not_enough_repair_tools'] = 'je hebt ~r~niet genoeg~s~ reparatie gereedschap.',
|
||||
['assembling_repair_kit'] = 'In elkaar aan het zetten ~b~reparatie set~s~...',
|
||||
['not_enough_body_tools'] = 'je hebt ~r~niet genoeg~s~ plaatwerk gereedschap.',
|
||||
['assembling_body_kit'] = 'In elkaar aan het zetten ~b~plaatwerk set~s~...',
|
||||
['your_comp_earned'] = 'de garage heeft ~g~verdient~s~ ~g~€',
|
||||
['you_used_blowtorch'] = 'je gebruikte een ~b~gasbrannder',
|
||||
['you_used_repair_kit'] = 'je gebruikte een ~b~reparatie set',
|
||||
['you_used_body_kit'] = 'je gebruikte een ~b~plaatwerk set',
|
||||
['have_withdrawn'] = 'je hebt opgenomen ~y~x%s~s~ ~b~%s~s~',
|
||||
['have_deposited'] = 'je hebt gestort ~y~x%s~s~ ~b~%s~s~',
|
||||
['player_cannot_hold'] = 'je hebt ~r~niet~s~ genoeg ~y~vrije ruimte~s~ in je inventaris!',
|
||||
}
|
||||
@@ -0,0 +1,85 @@
|
||||
Locales['pl'] = {
|
||||
['mechanic'] = 'mechanik',
|
||||
['drive_to_indicated'] = '~y~Jedz~s~ do wskazanej lokalizacji.',
|
||||
['mission_canceled'] = 'misja ~r~anulowana~s~',
|
||||
['vehicle_list'] = 'lista pojazdów',
|
||||
['work_wear'] = 'ubrania robocze',
|
||||
['civ_wear'] = 'ubrania cywilne',
|
||||
['deposit_stock'] = 'deponuj przedmioty',
|
||||
['withdraw_stock'] = 'wyciągnij przedmioty',
|
||||
['boss_actions'] = 'akcje szefa',
|
||||
['service_vehicle'] = 'serwisuj pojazd',
|
||||
['flat_bed'] = 'laweta',
|
||||
['tow_truck'] = 'holownik',
|
||||
['service_full'] = 'serwis pełny: ',
|
||||
['open_actions'] = 'wciśnij ~INPUT_CONTEXT~ aby otworzyć menu.',
|
||||
['harvest'] = 'zbieraj',
|
||||
['harvest_menu'] = 'wcisnij ~INPUT_CONTEXT~ aby otworzyć menu zbierania.',
|
||||
['not_experienced_enough'] = 'nie jesteś wystarczająco ~r~doświadczony~s~ aby zrobić tą akcję.',
|
||||
['gas_can'] = 'kanister z paliwem',
|
||||
['repair_tools'] = 'zestaw do naprawy',
|
||||
['body_work_tools'] = 'zestaw blacharski',
|
||||
['blowtorch'] = 'palnik',
|
||||
['repair_kit'] = 'narzedzia naprawcze',
|
||||
['body_kit'] = 'karoseria',
|
||||
['craft'] = 'twórz',
|
||||
['craft_menu'] = 'wcisnij ~INPUT_CONTEXT~ aby otworzyc menu tworzenia.',
|
||||
['billing'] = 'faktury',
|
||||
['hijack'] = 'forsowanie',
|
||||
['repair'] = 'naprawa',
|
||||
['clean'] = 'wyczyść',
|
||||
['imp_veh'] = 'odholowywanie',
|
||||
['place_objects'] = 'połóż objekt',
|
||||
['invoice_amount'] = 'suma faktury',
|
||||
['amount_invalid'] = 'nieprawidłowa suma',
|
||||
['no_players_nearby'] = 'brak gracza w pobliżu',
|
||||
['no_vehicle_nearby'] = 'brak pojazdu w pobliżu',
|
||||
['inside_vehicle'] = 'nie możesz tego zrobić z środka pojazdu!',
|
||||
['vehicle_unlocked'] = 'pojazd został ~g~odblokowany',
|
||||
['vehicle_repaired'] = 'pojazd został ~g~naprawiony',
|
||||
['vehicle_cleaned'] = 'pojazd został ~g~umyty',
|
||||
['vehicle_impounded'] = 'pojazd został ~r~odholowany',
|
||||
['must_seat_driver'] = 'musisz być na siedzeniu kierowcy!',
|
||||
['must_near'] = 'musisz być ~r~blisko pojazdu~s~ aby go odholować.',
|
||||
['vehicle_success_attached'] = 'pojazd ~b~przyłączony~s~',
|
||||
['please_drop_off'] = 'proszę odstawić pojazd w garażu',
|
||||
['cant_attach_own_tt'] = '~r~nie możesz~s~ podłączyć własnego holwnika',
|
||||
['no_veh_att'] = 'nie ma ~r~pojazdu~s~ do podłączenia',
|
||||
['not_right_veh'] = 'to nie jest prawidłowy pojazd',
|
||||
['veh_det_succ'] = 'pojazd ~b~odłączony~s~!',
|
||||
['imp_flatbed'] = '~r~Akcja niemożliwa!~s~ Potrzebujesz ~b~lawety~s~ aby załadować pojazd',
|
||||
['objects'] = 'objekty',
|
||||
['roadcone'] = 'pachołek',
|
||||
['toolbox'] = 'skrzynka z narzędziami',
|
||||
['mechanic_stock'] = 'magazyn mechanika',
|
||||
['quantity'] = 'ilość',
|
||||
['invalid_quantity'] = 'nieprawidłowa ilość',
|
||||
['inventory'] = 'ekwipunek',
|
||||
['veh_unlocked'] = '~g~Pojazd odblokowany',
|
||||
['hijack_failed'] = '~r~Forsowanie nie udane',
|
||||
['body_repaired'] = '~g~Karoseria naprawiona',
|
||||
['veh_repaired'] = '~g~Pojazd naprawiony',
|
||||
['veh_stored'] = 'wcisnij ~INPUT_CONTEXT~ aby schować pojazd.',
|
||||
['press_remove_obj'] = 'wcisnij ~INPUT_CONTEXT~ aby usunąć objekt',
|
||||
['please_tow'] = 'proszę ~y~odholować~s~ pojazd',
|
||||
['wait_five'] = 'musisz ~r~poczekać~s~ 5 minut',
|
||||
['must_in_flatbed'] = 'musisz być w lawecie aby rozpocząć misje',
|
||||
['mechanic_customer'] = 'klient mechanika',
|
||||
['you_do_not_room'] = '~r~Nie masz wiecej miejsca',
|
||||
['recovery_gas_can'] = 'odzyskiwanie ~b~Kanistra z paliwem~s~...',
|
||||
['recovery_repair_tools'] = 'odzyskiwanie ~b~Części naprawczych~s~...',
|
||||
['recovery_body_tools'] = 'odzyskiwanie ~b~Części blacharskich~s~...',
|
||||
['not_enough_gas_can'] = 'nie posiadasz ~r~wystarczająco~s~ paliwa w kanistrze.',
|
||||
['assembling_blowtorch'] = 'składanie ~b~Palnika~s~...',
|
||||
['not_enough_repair_tools'] = 'nie posiadasz ~r~wystarczająco~s~ częsci naprawczych.',
|
||||
['assembling_repair_kit'] = 'składanie ~b~częsci naprawczych~s~...',
|
||||
['not_enough_body_tools'] = 'nie posiadasz ~r~wystarczająco~s~ częsci blacharskich.',
|
||||
['assembling_body_kit'] = 'składanie ~b~częsci blacharskich~s~...',
|
||||
['your_comp_earned'] = 'twoja firma ~g~zarobiła~s~ ~g~$',
|
||||
['you_used_blowtorch'] = 'użyłeś ~b~palnik',
|
||||
['you_used_repair_kit'] = 'użyłeś ~b~częsci naprawczych',
|
||||
['you_used_body_kit'] = 'użyłeś ~b~częsci blacharskich',
|
||||
['have_withdrawn'] = 'wyciągnąłeś ~y~x%s~s~ ~b~%s~s~',
|
||||
['have_deposited'] = 'zdeponowałeś ~y~x%s~s~ ~b~%s~s~',
|
||||
['player_cannot_hold'] = '~r~nie masz~s~ wystarczająco ~y~wolnego~s~ miejsca w ekwipunku!',
|
||||
}
|
||||
@@ -0,0 +1,85 @@
|
||||
Locales['sv'] = {
|
||||
['mechanic'] = 'mekaniker',
|
||||
['drive_to_indicated'] = 'Vänligen ~y~kör~s~ till den angivna platsen.',
|
||||
['mission_canceled'] = '~r~Uppdraget har avbrutits~s~',
|
||||
['vehicle_list'] = 'Fordon',
|
||||
['work_wear'] = 'arbetskläder',
|
||||
['civ_wear'] = 'civil klädsel',
|
||||
['deposit_stock'] = 'Sätt in objekt',
|
||||
['withdraw_stock'] = 'Ta ut objekt',
|
||||
['boss_actions'] = 'Chef meny',
|
||||
['service_vehicle'] = 'service fordon',
|
||||
['flat_bed'] = 'flatbed',
|
||||
['tow_truck'] = 'bärgningsbil',
|
||||
['service_full'] = 'service full: ',
|
||||
['open_actions'] = 'Tryck ~INPUT_CONTEXT~ för att öppna menyn.',
|
||||
['harvest'] = 'skörda',
|
||||
['harvest_menu'] = 'Tryck ~INPUT_CONTEXT~ för att öppna menyn.',
|
||||
['not_experienced_enough'] = 'Du är inte ~r~erfaren nog~s~ att utföra uppgiften.',
|
||||
['gas_can'] = 'gasbehållare',
|
||||
['repair_tools'] = 'reparationsverktyg',
|
||||
['body_work_tools'] = 'karossverktyg',
|
||||
['blowtorch'] = 'blåslampa',
|
||||
['repair_kit'] = 'reparationssats',
|
||||
['body_kit'] = 'kroppssats',
|
||||
['craft'] = 'hantverk',
|
||||
['craft_menu'] = 'Tryck ~INPUT_CONTEXT~ för att öppna menyn.',
|
||||
['billing'] = 'fakturering',
|
||||
['hijack'] = 'kapa',
|
||||
['repair'] = 'reparera',
|
||||
['clean'] = 'tvätta',
|
||||
['imp_veh'] = 'beslagta fordon',
|
||||
['place_objects'] = 'placera objekt',
|
||||
['invoice_amount'] = 'fakturabelopp',
|
||||
['amount_invalid'] = 'ogiltigt belopp',
|
||||
['no_players_nearby'] = 'det finns inga spelare i närheten',
|
||||
['no_vehicle_nearby'] = 'det finns inget fordon i närheten',
|
||||
['inside_vehicle'] = 'du kan inte göra detta i det trånga utrymmet!',
|
||||
['vehicle_unlocked'] = 'fordonet har ~g~olåsts upp~s~',
|
||||
['vehicle_repaired'] = 'fordonet har ~g~reparerats~s~',
|
||||
['vehicle_cleaned'] = 'fordonet har ~g~rengjorts~s~',
|
||||
['vehicle_impounded'] = 'fordonet har ~r~beslagtagits~s~',
|
||||
['must_seat_driver'] = 'du måste sitta i ~r~förarsätet~s~!',
|
||||
['must_near'] = 'du måste vara ~r~nära ett fordon~s~ för att beslagta det.',
|
||||
['vehicle_success_attached'] = 'fordonet är ~b~bundet~s~!',
|
||||
['please_drop_off'] = 'vänligen släpp av fordonet hos ~y~garaget~s~',
|
||||
['cant_attach_own_tt'] = 'du kan ~r~inte~s~ binda din egna truck!',
|
||||
['no_veh_att'] = 'det finns inget ~r~fordon~s~ i närheten',
|
||||
['not_right_veh'] = 'detta är ~r~inte~s~ rätt fordon',
|
||||
['veh_det_succ'] = 'fordonet har ~b~lossnat~s~!',
|
||||
['imp_flatbed'] = '~r~Det går inte!~s~ Du måste ha en ~b~Flatbed~s~ för det!',
|
||||
['objects'] = 'objekt',
|
||||
['roadcone'] = 'kona',
|
||||
['toolbox'] = 'verktygslåda',
|
||||
['mechanic_stock'] = 'mekaniker lager',
|
||||
['quantity'] = 'kvantitet',
|
||||
['invalid_quantity'] = 'ogiltig kvantitet',
|
||||
['inventory'] = 'förråd',
|
||||
['veh_unlocked'] = '~g~Fordon har låsts upp',
|
||||
['hijack_failed'] = '~r~Kapningen misslyckades',
|
||||
['body_repaired'] = '~g~Karossen har lagats',
|
||||
['veh_repaired'] = '~g~Fordonet har lagats',
|
||||
['veh_stored'] = 'tryck ~INPUT_CONTEXT~ för att förvara fordonet.',
|
||||
['press_remove_obj'] = 'tryck ~INPUT_CONTEXT~ för att ta bort objektet.',
|
||||
['please_tow'] = 'Vänligen ~y~bogsera~s~ fordonet',
|
||||
['wait_five'] = 'Du måste ~r~vänta~s~ 5 minuter',
|
||||
['must_in_flatbed'] = 'Du måste vara i en ~y~flatbed~s~ för att starta uppdraget',
|
||||
['mechanic_customer'] = 'mekaniker kund',
|
||||
['you_do_not_room'] = '~r~Du har inte mer plats',
|
||||
['recovery_gas_can'] = '~b~Gasbehållare~s~ återvinns...',
|
||||
['recovery_repair_tools'] = '~b~Reparationsverktyg~s~ återvinns...',
|
||||
['recovery_body_tools'] = '~b~Karossverktyg~s~ återvinns...',
|
||||
['not_enough_gas_can'] = 'Du har ~r~inte tillräckligt~s~ många gasbehållare!',
|
||||
['assembling_blowtorch'] = 'Tillverkar ~b~blåslampa~s~...',
|
||||
['not_enough_repair_tools'] = 'Du har ~r~inte tillräckligt~s~ många reparationsverktyg!',
|
||||
['assembling_repair_kit'] = 'Tillverkar ~b~reparationssats~s~...',
|
||||
['not_enough_body_tools'] = 'Du har ~r~inte tillräckligt~s~ många karossverktyg!',
|
||||
['assembling_body_kit'] = 'Tillverkar ~b~karossverktyg~s~...',
|
||||
['your_comp_earned'] = 'ditt företag har ~g~tjänat~s~ ~g~$',
|
||||
['you_used_blowtorch'] = 'du har använt en ~b~blåslampa~s~',
|
||||
['you_used_repair_kit'] = 'du har använt en ~b~reparationssats~s~',
|
||||
['you_used_body_kit'] = 'du har använt en ~b~karossverktyg~s~',
|
||||
['have_withdrawn'] = 'du har tagit ut ~y~x%s~s~ ~b~%s~s~',
|
||||
['have_deposited'] = 'du har lagrat ~y~x%s~s~ ~b~%s~s~',
|
||||
['player_cannot_hold'] = 'du har ~r~inte~s~ tillräckligt med ~y~utrymme~s~ för att hålla det!',
|
||||
}
|
||||
@@ -0,0 +1,34 @@
|
||||
USE `es_extended`;
|
||||
|
||||
INSERT INTO `addon_account` (name, label, shared) VALUES
|
||||
('society_mechanic', 'Mechanic', 1)
|
||||
;
|
||||
|
||||
INSERT INTO `addon_inventory` (name, label, shared) VALUES
|
||||
('society_mechanic', 'Mechanic', 1)
|
||||
;
|
||||
|
||||
INSERT INTO `datastore` (name, label, shared) VALUES
|
||||
('society_mechanic', 'Mechanic', 1)
|
||||
;
|
||||
|
||||
INSERT INTO `jobs` (name, label) VALUES
|
||||
('mechanic', 'Mechanic')
|
||||
;
|
||||
|
||||
INSERT INTO `job_grades` (job_name, grade, name, label, salary, skin_male, skin_female) VALUES
|
||||
('mechanic',0,'recrue','Recruit',12,'{}','{}'),
|
||||
('mechanic',1,'novice','Novice',24,'{}','{}'),
|
||||
('mechanic',2,'experimente','Experienced',36,'{}','{}'),
|
||||
('mechanic',3,'chief','Leader',48,'{}','{}'),
|
||||
('mechanic',4,'boss','Boss',0,'{}','{}')
|
||||
;
|
||||
|
||||
INSERT INTO `items` (name, label, weight) VALUES
|
||||
('gazbottle', 'Gas Bottle', 2),
|
||||
('fixtool', 'Repair Tools', 2),
|
||||
('carotool', 'Tools', 2),
|
||||
('blowpipe', 'Blowtorch', 2),
|
||||
('fixkit', 'Repair Kit', 3),
|
||||
('carokit', 'Body Kit', 3)
|
||||
;
|
||||
@@ -0,0 +1,34 @@
|
||||
USE `es_extended`;
|
||||
|
||||
INSERT INTO `addon_account` (name, label, shared) VALUES
|
||||
('society_mechanic', 'Mekaanikko', 1)
|
||||
;
|
||||
|
||||
INSERT INTO `addon_inventory` (name, label, shared) VALUES
|
||||
('society_mechanic', 'Mekaanikko', 1)
|
||||
;
|
||||
|
||||
INSERT INTO `datastore` (name, label, shared) VALUES
|
||||
('society_mechanic', 'Mekaanikko', 1)
|
||||
;
|
||||
|
||||
INSERT INTO `jobs` (name, label) VALUES
|
||||
('mechanic', 'Mekaanikko')
|
||||
;
|
||||
|
||||
INSERT INTO `job_grades` (job_name, grade, name, label, salary, skin_male, skin_female) VALUES
|
||||
('mechanic',0,'recrue','Harjottelija',12,'{}','{}'),
|
||||
('mechanic',1,'novice','Aloittelija',24,'{}','{}'),
|
||||
('mechanic',2,'experimente','Kokenut',36,'{}','{}'),
|
||||
('mechanic',3,'chief','Johtaja',48,'{}','{}'),
|
||||
('mechanic',4,'boss','Pomo',0,'{}','{}')
|
||||
;
|
||||
|
||||
INSERT INTO `items` (name, label, weight) VALUES
|
||||
('gazbottle', 'Kaasupullo', 2),
|
||||
('fixtool', 'Korjaustyökalut', 2),
|
||||
('carotool', 'Työkalut', 2),
|
||||
('blowpipe', 'Polttoleikkuri', 2),
|
||||
('fixkit', 'Korjauskitti', 3),
|
||||
('carokit', 'Korikitti', 3)
|
||||
;
|
||||
@@ -0,0 +1,34 @@
|
||||
USE `es_extended`;
|
||||
|
||||
INSERT INTO `addon_account` (name, label, shared) VALUES
|
||||
('society_mechanic', 'Mechanik', 1)
|
||||
;
|
||||
|
||||
INSERT INTO `addon_inventory` (name, label, shared) VALUES
|
||||
('society_mechanic', 'Mechanik', 1)
|
||||
;
|
||||
|
||||
INSERT INTO `datastore` (name, label, shared) VALUES
|
||||
('society_mechanic', 'Mechanik', 1)
|
||||
;
|
||||
|
||||
INSERT INTO `jobs` (name, label) VALUES
|
||||
('mechanic', 'Mechanik')
|
||||
;
|
||||
|
||||
INSERT INTO `job_grades` (job_name, grade, name, label, salary, skin_male, skin_female) VALUES
|
||||
('mechanic',0,'recrue','Praktykant',12,'{}','{}'),
|
||||
('mechanic',1,'novice','Nowicjusz',24,'{}','{}'),
|
||||
('mechanic',2,'experimente','Doświadczony',36,'{}','{}'),
|
||||
('mechanic',3,'chief','Kierownik',48,'{}','{}'),
|
||||
('mechanic',4,'boss','Szef',0,'{}','{}')
|
||||
;
|
||||
|
||||
INSERT INTO `items` (name, label, weight) VALUES
|
||||
('gazbottle', 'Butelka z gazem', 2),
|
||||
('fixtool', 'Zestaw do naprawy', 2),
|
||||
('carotool', 'Częsci naprawcze', 2),
|
||||
('blowpipe', 'Palnik', 2),
|
||||
('fixkit', 'Narzedzia naprawcze', 3),
|
||||
('carokit', 'Części blacharskie', 3)
|
||||
;
|
||||
@@ -0,0 +1,34 @@
|
||||
USE `es_extended`;
|
||||
|
||||
INSERT INTO `addon_account` (name, label, shared) VALUES
|
||||
('society_mechanic', 'Mekaniker', 1)
|
||||
;
|
||||
|
||||
INSERT INTO `addon_inventory` (name, label, shared) VALUES
|
||||
('society_mechanic', 'Mekaniker', 1)
|
||||
;
|
||||
|
||||
INSERT INTO `datastore` (name, label, shared) VALUES
|
||||
('society_mechanic', 'Mekaniker', 1)
|
||||
;
|
||||
|
||||
INSERT INTO `jobs` (name, label) VALUES
|
||||
('mechanic', 'Mekaniker')
|
||||
;
|
||||
|
||||
INSERT INTO `job_grades` (job_name, grade, name, label, salary, skin_male, skin_female) VALUES
|
||||
('mechanic',0,'recrue','Rekryt',12,'{}','{}'),
|
||||
('mechanic',1,'novice','Nyanställd',24,'{}','{}'),
|
||||
('mechanic',2,'experimente','Erfaren',36,'{}','{}'),
|
||||
('mechanic',3,'chief','Chef',48,'{}','{}'),
|
||||
('mechanic',4,'boss','Ägare',0,'{}','{}')
|
||||
;
|
||||
|
||||
INSERT INTO `items` (name, label, weight) VALUES
|
||||
('gazbottle', 'Gas Flaska', 2),
|
||||
('fixtool', 'Reparationsverktyg', 2),
|
||||
('carotool', 'Verktyg', 2),
|
||||
('blowpipe', 'Blåslampa', 2),
|
||||
('fixkit', 'Reparationssats', 3),
|
||||
('carokit', 'Karosskit', 3)
|
||||
;
|
||||
@@ -0,0 +1,313 @@
|
||||
ESX = nil
|
||||
PlayersHarvesting = {}
|
||||
PlayersHarvesting2 = {}
|
||||
PlayersHarvesting3 = {}
|
||||
PlayersCrafting = {}
|
||||
PlayersCrafting2 = {}
|
||||
PlayersCrafting3 = {}
|
||||
|
||||
TriggerEvent('esx:getSharedObject', function(obj) ESX = obj end)
|
||||
|
||||
if Config.MaxInService ~= -1 then
|
||||
TriggerEvent('esx_service:activateService', 'mechanic', Config.MaxInService)
|
||||
end
|
||||
|
||||
TriggerEvent('esx_phone:registerNumber', 'mechanic', _U('mechanic_customer'), true, true)
|
||||
TriggerEvent('esx_society:registerSociety', 'mechanic', 'mechanic', 'society_mechanic', 'society_mechanic', 'society_mechanic', {type = 'private'})
|
||||
|
||||
local function Harvest(source)
|
||||
SetTimeout(4000, function()
|
||||
|
||||
if PlayersHarvesting[source] == true then
|
||||
local xPlayer = ESX.GetPlayerFromId(source)
|
||||
local GazBottleQuantity = xPlayer.getInventoryItem('gazbottle').count
|
||||
|
||||
if GazBottleQuantity >= 5 then
|
||||
TriggerClientEvent('esx:showNotification', source, _U('you_do_not_room'))
|
||||
else
|
||||
xPlayer.addInventoryItem('gazbottle', 1)
|
||||
Harvest(source)
|
||||
end
|
||||
end
|
||||
|
||||
end)
|
||||
end
|
||||
|
||||
RegisterServerEvent('esx_mechanicjob:startHarvest')
|
||||
AddEventHandler('esx_mechanicjob:startHarvest', function()
|
||||
local _source = source
|
||||
PlayersHarvesting[_source] = true
|
||||
TriggerClientEvent('esx:showNotification', _source, _U('recovery_gas_can'))
|
||||
Harvest(source)
|
||||
end)
|
||||
|
||||
RegisterServerEvent('esx_mechanicjob:stopHarvest')
|
||||
AddEventHandler('esx_mechanicjob:stopHarvest', function()
|
||||
local _source = source
|
||||
PlayersHarvesting[_source] = false
|
||||
end)
|
||||
|
||||
local function Harvest2(source)
|
||||
SetTimeout(4000, function()
|
||||
|
||||
if PlayersHarvesting2[source] == true then
|
||||
local xPlayer = ESX.GetPlayerFromId(source)
|
||||
local FixToolQuantity = xPlayer.getInventoryItem('fixtool').count
|
||||
|
||||
if FixToolQuantity >= 5 then
|
||||
TriggerClientEvent('esx:showNotification', source, _U('you_do_not_room'))
|
||||
else
|
||||
xPlayer.addInventoryItem('fixtool', 1)
|
||||
Harvest2(source)
|
||||
end
|
||||
end
|
||||
|
||||
end)
|
||||
end
|
||||
|
||||
RegisterServerEvent('esx_mechanicjob:startHarvest2')
|
||||
AddEventHandler('esx_mechanicjob:startHarvest2', function()
|
||||
local _source = source
|
||||
PlayersHarvesting2[_source] = true
|
||||
TriggerClientEvent('esx:showNotification', _source, _U('recovery_repair_tools'))
|
||||
Harvest2(_source)
|
||||
end)
|
||||
|
||||
RegisterServerEvent('esx_mechanicjob:stopHarvest2')
|
||||
AddEventHandler('esx_mechanicjob:stopHarvest2', function()
|
||||
local _source = source
|
||||
PlayersHarvesting2[_source] = false
|
||||
end)
|
||||
|
||||
local function Harvest3(source)
|
||||
SetTimeout(4000, function()
|
||||
|
||||
if PlayersHarvesting3[source] == true then
|
||||
local xPlayer = ESX.GetPlayerFromId(source)
|
||||
local CaroToolQuantity = xPlayer.getInventoryItem('carotool').count
|
||||
if CaroToolQuantity >= 5 then
|
||||
TriggerClientEvent('esx:showNotification', source, _U('you_do_not_room'))
|
||||
else
|
||||
xPlayer.addInventoryItem('carotool', 1)
|
||||
Harvest3(source)
|
||||
end
|
||||
end
|
||||
|
||||
end)
|
||||
end
|
||||
|
||||
RegisterServerEvent('esx_mechanicjob:startHarvest3')
|
||||
AddEventHandler('esx_mechanicjob:startHarvest3', function()
|
||||
local _source = source
|
||||
PlayersHarvesting3[_source] = true
|
||||
TriggerClientEvent('esx:showNotification', _source, _U('recovery_body_tools'))
|
||||
Harvest3(_source)
|
||||
end)
|
||||
|
||||
RegisterServerEvent('esx_mechanicjob:stopHarvest3')
|
||||
AddEventHandler('esx_mechanicjob:stopHarvest3', function()
|
||||
local _source = source
|
||||
PlayersHarvesting3[_source] = false
|
||||
end)
|
||||
|
||||
local function Craft(source)
|
||||
SetTimeout(4000, function()
|
||||
|
||||
if PlayersCrafting[source] == true then
|
||||
local xPlayer = ESX.GetPlayerFromId(source)
|
||||
local GazBottleQuantity = xPlayer.getInventoryItem('gazbottle').count
|
||||
|
||||
if GazBottleQuantity <= 0 then
|
||||
TriggerClientEvent('esx:showNotification', source, _U('not_enough_gas_can'))
|
||||
else
|
||||
xPlayer.removeInventoryItem('gazbottle', 1)
|
||||
xPlayer.addInventoryItem('blowpipe', 1)
|
||||
Craft(source)
|
||||
end
|
||||
end
|
||||
|
||||
end)
|
||||
end
|
||||
|
||||
RegisterServerEvent('esx_mechanicjob:startCraft')
|
||||
AddEventHandler('esx_mechanicjob:startCraft', function()
|
||||
local _source = source
|
||||
PlayersCrafting[_source] = true
|
||||
TriggerClientEvent('esx:showNotification', _source, _U('assembling_blowtorch'))
|
||||
Craft(_source)
|
||||
end)
|
||||
|
||||
RegisterServerEvent('esx_mechanicjob:stopCraft')
|
||||
AddEventHandler('esx_mechanicjob:stopCraft', function()
|
||||
local _source = source
|
||||
PlayersCrafting[_source] = false
|
||||
end)
|
||||
|
||||
local function Craft2(source)
|
||||
SetTimeout(4000, function()
|
||||
|
||||
if PlayersCrafting2[source] == true then
|
||||
local xPlayer = ESX.GetPlayerFromId(source)
|
||||
local FixToolQuantity = xPlayer.getInventoryItem('fixtool').count
|
||||
|
||||
if FixToolQuantity <= 0 then
|
||||
TriggerClientEvent('esx:showNotification', source, _U('not_enough_repair_tools'))
|
||||
else
|
||||
xPlayer.removeInventoryItem('fixtool', 1)
|
||||
xPlayer.addInventoryItem('fixkit', 1)
|
||||
Craft2(source)
|
||||
end
|
||||
end
|
||||
|
||||
end)
|
||||
end
|
||||
|
||||
RegisterServerEvent('esx_mechanicjob:startCraft2')
|
||||
AddEventHandler('esx_mechanicjob:startCraft2', function()
|
||||
local _source = source
|
||||
PlayersCrafting2[_source] = true
|
||||
TriggerClientEvent('esx:showNotification', _source, _U('assembling_repair_kit'))
|
||||
Craft2(_source)
|
||||
end)
|
||||
|
||||
RegisterServerEvent('esx_mechanicjob:stopCraft2')
|
||||
AddEventHandler('esx_mechanicjob:stopCraft2', function()
|
||||
local _source = source
|
||||
PlayersCrafting2[_source] = false
|
||||
end)
|
||||
|
||||
local function Craft3(source)
|
||||
SetTimeout(4000, function()
|
||||
|
||||
if PlayersCrafting3[source] == true then
|
||||
local xPlayer = ESX.GetPlayerFromId(source)
|
||||
local CaroToolQuantity = xPlayer.getInventoryItem('carotool').count
|
||||
|
||||
if CaroToolQuantity <= 0 then
|
||||
TriggerClientEvent('esx:showNotification', source, _U('not_enough_body_tools'))
|
||||
else
|
||||
xPlayer.removeInventoryItem('carotool', 1)
|
||||
xPlayer.addInventoryItem('carokit', 1)
|
||||
Craft3(source)
|
||||
end
|
||||
end
|
||||
|
||||
end)
|
||||
end
|
||||
|
||||
RegisterServerEvent('esx_mechanicjob:startCraft3')
|
||||
AddEventHandler('esx_mechanicjob:startCraft3', function()
|
||||
local _source = source
|
||||
PlayersCrafting3[_source] = true
|
||||
TriggerClientEvent('esx:showNotification', _source, _U('assembling_body_kit'))
|
||||
Craft3(_source)
|
||||
end)
|
||||
|
||||
RegisterServerEvent('esx_mechanicjob:stopCraft3')
|
||||
AddEventHandler('esx_mechanicjob:stopCraft3', function()
|
||||
local _source = source
|
||||
PlayersCrafting3[_source] = false
|
||||
end)
|
||||
|
||||
RegisterServerEvent('esx_mechanicjob:onNPCJobMissionCompleted')
|
||||
AddEventHandler('esx_mechanicjob:onNPCJobMissionCompleted', function()
|
||||
local _source = source
|
||||
local xPlayer = ESX.GetPlayerFromId(_source)
|
||||
local total = math.random(Config.NPCJobEarnings.min, Config.NPCJobEarnings.max);
|
||||
|
||||
if xPlayer.job.grade >= 3 then
|
||||
total = total * 2
|
||||
end
|
||||
|
||||
TriggerEvent('esx_addonaccount:getSharedAccount', 'society_mechanic', function(account)
|
||||
account.addMoney(total)
|
||||
end)
|
||||
|
||||
TriggerClientEvent("esx:showNotification", _source, _U('your_comp_earned').. total)
|
||||
end)
|
||||
|
||||
ESX.RegisterUsableItem('blowpipe', function(source)
|
||||
local _source = source
|
||||
local xPlayer = ESX.GetPlayerFromId(source)
|
||||
|
||||
xPlayer.removeInventoryItem('blowpipe', 1)
|
||||
|
||||
TriggerClientEvent('esx_mechanicjob:onHijack', _source)
|
||||
TriggerClientEvent('esx:showNotification', _source, _U('you_used_blowtorch'))
|
||||
end)
|
||||
|
||||
ESX.RegisterUsableItem('fixkit', function(source)
|
||||
local _source = source
|
||||
local xPlayer = ESX.GetPlayerFromId(source)
|
||||
|
||||
xPlayer.removeInventoryItem('fixkit', 1)
|
||||
|
||||
TriggerClientEvent('esx_mechanicjob:onFixkit', _source)
|
||||
TriggerClientEvent('esx:showNotification', _source, _U('you_used_repair_kit'))
|
||||
end)
|
||||
|
||||
ESX.RegisterUsableItem('carokit', function(source)
|
||||
local _source = source
|
||||
local xPlayer = ESX.GetPlayerFromId(source)
|
||||
|
||||
xPlayer.removeInventoryItem('carokit', 1)
|
||||
|
||||
TriggerClientEvent('esx_mechanicjob:onCarokit', _source)
|
||||
TriggerClientEvent('esx:showNotification', _source, _U('you_used_body_kit'))
|
||||
end)
|
||||
|
||||
RegisterServerEvent('esx_mechanicjob:getStockItem')
|
||||
AddEventHandler('esx_mechanicjob:getStockItem', function(itemName, count)
|
||||
local xPlayer = ESX.GetPlayerFromId(source)
|
||||
|
||||
TriggerEvent('esx_addoninventory:getSharedInventory', 'society_mechanic', function(inventory)
|
||||
local item = inventory.getItem(itemName)
|
||||
|
||||
-- is there enough in the society?
|
||||
if count > 0 and item.count >= count then
|
||||
|
||||
-- can the player carry the said amount of x item?
|
||||
if xPlayer.canCarryItem(itemName, count) then
|
||||
inventory.removeItem(itemName, count)
|
||||
xPlayer.addInventoryItem(itemName, count)
|
||||
xPlayer.showNotification(_U('have_withdrawn', count, item.label))
|
||||
else
|
||||
xPlayer.showNotification(_U('player_cannot_hold'))
|
||||
end
|
||||
else
|
||||
xPlayer.showNotification(_U('invalid_quantity'))
|
||||
end
|
||||
end)
|
||||
end)
|
||||
|
||||
ESX.RegisterServerCallback('esx_mechanicjob:getStockItems', function(source, cb)
|
||||
TriggerEvent('esx_addoninventory:getSharedInventory', 'society_mechanic', function(inventory)
|
||||
cb(inventory.items)
|
||||
end)
|
||||
end)
|
||||
|
||||
RegisterServerEvent('esx_mechanicjob:putStockItems')
|
||||
AddEventHandler('esx_mechanicjob:putStockItems', function(itemName, count)
|
||||
local xPlayer = ESX.GetPlayerFromId(source)
|
||||
|
||||
TriggerEvent('esx_addoninventory:getSharedInventory', 'society_mechanic', function(inventory)
|
||||
local item = inventory.getItem(itemName)
|
||||
local playerItemCount = xPlayer.getInventoryItem(itemName).count
|
||||
|
||||
if item.count >= 0 and count <= playerItemCount then
|
||||
xPlayer.removeInventoryItem(itemName, count)
|
||||
inventory.addItem(itemName, count)
|
||||
else
|
||||
xPlayer.showNotification(_U('invalid_quantity'))
|
||||
end
|
||||
|
||||
xPlayer.showNotification(_U('have_deposited', count, item.label))
|
||||
end)
|
||||
end)
|
||||
|
||||
ESX.RegisterServerCallback('esx_mechanicjob:getPlayerInventory', function(source, cb)
|
||||
local xPlayer = ESX.GetPlayerFromId(source)
|
||||
local items = xPlayer.inventory
|
||||
|
||||
cb({items = items})
|
||||
end)
|
||||
Reference in New Issue
Block a user