0.0.1
This commit is contained in:
22
resources/[core]/esx_identity/.gitignore
vendored
Normal file
22
resources/[core]/esx_identity/.gitignore
vendored
Normal file
@@ -0,0 +1,22 @@
|
||||
# Logs
|
||||
logs
|
||||
*.log
|
||||
npm-debug.log*
|
||||
yarn-debug.log*
|
||||
yarn-error.log*
|
||||
pnpm-debug.log*
|
||||
lerna-debug.log*
|
||||
|
||||
node_modules
|
||||
*.local
|
||||
|
||||
# Editor directories and files
|
||||
.vscode/*
|
||||
!.vscode/extensions.json
|
||||
.idea
|
||||
.DS_Store
|
||||
*.suo
|
||||
*.ntvs*
|
||||
*.njsproj
|
||||
*.sln
|
||||
*.sw?
|
||||
674
resources/[core]/esx_identity/LICENSE
Normal file
674
resources/[core]/esx_identity/LICENSE
Normal file
@@ -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.
|
||||
|
||||
esx_identity
|
||||
Copyright (C) 2015-2024 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_identity Copyright (C) 2015-2024 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>.
|
||||
30
resources/[core]/esx_identity/README.md
Normal file
30
resources/[core]/esx_identity/README.md
Normal file
@@ -0,0 +1,30 @@
|
||||
<h1 align='center'>[ESX] Identity</a></h1><p align='center'><b><a href='https://discord.esx-framework.org/'>Discord</a> - <a href='https://docs.esx-framework.org/legacy/installation'>Documentation</a></b></h5>
|
||||
|
||||
A Core Resource that Allows the player to Pick their characters, Name, Gender, Height and Date-of-birth.
|
||||
|
||||

|
||||
|
||||
# Infomation
|
||||
|
||||
## Requirements
|
||||
|
||||
[esx_skin](./../esx_skin/README.md)
|
||||
|
||||
## Commands
|
||||
|
||||
```
|
||||
/char
|
||||
/chardel
|
||||
```
|
||||
|
||||
## Legal
|
||||
|
||||
esx_identity - Make your Character a Person!
|
||||
|
||||
Copyright (C) 2015-2024 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/>.
|
||||
75
resources/[core]/esx_identity/client/main.lua
Normal file
75
resources/[core]/esx_identity/client/main.lua
Normal file
@@ -0,0 +1,75 @@
|
||||
local loadingScreenFinished = false
|
||||
local ready = false
|
||||
local guiEnabled = false
|
||||
local timecycleModifier = "hud_def_blur"
|
||||
|
||||
ESX.SecureNetEvent("esx_identity:alreadyRegistered", function()
|
||||
while not loadingScreenFinished do
|
||||
Wait(100)
|
||||
end
|
||||
TriggerEvent("esx_skin:playerRegistered")
|
||||
end)
|
||||
|
||||
ESX.SecureNetEvent("esx_identity:setPlayerData", function(data)
|
||||
SetTimeout(1, function()
|
||||
ESX.SetPlayerData("name", ("%s %s"):format(data.firstName, data.lastName))
|
||||
ESX.SetPlayerData("firstName", data.firstName)
|
||||
ESX.SetPlayerData("lastName", data.lastName)
|
||||
ESX.SetPlayerData("dateofbirth", data.dateOfBirth)
|
||||
ESX.SetPlayerData("sex", data.sex)
|
||||
ESX.SetPlayerData("height", data.height)
|
||||
end)
|
||||
end)
|
||||
|
||||
AddEventHandler("esx:loadingScreenOff", function()
|
||||
loadingScreenFinished = true
|
||||
end)
|
||||
|
||||
RegisterNUICallback("ready", function(_, cb)
|
||||
ready = true
|
||||
cb(1)
|
||||
end)
|
||||
|
||||
function setGuiState(state)
|
||||
SetNuiFocus(state, state)
|
||||
guiEnabled = state
|
||||
|
||||
if state then
|
||||
SetTimecycleModifier(timecycleModifier)
|
||||
else
|
||||
ClearTimecycleModifier()
|
||||
end
|
||||
|
||||
SendNUIMessage({ type = "enableui", enable = state })
|
||||
end
|
||||
|
||||
RegisterNetEvent("esx_identity:showRegisterIdentity", function()
|
||||
TriggerEvent("esx_skin:resetFirstSpawn")
|
||||
while not (ready and loadingScreenFinished) do
|
||||
print("Waiting for esx_identity NUI..")
|
||||
Wait(100)
|
||||
end
|
||||
if not ESX.PlayerData.dead then
|
||||
setGuiState(true)
|
||||
end
|
||||
end)
|
||||
|
||||
RegisterNUICallback("register", function(data, cb)
|
||||
if not guiEnabled then
|
||||
return
|
||||
end
|
||||
|
||||
ESX.TriggerServerCallback("esx_identity:registerIdentity", function(callback)
|
||||
if not callback then
|
||||
return
|
||||
end
|
||||
|
||||
ESX.ShowNotification(TranslateCap("thank_you_for_registering"))
|
||||
setGuiState(false)
|
||||
|
||||
if not ESX.GetConfig().Multichar then
|
||||
TriggerEvent("esx_skin:playerRegistered")
|
||||
end
|
||||
end, data)
|
||||
cb(1)
|
||||
end)
|
||||
19
resources/[core]/esx_identity/config.lua
Normal file
19
resources/[core]/esx_identity/config.lua
Normal file
@@ -0,0 +1,19 @@
|
||||
Config = {}
|
||||
Config.Locale = GetConvar("esx:locale", "en")
|
||||
|
||||
-- [Config.EnableCommands]
|
||||
-- Enables Commands Such As /char and /chardel
|
||||
Config.EnableCommands = ESX.GetConfig().EnableDebug
|
||||
|
||||
-- These values are for the date format in the registration menu
|
||||
-- Choices: DD/MM/YYYY | MM/DD/YYYY | YYYY/MM/DD
|
||||
Config.DateFormat = "DD/MM/YYYY"
|
||||
|
||||
-- These values are for the second input validation in server/main.lua
|
||||
Config.MaxNameLength = 20 -- Max Name Length.
|
||||
Config.MinHeight = 120 -- 120 cm lowest height
|
||||
Config.MaxHeight = 220 -- 220 cm max height.
|
||||
Config.MaxAge = 100 -- 100 years old is the oldest you can be.
|
||||
|
||||
Config.FullCharDelete = true -- Delete all reference to character.
|
||||
Config.EnableDebugging = ESX.GetConfig().EnableDebug -- prints for debugging :)
|
||||
7
resources/[core]/esx_identity/esx_identity.sql
Normal file
7
resources/[core]/esx_identity/esx_identity.sql
Normal file
@@ -0,0 +1,7 @@
|
||||
ALTER TABLE `users`
|
||||
ADD COLUMN `firstname` VARCHAR(16) NULL DEFAULT NULL,
|
||||
ADD COLUMN `lastname` VARCHAR(16) NULL DEFAULT NULL,
|
||||
ADD COLUMN `dateofbirth` VARCHAR(10) NULL DEFAULT NULL,
|
||||
ADD COLUMN `sex` VARCHAR(1) NULL DEFAULT NULL,
|
||||
ADD COLUMN `height` INT NULL DEFAULT NULL
|
||||
;
|
||||
33
resources/[core]/esx_identity/fxmanifest.lua
Normal file
33
resources/[core]/esx_identity/fxmanifest.lua
Normal file
@@ -0,0 +1,33 @@
|
||||
fx_version 'adamant'
|
||||
|
||||
game 'gta5'
|
||||
description 'Allows the player to Pick their characters: Name, Gender, Height and Date-of-birth.'
|
||||
lua54 'yes'
|
||||
version '1.13.5'
|
||||
|
||||
shared_scripts {
|
||||
'@es_extended/imports.lua',
|
||||
'@es_extended/locale.lua',
|
||||
}
|
||||
|
||||
server_scripts {
|
||||
'@oxmysql/lib/MySQL.lua',
|
||||
'locales/*.lua',
|
||||
'config.lua',
|
||||
'server/main.lua'
|
||||
}
|
||||
|
||||
client_scripts {
|
||||
'locales/*.lua',
|
||||
'config.lua',
|
||||
'client/main.lua'
|
||||
}
|
||||
|
||||
files ({
|
||||
'web/dist/assets/**',
|
||||
'web/dist/**',
|
||||
})
|
||||
|
||||
ui_page 'web/dist/index.html'
|
||||
|
||||
dependency 'es_extended'
|
||||
11
resources/[core]/esx_identity/locales/cs.lua
Normal file
11
resources/[core]/esx_identity/locales/cs.lua
Normal file
@@ -0,0 +1,11 @@
|
||||
return {
|
||||
["show_registration"] = "zobrazit registracni menu",
|
||||
["show_active_character"] = "zobrazit aktivni postavy",
|
||||
["delete_character"] = "smazat svou stavajici postavu a vytvorit novou",
|
||||
["deleted_character"] = "vase postava byla smazana.",
|
||||
["not_registered"] = "nemas zaregistrovanou postavu.",
|
||||
["active_character"] = "aktivni postava: %s %s",
|
||||
["already_registered"] = "jiz mas zaregistrovanou postavu.",
|
||||
["failed_identity"] = "nastaveni vasi postavy selhalo, zkus to prosim znovu pozdeji nebo kontaktuj majitele serveru!",
|
||||
["create_a_character"] = "aby jsi mohl/a hrat, tak se musis registrovat.",
|
||||
}
|
||||
38
resources/[core]/esx_identity/locales/da.lua
Normal file
38
resources/[core]/esx_identity/locales/da.lua
Normal file
@@ -0,0 +1,38 @@
|
||||
return {
|
||||
["show_active_character"] = "Vis aktiv karakter",
|
||||
["active_character"] = "Aktiv karakter: %s",
|
||||
["error_active_character"] = "Der opstod en fejl under indhentning af dine data.",
|
||||
["delete_character"] = "Slet din nuværende karakter.",
|
||||
["deleted_character"] = "Karakter slettet",
|
||||
["error_delete_character"] = "Der opstod et problem med at slette din karakter.",
|
||||
["thank_you_for_registering"] = "Registreringen lykkedes. God fornøjelse!",
|
||||
["debug_xPlayer_get_first_name"] = "Returnerer dit fornavn",
|
||||
["debug_xPlayer_get_last_name"] = "Returnerer dit efternavn",
|
||||
["debug_xPlayer_get_full_name"] = "Returnerer dit fulde navn",
|
||||
["debug_xPlayer_get_sex"] = "Returnerer dit køn",
|
||||
["debug_xPlayer_get_dob"] = "Returnerer din fødselsdato",
|
||||
["debug_xPlayer_get_height"] = "Giver din højde tilbage",
|
||||
["error_debug_xPlayer_get_first_name"] = "Der opstod et problem med at få dit fornavn.",
|
||||
["error_debug_xPlayer_get_last_name"] = "Der opstod et problem med at få dit efternavn.",
|
||||
["error_debug_xPlayer_get_full_name"] = "Der opstod et problem under indhentning af dit fulde navn.",
|
||||
["error_debug_xPlayer_get_sex"] = "Der var et problem med at få dit sex.",
|
||||
["error_debug_xPlayer_get_dob"] = "Der var et problem med at få din fødselsdato.",
|
||||
["error_debug_xPlayer_get_height"] = "Der var et problem med at få din højde.",
|
||||
["return_debug_xPlayer_get_first_name"] = "Fornavn: %s",
|
||||
["return_debug_xPlayer_get_last_name"] = "Efternavn: %s",
|
||||
["return_debug_xPlayer_get_full_name"] = "Fulde Navn: %s",
|
||||
["return_debug_xPlayer_get_sex"] = "Køn: %s",
|
||||
["return_debug_xPlayer_get_dob"] = "Fødselsdato: %s",
|
||||
["return_debug_xPlayer_get_height"] = "Højde: %s Tommer",
|
||||
["data_incorrect"] = "Ugyldige data. Prøv venligst igen.",
|
||||
["invalid_format"] = "Ugyldigt dataformat. Prøv venligst igen.",
|
||||
["no_identifier"] = "[ESX Identitet]\nDer var et problem under indlæsning af din karakter!\nFejlkode: identifikator mangler\n\nDette skyldes, at din identifikator mangler. Venligst vend tilbage senere eller rapporter dette problem til serverejeren.",
|
||||
["missing_identity"] = "[ESX Identitet]\nDer var et problem med at indlæse din karakter!\nFejlkode: identitet mangler\n\nDet ser ud til, at din identitet mangler, prøv at oprette forbindelse igen.",
|
||||
["deleted_identity"] = "Tegn slettet. Tilmeld dig igen for at oprette en ny karakter.",
|
||||
["already_registered"] = "Du har allerede tilmeldt dig.",
|
||||
["invalid_firstname_format"] = "Ugyldigt format (fornavn): Prøv venligst igen.",
|
||||
["invalid_lastname_format"] = "Ugyldigt format (efternavn): Prøv igen.",
|
||||
["invalid_dob_format"] = "Ugyldigt format (DOB): Prøv venligst igen.",
|
||||
["invalid_sex_format"] = "Ugyldigt format (køn): Prøv venligst igen.",
|
||||
["invalid_height_format"] = "Ugyldigt format (højde): Prøv venligst igen.",
|
||||
}
|
||||
38
resources/[core]/esx_identity/locales/de.lua
Normal file
38
resources/[core]/esx_identity/locales/de.lua
Normal file
@@ -0,0 +1,38 @@
|
||||
return {
|
||||
["show_active_character"] = "Aktiven Charakter anzeigen",
|
||||
["active_character"] = "Aktiver Charakter: %s",
|
||||
["error_active_character"] = "Beim Abrufen deiner Daten ist ein Fehler aufgetreten",
|
||||
["delete_character"] = "Lösche deinen aktuellen Charakter.",
|
||||
["deleted_character"] = "Charakter gelöscht",
|
||||
["error_delete_character"] = "Es gab ein Problem beim löschen deines Charakters.",
|
||||
["thank_you_for_registering"] = "Registrierung erfolgreich.",
|
||||
["debug_xPlayer_get_first_name"] = "Gibt deinen Vornamen zurück",
|
||||
["debug_xPlayer_get_last_name"] = "Gibt deinen Nachnamen zurück",
|
||||
["debug_xPlayer_get_full_name"] = "Gibt deinen vollständigen Namen zurück",
|
||||
["debug_xPlayer_get_sex"] = "Gibt dein Geschlecht zurück",
|
||||
["debug_xPlayer_get_dob"] = "Gibt dein Geburtsdatum zurück",
|
||||
["debug_xPlayer_get_height"] = "Gibt deine Körpergröße zurück",
|
||||
["error_debug_xPlayer_get_first_name"] = "Es gab ein Problem beim Abrufen deines Vornamens.",
|
||||
["error_debug_xPlayer_get_last_name"] = "Es gab ein Problem beim Abrufen deines Nachnamens.",
|
||||
["error_debug_xPlayer_get_full_name"] = "Es gab ein Problem beim Abrufen deines vollständigen Namens.",
|
||||
["error_debug_xPlayer_get_sex"] = "Es gab ein Problem beim Abrufen deines Geschlechts.",
|
||||
["error_debug_xPlayer_get_dob"] = "Es gab ein Problem beim Abrufen deines Geburtsdatums.",
|
||||
["error_debug_xPlayer_get_height"] = "Es gab ein Problem beim Abrufen deiner Körpergröße.",
|
||||
["return_debug_xPlayer_get_first_name"] = "Vorname: %s",
|
||||
["return_debug_xPlayer_get_last_name"] = "Nachname: %s",
|
||||
["return_debug_xPlayer_get_full_name"] = "Name: %s",
|
||||
["return_debug_xPlayer_get_sex"] = "Geschlecht: %s",
|
||||
["return_debug_xPlayer_get_dob"] = "Geburtsdatum: %s",
|
||||
["return_debug_xPlayer_get_height"] = "Größe: %s cm",
|
||||
["data_incorrect"] = "Ungültige Daten, bitte versuche es erneut",
|
||||
["invalid_format"] = "Ungültiges Datenformat, bitte versuche es erneut.",
|
||||
["no_identifier"] = "Es gab ein Problem beim Laden deines Charakters!\nFehlercode: identifier-missing\n\nDies wird dadurch verursacht, dass deine R* ID fehlt. Bitte versuche es erneut oder melde dieses Problem dem Support.",
|
||||
["missing_identity"] = "Es gab ein Problem beim Laden deines Charakters!\nFehlercode: identifier-missing\n\nDies wird dadurch verursacht, dass deine R* ID fehlt. Bitte versuche es erneut oder melde dieses Problem dem Support.",
|
||||
["deleted_identity"] = "Charakter gelöscht. Bitte verbinde dich erneut, um einen neuen Charakter zu erstellen.",
|
||||
["already_registered"] = "Du hast dich bereits registriert.",
|
||||
["invalid_firstname_format"] = "Ungültiges Format (Vorname): Bitte versuche es erneut.",
|
||||
["invalid_lastname_format"] = "Ungültiges Format (Nachname): Bitte versuche es erneut.",
|
||||
["invalid_dob_format"] = "Ungültiges Format (Geburtstag): Bitte versuche es erneut.",
|
||||
["invalid_sex_format"] = "Ungültiges Format (Geschlecht): Bitte versuche es erneut.",
|
||||
["invalid_height_format"] = "Ungültiges Format (Körpergröße): Bitte versuche es erneut.",
|
||||
}
|
||||
38
resources/[core]/esx_identity/locales/en.lua
Normal file
38
resources/[core]/esx_identity/locales/en.lua
Normal file
@@ -0,0 +1,38 @@
|
||||
return {
|
||||
["show_active_character"] = "Show Active Character",
|
||||
["active_character"] = "Active Character: %s",
|
||||
["error_active_character"] = "There was an error obtaining your data.",
|
||||
["delete_character"] = "Delete Your Current Character.",
|
||||
["deleted_character"] = "Character Deleted",
|
||||
["error_delete_character"] = "There was a problem deleting your character.",
|
||||
["thank_you_for_registering"] = "Registration Successful. Enjoy!",
|
||||
["debug_xPlayer_get_first_name"] = "Returns Your First Name",
|
||||
["debug_xPlayer_get_last_name"] = "Returns Your Last Name",
|
||||
["debug_xPlayer_get_full_name"] = "Returns Your Full Name",
|
||||
["debug_xPlayer_get_sex"] = "Returns Your Sex",
|
||||
["debug_xPlayer_get_dob"] = "Returns Your DOB",
|
||||
["debug_xPlayer_get_height"] = "Returns Your Height",
|
||||
["error_debug_xPlayer_get_first_name"] = "There was an issue while obtaining your first name.",
|
||||
["error_debug_xPlayer_get_last_name"] = "There was an issue while obtaining your last name.",
|
||||
["error_debug_xPlayer_get_full_name"] = "There was an issue while obtaining your full name.",
|
||||
["error_debug_xPlayer_get_sex"] = "There was an issue while obtaining your sex.",
|
||||
["error_debug_xPlayer_get_dob"] = "There was an issue while obtaining your date of birth.",
|
||||
["error_debug_xPlayer_get_height"] = "There was an issue while obtaining your height.",
|
||||
["return_debug_xPlayer_get_first_name"] = "First Name: %s",
|
||||
["return_debug_xPlayer_get_last_name"] = "Last Name: %s",
|
||||
["return_debug_xPlayer_get_full_name"] = "Name: %s",
|
||||
["return_debug_xPlayer_get_sex"] = "Sex: %s",
|
||||
["return_debug_xPlayer_get_dob"] = "DOB: %s",
|
||||
["return_debug_xPlayer_get_height"] = "Height: %s Inches",
|
||||
["data_incorrect"] = "Invalid Data, Please try again.",
|
||||
["invalid_format"] = "Invalid Data Format, Please try again.",
|
||||
["no_identifier"] = "[ESX Identity]\nThere was an issue while loading your character!\nError Code: identifier-missing\n\nThis is caused by your identifier being missing. Please come back later or report this problem to the Server Owner.",
|
||||
["missing_identity"] = "[ESX Identity]\nThere was an issue loading your character!\nError Code: identity-missing\n\nIt seems like your identity is missing, try connecting again.",
|
||||
["deleted_identity"] = "Character deleted. Please rejoin to create a new character.",
|
||||
["already_registered"] = "You have already registered.",
|
||||
["invalid_firstname_format"] = "Invalid Format (First Name): Please try again.",
|
||||
["invalid_lastname_format"] = "Invalid Format (Last Name): Please try again.",
|
||||
["invalid_dob_format"] = "Invalid Format (DOB): Please try again.",
|
||||
["invalid_sex_format"] = "Invalid Format (Sex): Please try again.",
|
||||
["invalid_height_format"] = "Invalid Format (Height): Please try again.",
|
||||
}
|
||||
38
resources/[core]/esx_identity/locales/es.lua
Normal file
38
resources/[core]/esx_identity/locales/es.lua
Normal file
@@ -0,0 +1,38 @@
|
||||
return {
|
||||
["show_active_character"] = "Mostrar personaje actual",
|
||||
["active_character"] = "Personaje actual: %s",
|
||||
["error_active_character"] = "Se produjo un error al recuperar tu nombre. Por favor contacta con un administrador",
|
||||
["delete_character"] = "Elimina tu personaje y crea uno nuevo",
|
||||
["deleted_character"] = "Tu personaje ha sido eliminado",
|
||||
["error_delete_character"] = "Se produjo un error al eliminar tu personaje. Por favor contacta con un administrador",
|
||||
["thank_you_for_registering"] = "Gracias por registrarte. Bienvenido a la ciudad",
|
||||
["debug_xPlayer_get_first_name"] = "Devuelve tu nombre",
|
||||
["debug_xPlayer_get_last_name"] = "Devuelve tu apellido",
|
||||
["debug_xPlayer_get_full_name"] = "Devuelve tu nombre completo",
|
||||
["debug_xPlayer_get_sex"] = "Devuelve tu sexo",
|
||||
["debug_xPlayer_get_dob"] = "Devuelve tu fecha de nacimiento",
|
||||
["debug_xPlayer_get_height"] = "Devuelve tu altura",
|
||||
["error_debug_xPlayer_get_first_name"] = "Se produjo un error al recuperar tu nombre",
|
||||
["error_debug_xPlayer_get_last_name"] = "Se produjo un error al recuperar tu apellido",
|
||||
["error_debug_xPlayer_get_full_name"] = "Se produjo un error al recuperar tu nombre completo",
|
||||
["error_debug_xPlayer_get_sex"] = "Se produjo un error al recuperar tu sexo",
|
||||
["error_debug_xPlayer_get_dob"] = "Se produjo un error al recuperar tu fecha de nacimiento",
|
||||
["error_debug_xPlayer_get_height"] = "Se produjo un error al recuperar tu altura",
|
||||
["return_debug_xPlayer_get_first_name"] = "Nombre: %s",
|
||||
["return_debug_xPlayer_get_last_name"] = "Apellido: %s",
|
||||
["return_debug_xPlayer_get_full_name"] = "Nombre completo: %s",
|
||||
["return_debug_xPlayer_get_sex"] = "Sexo: %s",
|
||||
["return_debug_xPlayer_get_dob"] = "Fecha de nacimiento: %s",
|
||||
["return_debug_xPlayer_get_height"] = "Altura: %s centímetros",
|
||||
["data_incorrect"] = "Datos introducidos de forma incorrecta. Inténtalo de nuevo",
|
||||
["invalid_format"] = "Datos con formato incorrecto. Inténtalo de nuevo",
|
||||
["no_identifier"] = "¡Se ha producido un error al cargar tu personaje!\nCódigo de error: identifier-missing\n\nSe desconoce la causa de este error, no se pudo encontrar su identificador. Intentalo más tarde o informa de este problema al equipo administrativo del servidor",
|
||||
["missing_identity"] = "¡Se ha producido un error al cargar tu personaje!\nCódigo de error: identity-missing\n\nParece que falta su identidad, intenta conectarte nuevamente",
|
||||
["deleted_identity"] = "Tu personaje ha sido borrado. Vuelva a iniciar sesión para crear un nuevo personaje",
|
||||
["already_registered"] = "Ya estás registrado.",
|
||||
["invalid_firstname_format"] = "Formato Inválido (Nombre): Inténtalo de nuevo.",
|
||||
["invalid_lastname_format"] = "Formato Inválido (Apellido): Inténtalo de nuevo.",
|
||||
["invalid_dob_format"] = "Formato Inválido (Fec. Nac.): Inténtalo de nuevo.",
|
||||
["invalid_sex_format"] = "Formato Inválido (Sexo): Inténtalo de nuevo.",
|
||||
["invalid_height_format"] = "Formato Inválido (Altura): Inténtalo de nuevo.",
|
||||
}
|
||||
33
resources/[core]/esx_identity/locales/fi.lua
Normal file
33
resources/[core]/esx_identity/locales/fi.lua
Normal file
@@ -0,0 +1,33 @@
|
||||
return {
|
||||
["show_active_character"] = "Näytä nykyinen hahmosi",
|
||||
["active_character"] = "Nykyinen hahmosi: %s",
|
||||
["error_active_character"] = "Hahmosi hakemisessa ilmeni ongelma. Ota yhteyttä ylläpitoon.",
|
||||
["delete_character"] = "Poista hahmosi ja luo uusi.",
|
||||
["deleted_character"] = "Hahmosi on poistetu.",
|
||||
["error_delete_character"] = "Hahmosi poistossa ilmeni ongelma. Ota yhteyttä ylläpitoon.",
|
||||
["thank_you_for_registering"] = "Kiitos registeröitymisestä. Pidä hauskaa!",
|
||||
["registration_error"] = "Registeröinnissä ilmeni ongelma. Ota yhteyttä ylläpitoon.",
|
||||
["debug_xPlayer_get_first_name"] = "Palauta etunimi",
|
||||
["debug_xPlayer_get_last_name"] = "Palauta sukunimi",
|
||||
["debug_xPlayer_get_full_name"] = "Palauta kokonimi",
|
||||
["debug_xPlayer_get_sex"] = "Palauta sukupuoli",
|
||||
["debug_xPlayer_get_dob"] = "Palauta syntymäpäivä",
|
||||
["debug_xPlayer_get_height"] = "Palauta pituus",
|
||||
["error_debug_xPlayer_get_first_name"] = "Hahmosi etunimen haussa ilmeni ongelma.",
|
||||
["error_debug_xPlayer_get_last_name"] = "Hahmosi sukunimen haussa ilmeni ongelma.",
|
||||
["error_debug_xPlayer_get_full_name"] = "Hahmosi kokonimen haussa ilmeni ongelma.",
|
||||
["error_debug_xPlayer_get_sex"] = "Hahmosi sukupuolen haussa ilmeni ongelma.",
|
||||
["error_debug_xPlayer_get_dob"] = "Hahmosi syntymäpäivän haussa ilmeni ongelma.",
|
||||
["error_debug_xPlayer_get_height"] = "Hahmosi pituuden haussa ilmeni ongelma.",
|
||||
["return_debug_xPlayer_get_first_name"] = "Etunimi: %s",
|
||||
["return_debug_xPlayer_get_last_name"] = "Sukunimi: %s",
|
||||
["return_debug_xPlayer_get_full_name"] = "Kokonimi: %s",
|
||||
["return_debug_xPlayer_get_sex"] = "Sukupuoli: %s",
|
||||
["return_debug_xPlayer_get_dob"] = "Syntymäpäivä: %s",
|
||||
["return_debug_xPlayer_get_height"] = "Pituus: %s CM",
|
||||
["data_incorrect"] = "Data syötetty väärin. Yritä uudelleen.",
|
||||
["invalid_format"] = "Data syötetty väärässä muodossa. Yritä uudelleen.",
|
||||
["no_identifier"] = "Hahmosi lataamisessa ilmeni ongelma!\nVirhekoodi: identifier-missing\n\nVirhekoodin syytä ei tiedetä, joten ota yhteyttä ylläpitoon.",
|
||||
["missing_identity"] = "Hahmosi lataamisessa ilmeni ongelma!\nVirhekoodi: identity-missing\n\nNäyttää siltä että hahmoasi ei ole olemassa. Kokeile yhdistää uudelleen tai ota yhteyttä ylläpitoon",
|
||||
["deleted_identity"] = "Hahmosi on poistetu. Yhdistä palvelimelle uudestaan luodaksesi uusi hahmo.",
|
||||
}
|
||||
38
resources/[core]/esx_identity/locales/fr.lua
Normal file
38
resources/[core]/esx_identity/locales/fr.lua
Normal file
@@ -0,0 +1,38 @@
|
||||
return {
|
||||
["show_active_character"] = "Afficher le personnage actif",
|
||||
["active_character"] = "Personnage actif: %s",
|
||||
["error_active_character"] = "Une erreur s'est produite lors de l'obtention de vos données.",
|
||||
["delete_character"] = "Supprimer votre personnage actuel.",
|
||||
["deleted_character"] = "Personnage supprimé",
|
||||
["error_delete_character"] = "Un problème est survenu lors de la suppression de votre personnage.",
|
||||
["thank_you_for_registering"] = "Inscription réussie. Bon jeu à vous!",
|
||||
["debug_xPlayer_get_first_name"] = "Renvoie votre prénom",
|
||||
["debug_xPlayer_get_last_name"] = "Renvoie votre nom de famille",
|
||||
["debug_xPlayer_get_full_name"] = "Renvoie votre nom complet",
|
||||
["debug_xPlayer_get_sex"] = "Renvoie votre genre",
|
||||
["debug_xPlayer_get_dob"] = "Renvoie votre date de naissance",
|
||||
["debug_xPlayer_get_height"] = "Renvoie votre taille",
|
||||
["error_debug_xPlayer_get_first_name"] = "Un problème est survenu lors de l'obtention de votre prénom.",
|
||||
["error_debug_xPlayer_get_last_name"] = "Un problème est survenu lors de l'obtention de votre nom de famille.",
|
||||
["error_debug_xPlayer_get_full_name"] = "Un problème est survenu lors de l'obtention de votre nom complet.",
|
||||
["error_debug_xPlayer_get_sex"] = "Un problème est survenu lors de l'obtention de votre genre.",
|
||||
["error_debug_xPlayer_get_dob"] = "Un problème est survenu lors de l'obtention de votre date de naissance.",
|
||||
["error_debug_xPlayer_get_height"] = "Un problème est survenu lors de l'obtention de votre taille.",
|
||||
["return_debug_xPlayer_get_first_name"] = "Prénom: %s",
|
||||
["return_debug_xPlayer_get_last_name"] = "Nom de famille: %s",
|
||||
["return_debug_xPlayer_get_full_name"] = "Nom: %s",
|
||||
["return_debug_xPlayer_get_sex"] = "Genre: %s",
|
||||
["return_debug_xPlayer_get_dob"] = "Date de naissance: %s",
|
||||
["return_debug_xPlayer_get_height"] = "Taille: %s pouces",
|
||||
["data_incorrect"] = "Données invalides, veuillez réessayer.",
|
||||
["invalid_format"] = "Format de données invalide, veuillez réessayer.",
|
||||
["no_identifier"] = "[ESX Identity]\nUn problème est survenu lors du chargement de votre personnage !\nCode d'erreur : identifier-missing\n\nIl semble que votre identifiant soit manquant. Veuillez revenir plus tard ou signaler ce problème au propriétaire du serveur.",
|
||||
["missing_identity"] = "[ESX Identity]Un problème est survenu lors du chargement de votre personnage !\nCode d'erreur : identity-missing\n\nIl semble que votre identité soit manquante, essayez de vous reconnecter.",
|
||||
["deleted_identity"] = "Personnage supprimé. Veuillez vous réinscrire pour créer un nouveau personnage.",
|
||||
["already_registered"] = "Vous êtes déjà enregistré.",
|
||||
["invalid_firstname_format"] = "Format invalide (Prénom) : Veuillez réessayer.",
|
||||
["invalid_lastname_format"] = "Format invalide (Nom de famille) : Veuillez réessayer.",
|
||||
["invalid_dob_format"] = "Format invalide (Date de naissance) : Veuillez réessayer.",
|
||||
["invalid_sex_format"] = "Format invalide (Genre) : Veuillez réessayer.",
|
||||
["invalid_height_format"] = "Format invalide (Taille) : Veuillez réessayer.",
|
||||
}
|
||||
38
resources/[core]/esx_identity/locales/he.lua
Normal file
38
resources/[core]/esx_identity/locales/he.lua
Normal file
@@ -0,0 +1,38 @@
|
||||
return {
|
||||
["show_active_character"] = "הצג דמות פעילה",
|
||||
["active_character"] = "דמות פעילה: %s",
|
||||
["error_active_character"] = "אירעה שגיאה בקבלת הנתונים שלך.",
|
||||
["delete_character"] = "מחק את הדמות הנוכחית שלך.",
|
||||
["deleted_character"] = "הדמות נמחקה",
|
||||
["error_delete_character"] = "אירעה בעיה במחיקת הדמות שלך.",
|
||||
["thank_you_for_registering"] = "הרשמה הושלמה. תהנה!",
|
||||
["debug_xPlayer_get_first_name"] = "מחזיר את שמך הפרטי",
|
||||
["debug_xPlayer_get_last_name"] = "מחזיר את שם משפחתך",
|
||||
["debug_xPlayer_get_full_name"] = "מחזיר את שמך המלא",
|
||||
["debug_xPlayer_get_sex"] = "מחזיר את המין שלך",
|
||||
["debug_xPlayer_get_dob"] = "מחזיר את תאריך הלידה שלך",
|
||||
["debug_xPlayer_get_height"] = "מחזיר את גובהך",
|
||||
["error_debug_xPlayer_get_first_name"] = "הייתה בעיה בקבלת שמך הפרטי.",
|
||||
["error_debug_xPlayer_get_last_name"] = "הייתה בעיה בקבלת שם משפחתך.",
|
||||
["error_debug_xPlayer_get_full_name"] = "הייתה בעיה בקבלת שמך המלא.",
|
||||
["error_debug_xPlayer_get_sex"] = "הייתה בעיה בקבלת המין שלך.",
|
||||
["error_debug_xPlayer_get_dob"] = "הייתה בעיה בקבלת תאריך הלידה שלך.",
|
||||
["error_debug_xPlayer_get_height"] = "הייתה בעיה בקבלת הגובה שלך.",
|
||||
["return_debug_xPlayer_get_first_name"] = "שם פרטי: %s",
|
||||
["return_debug_xPlayer_get_last_name"] = "שם משפחה: %s",
|
||||
["return_debug_xPlayer_get_full_name"] = "שם: %s",
|
||||
["return_debug_xPlayer_get_sex"] = "מין: %s",
|
||||
["return_debug_xPlayer_get_dob"] = "תאריך לידה: %s",
|
||||
["return_debug_xPlayer_get_height"] = "גובה: %s אינץ",
|
||||
["data_incorrect"] = "נתונים לא תקניים, נסה שוב.",
|
||||
["invalid_format"] = "פורמט נתונים לא תקני, נסה שוב.",
|
||||
["no_identifier"] = "[ESX Identity]\nהייתה בעיה בטעינת הדמות שלך!\nקוד שגיאה: מזהה חסר\n\nזה נגרם על ידי חוסר המזהה שלך. אנא חזור מאוחר יותר או דווח על הבעיה לבעל השרת.",
|
||||
["missing_identity"] = "[ESX Identity]\nהייתה בעיה בטעינת הדמות שלך!\nקוד שגיאה: זהות חסרה\n\nנראה שהזהות שלך חסרה, נסה להתחבר שוב.",
|
||||
["deleted_identity"] = "הדמות נמחקה. אנא הצטרף מחדש כדי ליצור דמות חדשה.",
|
||||
["already_registered"] = "כבר נרשמת.",
|
||||
["invalid_firstname_format"] = "פורמט לא תקני (שם פרטי): נסה שוב.",
|
||||
["invalid_lastname_format"] = "פורמט לא תקני (שם משפחה): נסה שוב.",
|
||||
["invalid_dob_format"] = "פורמט לא תקני (תאריך לידה): נסה שוב.",
|
||||
["invalid_sex_format"] = "פורמט לא תקני (מין): נסה שוב.",
|
||||
["invalid_height_format"] = "פורמט לא תקני (גובה): נסה שוב.",
|
||||
}
|
||||
38
resources/[core]/esx_identity/locales/hu.lua
Normal file
38
resources/[core]/esx_identity/locales/hu.lua
Normal file
@@ -0,0 +1,38 @@
|
||||
return {
|
||||
["show_active_character"] = "Aktív karakterek mutatása",
|
||||
["active_character"] = "Aktív karakter: %s",
|
||||
["error_active_character"] = "A név nem megfelelő",
|
||||
["delete_character"] = "Töröld a karaktered és csinálj újat",
|
||||
["deleted_character"] = "A karaktered törölve",
|
||||
["error_delete_character"] = "Hiba történt a karakter törlésekor. Kérjük, lépjen kapcsolatba egy Adminisztrátorral.",
|
||||
["thank_you_for_registering"] = "Köszönjük hogy regisztrált! Kellemes játékot!",
|
||||
["debug_xPlayer_get_first_name"] = "Add meg a Vezetéknevét",
|
||||
["debug_xPlayer_get_last_name"] = "Add meg a Keresztnevét",
|
||||
["debug_xPlayer_get_full_name"] = "Add meg a teljes nevét",
|
||||
["debug_xPlayer_get_sex"] = "Add meg a nemét",
|
||||
["debug_xPlayer_get_dob"] = "Add meg a születési időt",
|
||||
["debug_xPlayer_get_height"] = "Add meg a magasságát",
|
||||
["error_debug_xPlayer_get_first_name"] = "Hiba történt a keresztnév lekérésekor.",
|
||||
["error_debug_xPlayer_get_last_name"] = "Hiba történt a vezetéknév lekérésekor.",
|
||||
["error_debug_xPlayer_get_full_name"] = "Hiba történt a teljes nevének lekérésekor.",
|
||||
["error_debug_xPlayer_get_sex"] = "Hiba történt a nem lekérésekor.",
|
||||
["error_debug_xPlayer_get_dob"] = "Hiba történt a születési dátum lekérésekor.",
|
||||
["error_debug_xPlayer_get_height"] = "Hiba történt a magasság lekérésekor.",
|
||||
["return_debug_xPlayer_get_first_name"] = "Vezetéknév: %s",
|
||||
["return_debug_xPlayer_get_last_name"] = "Keresztnév: %s",
|
||||
["return_debug_xPlayer_get_full_name"] = "Teljes név: %s",
|
||||
["return_debug_xPlayer_get_sex"] = "Nem: %s",
|
||||
["return_debug_xPlayer_get_dob"] = "Születési dátum: %s",
|
||||
["return_debug_xPlayer_get_height"] = "Magasság: %s hüvelyk",
|
||||
["data_incorrect"] = "Hibásan megadott adatok. Kérlek próbáld újra.",
|
||||
["invalid_format"] = "Az adatok helytelen formázása. Kérlek próbáld újra.",
|
||||
["no_identifier"] = "Hiba történt a karakter betöltésekor! \nHibakód: hiányzó azonosító \n\nA hiba oka nem ismert, az azonosító nem található. Kérjük, gyere vissza később, vagy jelentsd a problémát a szerver adminisztrációs csapatának.",
|
||||
["missing_identity"] = "Hiba történt a karaktered betöltésekor! \n Hibakód: hiányzik az identitás \n és \nNem úgy tűnik, hogy hiányzik a személyazonosságod, próbálkozz újra.",
|
||||
["deleted_identity"] = "A karaktered törölve",
|
||||
["already_registered"] = "Már regisztráltál.",
|
||||
["invalid_firstname_format"] = "Érvénytelen formátum (Keresztnév): Próbáld újra.",
|
||||
["invalid_lastname_format"] = "Érvénytelen formátum (Vezetéknév): Próbáld újra.",
|
||||
["invalid_dob_format"] = "Érvénytelen formátum (Születési Idő): Próbáld újra.",
|
||||
["invalid_sex_format"] = "Érvénytelen formátum (Nem): Próbáld újra.",
|
||||
["invalid_height_format"] = "Érvénytelen formátum (Magasság): Próbáld újra.",
|
||||
}
|
||||
38
resources/[core]/esx_identity/locales/it.lua
Normal file
38
resources/[core]/esx_identity/locales/it.lua
Normal file
@@ -0,0 +1,38 @@
|
||||
return {
|
||||
["show_active_character"] = "Mostra Personaggio Attivo",
|
||||
["active_character"] = "Personaggio Attivo: %s",
|
||||
["error_active_character"] = "Errore nel recuperare i tuoi dati.",
|
||||
["delete_character"] = "Elimina Personaggio Attuale.",
|
||||
["deleted_character"] = "Personaggio Eliminato",
|
||||
["error_delete_character"] = "Errore nell' eliminazione del personaggio.",
|
||||
["thank_you_for_registering"] = "Registrazione effettuata. Divertiti!",
|
||||
["debug_xPlayer_get_first_name"] = "Ritorna il tuo nome",
|
||||
["debug_xPlayer_get_last_name"] = "Ritorna il tuo cognome",
|
||||
["debug_xPlayer_get_full_name"] = "Ritorna il tuo nome completo",
|
||||
["debug_xPlayer_get_sex"] = "Ritorna il tuo sesso",
|
||||
["debug_xPlayer_get_dob"] = "Ritorna la tua data di nascita",
|
||||
["debug_xPlayer_get_height"] = "Ritorna la tua altezza",
|
||||
["error_debug_xPlayer_get_first_name"] = "Errore nell' ottenere il tuo nome.",
|
||||
["error_debug_xPlayer_get_last_name"] = "Errore nell' ottenere il tuo cognome.",
|
||||
["error_debug_xPlayer_get_full_name"] = "Errore nell' ottenere il tuo nome completo.",
|
||||
["error_debug_xPlayer_get_sex"] = "Errore nell' ottenere il tuo sesso.",
|
||||
["error_debug_xPlayer_get_dob"] = "Errore nell' ottenere la tua data di nascita.",
|
||||
["error_debug_xPlayer_get_height"] = "Errore nell' ottenere la tua altezza.",
|
||||
["return_debug_xPlayer_get_first_name"] = "Nome: %s",
|
||||
["return_debug_xPlayer_get_last_name"] = "Cognome: %s",
|
||||
["return_debug_xPlayer_get_full_name"] = "Nome Completo: %s",
|
||||
["return_debug_xPlayer_get_sex"] = "Sesso: %s",
|
||||
["return_debug_xPlayer_get_dob"] = "Data di nascita: %s",
|
||||
["return_debug_xPlayer_get_height"] = "Altezza: %s Pollici",
|
||||
["data_incorrect"] = "Dati errati, riprova.",
|
||||
["invalid_format"] = "Formato dati errato, riprova.",
|
||||
["no_identifier"] = "[ESX Identity]\nErrore nel caricare il tuo personaggio!\nCodice Errore: identificativo-mancante\n\nQuesto è causato dalla mancanza del tuo identificativo. Riprova più tardi o segnalalo al proprietario del server.",
|
||||
["missing_identity"] = "[ESX Identity]\nErrore nel caricare il tuo personaggio!!\nCodice Errore: identità-mancante\n\nSembra che la tua identità sia mancante, prova a riconnetterti.",
|
||||
["deleted_identity"] = "Personaggio eliminato, Rientra per crearne uno nuovo.",
|
||||
["already_registered"] = "Sei già registrato.",
|
||||
["invalid_firstname_format"] = "Formato non valido (Nome): Riprova.",
|
||||
["invalid_lastname_format"] = "Formato non valido (Cognome): Riprova.",
|
||||
["invalid_dob_format"] = "Formato non valido (Data di nascita): Riprova.",
|
||||
["invalid_sex_format"] = "Formato non valido (Sesso): Riprova.",
|
||||
["invalid_height_format"] = "Formato non valido (Altezza): Riprova.",
|
||||
}
|
||||
38
resources/[core]/esx_identity/locales/nl.lua
Normal file
38
resources/[core]/esx_identity/locales/nl.lua
Normal file
@@ -0,0 +1,38 @@
|
||||
return {
|
||||
["show_active_character"] = "Actieve karakter laten zien",
|
||||
["active_character"] = "Actief karakter: %s",
|
||||
["error_active_character"] = "Er is een probleem opgetreden tijdens het verzamelen van uw data.",
|
||||
["delete_character"] = "Dit karakter verwijderen.",
|
||||
["deleted_character"] = "Karakter verwijderd",
|
||||
["error_delete_character"] = "Er is een probleem opgetreden tijdens het verwijderen van uw karakter.",
|
||||
["thank_you_for_registering"] = "Succesvol geregistreerd!",
|
||||
["debug_xPlayer_get_first_name"] = "Stuurt je Voornaam",
|
||||
["debug_xPlayer_get_last_name"] = "Stuurt je Achternaam",
|
||||
["debug_xPlayer_get_full_name"] = "Stuurt je volledige naam",
|
||||
["debug_xPlayer_get_sex"] = "Stuurt je Geslacht",
|
||||
["debug_xPlayer_get_dob"] = "Stuurt je Geboortedatum ",
|
||||
["debug_xPlayer_get_height"] = "Stuurt je lengte",
|
||||
["error_debug_xPlayer_get_first_name"] = "Er was een probleem tijdens het ophalen van je Voornaam.",
|
||||
["error_debug_xPlayer_get_last_name"] = "Er was een probleem tijdens het ophalen van je achternaam.",
|
||||
["error_debug_xPlayer_get_full_name"] = "Er was een probleem tijdens het ophalen van je volle naam.",
|
||||
["error_debug_xPlayer_get_sex"] = "Er was een probleem tijdens het ophalen van je Geslacht.",
|
||||
["error_debug_xPlayer_get_dob"] = "Er was een probleem tijdens het ophalen van je Geboortedatum.",
|
||||
["error_debug_xPlayer_get_height"] = "Er was een probleem tijdens het ophalen van je lengte.",
|
||||
["return_debug_xPlayer_get_first_name"] = "Voornaam: %s",
|
||||
["return_debug_xPlayer_get_last_name"] = "Achternaam: %s",
|
||||
["return_debug_xPlayer_get_full_name"] = "Naam: %s",
|
||||
["return_debug_xPlayer_get_sex"] = "Geslacht: %s",
|
||||
["return_debug_xPlayer_get_dob"] = "Geboortedatum: %s",
|
||||
["return_debug_xPlayer_get_height"] = "Lengte: %s Inches",
|
||||
["data_incorrect"] = "Verkeerde data, probeer opnieuw.",
|
||||
["invalid_format"] = "Verkeerde volgorde, probeer opnieuw.",
|
||||
["no_identifier"] = "[ESX Identity]\nEr was een probleem tijdens het laden van je karakter!\nError Code: identifier-missing\n\nDit komt omdat je identifier mist, contacteer het server beheer.",
|
||||
["missing_identity"] = "[ESX Identity]\nEr was een probleem tijdens het laden van je karakter!\nError Code: identity-missing\n\nHet lijkt erop dat je identiteit mist, reconnect met de server.",
|
||||
["deleted_identity"] = "Karakter verwijderd, reconnect om een nieuwe te registreren.",
|
||||
["already_registered"] = "Je bent al geregistreerd.",
|
||||
["invalid_firstname_format"] = "Ongeldige Volgorde (Voornaam): Probeer het nog een keer.",
|
||||
["invalid_lastname_format"] = "Ongeldige Volgorde (Achternaam): Probeer het nog een keer.",
|
||||
["invalid_dob_format"] = "Ongeldige Volgorde (Geboortedatum): Probeer het nog een keer.",
|
||||
["invalid_sex_format"] = "Ongeldige Volgorde (Geslacht): Probeer het nog een keer.",
|
||||
["invalid_height_format"] = "Ongeldige Volgorde (Lengte): Probeer het nog een keer.",
|
||||
}
|
||||
33
resources/[core]/esx_identity/locales/pl.lua
Normal file
33
resources/[core]/esx_identity/locales/pl.lua
Normal file
@@ -0,0 +1,33 @@
|
||||
return {
|
||||
["show_active_character"] = "Pokaż aktywną postać",
|
||||
["active_character"] = "Aktywna postać: %s",
|
||||
["error_active_character"] = "Podczas pobierania Twojego imienia wystąpił błąd. Proszę skontaktować się z administratorem.",
|
||||
["delete_character"] = "Usuń swoją postać i stwórz nową",
|
||||
["deleted_character"] = "Twoja postać została usunięta.",
|
||||
["error_delete_character"] = "Wystąpił błąd podczas usuwania twojej postaci. Proszę skontaktować się z administratorem.",
|
||||
["thank_you_for_registering"] = "Dziękujemy za rejestrację. Baw się dobrze.",
|
||||
["registration_error"] = "Wystąpił błąd podczas rejestracji. Proszę skontaktować się z administratorem.",
|
||||
["debug_xPlayer_get_first_name"] = "Podaj swoje imię",
|
||||
["debug_xPlayer_get_last_name"] = "Podaj swoje nazwisko",
|
||||
["debug_xPlayer_get_full_name"] = "Podaj swoją pełną nazwę",
|
||||
["debug_xPlayer_get_sex"] = "Podaj swoją płeć",
|
||||
["debug_xPlayer_get_dob"] = "Podaj swoją datę urodzenia",
|
||||
["debug_xPlayer_get_height"] = "Podaj swój wzrost",
|
||||
["error_debug_xPlayer_get_first_name"] = "Podczas pobierania twojego imienia wystąpił błąd.",
|
||||
["error_debug_xPlayer_get_last_name"] = "Podczas pobierania twojego nazwiska wystąpił błąd.",
|
||||
["error_debug_xPlayer_get_full_name"] = "Podczas pobierania twojego pełnego imienia wystąpił błąd.",
|
||||
["error_debug_xPlayer_get_sex"] = "Podczas pobierania twojej płci wystąpił błąd.",
|
||||
["error_debug_xPlayer_get_dob"] = "Podczas pobierania daty urodzenia wystąpił błąd.",
|
||||
["error_debug_xPlayer_get_height"] = "Podczas pobierania wzrostu wystąpił błąd.",
|
||||
["return_debug_xPlayer_get_first_name"] = "Imię: %s",
|
||||
["return_debug_xPlayer_get_last_name"] = "Nazwisko: %s",
|
||||
["return_debug_xPlayer_get_full_name"] = "Pełna nazwa: %s",
|
||||
["return_debug_xPlayer_get_sex"] = "Płeć: %s",
|
||||
["return_debug_xPlayer_get_dob"] = "Data urodzenia: %s",
|
||||
["return_debug_xPlayer_get_height"] = "Wzrost: %s centymetrów",
|
||||
["data_incorrect"] = "Data została wprowadzona niepoprawnie. Proszę spróbuj ponownie.",
|
||||
["invalid_format"] = "Data została wprowadzona niepoprawnie. Proszę spróbuj ponownie.",
|
||||
["no_identifier"] = "Wystąpił błąd podczas ładowania twojej postaci!\nKod błędu: identifier-missing\n\nPrzyczyna tego błędu nie jest znana, nie można znaleźć Twojego identyfikatora. Wróć później lub zgłoś ten problem zespołowi administracyjnemu serwera.",
|
||||
["missing_identity"] = "Wystąpił błąd podczas ładowania twojej postaci!\nKod błędu: identity-missing\n\nWygląda na to, że brakuje Twojej tożsamości, spróbuj połączyć się ponownie.",
|
||||
["deleted_identity"] = "Twoja postać została usunięta. Dołącz ponownie, aby utworzyć nową postać.",
|
||||
}
|
||||
38
resources/[core]/esx_identity/locales/pt.lua
Normal file
38
resources/[core]/esx_identity/locales/pt.lua
Normal file
@@ -0,0 +1,38 @@
|
||||
return {
|
||||
["show_active_character"] = "Mostrar personagem ativa",
|
||||
["active_character"] = "Personagem ativa: %s",
|
||||
["error_active_character"] = "Houve um erro a obter os teus dados.",
|
||||
["delete_character"] = "Apagar a tua personagem atual.",
|
||||
["deleted_character"] = "Personagem apagada!",
|
||||
["error_delete_character"] = "Houve um problema ao apagar a tua personagem.",
|
||||
["thank_you_for_registering"] = "Registo concluído. Diverte-te!",
|
||||
["debug_xPlayer_get_first_name"] = "Retorna o teu primeiro nome",
|
||||
["debug_xPlayer_get_last_name"] = "Retorna o teu último nome",
|
||||
["debug_xPlayer_get_full_name"] = "Retorna o teu nome completo",
|
||||
["debug_xPlayer_get_sex"] = "Retorna o teu sexo",
|
||||
["debug_xPlayer_get_dob"] = "Retorna a tua data de nascimento",
|
||||
["debug_xPlayer_get_height"] = "Retorna a tua altura",
|
||||
["error_debug_xPlayer_get_first_name"] = "Houve um problema ao obter o teu primeiro nome.",
|
||||
["error_debug_xPlayer_get_last_name"] = "Houve um problema ao obter o teu último nome.",
|
||||
["error_debug_xPlayer_get_full_name"] = "Houve um problema ao obter o teu nome completo.",
|
||||
["error_debug_xPlayer_get_sex"] = "Houve um problema ao obter o teu sexo.",
|
||||
["error_debug_xPlayer_get_dob"] = "Houve um problema ao obter a tua data de nascimento.",
|
||||
["error_debug_xPlayer_get_height"] = "Houve um problema ao obter a tua altura.",
|
||||
["return_debug_xPlayer_get_first_name"] = "Primeiro nome: %s",
|
||||
["return_debug_xPlayer_get_last_name"] = "Último nome: %s",
|
||||
["return_debug_xPlayer_get_full_name"] = "Nome: %s",
|
||||
["return_debug_xPlayer_get_sex"] = "Sexo: %s",
|
||||
["return_debug_xPlayer_get_dob"] = "Data de nascimento: %s",
|
||||
["return_debug_xPlayer_get_height"] = "Altura: %s cm",
|
||||
["data_incorrect"] = "Dados inválidos, tenta novamente.",
|
||||
["invalid_format"] = "Formato dos dados inválido, tenta novamente.",
|
||||
["no_identifier"] = "[ESX Identity]\nHouve um erro ao carregar a tua personagem!\nCódigo do erro: identifier-missing\n\nEste erro é devido à falta do teu identificador. Porfavor volta mais tarde ou reporta este problema a um Administrador.",
|
||||
["missing_identity"] = "[ESX Identity]\nHouve um erro ao carregar a tua personagem!\nCódigo do erro: identity-missing\n\nParece que a tua identidade está em falta, experimenta reentrar no servidor!",
|
||||
["deleted_identity"] = "Personagem apagada. Porfavor reentra para criar uma nova personagem.",
|
||||
["already_registered"] = "Tu já estás registado.",
|
||||
["invalid_firstname_format"] = "Formato inválido (Primeiro nome): Porfavor tenta novamente!",
|
||||
["invalid_lastname_format"] = "Formato inválido (Último nome): Porfavor tenta novamente!",
|
||||
["invalid_dob_format"] = "Formato inválido (Data de nascimento): Porfavor tenta novamente!",
|
||||
["invalid_sex_format"] = "Formato inválido (Sexo): Porfavor tenta novamente!",
|
||||
["invalid_height_format"] = "Formato inválido (Altura): Porfavor tenta novamente!",
|
||||
}
|
||||
38
resources/[core]/esx_identity/locales/sl.lua
Normal file
38
resources/[core]/esx_identity/locales/sl.lua
Normal file
@@ -0,0 +1,38 @@
|
||||
return {
|
||||
["show_active_character"] = "Prikaži aktivnega lika",
|
||||
["active_character"] = "Aktivni lik: %s",
|
||||
["error_active_character"] = "Prišlo je do napake pri pridobivanju podatkov.",
|
||||
["delete_character"] = "Izbriši trenutnega lika.",
|
||||
["deleted_character"] = "Lik je bil izbrisan",
|
||||
["error_delete_character"] = "Prišlo je do težave pri brisanju lika.",
|
||||
["thank_you_for_registering"] = "Registracija uspešna. Uživajte!",
|
||||
["debug_xPlayer_get_first_name"] = "Vrne vaše ime",
|
||||
["debug_xPlayer_get_last_name"] = "Vrne vaše priimek",
|
||||
["debug_xPlayer_get_full_name"] = "Vrne vaše polno ime",
|
||||
["debug_xPlayer_get_sex"] = "Vrne vaš spol",
|
||||
["debug_xPlayer_get_dob"] = "Vrne vaš datum rojstva",
|
||||
["debug_xPlayer_get_height"] = "Vrne vašo višino",
|
||||
["error_debug_xPlayer_get_first_name"] = "Prišlo je do težave pri pridobivanju vašega imena.",
|
||||
["error_debug_xPlayer_get_last_name"] = "Prišlo je do težave pri pridobivanju vašega priimka.",
|
||||
["error_debug_xPlayer_get_full_name"] = "Prišlo je do težave pri pridobivanju vašega polnega imena.",
|
||||
["error_debug_xPlayer_get_sex"] = "Prišlo je do težave pri pridobivanju vašega spola.",
|
||||
["error_debug_xPlayer_get_dob"] = "Prišlo je do težave pri pridobivanju vašega datuma rojstva.",
|
||||
["error_debug_xPlayer_get_height"] = "Prišlo je do težave pri pridobivanju vaše višine.",
|
||||
["return_debug_xPlayer_get_first_name"] = "Ime: %s",
|
||||
["return_debug_xPlayer_get_last_name"] = "Priimek: %s",
|
||||
["return_debug_xPlayer_get_full_name"] = "Ime: %s",
|
||||
["return_debug_xPlayer_get_sex"] = "Spol: %s",
|
||||
["return_debug_xPlayer_get_dob"] = "Datum rojstva: %s",
|
||||
["return_debug_xPlayer_get_height"] = "Višina: %s palcev",
|
||||
["data_incorrect"] = "Neveljavni podatki. Poskusite znova.",
|
||||
["invalid_format"] = "Neveljavna oblika podatkov. Poskusite znova.",
|
||||
["no_identifier"] = "[ESX Identity]\nPrišlo je do težave pri nalaganju vašega lika!\nNapaka: manjkajoč-identifier\n\nTo je posledica manjkajočega identifikatorja. Prosimo, poskusite znova kasneje ali to težavo prijavite lastniku strežnika.",
|
||||
["missing_identity"] = "[ESX Identity]\nPrišlo je do težave pri nalaganju vašega lika!\nNapaka: manjkajoč-identity\n\nZdi se, da manjka vaša identiteta. Poskusite znova.",
|
||||
["deleted_identity"] = "Lik izbrisan. Prosimo, ponovno se pridružite in ustvarite nov lik.",
|
||||
["already_registered"] = "Že ste registrirani.",
|
||||
["invalid_firstname_format"] = "Neveljavna oblika (Ime). Poskusite znova.",
|
||||
["invalid_lastname_format"] = "Neveljavna oblika (Priimek). Poskusite znova.",
|
||||
["invalid_dob_format"] = "Neveljavna oblika (Datum rojstva). Poskusite znova.",
|
||||
["invalid_sex_format"] = "Neveljavna oblika (Spol). Poskusite znova.",
|
||||
["invalid_height_format"] = "Neveljavna oblika (Višina). Poskusite znova.",
|
||||
}
|
||||
38
resources/[core]/esx_identity/locales/sr.lua
Normal file
38
resources/[core]/esx_identity/locales/sr.lua
Normal file
@@ -0,0 +1,38 @@
|
||||
return {
|
||||
["show_active_character"] = "Prikazi karaktere",
|
||||
["active_character"] = "Karakteri: %s",
|
||||
["error_active_character"] = "Imamo problem sa ucitavanjem karaktera.",
|
||||
["delete_character"] = "Obrisite karaktera.",
|
||||
["deleted_character"] = "Karakter obrisan",
|
||||
["error_delete_character"] = "Doslo je do greske pri brisanju karaktera.",
|
||||
["thank_you_for_registering"] = "Registracija uspesna. Uzivajte!",
|
||||
["debug_xPlayer_get_first_name"] = "Vraca vase ime",
|
||||
["debug_xPlayer_get_last_name"] = "Vraca vase prezime",
|
||||
["debug_xPlayer_get_full_name"] = "Vraca vase puno ime",
|
||||
["debug_xPlayer_get_sex"] = "Vraca vas pol",
|
||||
["debug_xPlayer_get_dob"] = "Vraca vas datum rodjenja",
|
||||
["debug_xPlayer_get_height"] = "Vraca vasu visinu",
|
||||
["error_debug_xPlayer_get_first_name"] = "Doslo je do greske pri pronalazenju vaseg imena.",
|
||||
["error_debug_xPlayer_get_last_name"] = "Doslo je do greske pri pronalazenju vaseg prezimena.",
|
||||
["error_debug_xPlayer_get_full_name"] = "Doslo je do greske pri pronalazenju vaseg punog imena.",
|
||||
["error_debug_xPlayer_get_sex"] = "Doslo je do greske pri pronalazenju vaseg pola.",
|
||||
["error_debug_xPlayer_get_dob"] = "Doslo je do greske pri pronalazenju vaseg datuma rodjenja.",
|
||||
["error_debug_xPlayer_get_height"] = "Doslo je do greske pri pronalazenju vase visine.",
|
||||
["return_debug_xPlayer_get_first_name"] = "Ime: %s",
|
||||
["return_debug_xPlayer_get_last_name"] = "Prezime: %s",
|
||||
["return_debug_xPlayer_get_full_name"] = "Ime: %s",
|
||||
["return_debug_xPlayer_get_sex"] = "Pol: %s",
|
||||
["return_debug_xPlayer_get_dob"] = "Datum rodjenja: %s",
|
||||
["return_debug_xPlayer_get_height"] = "Visina: %s",
|
||||
["data_incorrect"] = "Nevazeci podatci, pokusajte ponovo.",
|
||||
["invalid_format"] = "Nevazeci format podataka, pokusajte ponovo.",
|
||||
["no_identifier"] = "[ESX Identity]\nDoslo je do greske pri ucitavanju vaseg karaktera!\nError Code: identifier-missing\n\nUpalite steam pa pokusajte ponovo.",
|
||||
["missing_identity"] = "[ESX Identity]\nDoslo je do greske pri ucitavanju vaseg karaktera!\nError Code: identity-missing\n\nIzgleda da je vas steam nepostojeci. Pokusajte ponovo.",
|
||||
["deleted_identity"] = "Karakter obrisan. Uradite relog kako bi napravili novog karaktera.",
|
||||
["already_registered"] = "Vi ste vec registrovani.",
|
||||
["invalid_firstname_format"] = "Nevazeci Format (Ime): Pokusajte ponovo.",
|
||||
["invalid_lastname_format"] = "Nevazeci Format (Prezime): Pokusajte ponovo.",
|
||||
["invalid_dob_format"] = "Nevazeci Format (Datum Rodjenja): Pokusajte ponovo.",
|
||||
["invalid_sex_format"] = "Nevazeci Format (Pol): Pokusajte ponovo.",
|
||||
["invalid_height_format"] = "Nevazeci Format (Visina): Pokusajte ponovo.",
|
||||
}
|
||||
38
resources/[core]/esx_identity/locales/sv.lua
Normal file
38
resources/[core]/esx_identity/locales/sv.lua
Normal file
@@ -0,0 +1,38 @@
|
||||
return {
|
||||
["show_active_character"] = "Visa aktiv karaktär",
|
||||
["active_character"] = "Aktiv karaktär: %s",
|
||||
["error_active_character"] = "Det blev ett fel med att ta din data.",
|
||||
["delete_character"] = "Radera din nuvarande karaktär.",
|
||||
["deleted_character"] = "Karaktär raderad",
|
||||
["error_delete_character"] = "Det uppstod ett problem med att radera din karaktär.",
|
||||
["thank_you_for_registering"] = "Din karaktär är skapad. Grattis!",
|
||||
["debug_xPlayer_get_first_name"] = "Ger ditt förnamn",
|
||||
["debug_xPlayer_get_last_name"] = "Ger ditt efternamn",
|
||||
["debug_xPlayer_get_full_name"] = "Ger ditt fulla namn",
|
||||
["debug_xPlayer_get_sex"] = "Ger ditt kön",
|
||||
["debug_xPlayer_get_dob"] = "Ger ditt födelsedatum",
|
||||
["debug_xPlayer_get_height"] = "Ger din längd",
|
||||
["error_debug_xPlayer_get_first_name"] = "Det blev ett problem med att få ditt förnamn.",
|
||||
["error_debug_xPlayer_get_last_name"] = "Det blev ett problem med att få ditt efternamn.",
|
||||
["error_debug_xPlayer_get_full_name"] = "Det blev ett problem med att få ditt fulla namn.",
|
||||
["error_debug_xPlayer_get_sex"] = "Det blev ett problem med att få ditt kön.",
|
||||
["error_debug_xPlayer_get_dob"] = "Det blev ett problem med att få ditt födelsedatum.",
|
||||
["error_debug_xPlayer_get_height"] = "Det blev ett problem med att få din längd.",
|
||||
["return_debug_xPlayer_get_first_name"] = "Förnamn: %s",
|
||||
["return_debug_xPlayer_get_last_name"] = "Efternamn: %s",
|
||||
["return_debug_xPlayer_get_full_name"] = "Namn: %s",
|
||||
["return_debug_xPlayer_get_sex"] = "Kön: %s",
|
||||
["return_debug_xPlayer_get_dob"] = "Födelsedatum: %s",
|
||||
["return_debug_xPlayer_get_height"] = "Längd: %s Cm",
|
||||
["data_incorrect"] = "Ogiltigt, försök igen.",
|
||||
["invalid_format"] = "Ogiltigt format, försök igen.",
|
||||
["no_identifier"] = "[ESX Identity]\nDet blev ett fel med att ladda din karaktär!\nFelkod: identifier-missing\n\nSer ut som att din identifier saknas. Testa senare eller kontakta serverägare.",
|
||||
["missing_identity"] = "[ESX Identity]\nThere was an issue loading your character!\nFelkod: identity-missing\n\nSer ut som att din identity saknas, testa anslut igen.",
|
||||
["deleted_identity"] = "Karaktär raderad. Restarta ditt spel för att skapa ny karaktär.",
|
||||
["already_registered"] = "Du har redan registrerat.",
|
||||
["invalid_firstname_format"] = "Ogiltigt format (Förnamn): Försök igen.",
|
||||
["invalid_lastname_format"] = "Ogiltigt format (Efternamn): Försök igen.",
|
||||
["invalid_dob_format"] = "Ogiltigt format (Födelsedatum): Försök igen.",
|
||||
["invalid_sex_format"] = "Ogiltigt format (Kön): Försök igen.",
|
||||
["invalid_height_format"] = "Ogiltigt format (Längd): Försök igen.",
|
||||
}
|
||||
409
resources/[core]/esx_identity/server/main.lua
Normal file
409
resources/[core]/esx_identity/server/main.lua
Normal file
@@ -0,0 +1,409 @@
|
||||
local playerIdentity = {}
|
||||
local alreadyRegistered = {}
|
||||
local multichar = ESX.GetConfig().Multichar
|
||||
|
||||
local function deleteIdentityFromDatabase(xPlayer)
|
||||
MySQL.query.await("UPDATE users SET firstname = ?, lastname = ?, dateofbirth = ?, sex = ?, height = ?, skin = ? WHERE identifier = ?", { nil, nil, nil, nil, nil, nil, xPlayer.identifier })
|
||||
|
||||
if Config.FullCharDelete then
|
||||
MySQL.update.await("UPDATE addon_account_data SET money = 0 WHERE account_name IN (?) AND owner = ?", { { "bank_savings", "caution" }, xPlayer.identifier })
|
||||
|
||||
MySQL.prepare.await("UPDATE datastore_data SET data = ? WHERE name IN (?) AND owner = ?", { "'{}'", { "user_ears", "user_glasses", "user_helmet", "user_mask" }, xPlayer.identifier })
|
||||
end
|
||||
end
|
||||
|
||||
---@param xPlayer StaticPlayer|xPlayer
|
||||
---@param data {firstName:string?, lastName:string?, dateOfBirth:string?, height:number?, sex:"m"|"f"?}
|
||||
function SetPlayerData(xPlayer, data)
|
||||
local name = ("%s %s"):format(data.firstName, data.lastName)
|
||||
xPlayer.setName(name)
|
||||
xPlayer.set("firstName", data.firstName)
|
||||
xPlayer.set("lastName", data.lastName)
|
||||
xPlayer.set("dateofbirth", data.dateOfBirth)
|
||||
xPlayer.set("sex", data.sex)
|
||||
xPlayer.set("height", data.height)
|
||||
|
||||
local state = Player(xPlayer.getSource()).state
|
||||
state:set("name", name, true)
|
||||
state:set("firstName", data.firstName, true)
|
||||
state:set("lastName", data.lastName, true)
|
||||
state:set("dateofbirth", data.dateOfBirth, true)
|
||||
state:set("sex", data.sex, true)
|
||||
state:set("height", data.height, true)
|
||||
end
|
||||
|
||||
---@param xPlayer xPlayer
|
||||
local function deleteIdentity(xPlayer)
|
||||
if not alreadyRegistered[xPlayer.identifier] then
|
||||
return
|
||||
end
|
||||
|
||||
SetPlayerData(xPlayer, { firstName = nil, lastName = nil, dateOfBirth = nil, sex = nil, height = nil })
|
||||
deleteIdentityFromDatabase(xPlayer)
|
||||
end
|
||||
|
||||
|
||||
local function saveIdentityToDatabase(identifier, identity)
|
||||
MySQL.update.await("UPDATE users SET firstname = ?, lastname = ?, dateofbirth = ?, sex = ?, height = ? WHERE identifier = ?", { identity.firstName, identity.lastName, identity.dateOfBirth, identity.sex, identity.height, identifier })
|
||||
end
|
||||
|
||||
---@param year number Year
|
||||
---@return boolean: true if the year is a leap year, false otherwise
|
||||
local function isLeapYear(year)
|
||||
return (year % 4 == 0 and year % 100 ~= 0) or (year % 400 == 0)
|
||||
end
|
||||
|
||||
---@param dob string Date of Birth in the format DD/MM/YYYY
|
||||
---@return boolean: true if the date is valid, false otherwise
|
||||
local function checkDOBFormat(dob)
|
||||
dob = tostring(dob)
|
||||
|
||||
local dayStr, monthStr, yearStr = dob:match("^(%d%d?)/(%d%d?)/(%d%d%d%d)$")
|
||||
if not dayStr or not monthStr or not yearStr then
|
||||
return false
|
||||
end
|
||||
|
||||
local day, month, year = tonumber(dayStr), tonumber(monthStr), tonumber(yearStr)
|
||||
if not day or not month or not year then
|
||||
return false
|
||||
end
|
||||
|
||||
local currentYear = os.date("*t").year
|
||||
local minYear = currentYear - Config.MaxAge
|
||||
local maxYear = currentYear - 18
|
||||
|
||||
if year < minYear or year > maxYear then return false end
|
||||
if month < 1 or month > 12 then return false end
|
||||
|
||||
-- Days in each month (starting from January.)
|
||||
local daysInMonth = { 31, isLeapYear(year) and 29 or 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31 }
|
||||
return day >= 1 and day <= daysInMonth[month]
|
||||
end
|
||||
|
||||
local function formatDate(str)
|
||||
local d, m, y = string.match(str, "(%d+)/(%d+)/(%d+)")
|
||||
local date = str
|
||||
|
||||
if Config.DateFormat == "MM/DD/YYYY" then
|
||||
date = m .. "/" .. d .. "/" .. y
|
||||
elseif Config.DateFormat == "YYYY/MM/DD" then
|
||||
date = y .. "/" .. m .. "/" .. d
|
||||
end
|
||||
|
||||
return date
|
||||
end
|
||||
|
||||
local function checkNameFormat(name)
|
||||
if ESX.IsValidLocaleString(name) then
|
||||
local stringLength = string.len(name)
|
||||
return stringLength > 0 and stringLength < Config.MaxNameLength
|
||||
end
|
||||
|
||||
return false
|
||||
end
|
||||
|
||||
local function checkSexFormat(sex)
|
||||
if not sex then
|
||||
return false
|
||||
end
|
||||
return sex == "m" or sex == "M" or sex == "f" or sex == "F"
|
||||
end
|
||||
|
||||
local function checkHeightFormat(height)
|
||||
local numHeight = tonumber(height) or 0
|
||||
return numHeight >= Config.MinHeight and numHeight <= Config.MaxHeight
|
||||
end
|
||||
|
||||
local function convertToLowerCase(str)
|
||||
return string.lower(str)
|
||||
end
|
||||
|
||||
local function convertFirstLetterToUpper(str)
|
||||
return str:gsub("^%l", string.upper)
|
||||
end
|
||||
|
||||
local function formatName(name)
|
||||
local loweredName = convertToLowerCase(name)
|
||||
return convertFirstLetterToUpper(loweredName)
|
||||
end
|
||||
|
||||
---@param xPlayer StaticPlayer
|
||||
local function setIdentity(xPlayer)
|
||||
local playerIdentifier = xPlayer.getIdentifier()
|
||||
if not alreadyRegistered[playerIdentifier] then
|
||||
return
|
||||
end
|
||||
local currentIdentity = playerIdentity[playerIdentifier]
|
||||
SetPlayerData(xPlayer, currentIdentity)
|
||||
|
||||
TriggerClientEvent("esx_identity:setPlayerData", xPlayer.src, currentIdentity)
|
||||
if currentIdentity.saveToDatabase then
|
||||
saveIdentityToDatabase(playerIdentifier, currentIdentity)
|
||||
end
|
||||
|
||||
playerIdentity[playerIdentifier] = nil
|
||||
end
|
||||
|
||||
---@param xPlayer StaticPlayer
|
||||
local function checkIdentity(xPlayer)
|
||||
local playerIdentifier = xPlayer.getIdentifier()
|
||||
MySQL.single("SELECT firstname, lastname, dateofbirth, sex, height FROM users WHERE identifier = ?", { playerIdentifier }, function(result)
|
||||
if not result then
|
||||
return TriggerClientEvent("esx_identity:showRegisterIdentity", xPlayer.src)
|
||||
end
|
||||
if not result.firstname then
|
||||
playerIdentity[playerIdentifier] = nil
|
||||
alreadyRegistered[playerIdentifier] = false
|
||||
return TriggerClientEvent("esx_identity:showRegisterIdentity", xPlayer.src)
|
||||
end
|
||||
|
||||
playerIdentity[playerIdentifier] = {
|
||||
firstName = result.firstname,
|
||||
lastName = result.lastname,
|
||||
dateOfBirth = result.dateofbirth,
|
||||
sex = result.sex,
|
||||
height = result.height,
|
||||
}
|
||||
|
||||
alreadyRegistered[playerIdentifier] = true
|
||||
setIdentity(xPlayer)
|
||||
end)
|
||||
end
|
||||
|
||||
if not multichar then
|
||||
AddEventHandler("playerConnecting", function(_, _, deferrals)
|
||||
deferrals.defer()
|
||||
local _, identifier = source, nil
|
||||
|
||||
local correctLicense, _ = pcall(function()
|
||||
identifier = ESX.GetIdentifier(source)
|
||||
end)
|
||||
|
||||
Wait(40)
|
||||
|
||||
if not identifier or not correctLicense then
|
||||
return deferrals.done(TranslateCap("no_identifier"))
|
||||
end
|
||||
MySQL.single("SELECT firstname, lastname, dateofbirth, sex, height FROM users WHERE identifier = ?", { identifier }, function(result)
|
||||
if not result then
|
||||
playerIdentity[identifier] = nil
|
||||
alreadyRegistered[identifier] = false
|
||||
return deferrals.done()
|
||||
end
|
||||
if not result.firstname then
|
||||
playerIdentity[identifier] = nil
|
||||
alreadyRegistered[identifier] = false
|
||||
return deferrals.done()
|
||||
end
|
||||
|
||||
playerIdentity[identifier] = {
|
||||
firstName = result.firstname,
|
||||
lastName = result.lastname,
|
||||
dateOfBirth = result.dateofbirth,
|
||||
sex = result.sex,
|
||||
height = result.height,
|
||||
}
|
||||
|
||||
alreadyRegistered[identifier] = true
|
||||
|
||||
deferrals.done()
|
||||
end)
|
||||
end)
|
||||
|
||||
AddEventHandler("onResourceStart", function(resource)
|
||||
if resource ~= GetCurrentResourceName() then
|
||||
return
|
||||
end
|
||||
Wait(300)
|
||||
|
||||
while not ESX do
|
||||
Wait(0)
|
||||
end
|
||||
|
||||
local xPlayers = ESX.ExtendedPlayers() --[=[@as StaticPlayer[]]=]
|
||||
|
||||
for i = 1, #xPlayers do
|
||||
if xPlayers[i] then
|
||||
checkIdentity(xPlayers[i])
|
||||
end
|
||||
end
|
||||
end)
|
||||
|
||||
RegisterNetEvent("esx:playerLoaded", function(_, xPlayer)
|
||||
local currentIdentity = playerIdentity[xPlayer.identifier]
|
||||
|
||||
if currentIdentity and alreadyRegistered[xPlayer.identifier] then
|
||||
SetPlayerData(xPlayer, currentIdentity)
|
||||
|
||||
TriggerClientEvent("esx_identity:setPlayerData", xPlayer.source, currentIdentity)
|
||||
if currentIdentity.saveToDatabase then
|
||||
saveIdentityToDatabase(xPlayer.identifier, currentIdentity)
|
||||
end
|
||||
|
||||
Wait(0)
|
||||
|
||||
TriggerClientEvent("esx_identity:alreadyRegistered", xPlayer.source)
|
||||
|
||||
playerIdentity[xPlayer.identifier] = nil
|
||||
else
|
||||
TriggerClientEvent("esx_identity:showRegisterIdentity", xPlayer.source)
|
||||
end
|
||||
end)
|
||||
end
|
||||
|
||||
ESX.RegisterServerCallback("esx_identity:registerIdentity", function(source, cb, data)
|
||||
local xPlayer = ESX.Player(source)
|
||||
|
||||
if not checkNameFormat(data.firstname) then
|
||||
TriggerClientEvent("esx:showNotification", source, TranslateCap("invalid_firstname_format"), "error")
|
||||
return cb(false)
|
||||
end
|
||||
if not checkNameFormat(data.lastname) then
|
||||
TriggerClientEvent("esx:showNotification", source, TranslateCap("invalid_lastname_format"), "error")
|
||||
return cb(false)
|
||||
end
|
||||
if not checkSexFormat(data.sex) then
|
||||
TriggerClientEvent("esx:showNotification", source, TranslateCap("invalid_sex_format"), "error")
|
||||
return cb(false)
|
||||
end
|
||||
if not checkDOBFormat(data.dateofbirth) then
|
||||
TriggerClientEvent("esx:showNotification", source, TranslateCap("invalid_dob_format"), "error")
|
||||
return cb(false)
|
||||
end
|
||||
if not checkHeightFormat(data.height) then
|
||||
TriggerClientEvent("esx:showNotification", source, TranslateCap("invalid_height_format"), "error")
|
||||
return cb(false)
|
||||
end
|
||||
|
||||
if xPlayer then
|
||||
local identifier = xPlayer.getIdentifier()
|
||||
if alreadyRegistered[identifier] then
|
||||
xPlayer.showNotification(TranslateCap("already_registered"), "error")
|
||||
return cb(false)
|
||||
end
|
||||
|
||||
playerIdentity[identifier] = {
|
||||
firstName = formatName(data.firstname),
|
||||
lastName = formatName(data.lastname),
|
||||
dateOfBirth = formatDate(data.dateofbirth),
|
||||
sex = data.sex,
|
||||
height = data.height,
|
||||
}
|
||||
|
||||
local currentIdentity = playerIdentity[identifier]
|
||||
|
||||
SetPlayerData(xPlayer, currentIdentity)
|
||||
|
||||
TriggerClientEvent("esx_identity:setPlayerData", xPlayer.src, currentIdentity)
|
||||
saveIdentityToDatabase(identifier, currentIdentity)
|
||||
alreadyRegistered[identifier] = true
|
||||
playerIdentity[identifier] = nil
|
||||
return cb(true)
|
||||
end
|
||||
|
||||
if not multichar then
|
||||
TriggerClientEvent("esx:showNotification", source, TranslateCap("data_incorrect"), "error")
|
||||
return cb(false)
|
||||
end
|
||||
|
||||
local formattedFirstName = formatName(data.firstname)
|
||||
local formattedLastName = formatName(data.lastname)
|
||||
local formattedDate = formatDate(data.dateofbirth)
|
||||
|
||||
data.firstname = formattedFirstName
|
||||
data.lastname = formattedLastName
|
||||
data.dateofbirth = formattedDate
|
||||
local Identity = {
|
||||
firstName = formattedFirstName,
|
||||
lastName = formattedLastName,
|
||||
dateOfBirth = formattedDate,
|
||||
sex = data.sex,
|
||||
height = data.height,
|
||||
}
|
||||
|
||||
TriggerEvent("esx_identity:completedRegistration", source, data)
|
||||
TriggerClientEvent("esx_identity:setPlayerData", source, Identity)
|
||||
cb(true)
|
||||
end)
|
||||
|
||||
if Config.EnableCommands then
|
||||
ESX.RegisterCommand("char", "user", function(xPlayer)
|
||||
if xPlayer and xPlayer.getName() then
|
||||
xPlayer.showNotification(TranslateCap("active_character", xPlayer.getName()))
|
||||
else
|
||||
xPlayer.showNotification(TranslateCap("error_active_character"))
|
||||
end
|
||||
end, false, { help = TranslateCap("show_active_character") })
|
||||
|
||||
ESX.RegisterCommand("chardel", "user", function(xPlayer)
|
||||
if xPlayer and xPlayer.getName() then
|
||||
local identifier = xPlayer.getIdentifier()
|
||||
if Config.UseDeferrals then
|
||||
xPlayer.kick(TranslateCap("deleted_identity"))
|
||||
Wait(1500)
|
||||
deleteIdentity(xPlayer)
|
||||
xPlayer.showNotification(TranslateCap("deleted_character"))
|
||||
playerIdentity[identifier] = nil
|
||||
alreadyRegistered[identifier] = false
|
||||
else
|
||||
deleteIdentity(xPlayer)
|
||||
xPlayer.showNotification(TranslateCap("deleted_character"))
|
||||
playerIdentity[identifier] = nil
|
||||
alreadyRegistered[identifier] = false
|
||||
TriggerClientEvent("esx_identity:showRegisterIdentity", xPlayer.source)
|
||||
end
|
||||
else
|
||||
xPlayer.showNotification(TranslateCap("error_delete_character"))
|
||||
end
|
||||
end, false, { help = TranslateCap("delete_character") })
|
||||
end
|
||||
|
||||
if Config.EnableDebugging then
|
||||
ESX.RegisterCommand("xPlayerGetFirstName", "user", function(xPlayer)
|
||||
if xPlayer and xPlayer.get("firstName") then
|
||||
xPlayer.showNotification(TranslateCap("return_debug_xPlayer_get_first_name", xPlayer.get("firstName")))
|
||||
else
|
||||
xPlayer.showNotification(TranslateCap("error_debug_xPlayer_get_first_name"))
|
||||
end
|
||||
end, false, { help = TranslateCap("debug_xPlayer_get_first_name") })
|
||||
|
||||
ESX.RegisterCommand("xPlayerGetLastName", "user", function(xPlayer)
|
||||
if xPlayer and xPlayer.get("lastName") then
|
||||
xPlayer.showNotification(TranslateCap("return_debug_xPlayer_get_last_name", xPlayer.get("lastName")))
|
||||
else
|
||||
xPlayer.showNotification(TranslateCap("error_debug_xPlayer_get_last_name"))
|
||||
end
|
||||
end, false, { help = TranslateCap("debug_xPlayer_get_last_name") })
|
||||
|
||||
ESX.RegisterCommand("xPlayerGetFullName", "user", function(xPlayer)
|
||||
if xPlayer and xPlayer.getName() then
|
||||
xPlayer.showNotification(TranslateCap("return_debug_xPlayer_get_full_name", xPlayer.getName()))
|
||||
else
|
||||
xPlayer.showNotification(TranslateCap("error_debug_xPlayer_get_full_name"))
|
||||
end
|
||||
end, false, { help = TranslateCap("debug_xPlayer_get_full_name") })
|
||||
|
||||
ESX.RegisterCommand("xPlayerGetSex", "user", function(xPlayer)
|
||||
if xPlayer and xPlayer.get("sex") then
|
||||
xPlayer.showNotification(TranslateCap("return_debug_xPlayer_get_sex", xPlayer.get("sex")))
|
||||
else
|
||||
xPlayer.showNotification(TranslateCap("error_debug_xPlayer_get_sex"))
|
||||
end
|
||||
end, false, { help = TranslateCap("debug_xPlayer_get_sex") })
|
||||
|
||||
ESX.RegisterCommand("xPlayerGetDOB", "user", function(xPlayer)
|
||||
if xPlayer and xPlayer.get("dateofbirth") then
|
||||
xPlayer.showNotification(TranslateCap("return_debug_xPlayer_get_dob", xPlayer.get("dateofbirth")))
|
||||
else
|
||||
xPlayer.showNotification(TranslateCap("error_debug_xPlayer_get_dob"))
|
||||
end
|
||||
end, false, { help = TranslateCap("debug_xPlayer_get_dob") })
|
||||
|
||||
ESX.RegisterCommand("xPlayerGetHeight", "user", function(xPlayer)
|
||||
if xPlayer and xPlayer.get("height") then
|
||||
xPlayer.showNotification(TranslateCap("return_debug_xPlayer_get_height", xPlayer.get("height")))
|
||||
else
|
||||
xPlayer.showNotification(TranslateCap("error_debug_xPlayer_get_height"))
|
||||
end
|
||||
end, false, { help = TranslateCap("debug_xPlayer_get_height") })
|
||||
end
|
||||
0
resources/[core]/esx_identity/web/.yarn.installed
Normal file
0
resources/[core]/esx_identity/web/.yarn.installed
Normal file
21
resources/[core]/esx_identity/web/index.html
Normal file
21
resources/[core]/esx_identity/web/index.html
Normal file
@@ -0,0 +1,21 @@
|
||||
<!doctype html>
|
||||
<html lang="en">
|
||||
|
||||
<head>
|
||||
<meta charset="UTF-8" />
|
||||
<link rel="icon" type="image/svg+xml" href="/vite.svg" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||
<title>Vite + Vue</title>
|
||||
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.0.2/dist/css/bootstrap.min.css" rel="stylesheet"
|
||||
integrity="sha384-EVSTQN3/azprG1Anm3QDgpJLIm9Nao0Yz1ztcQTwFspd3yD65VohhpuuCOmLASjC" crossorigin="anonymous" />
|
||||
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.6.0/css/all.min.css"
|
||||
integrity="sha512-Kc323vGBEqzTmouAECnVceyQqyqdsSiqLQISBL29aUW4U/M7pSPA/gEUZQqv1cwx4OnYxTxve5UMg5GT6L4JJg=="
|
||||
crossorigin="anonymous" referrerpolicy="no-referrer" />
|
||||
</head>
|
||||
|
||||
<body class="none">
|
||||
<div id="app"></div>
|
||||
<script type="module" src="/src/main.js"></script>
|
||||
</body>
|
||||
|
||||
</html>
|
||||
21
resources/[core]/esx_identity/web/package.json
Normal file
21
resources/[core]/esx_identity/web/package.json
Normal file
@@ -0,0 +1,21 @@
|
||||
{
|
||||
"name": "esx_identity_new",
|
||||
"private": true,
|
||||
"version": "0.0.0",
|
||||
"type": "module",
|
||||
"scripts": {
|
||||
"dev": "vite",
|
||||
"build": "vite build",
|
||||
"preview": "vite preview"
|
||||
},
|
||||
"dependencies": {
|
||||
"moment": "^2.30.1",
|
||||
"vee-validate": "^4.14.3",
|
||||
"vue": "^3.5.10",
|
||||
"yup": "^1.4.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@vitejs/plugin-vue": "^5.1.4",
|
||||
"vite": "^5.4.8"
|
||||
}
|
||||
}
|
||||
1
resources/[core]/esx_identity/web/public/vite.svg
Normal file
1
resources/[core]/esx_identity/web/public/vite.svg
Normal file
@@ -0,0 +1 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden="true" role="img" class="iconify iconify--logos" width="31.88" height="32" preserveAspectRatio="xMidYMid meet" viewBox="0 0 256 257"><defs><linearGradient id="IconifyId1813088fe1fbc01fb466" x1="-.828%" x2="57.636%" y1="7.652%" y2="78.411%"><stop offset="0%" stop-color="#41D1FF"></stop><stop offset="100%" stop-color="#BD34FE"></stop></linearGradient><linearGradient id="IconifyId1813088fe1fbc01fb467" x1="43.376%" x2="50.316%" y1="2.242%" y2="89.03%"><stop offset="0%" stop-color="#FFEA83"></stop><stop offset="8.333%" stop-color="#FFDD35"></stop><stop offset="100%" stop-color="#FFA800"></stop></linearGradient></defs><path fill="url(#IconifyId1813088fe1fbc01fb466)" d="M255.153 37.938L134.897 252.976c-2.483 4.44-8.862 4.466-11.382.048L.875 37.958c-2.746-4.814 1.371-10.646 6.827-9.67l120.385 21.517a6.537 6.537 0 0 0 2.322-.004l117.867-21.483c5.438-.991 9.574 4.796 6.877 9.62Z"></path><path fill="url(#IconifyId1813088fe1fbc01fb467)" d="M185.432.063L96.44 17.501a3.268 3.268 0 0 0-2.634 3.014l-5.474 92.456a3.268 3.268 0 0 0 3.997 3.378l24.777-5.718c2.318-.535 4.413 1.507 3.936 3.838l-7.361 36.047c-.495 2.426 1.782 4.5 4.151 3.78l15.304-4.649c2.372-.72 4.652 1.36 4.15 3.788l-11.698 56.621c-.732 3.542 3.979 5.473 5.943 2.437l1.313-2.028l72.516-144.72c1.215-2.423-.88-5.186-3.54-4.672l-25.505 4.922c-2.396.462-4.435-1.77-3.759-4.114l16.646-57.705c.677-2.35-1.37-4.583-3.769-4.113Z"></path></svg>
|
||||
|
After Width: | Height: | Size: 1.5 KiB |
26
resources/[core]/esx_identity/web/src/App.vue
Normal file
26
resources/[core]/esx_identity/web/src/App.vue
Normal file
@@ -0,0 +1,26 @@
|
||||
<script setup>
|
||||
import { onMounted } from 'vue';
|
||||
import Identity from './components/Identity.vue'
|
||||
|
||||
onMounted(() => {
|
||||
fetch("http://esx_identity/ready", {
|
||||
method: "POST",
|
||||
body: JSON.stringify({}),
|
||||
});
|
||||
|
||||
window.addEventListener("message", (event) => {
|
||||
if (event.data.type === "enableui") {
|
||||
document.body.classList[event.data.enable ? "remove" : "add"]("none");
|
||||
}
|
||||
});
|
||||
})
|
||||
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<Identity/>
|
||||
</template>
|
||||
|
||||
<style scoped>
|
||||
|
||||
</style>
|
||||
1
resources/[core]/esx_identity/web/src/assets/vue.svg
Normal file
1
resources/[core]/esx_identity/web/src/assets/vue.svg
Normal file
@@ -0,0 +1 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden="true" role="img" class="iconify iconify--logos" width="37.07" height="36" preserveAspectRatio="xMidYMid meet" viewBox="0 0 256 198"><path fill="#41B883" d="M204.8 0H256L128 220.8L0 0h97.92L128 51.2L157.44 0h47.36Z"></path><path fill="#41B883" d="m0 0l128 220.8L256 0h-51.2L128 132.48L50.56 0H0Z"></path><path fill="#35495E" d="M50.56 0L128 133.12L204.8 0h-47.36L128 51.2L97.92 0H50.56Z"></path></svg>
|
||||
|
After Width: | Height: | Size: 496 B |
@@ -0,0 +1,92 @@
|
||||
<script setup>
|
||||
import { ref } from 'vue'
|
||||
import { Form, Field, ErrorMessage } from 'vee-validate';
|
||||
import * as yup from 'yup'
|
||||
import moment from 'moment'
|
||||
|
||||
const onSubmit = (values) => {
|
||||
fetch("http://esx_identity/register", {
|
||||
method: "POST",
|
||||
body: JSON.stringify({
|
||||
firstname: values.firstname,
|
||||
lastname: values.lastname,
|
||||
dateofbirth: moment(values.dob).format("DD/MM/YYYY"),
|
||||
sex: values.gender,
|
||||
height: values.height,
|
||||
}),
|
||||
});
|
||||
}
|
||||
|
||||
const schema = yup.object({
|
||||
firstname: yup.string().required('Firstname is required').min(3, 'Firstname must be at least 3 characters'),
|
||||
lastname: yup.string().required('Lastname is required').min(3, 'Lastname must be at least 3 characters'),
|
||||
dob: yup.date()
|
||||
.required('Date of Birth is required')
|
||||
.min(new Date("1900-01-01"), "Date is too early")
|
||||
.max(moment().subtract(1, 'years').toDate(), "You need to be atleast 1 year old"),
|
||||
gender: yup.string().required('Gender is required'),
|
||||
height: yup.number().required('Height is required').min(120, 'Minimum height is 120cm').max(220, 'Maximum height is 220cm').typeError('Amount must be a number'),
|
||||
})
|
||||
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<div class="dialog">
|
||||
<div class="dialog__header">
|
||||
<h1>CHARACTER <span>IDENTITY</span></h1>
|
||||
</div>
|
||||
<div class="dialog__body">
|
||||
<p class="dialog__body-hint">Start by creating your identity</p>
|
||||
<Form class="dialog__body-form" id="register" action="#" novalidate @submit="onSubmit" :validation-schema="schema">
|
||||
<div class="dialog__form-group">
|
||||
<label for="firstname">Firstname</label>
|
||||
<div class="dialog__form-validation">
|
||||
<Field id="firstname" type="text" name="firstname" placeholder="Firstname" validateOnInput />
|
||||
</div>
|
||||
<ErrorMessage name="firstname" class="dialog__form-message dialog__form-message--error" />
|
||||
</div>
|
||||
<div class="dialog__form-group">
|
||||
<label for="lastname">Lastname</label>
|
||||
<div class="dialog__form-validation">
|
||||
<Field id="lastname" type="text" name="lastname" placeholder="Lastname" validateOnInput />
|
||||
</div>
|
||||
<ErrorMessage name="lastname" class="dialog__form-message dialog__form-message--error" />
|
||||
</div>
|
||||
<div class="dialog__form-group">
|
||||
<label for="dob">Date of birth</label>
|
||||
<Field id="dob" type="date" name="dob" placeholder="dd/mm/yyyy" validateOnInput />
|
||||
<ErrorMessage name="dob" class="dialog__form-message dialog__form-message--error" />
|
||||
</div>
|
||||
<div class="dialog__form-group">
|
||||
<label for="gender">Gender</label>
|
||||
<div class="dialog__form-group dialog__form-group--radio">
|
||||
<div class="dialog__form-radio">
|
||||
<Field type="radio" id="male" value="m" name="gender" validateOnInput />
|
||||
<label for="male">
|
||||
<i class="fas fa-mars"></i>Male
|
||||
</label>
|
||||
</div>
|
||||
<div class="dialog__form-radio">
|
||||
<Field type="radio" id="female" value="f" name="gender" validateOnInput />
|
||||
<label for="female">
|
||||
<i class="fas fa-venus"></i>Female
|
||||
</label>
|
||||
</div>
|
||||
</div>
|
||||
<ErrorMessage name="gender" class="dialog__form-message dialog__form-message--error" />
|
||||
</div>
|
||||
<div class="dialog__form-group">
|
||||
<label for="height">Height</label>
|
||||
<Field id="height" type="text" name="height" placeholder="175" validateOnInput/>
|
||||
<ErrorMessage name="height" class="dialog__form-message dialog__form-message--error" />
|
||||
</div>
|
||||
<button class="dialog__form-submit" id="submit" type="submit">
|
||||
<i class="fas fa-user-plus"></i>CREATE
|
||||
</button>
|
||||
</Form>
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<style scoped>
|
||||
</style>
|
||||
5
resources/[core]/esx_identity/web/src/main.js
Normal file
5
resources/[core]/esx_identity/web/src/main.js
Normal file
@@ -0,0 +1,5 @@
|
||||
import { createApp } from 'vue'
|
||||
import './style.css'
|
||||
import App from './App.vue'
|
||||
|
||||
createApp(App).mount('#app')
|
||||
195
resources/[core]/esx_identity/web/src/style.css
Normal file
195
resources/[core]/esx_identity/web/src/style.css
Normal file
@@ -0,0 +1,195 @@
|
||||
@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');
|
||||
/* body {
|
||||
margin: 0;
|
||||
display: flex;
|
||||
place-items: center;
|
||||
min-width: 320px;
|
||||
min-height: 100vh;
|
||||
} */
|
||||
|
||||
/* REMOVE LATER, ADD SCSS */
|
||||
|
||||
body {
|
||||
font-family: sans-serif;
|
||||
overflow: hidden;
|
||||
background-color: transparent;
|
||||
}
|
||||
|
||||
.none {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.dialog {
|
||||
width: 477px;
|
||||
position: absolute;
|
||||
top: 50%;
|
||||
left: 50%;
|
||||
transform: translate(-50%, -50%);
|
||||
background-color: #080808;
|
||||
border-radius: 8px;
|
||||
border: none;
|
||||
color: #ffffff;
|
||||
font-family: "Poppins", sans-serif;
|
||||
}
|
||||
|
||||
.dialog__header {
|
||||
background-color: #040404;
|
||||
border-top-left-radius: 8px;
|
||||
border-top-right-radius: 8px;
|
||||
padding: 20px;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.dialog__header h1 {
|
||||
font-weight: 700;
|
||||
margin-bottom: 0;
|
||||
font-size: 30px;
|
||||
}
|
||||
|
||||
.dialog__header span {
|
||||
color: #FD9800;
|
||||
}
|
||||
|
||||
.dialog__body {
|
||||
padding-block: 20px;
|
||||
padding-inline: 65px;
|
||||
}
|
||||
|
||||
.dialog__body-hint {
|
||||
text-align: center;
|
||||
margin-bottom: 20px;
|
||||
}
|
||||
|
||||
.dialog__body-form {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 35px;
|
||||
font-weight: 600;
|
||||
font-size: 15px;
|
||||
}
|
||||
|
||||
.dialog__form-submit {
|
||||
border:none;
|
||||
background-color: #FD9800;
|
||||
color: #fff;
|
||||
font-size: 18px;
|
||||
font-weight:bold;
|
||||
border-radius: 4px;
|
||||
padding-block: 5px;
|
||||
}
|
||||
|
||||
.dialog__form-submit i {
|
||||
margin-right: 5px;
|
||||
}
|
||||
|
||||
.dialog__form-group {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
gap: 30px;
|
||||
background-color: #040404;
|
||||
position: relative;
|
||||
}
|
||||
|
||||
.dialog__form-group--radio {
|
||||
gap: 0;
|
||||
}
|
||||
|
||||
.dialog__form-group label {
|
||||
flex-grow: 1; /* Label will expand to fill available space */
|
||||
flex-shrink: 1; /* Allows the label to shrink if necessary */
|
||||
padding-inline: 20px; /* Horizontal padding */
|
||||
}
|
||||
|
||||
.dialog__form-group input {
|
||||
background-color: transparent;
|
||||
border: none;
|
||||
height: 30px;
|
||||
width: 180px; /* Fixed width for input */
|
||||
flex-shrink: 0; /* Prevent input from shrinking */
|
||||
color: white;
|
||||
}
|
||||
|
||||
|
||||
.dialog__form-group input:focus {
|
||||
background-color: rgba(15, 15, 15, 0.9);
|
||||
border: none;
|
||||
border-radius: 5px;
|
||||
color: #ffffff;
|
||||
outline: none;
|
||||
box-shadow: none;
|
||||
}
|
||||
|
||||
.dialog__form-validation {
|
||||
position: relative;
|
||||
}
|
||||
|
||||
.dialog__form-validation i {
|
||||
position: absolute;
|
||||
right: 10px;
|
||||
top: 50%;
|
||||
transform: translate(0, -50%);
|
||||
}
|
||||
|
||||
.dialog__form-radio {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
.dialog__form-radio input {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.dialog__form-radio label {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 10px;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.dialog__form-radio input + label {
|
||||
height: 30px;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
.dialog__form-radio input:checked + label {
|
||||
color: #30A1FD;
|
||||
height: 30px;
|
||||
}
|
||||
|
||||
.dialog__form-radio input:not(:checked) + label {
|
||||
color: #242424;
|
||||
height: 30px;
|
||||
}
|
||||
|
||||
.dialog__form-message {
|
||||
position: absolute;
|
||||
top: 35px;
|
||||
right: 0;
|
||||
font-size: 9px;
|
||||
}
|
||||
|
||||
.dialog__form-message--error {
|
||||
color: #733838;
|
||||
}
|
||||
|
||||
#male:checked + label {
|
||||
color: #30A1FD; /* Blue color */
|
||||
}
|
||||
|
||||
/* For the female radio button */
|
||||
#female:checked + label {
|
||||
color: #FF69B4; /* Pink color */
|
||||
}
|
||||
|
||||
::placeholder {
|
||||
color: #242424;
|
||||
font-weight: 600;
|
||||
}
|
||||
|
||||
input[type="date"]::-webkit-inner-spin-button,
|
||||
input[type="date"]::-webkit-calendar-picker-indicator {
|
||||
display: none;
|
||||
-webkit-appearance: none;
|
||||
}
|
||||
8
resources/[core]/esx_identity/web/vite.config.js
Normal file
8
resources/[core]/esx_identity/web/vite.config.js
Normal file
@@ -0,0 +1,8 @@
|
||||
import { defineConfig } from 'vite'
|
||||
import vue from '@vitejs/plugin-vue'
|
||||
|
||||
// https://vitejs.dev/config/
|
||||
export default defineConfig({
|
||||
base: './',
|
||||
plugins: [vue()],
|
||||
})
|
||||
Reference in New Issue
Block a user