0.0.1
This commit is contained in:
674
resources/[esx_addons]/esx_banking/LICENSE
Normal file
674
resources/[esx_addons]/esx_banking/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_banking
|
||||
Copyright (C) 2015-2025 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_banking Copyright (C) 2015-2025 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>.
|
||||
72
resources/[esx_addons]/esx_banking/README.md
Normal file
72
resources/[esx_addons]/esx_banking/README.md
Normal file
@@ -0,0 +1,72 @@
|
||||
<h1 align='center'>[ESX] Banking</a></h1><p align='center'><b><a href='https://discord.esx-framework.org/'>Discord</a> - <a href='https://esx-framework.org/'>Website</a> - <a href='https://docs.esx-framework.org/legacy/installation'>Documentation</a></b></h5>
|
||||
|
||||
A beautiful and Easy-To-Use Banking & ATM system for ESX
|
||||
|
||||
|
||||
## BANK UI
|
||||

|
||||
## ATM UI
|
||||

|
||||

|
||||
|
||||
|
||||
## Special thanks: Gellipapa#9186,Rav3n95#2849,Csoki, csontvazharcos, Füsti, Pécé
|
||||
|
||||
## Download & Installation
|
||||
|
||||
- Download https://github.com/esx-framework/esx-legacy/tree/main/%5Besx_addons%5D/esx_banking
|
||||
- Put it in the `[esx-addons]` directory
|
||||
|
||||
## Installation
|
||||
- Add this to your `server.cfg`:
|
||||
|
||||
```
|
||||
ensure esx_banking
|
||||
```
|
||||
|
||||
# Database
|
||||
```
|
||||
Run the banking.sql into your database. Done.
|
||||
```
|
||||
|
||||
# If you want to create a bank log in another script, you can do it this way!
|
||||
# IMPORTANT this is only log, these method not handle full bank service
|
||||
# I recommend to use the money logic after.
|
||||
|
||||
|Param |Type |Explanation|
|
||||
|-----|--------|--------|
|
||||
|source|number | the source of the player (server side only) |
|
||||
|label |string |The label of the transaction |
|
||||
|logType |string | "WITHDRAW", "DEPOSIT", "TRANSFER_RECEIVE" the possible transactions|
|
||||
|amount |number |The amount of the transaction to be logged|
|
||||
|
||||
|
||||
```lua
|
||||
-- Client side
|
||||
-- The event is used client side
|
||||
|
||||
TriggerServerEvent("esx_banking:logTransaction",label,logType,amount)
|
||||
|
||||
-- For example:
|
||||
TriggerServerEvent("esx_banking:logTransaction","TAX", "DEPOSIT", 2000)
|
||||
|
||||
|
||||
-- Server side
|
||||
-- The export is used server side
|
||||
exports["esx_banking"]:logTransaction(source,label,logType,amount)
|
||||
|
||||
-- For example:
|
||||
exports["esx_banking"]:logTransaction(source,"CAR PURCHASE","WITHDRAW",200)
|
||||
```
|
||||
|
||||
# Legal
|
||||
### License
|
||||
esx_banking - banking script for ESX
|
||||
|
||||
Copyright (C) 2025 ESX-Framework
|
||||
|
||||
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/.
|
||||
12
resources/[esx_addons]/esx_banking/banking.sql
Normal file
12
resources/[esx_addons]/esx_banking/banking.sql
Normal file
@@ -0,0 +1,12 @@
|
||||
CREATE TABLE IF NOT EXISTS `banking` (
|
||||
`identifier` varchar(46) DEFAULT NULL,
|
||||
`type` varchar(50) DEFAULT NULL,
|
||||
`amount` int(64) DEFAULT NULL,
|
||||
`time` bigint(20) DEFAULT NULL,
|
||||
`ID` int(11) NOT NULL AUTO_INCREMENT,
|
||||
`balance` int(11) DEFAULT 0,
|
||||
`label` varchar(255) DEFAULT NULL,
|
||||
PRIMARY KEY (`ID`)
|
||||
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8mb4;
|
||||
|
||||
ALTER TABLE `users` ADD COLUMN `pincode` INT NULL;
|
||||
261
resources/[esx_addons]/esx_banking/client/main.lua
Normal file
261
resources/[esx_addons]/esx_banking/client/main.lua
Normal file
@@ -0,0 +1,261 @@
|
||||
local BANK = {
|
||||
Data = {}
|
||||
}
|
||||
|
||||
local activeBlips, bankPoints, atmPoints, markerPoints = {}, {}, {}, {}
|
||||
local playerLoaded, uiActive, inMenu = false, false, false
|
||||
|
||||
--Functions
|
||||
-- General data collecting thread
|
||||
function BANK:Thread()
|
||||
self:CreateBlips()
|
||||
local data = self.Data
|
||||
data.ped = PlayerPedId()
|
||||
data.coord = GetEntityCoords(data.Ped)
|
||||
playerLoaded = true
|
||||
|
||||
CreateThread(function ()
|
||||
while playerLoaded do
|
||||
data.coord = GetEntityCoords(data.ped)
|
||||
data.ped = PlayerPedId()
|
||||
bankPoints, atmPoints, markerPoints = {}, {}, {}
|
||||
|
||||
if (IsPedOnFoot(data.ped) and not ESX.PlayerData.dead) and not inMenu then
|
||||
for i = 1, #Config.AtmModels do
|
||||
local atm = GetClosestObjectOfType(data.coord.x, data.coord.y, data.coord.z, 0.7, Config.AtmModels[i], false, false, false)
|
||||
if atm ~= 0 then
|
||||
atmPoints[#atmPoints+1] = GetEntityCoords(atm)
|
||||
end
|
||||
end
|
||||
|
||||
for i = 1, #Config.Banks do
|
||||
local bankDistance = #(data.coord - Config.Banks[i].Position.xyz)
|
||||
if bankDistance <= 0.7 then
|
||||
bankPoints[#bankPoints+1] = Config.Banks[i].Position.xyz
|
||||
end
|
||||
if Config.ShowMarker and bankDistance <= (Config.DrawMarker or 10) then
|
||||
markerPoints[#markerPoints+1] = Config.Banks[i].Position.xyz
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
if next(bankPoints) and not uiActive then
|
||||
self:TextUi(true)
|
||||
end
|
||||
|
||||
if next(atmPoints) and not uiActive then
|
||||
self:TextUi(true, true)
|
||||
end
|
||||
|
||||
if not next(bankPoints) and not next(atmPoints) and uiActive then
|
||||
self:TextUi(false)
|
||||
end
|
||||
|
||||
Wait(1000)
|
||||
end
|
||||
end)
|
||||
|
||||
if not Config.ShowMarker then return end
|
||||
|
||||
CreateThread(function()
|
||||
local wait = 1000
|
||||
while playerLoaded do
|
||||
if next(markerPoints) then
|
||||
for i = 1, #markerPoints do
|
||||
DrawMarker(20, markerPoints[i].x, markerPoints[i].y, markerPoints[i].z, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.3, 0.2, 0.2, 187, 255, 0, 255, false, true, 2, false, nil, nil, false)
|
||||
end
|
||||
wait = 0
|
||||
end
|
||||
Wait(wait)
|
||||
end
|
||||
end)
|
||||
end
|
||||
|
||||
-- Handle text ui / Keypress
|
||||
function BANK:TextUi(state, atm)
|
||||
uiActive = state
|
||||
if not state then
|
||||
return ESX.HideUI()
|
||||
end
|
||||
ESX.TextUI(TranslateCap('press_e_banking'))
|
||||
CreateThread(function()
|
||||
while uiActive do
|
||||
if IsControlJustReleased(0, 38) then
|
||||
self:HandleUi(true, atm)
|
||||
self:TextUi(false)
|
||||
end
|
||||
Wait(0)
|
||||
end
|
||||
end)
|
||||
end
|
||||
|
||||
-- Create Blips
|
||||
function BANK:CreateBlips()
|
||||
local tmpActiveBlips = {}
|
||||
for i = 1, #Config.Banks do
|
||||
if type(Config.Banks[i].Blip) == 'table' and Config.Banks[i].Blip.Enabled then
|
||||
local position = Config.Banks[i].Position
|
||||
local bInfo = Config.Banks[i].Blip
|
||||
local blip = AddBlipForCoord(position.x, position.y, position.z)
|
||||
SetBlipSprite(blip, bInfo.Sprite)
|
||||
SetBlipScale(blip, bInfo.Scale)
|
||||
SetBlipColour(blip, bInfo.Color)
|
||||
SetBlipAsShortRange(blip, true)
|
||||
BeginTextCommandSetBlipName('STRING')
|
||||
AddTextComponentSubstringPlayerName(bInfo.Label)
|
||||
EndTextCommandSetBlipName(blip)
|
||||
tmpActiveBlips[#tmpActiveBlips + 1] = blip
|
||||
end
|
||||
end
|
||||
|
||||
activeBlips = tmpActiveBlips
|
||||
end
|
||||
|
||||
-- Remove blips
|
||||
function BANK:RemoveBlips()
|
||||
for i = 1, #activeBlips do
|
||||
if DoesBlipExist(activeBlips[i]) then
|
||||
RemoveBlip(activeBlips[i])
|
||||
end
|
||||
end
|
||||
activeBlips = {}
|
||||
end
|
||||
|
||||
-- Open / Close ui
|
||||
function BANK:HandleUi(state, atm)
|
||||
atm = atm or false
|
||||
SetNuiFocus(state, state)
|
||||
inMenu = state
|
||||
ClearPedTasks(PlayerPedId())
|
||||
if not state then
|
||||
SendNUIMessage({
|
||||
showMenu = false
|
||||
})
|
||||
return
|
||||
end
|
||||
ESX.TriggerServerCallback('esx_banking:getPlayerData', function(data)
|
||||
SendNUIMessage({
|
||||
showMenu = true,
|
||||
openATM = atm,
|
||||
datas = {
|
||||
your_money_panel = {
|
||||
accountsData = {{
|
||||
name = "cash",
|
||||
amount = data.money
|
||||
}, {
|
||||
name = "bank",
|
||||
amount = data.bankMoney
|
||||
}}
|
||||
},
|
||||
bankCardData = {
|
||||
bankName = TranslateCap('bank_name'),
|
||||
cardNumber = "2232 2222 2222 2222",
|
||||
createdDate = "08/08",
|
||||
name = data.playerName
|
||||
},
|
||||
transactionsData = data.transactionHistory
|
||||
}
|
||||
})
|
||||
end)
|
||||
end
|
||||
|
||||
function BANK:LoadNpc(index, netID)
|
||||
CreateThread(function()
|
||||
while not NetworkDoesEntityExistWithNetworkId(netID) do
|
||||
Wait(200)
|
||||
end
|
||||
local npc = NetworkGetEntityFromNetworkId(netID)
|
||||
TaskStartScenarioInPlace(npc, Config.Peds[index].Scenario, 0, true)
|
||||
SetEntityProofs(npc, true, true, true, true, true, true, true, true)
|
||||
SetBlockingOfNonTemporaryEvents(npc, true)
|
||||
FreezeEntityPosition(npc, true)
|
||||
SetPedCanRagdollFromPlayerImpact(npc, false)
|
||||
SetPedCanRagdoll(npc, false)
|
||||
SetEntityAsMissionEntity(npc, true, true)
|
||||
SetEntityDynamic(npc, false)
|
||||
end)
|
||||
end
|
||||
|
||||
-- Events
|
||||
RegisterNetEvent('esx_banking:closebanking', function()
|
||||
BANK:HandleUi(false)
|
||||
end)
|
||||
|
||||
RegisterNetEvent('esx_banking:pedHandler', function(netIdTable)
|
||||
for i = 1, #netIdTable do
|
||||
BANK:LoadNpc(i, netIdTable[i])
|
||||
end
|
||||
end)
|
||||
|
||||
RegisterNetEvent('esx_banking:updateMoneyInUI', function(doingType, bankMoney, money)
|
||||
SendNUIMessage({
|
||||
updateData = true,
|
||||
data = {
|
||||
type = doingType,
|
||||
bankMoney = bankMoney,
|
||||
money = money
|
||||
}
|
||||
})
|
||||
end)
|
||||
|
||||
-- Handlers
|
||||
-- Resource starting
|
||||
AddEventHandler('onResourceStart', function(resource)
|
||||
if resource ~= GetCurrentResourceName() then return end
|
||||
BANK:Thread()
|
||||
end)
|
||||
|
||||
-- Enable the script on player loaded
|
||||
RegisterNetEvent('esx:playerLoaded', function()
|
||||
BANK:Thread()
|
||||
end)
|
||||
|
||||
-- Disable the script on player logout
|
||||
RegisterNetEvent('esx:onPlayerLogout', function()
|
||||
playerLoaded = false
|
||||
end)
|
||||
|
||||
-- Resource stopping
|
||||
AddEventHandler('onResourceStop', function(resource)
|
||||
if resource ~= GetCurrentResourceName() then return end
|
||||
BANK:RemoveBlips()
|
||||
if uiActive then BANK:TextUi(false) end
|
||||
end)
|
||||
|
||||
RegisterNetEvent('esx:onPlayerDeath', function() BANK:TextUi(false) end)
|
||||
|
||||
-- Nui Callbacks
|
||||
RegisterNUICallback('close', function(data, cb)
|
||||
BANK:HandleUi(false)
|
||||
cb('ok')
|
||||
end)
|
||||
|
||||
RegisterNUICallback('clickButton', function(data, cb)
|
||||
if not data or not inMenu then
|
||||
return cb('ok')
|
||||
end
|
||||
|
||||
TriggerServerEvent("esx_banking:doingType", data)
|
||||
cb('ok')
|
||||
end)
|
||||
|
||||
RegisterNUICallback('checkPincode', function(data, cb)
|
||||
if not data or not inMenu then
|
||||
return cb('ok')
|
||||
end
|
||||
|
||||
ESX.TriggerServerCallback("esx_banking:checkPincode", function(pincode)
|
||||
if pincode then
|
||||
cb({
|
||||
success = true
|
||||
})
|
||||
ESX.ShowNotification(TranslateCap('pincode_found'), "success")
|
||||
|
||||
else
|
||||
cb({
|
||||
error = true
|
||||
})
|
||||
ESX.ShowNotification(TranslateCap('pincode_not_found'), "error")
|
||||
end
|
||||
end, data)
|
||||
end)
|
||||
132
resources/[esx_addons]/esx_banking/config.lua
Normal file
132
resources/[esx_addons]/esx_banking/config.lua
Normal file
@@ -0,0 +1,132 @@
|
||||
Config = {
|
||||
Debug = false,
|
||||
DrawMarker = 10,
|
||||
Locale = GetConvar('esx:locale', 'en'),
|
||||
EnablePeds = true,
|
||||
AtmModels = {`prop_fleeca_atm`, `prop_atm_01`, `prop_atm_02`, `prop_atm_03`},
|
||||
Banks = {
|
||||
{
|
||||
Position = vector4(149.91, -1040.74, 29.374, 160),
|
||||
Blip = {
|
||||
Enabled = true,
|
||||
Color = 69,
|
||||
Label = 'Bank',
|
||||
Sprite = 108,
|
||||
Scale = 0.7
|
||||
}
|
||||
},
|
||||
{
|
||||
Position = vector4(-1212.63, -330.78, 37.59, 210),
|
||||
Blip = {
|
||||
Enabled = true,
|
||||
Color = 69,
|
||||
Label = 'Bank',
|
||||
Sprite = 108,
|
||||
Scale = 0.7
|
||||
}
|
||||
},
|
||||
{
|
||||
Position = vector4(-2962.47, 482.93, 15.5, 270),
|
||||
Blip = {
|
||||
Enabled = true,
|
||||
Color = 69,
|
||||
Label = 'Bank',
|
||||
Sprite = 108,
|
||||
Scale = 0.7
|
||||
}
|
||||
},
|
||||
{
|
||||
Position = vector4(-113.01, 6470.24, 31.43, 315),
|
||||
Blip = {
|
||||
Enabled = true,
|
||||
Color = 69,
|
||||
Label = 'Bank',
|
||||
Sprite = 108,
|
||||
Scale = 0.7
|
||||
}
|
||||
},
|
||||
{
|
||||
Position = vector4(314.16, -279.09, 53.97, 160),
|
||||
Blip = {
|
||||
Enabled = true,
|
||||
Color = 69,
|
||||
Label = 'Bank',
|
||||
Sprite = 108,
|
||||
Scale = 0.7
|
||||
}
|
||||
},
|
||||
{
|
||||
Position = vector4(-350.99, -49.99, 48.84, 160),
|
||||
Blip = {
|
||||
Enabled = true,
|
||||
Color = 69,
|
||||
Label = 'Bank',
|
||||
Sprite = 108,
|
||||
Scale = 0.7
|
||||
}
|
||||
},
|
||||
{
|
||||
Position = vector4(1175.02, 2706.87, 37.89, 0),
|
||||
Blip = {
|
||||
Enabled = true,
|
||||
Color = 69,
|
||||
Label = 'Bank',
|
||||
Sprite = 108,
|
||||
Scale = 0.7
|
||||
}
|
||||
},
|
||||
{
|
||||
Position = vector4(246.63, 223.62, 106.0, 160),
|
||||
Blip = {
|
||||
Enabled = true,
|
||||
Color = 69,
|
||||
Label = 'Bank',
|
||||
Sprite = 108,
|
||||
Scale = 0.7
|
||||
}
|
||||
},
|
||||
},
|
||||
Peds = {
|
||||
{
|
||||
Position = vector4(149.5513, -1042.1570, 29.3680, 341.6520),
|
||||
Model = `U_M_M_BankMan`,
|
||||
Scenario = 'WORLD_HUMAN_CLIPBOARD'
|
||||
},
|
||||
{
|
||||
Position = vector4(-1211.8585, -331.9854, 37.7809, 28.5983),
|
||||
Model = `U_M_M_BankMan`,
|
||||
Scenario = 'WORLD_HUMAN_CLIPBOARD'
|
||||
},
|
||||
{
|
||||
Position = vector4(-2961.0720, 483.1107, 15.6970, 88.1986),
|
||||
Model = `U_M_M_BankMan`,
|
||||
Scenario = 'WORLD_HUMAN_CLIPBOARD'
|
||||
},
|
||||
{
|
||||
Position = vector4(-112.2223, 6471.1128, 31.6267, 132.7517),
|
||||
Model = `U_M_M_BankMan`,
|
||||
Scenario = 'WORLD_HUMAN_CLIPBOARD'
|
||||
},
|
||||
{
|
||||
Position = vector4(313.8176, -280.5338, 54.1647, 339.1609),
|
||||
Model = `U_M_M_BankMan`,
|
||||
Scenario = 'WORLD_HUMAN_CLIPBOARD'
|
||||
},
|
||||
{
|
||||
Position = vector4(-351.3247, -51.3466, 49.0365, 339.3305),
|
||||
Model = `U_M_M_BankMan`,
|
||||
Scenario = 'WORLD_HUMAN_CLIPBOARD'
|
||||
},
|
||||
{
|
||||
Position = vector4(1174.9718, 2708.2034, 38.0879, 178.2974),
|
||||
Model = `U_M_M_BankMan`,
|
||||
Scenario = 'WORLD_HUMAN_CLIPBOARD'
|
||||
},
|
||||
{
|
||||
Position = vector4(247.0348, 225.1851, 106.2875, 158.7528),
|
||||
Model = `U_M_M_BankMan`,
|
||||
Scenario = 'WORLD_HUMAN_CLIPBOARD'
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
32
resources/[esx_addons]/esx_banking/fxmanifest.lua
Normal file
32
resources/[esx_addons]/esx_banking/fxmanifest.lua
Normal file
@@ -0,0 +1,32 @@
|
||||
fx_version 'cerulean'
|
||||
|
||||
game 'gta5'
|
||||
|
||||
description 'A banking system that adds interactable banks and ATMs'
|
||||
lua54 'yes'
|
||||
version '1.0.1'
|
||||
legacyversion '1.13.4'
|
||||
|
||||
shared_scripts {
|
||||
'@es_extended/imports.lua',
|
||||
'@es_extended/locale.lua',
|
||||
'locales/*.lua',
|
||||
'config.lua'
|
||||
}
|
||||
|
||||
server_scripts {
|
||||
'@oxmysql/lib/MySQL.lua',
|
||||
'server/main.lua'
|
||||
}
|
||||
|
||||
client_scripts {
|
||||
'client/main.lua'
|
||||
}
|
||||
|
||||
ui_page 'html/ui.html'
|
||||
|
||||
files {
|
||||
'html/**',
|
||||
}
|
||||
|
||||
dependency 'es_extended'
|
||||
885
resources/[esx_addons]/esx_banking/html/config.json
Normal file
885
resources/[esx_addons]/esx_banking/html/config.json
Normal file
@@ -0,0 +1,885 @@
|
||||
{
|
||||
"lang": "EN",
|
||||
"__comment": "On DYNAMIC_FORM_DATA do not change 'componentName', 'elementID'!",
|
||||
"EN": {
|
||||
"DYNAMIC_FORM_DATA": [
|
||||
{
|
||||
"componentName": "moreGraph",
|
||||
"elementID": "#wrapper",
|
||||
"title": "",
|
||||
"closeButtonText": "Close",
|
||||
"bankTitle": "Fleeca Bank",
|
||||
"mainExitButtonText": "Log out"
|
||||
},
|
||||
{
|
||||
"elementID": "#cpincode",
|
||||
"name": "cpincode",
|
||||
"buttonText": "Approve",
|
||||
"inputPlaceholder": "Enter 4 digit...",
|
||||
"title": "PIN CODE SETUP",
|
||||
"description": "Here you can set or change the PIN code.",
|
||||
"type": "password"
|
||||
},
|
||||
{
|
||||
"elementID": "#withdraw",
|
||||
"name": "withdraw",
|
||||
"buttonText": "Approve",
|
||||
"inputPlaceholder": "Amount",
|
||||
"title": "WITHDRAW",
|
||||
"description": "Here you can withdraw your money from the bank.",
|
||||
"type": "number"
|
||||
},
|
||||
{
|
||||
"elementID": "#deposit",
|
||||
"name": "deposit",
|
||||
"buttonText": "Approval",
|
||||
"inputPlaceholder": "Amount",
|
||||
"title": "DEPOSIT",
|
||||
"description": "Here, you can deposit your money to the bank.",
|
||||
"type": "number"
|
||||
},
|
||||
{
|
||||
"elementID": "#transfer",
|
||||
"name": "transfer",
|
||||
"buttonText": "Transfer",
|
||||
"inputPlaceholder": "Amount",
|
||||
"inputPlaceholder2": "Player ID",
|
||||
"title": "TRANSFER",
|
||||
"description": "Here you can transfer your money to someone else."
|
||||
},
|
||||
{
|
||||
"componentName": "trans",
|
||||
"elementID": "#third-column",
|
||||
"title": "TRANSACTION HISTORY",
|
||||
"description": "Here you can see your transaction history.",
|
||||
"moreHistoryText": "Show more history",
|
||||
"moreGraphText": "Show more graph"
|
||||
},
|
||||
{
|
||||
"componentName": "pincodePanel",
|
||||
"elementID": "#wrapper",
|
||||
"title": "Enter PIN",
|
||||
"deleteButtonText": "<i class='fa-solid fa-ban'></i>",
|
||||
"loginButtonText": "<i class='fa-solid fa-right-to-bracket'></i>",
|
||||
"closeButtonText": "Close"
|
||||
},
|
||||
{
|
||||
"componentName": "atmComponent",
|
||||
"elementID": "#wrapper",
|
||||
"title": "Fleeca Bank",
|
||||
"closeButtonText": "Log out"
|
||||
}
|
||||
],
|
||||
"LAUNGAGE": {
|
||||
"your_money_title": "Balance",
|
||||
"your_money_desc": "Here you can see your current balance and cash.",
|
||||
"your_money_cash_label": "Your cash",
|
||||
"your_money_bank_label": "Your bank balance",
|
||||
"withdraw": "WITHDRAW",
|
||||
"deposit": "DEPOSIT",
|
||||
"transfer": "TRANSFER",
|
||||
"transferReceive": "RECEIVED TRANSFER",
|
||||
"moneyFormat": "$__replaceData__",
|
||||
"graphTitle": "Your balance",
|
||||
"moreGraphTitle": "Big Graph",
|
||||
"moreHistoryTitle": "Show more history",
|
||||
"inputErrorTitle": "Data is incorrect",
|
||||
"inputErrorMessage": "It cannot be empty or a value less than 1!",
|
||||
"showPincodeErrorTitle": "PIN incorrect",
|
||||
"showPincodeErrorMessage": "The pin must have at least 4 characters!",
|
||||
"tableLang": {
|
||||
"typeLabel": "Transaction type",
|
||||
"transactionLabel": "Transaction Label",
|
||||
"balanceLabel": "Balance",
|
||||
"amountLabel": "Amount",
|
||||
"timeLabel": "Time",
|
||||
"searchInputPlaceholder": "Search ...",
|
||||
"_comment": "tableFullLanguage options: English, Hungarian, Italian, Spanish, French, you can find here all lang: https://cdn.datatables.net/plug-ins/9dcbecd42ad/i18n/",
|
||||
"tableFullLanguage": "English"
|
||||
}
|
||||
}
|
||||
},
|
||||
"DE": {
|
||||
"DYNAMIC_FORM_DATA": [
|
||||
{
|
||||
"componentName": "moreGraph",
|
||||
"elementID": "#wrapper",
|
||||
"title": "",
|
||||
"closeButtonText": "Schließen",
|
||||
"bankTitle": "Fleeca Bank",
|
||||
"mainExitButtonText": "Abmelden"
|
||||
},
|
||||
{
|
||||
"elementID": "#cpincode",
|
||||
"name": "cpincode",
|
||||
"buttonText": "Zustimmen",
|
||||
"inputPlaceholder": "4 Ziffern eingeben...",
|
||||
"title": "PIN-CODE EINRICHTEN",
|
||||
"description": "Hier kannst du deinen Pin einstellen oder ändern.",
|
||||
"type": "password"
|
||||
},
|
||||
{
|
||||
"elementID": "#withdraw",
|
||||
"name": "withdraw",
|
||||
"buttonText": "Zustimmen",
|
||||
"inputPlaceholder": "Betrag",
|
||||
"title": "ABHEBEN",
|
||||
"description": "Hier kannst du dein Geld bei der Bank abheben.",
|
||||
"type": "number"
|
||||
},
|
||||
{
|
||||
"elementID": "#deposit",
|
||||
"name": "deposit",
|
||||
"buttonText": "Zustimmen",
|
||||
"inputPlaceholder": "Betrag",
|
||||
"title": "EINZAHLEN",
|
||||
"description": "Hier kannst du dein Geld bei der Bank einzahlen.",
|
||||
"type": "number"
|
||||
},
|
||||
{
|
||||
"elementID": "#transfer",
|
||||
"name": "transfer",
|
||||
"buttonText": "Überweisung",
|
||||
"inputPlaceholder": "Betrag",
|
||||
"inputPlaceholder2": "Spieler ID",
|
||||
"title": "ÜBERWEISUNG",
|
||||
"description": "Hier kannst du dein Geld an eine anderen Person überweisen."
|
||||
},
|
||||
{
|
||||
"componentName": "trans",
|
||||
"elementID": "#third-column",
|
||||
"title": "TRANSAKTIONSVERLAUF",
|
||||
"description": "Hier kannst du deinen Transaktionsverlauf einsehen.",
|
||||
"moreHistoryText": "Mehr Informationen anzeigen",
|
||||
"moreGraphText": "Mehr Grafiken anzeigen"
|
||||
},
|
||||
{
|
||||
"componentName": "pincodePanel",
|
||||
"elementID": "#wrapper",
|
||||
"title": "PIN Eingeben",
|
||||
"deleteButtonText": "<i class='fa-solid fa-ban'></i>",
|
||||
"loginButtonText": "<i class='fa-solid fa-right-to-bracket'></i>",
|
||||
"closeButtonText": "Schließen"
|
||||
},
|
||||
{
|
||||
"componentName": "atmComponent",
|
||||
"elementID": "#wrapper",
|
||||
"title": "Fleeca Bank",
|
||||
"closeButtonText": "Abmelden"
|
||||
}
|
||||
],
|
||||
"LAUNGAGE": {
|
||||
"your_money_title": "Kontostand",
|
||||
"your_money_desc": "Hier kannst du deinen aktuellen Kontostand und dein Bargeld einsehen.",
|
||||
"your_money_cash_label": "Dein Bargeld",
|
||||
"your_money_bank_label": "Dein Kontostand",
|
||||
"withdraw": "ABHEBEN",
|
||||
"deposit": "EINZAHLEN",
|
||||
"transfer": "ÜBERWEISUNG",
|
||||
"transferReceive": "EMPFANGENE ÜBERWEISUNGEN",
|
||||
"moneyFormat": "$__replaceData__",
|
||||
"graphTitle": "Dein Guthaben",
|
||||
"moreGraphTitle": "Detailliertere Grafik",
|
||||
"moreHistoryTitle": "Mehr Informationen anzeigen",
|
||||
"inputErrorTitle": "Die angegebenen Daten sind falsch",
|
||||
"inputErrorMessage": "Der Wert darf nicht leer oder kleiner als 1 sein!",
|
||||
"showPincodeErrorTitle": "Pin falsch",
|
||||
"showPincodeErrorMessage": "Der Pin muss mindestens 4 Zahlen haben!",
|
||||
"tableLang": {
|
||||
"typeLabel": "Transaktionsart",
|
||||
"transactionLabel": "Transaktion",
|
||||
"balanceLabel": "Kontostand",
|
||||
"amountLabel": "Betrag",
|
||||
"timeLabel": "Zeit",
|
||||
"searchInputPlaceholder": "Suche ...",
|
||||
"_comment": "tableFullLanguage options: English, German, Hungarian, Italian, Spanish, French, you can find here all lang: https://cdn.datatables.net/plug-ins/9dcbecd42ad/i18n/",
|
||||
"tableFullLanguage": "German"
|
||||
}
|
||||
}
|
||||
},
|
||||
"HU": {
|
||||
"DYNAMIC_FORM_DATA": [
|
||||
{
|
||||
"componentName": "moreGraph",
|
||||
"elementID": "#wrapper",
|
||||
"title": "",
|
||||
"closeButtonText": "Bezárás",
|
||||
"bankTitle": "OTP BANK FELÜLET",
|
||||
"mainExitButtonText": "Kijelentkezés"
|
||||
},
|
||||
{
|
||||
"elementID": "#cpincode",
|
||||
"name": "cpincode",
|
||||
"buttonText": "Jóváhagyás",
|
||||
"inputPlaceholder": "Írj be 4 számot...",
|
||||
"title": "PIN KÓD BEÁLLÍTÁS",
|
||||
"description": "Itt tudod beállítani vagy cserélni pinkódodat.",
|
||||
"type": "password"
|
||||
},
|
||||
{
|
||||
"elementID": "#withdraw",
|
||||
"name": "withdraw",
|
||||
"buttonText": "Jóváhagyás",
|
||||
"inputPlaceholder": "Összeg",
|
||||
"title": "PÉNZ KIVÉTEL",
|
||||
"description": "Itt tudsz pénzt kivenni a számládról.",
|
||||
"type": "number"
|
||||
},
|
||||
{
|
||||
"elementID": "#deposit",
|
||||
"name": "deposit",
|
||||
"buttonText": "Jóváhagyás",
|
||||
"inputPlaceholder": "Összeg",
|
||||
"title": "PÉNZ BETÉTEL",
|
||||
"description": "Itt tudsz pénzt be tenni a számládra.",
|
||||
"type": "number"
|
||||
},
|
||||
{
|
||||
"elementID": "#transfer",
|
||||
"name": "transfer",
|
||||
"buttonText": "Utalás",
|
||||
"inputPlaceholder": "Összeg",
|
||||
"inputPlaceholder2": "Játékos azonosító",
|
||||
"title": "UTALÁS",
|
||||
"description": "Itt tudsz pénzt utalni egy adott játékosnak."
|
||||
},
|
||||
{
|
||||
"componentName": "trans",
|
||||
"elementID": "#third-column",
|
||||
"title": "SZÁMLA TÖRTÉNET",
|
||||
"description": "Itt látod a számla történeted.",
|
||||
"moreHistoryText": "Több számla történet mutatása",
|
||||
"moreGraphText": "Nagyított diagram mutatása"
|
||||
},
|
||||
{
|
||||
"componentName": "pincodePanel",
|
||||
"elementID": "#wrapper",
|
||||
"title": "Írd be a PIN kódod",
|
||||
"deleteButtonText": "<i class='fa-solid fa-ban'></i>",
|
||||
"loginButtonText": "<i class='fa-solid fa-right-to-bracket'></i>",
|
||||
"closeButtonText": "Bezárás"
|
||||
},
|
||||
{
|
||||
"componentName": "atmComponent",
|
||||
"elementID": "#wrapper",
|
||||
"title": "OTP BANK",
|
||||
"closeButtonText": "Kijelentkezés"
|
||||
}
|
||||
],
|
||||
"LAUNGAGE": {
|
||||
"your_money_title": "Egyenleged",
|
||||
"your_money_desc": "Itt láthatod a jelenlegi egyenleged és készpénzed.",
|
||||
"your_money_cash_label": "Készpénz",
|
||||
"your_money_bank_label": "Banki egyenleged",
|
||||
"withdraw": "KIVÉTEL",
|
||||
"deposit": "BETÉTEL",
|
||||
"transfer": "UTALÁS",
|
||||
"transferReceive": "KAPOTT UTALÁS",
|
||||
"moneyFormat": "__replaceData__ Ft",
|
||||
"graphTitle": "Egyenleged",
|
||||
"moreGraphTitle": "Nagyított grafikon",
|
||||
"moreHistoryTitle": "Teljes számla történet",
|
||||
"inputErrorTitle": "Adat hibás",
|
||||
"inputErrorMessage": "Nem lehet üres vagy érték kisebb mint 1!",
|
||||
"showPincodeErrorTitle": "PIN hibás",
|
||||
"showPincodeErrorMessage": "Legalább 4 karakternek kell lennie a pinnek!",
|
||||
"tableLang": {
|
||||
"typeLabel": "Tranzakció típus",
|
||||
"transactionLabel": "Tranzakció leírása",
|
||||
"balanceLabel": "Egyenleged",
|
||||
"amountLabel": "Összeg",
|
||||
"timeLabel": "Idő",
|
||||
"searchInputPlaceholder": "Kereső ...",
|
||||
"_comment": "tableFullLanguage options: English, Hungarian, Italian, Spanish, French, you can find here all lang: https://cdn.datatables.net/plug-ins/9dcbecd42ad/i18n/",
|
||||
"tableFullLanguage": "Hungarian"
|
||||
}
|
||||
}
|
||||
},
|
||||
"IT": {
|
||||
"DYNAMIC_FORM_DATA": [
|
||||
{
|
||||
"componentName": "moreGraph",
|
||||
"elementID": "#wrapper",
|
||||
"title": "",
|
||||
"closeButtonText": "Close",
|
||||
"bankTitle": "Fleeca Bank",
|
||||
"mainExitButtonText": "Disconnettersi"
|
||||
},
|
||||
{
|
||||
"elementID": "#cpincode",
|
||||
"name": "cpincode",
|
||||
"buttonText": "conferma",
|
||||
"inputPlaceholder": "4 cifre...",
|
||||
"title": "IMPOSTAZIONE CODICE PIN",
|
||||
"description": "Qui puoi impostare o modificare il codice PIN.",
|
||||
"type": "password"
|
||||
},
|
||||
{
|
||||
"elementID": "#withdraw",
|
||||
"name": "withdraw",
|
||||
"buttonText": "conferma",
|
||||
"inputPlaceholder": "Quantità",
|
||||
"title": "RITIRARE",
|
||||
"description": "Qui puoi prelevare i tuoi soldi dalla banca.",
|
||||
"type": "number"
|
||||
},
|
||||
{
|
||||
"elementID": "#deposit",
|
||||
"name": "deposit",
|
||||
"buttonText": "conferma",
|
||||
"inputPlaceholder": "Quantità",
|
||||
"title": "DEPOSITARE",
|
||||
"description": "Qui puoi depositare i tuoi soldi in banca.",
|
||||
"type": "number"
|
||||
},
|
||||
{
|
||||
"elementID": "#transfer",
|
||||
"name": "transfer",
|
||||
"buttonText": "trasferisci",
|
||||
"inputPlaceholder": "Quantità",
|
||||
"inputPlaceholder2": "Giocatore ID",
|
||||
"title": "TRASFERIMENTO",
|
||||
"description": "Qui puoi trasferire i tuoi soldi a qualcun altro."
|
||||
},
|
||||
{
|
||||
"componentName": "trans",
|
||||
"elementID": "#third-column",
|
||||
"title": "CRONOLOGIA DELLE TRANSAZIONI",
|
||||
"description": "Qui puoi vedere la cronologia delle tue operazioni.",
|
||||
"moreHistoryText": "Mostra più cronologia",
|
||||
"moreGraphText": "Mostra tutto il grafico"
|
||||
},
|
||||
{
|
||||
"componentName": "pincodePanel",
|
||||
"elementID": "#wrapper",
|
||||
"title": "Enter PIN",
|
||||
"deleteButtonText": "<i class='fa-solid fa-ban'></i>",
|
||||
"loginButtonText": "<i class='fa-solid fa-right-to-bracket'></i>",
|
||||
"closeButtonText": "Close"
|
||||
},
|
||||
{
|
||||
"componentName": "atmComponent",
|
||||
"elementID": "#wrapper",
|
||||
"title": "Fleeca Bank",
|
||||
"closeButtonText": "Disconnettersi"
|
||||
}
|
||||
],
|
||||
"LAUNGAGE": {
|
||||
"your_money_title": "saldo",
|
||||
"your_money_desc": "qui puoi vedere il saldo attuale e contanti.",
|
||||
"your_money_cash_label": "i tuoi soldi",
|
||||
"your_money_bank_label": "il tuo saldo bancario",
|
||||
"withdraw": "RITIRARE",
|
||||
"deposit": "DEPOSITARE",
|
||||
"transfer": "TRASFERIMENTO",
|
||||
"transferReceive": "TRASFERIMENTO RICEVUTO",
|
||||
"moneyFormat": "$__replaceData__",
|
||||
"graphTitle": "Il tuo bilancio",
|
||||
"moreGraphTitle": "grafico",
|
||||
"moreHistoryTitle": "Mostra la cronologia",
|
||||
"inputErrorTitle": "I dati non sono corretti",
|
||||
"inputErrorMessage": "Non può essere vuoto o un valore inferiore a 1!",
|
||||
"showPincodeErrorTitle": "PIN errato",
|
||||
"showPincodeErrorMessage": "Il pin deve contenere almeno 4 caratteri!",
|
||||
"tableLang": {
|
||||
"typeLabel": "Tipo di transazione",
|
||||
"transactionLabel": "Transaction Label",
|
||||
"balanceLabel": "bilancio",
|
||||
"amountLabel": "quantità",
|
||||
"timeLabel": "tempo",
|
||||
"searchInputPlaceholder": "Cerca ...",
|
||||
"_comment": "tabella Opzioni complete della lingua: inglese, ungherese, italiana, spagnolo, francese, puoi trovare qui tutte le lingue: https://cdn.datatables.net/plug-ins/9dcbecd42ad/i18n/",
|
||||
"tableFullLanguage": "Italian"
|
||||
}
|
||||
}
|
||||
},
|
||||
"ES": {
|
||||
"DYNAMIC_FORM_DATA": [
|
||||
{
|
||||
"componentName": "moreGraph",
|
||||
"elementID": "#wrapper",
|
||||
"title": "",
|
||||
"closeButtonText": "Cerrar",
|
||||
"bankTitle": "Banco Fleeca",
|
||||
"mainExitButtonText": "Cerrar sesión"
|
||||
},
|
||||
{
|
||||
"elementID": "#cpincode",
|
||||
"name": "cpincode",
|
||||
"buttonText": "Aprobar",
|
||||
"inputPlaceholder": "Introduzca 4 dígitos...",
|
||||
"title": "CONFIGURACIÓN DEL PIN",
|
||||
"description": "Aquí puede establecer o cambiar el código PIN.",
|
||||
"type": "password"
|
||||
},
|
||||
{
|
||||
"elementID": "#withdraw",
|
||||
"name": "withdraw",
|
||||
"buttonText": "Aprobar",
|
||||
"inputPlaceholder": "Importe",
|
||||
"title": "RETIRAR",
|
||||
"description": "Aquí puede retirar su dinero del banco.",
|
||||
"type": "number"
|
||||
},
|
||||
{
|
||||
"elementID": "#deposit",
|
||||
"name": "deposit",
|
||||
"buttonText": "Aprobación",
|
||||
"inputPlaceholder": "Importe",
|
||||
"title": "DEPOSITO",
|
||||
"description": "Aquí puede ingresar su dinero en el banco.",
|
||||
"type": "number"
|
||||
},
|
||||
{
|
||||
"elementID": "#transfer",
|
||||
"name": "transfer",
|
||||
"buttonText": "Transfererir",
|
||||
"inputPlaceholder": "Importe",
|
||||
"inputPlaceholder2": "ID del jugador",
|
||||
"title": "TRANSFERENCIA",
|
||||
"description": "Aquí puedes transferir tu dinero a otra persona."
|
||||
},
|
||||
{
|
||||
"componentName": "trans",
|
||||
"elementID": "#third-column",
|
||||
"title": "HISTORIAL DE TRANSACCIONES",
|
||||
"description": "Aquí puede ver su historial de transacciones.",
|
||||
"moreHistoryText": "Mostrar más historial",
|
||||
"moreGraphText": "Mostrar el gráfico"
|
||||
},
|
||||
{
|
||||
"componentName": "pincodePanel",
|
||||
"elementID": "#wrapper",
|
||||
"title": "Introducir PIN",
|
||||
"deleteButtonText": "<i class='fa-solid fa-ban'></i>",
|
||||
"loginButtonText": "<i class='fa-solid fa-right-to-bracket'></i>",
|
||||
"closeButtonText": "Close"
|
||||
},
|
||||
{
|
||||
"componentName": "atmComponent",
|
||||
"elementID": "#wrapper",
|
||||
"title": "Banco Fleeca",
|
||||
"closeButtonText": "Cerrar sesión"
|
||||
}
|
||||
],
|
||||
"LAUNGAGE": {
|
||||
"your_money_title": "Saldo",
|
||||
"your_money_desc": "Aquí puedes ver tu saldo actual y tu efectivo.",
|
||||
"your_money_cash_label": "Su dinero en mano",
|
||||
"your_money_bank_label": "Su saldo bancario",
|
||||
"withdraw": "RETIRAR",
|
||||
"deposit": "DEPÓSITO",
|
||||
"transfer": "TRANSFERENCIA",
|
||||
"transferReceive": "TRANSFERENCIA RECIBIDA",
|
||||
"moneyFormat": "$__replaceData__",
|
||||
"graphTitle": "Su saldo",
|
||||
"moreGraphTitle": "Gráfico grande",
|
||||
"moreHistoryTitle": "Mostrar más historial",
|
||||
"inputErrorTitle": "Data is incorrect",
|
||||
"inputErrorMessage": "No puede estar vacío ni tener un valor inferior a 1.",
|
||||
"showPincodeErrorTitle": "PIN incorrecto",
|
||||
"showPincodeErrorMessage": "El pin debe tener al menos 4 caracteres.",
|
||||
"tableLang": {
|
||||
"typeLabel": "Tipo de transacción",
|
||||
"transactionLabel": "Transaction Label",
|
||||
"balanceLabel": "Saldo",
|
||||
"amountLabel": "Importe",
|
||||
"timeLabel": "Tiempo",
|
||||
"searchInputPlaceholder": "Buscar...",
|
||||
"_comment": "tableFullLanguage options: English, Hungarian, Italiano, Spanish, French, you can find here all lang: https://cdn.datatables.net/plug-ins/9dcbecd42ad/i18n/",
|
||||
"tableFullLanguage": "Spanish"
|
||||
}
|
||||
}
|
||||
},
|
||||
"FR": {
|
||||
"DYNAMIC_FORM_DATA": [
|
||||
{
|
||||
"componentName": "moreGraph",
|
||||
"elementID": "#wrapper",
|
||||
"title": "",
|
||||
"closeButtonText": "Fermer",
|
||||
"bankTitle": "Banque Fleeca",
|
||||
"mainExitButtonText": "Déconnexion"
|
||||
},
|
||||
{
|
||||
"elementID": "#cpincode",
|
||||
"name": "cpincode",
|
||||
"buttonText": "Valider",
|
||||
"inputPlaceholder": "Entrez 4 chiffres...",
|
||||
"title": "CONFIGURATION DU PIN",
|
||||
"description": "Ici vous pouvez définir ou changer votre code PIN.",
|
||||
"type": "password"
|
||||
},
|
||||
{
|
||||
"elementID": "#withdraw",
|
||||
"name": "withdraw",
|
||||
"buttonText": "Valider",
|
||||
"inputPlaceholder": "Montant",
|
||||
"title": "RETIRER",
|
||||
"description": "Ici vous pouvez retirer votre argent de la banque.",
|
||||
"type": "number"
|
||||
},
|
||||
{
|
||||
"elementID": "#deposit",
|
||||
"name": "deposit",
|
||||
"buttonText": "Valider",
|
||||
"inputPlaceholder": "Montant",
|
||||
"title": "DÉPOSER",
|
||||
"description": "Ici, vous pouvez déposer votre argent à la banque.",
|
||||
"type": "number"
|
||||
},
|
||||
{
|
||||
"elementID": "#transfer",
|
||||
"name": "transfer",
|
||||
"buttonText": "Transférer",
|
||||
"inputPlaceholder": "Montant",
|
||||
"inputPlaceholder2": "ID du joueur",
|
||||
"title": "TRANSFERT",
|
||||
"description": "Ici, vous pouvez transférer votre argent à quelqu'un d'autre."
|
||||
},
|
||||
{
|
||||
"componentName": "trans",
|
||||
"elementID": "#third-column",
|
||||
"title": "HISTORIQUE DES TRANSACTIONS",
|
||||
"description": "Ici, vous pouvez voir votre historique de transactions.",
|
||||
"moreHistoryText": "Afficher plus d'historique",
|
||||
"moreGraphText": "Afficher plus de graphique"
|
||||
},
|
||||
{
|
||||
"componentName": "pincodePanel",
|
||||
"elementID": "#wrapper",
|
||||
"title": "Entrer le code PIN",
|
||||
"deleteButtonText": "<i class='fa-solid fa-ban'></i>",
|
||||
"loginButtonText": "<i class='fa-solid fa-right-to-bracket'></i>",
|
||||
"closeButtonText": "Fermer"
|
||||
},
|
||||
{
|
||||
"componentName": "atmComponent",
|
||||
"elementID": "#wrapper",
|
||||
"title": "Banque Fleeca",
|
||||
"closeButtonText": "Se déconnecter"
|
||||
}
|
||||
],
|
||||
"LAUNGAGE": {
|
||||
"your_money_title": "Solde",
|
||||
"your_money_desc": "Ici, vous pouvez voir votre solde actuel et votre argent en espèces.",
|
||||
"your_money_cash_label": "Votre argent en espèces",
|
||||
"your_money_bank_label": "Votre solde bancaire",
|
||||
"withdraw": "RETIRER",
|
||||
"deposit": "DÉPOSER",
|
||||
"transfer": "TRANSFERT",
|
||||
"transferReceive": "TRANSFERT REÇU",
|
||||
"moneyFormat": "$__replaceData__",
|
||||
"graphTitle": "Votre solde",
|
||||
"moreGraphTitle": "Grand graphique",
|
||||
"moreHistoryTitle": "Afficher plus",
|
||||
"inputErrorTitle": "Les données sont incorrectes",
|
||||
"inputErrorMessage": "Il ne peut pas être vide ou avoir une valeur inférieure à 1",
|
||||
"showPincodeErrorTitle": "Code PIN incorrect",
|
||||
"showPincodeErrorMessage": "Le code PIN doit avoir au moins 4 caractères!",
|
||||
"tableLang": {
|
||||
"typeLabel": "Type de transaction",
|
||||
"transactionLabel": "Transaction Label",
|
||||
"balanceLabel": "Solde",
|
||||
"amountLabel": "Montant",
|
||||
"timeLabel": "Temps",
|
||||
"searchInputPlaceholder": "Rechercher ...",
|
||||
"_comment": "Langue complète: Anglais, Hongrois, Italien, Espagnole, Français, vous pouvez trouver ici toutes les langues: https://cdn.datatables.net/plug-ins/9dcbecd42ad/i18n/",
|
||||
"tableFullLanguage": "French"
|
||||
}
|
||||
}
|
||||
},
|
||||
"NL": {
|
||||
"DYNAMIC_FORM_DATA": [
|
||||
{
|
||||
"componentName": "moreGraph",
|
||||
"elementID": "#wrapper",
|
||||
"title": "",
|
||||
"closeButtonText": "Sluit",
|
||||
"bankTitle": "Fleeca Bank",
|
||||
"mainExitButtonText": "Log uit"
|
||||
},
|
||||
{
|
||||
"elementID": "#cpincode",
|
||||
"name": "cpincode",
|
||||
"buttonText": "Goedkeuren",
|
||||
"inputPlaceholder": "Voer 4 cijfers in...",
|
||||
"title": "PINCODE INSTELLEN",
|
||||
"description": "Hier kun je je pincode instellen of wijzigen.",
|
||||
"type": "password"
|
||||
},
|
||||
{
|
||||
"elementID": "#withdraw",
|
||||
"name": "withdraw",
|
||||
"buttonText": "Opnemen",
|
||||
"inputPlaceholder": "Bedrag",
|
||||
"title": "OPNEMEN",
|
||||
"description": "Hier kun je geld opnemen van je bank account.",
|
||||
"type": "number"
|
||||
},
|
||||
{
|
||||
"elementID": "#deposit",
|
||||
"name": "deposit",
|
||||
"buttonText": "Storten",
|
||||
"inputPlaceholder": "Bedrag",
|
||||
"title": "STORTEN",
|
||||
"description": "Hier kun je geld storten op je bank account.",
|
||||
"type": "number"
|
||||
},
|
||||
{
|
||||
"elementID": "#transfer",
|
||||
"name": "transfer",
|
||||
"buttonText": "Overschrijven",
|
||||
"inputPlaceholder": "Bedrag",
|
||||
"inputPlaceholder2": "Speler ID",
|
||||
"title": "OVERSCHRIJVEN",
|
||||
"description": "Hier kun je geld overschrijven naar iemand anders zijn bank account."
|
||||
},
|
||||
{
|
||||
"componentName": "trans",
|
||||
"elementID": "#third-column",
|
||||
"title": "TRANSACTIE GESCHIEDENIS",
|
||||
"description": "Hier kun je alle transacties zien die op je bank account zijn vericht.",
|
||||
"moreHistoryText": "Laat meer geschiedenis zien",
|
||||
"moreGraphText": "Laat meer van de grafiek zien"
|
||||
},
|
||||
{
|
||||
"componentName": "pincodePanel",
|
||||
"elementID": "#wrapper",
|
||||
"title": "Voer pincode in",
|
||||
"deleteButtonText": "<i class='fa-solid fa-ban'></i>",
|
||||
"loginButtonText": "<i class='fa-solid fa-right-to-bracket'></i>",
|
||||
"closeButtonText": "Sluit"
|
||||
},
|
||||
{
|
||||
"componentName": "atmComponent",
|
||||
"elementID": "#wrapper",
|
||||
"title": "Fleeca Bank",
|
||||
"closeButtonText": "Log uit"
|
||||
}
|
||||
],
|
||||
"LAUNGAGE": {
|
||||
"your_money_title": "Saldo",
|
||||
"your_money_desc": "Hier kun je je saldo en je cash zien.",
|
||||
"your_money_cash_label": "Jouw cash",
|
||||
"your_money_bank_label": "Jouw bank saldo",
|
||||
"withdraw": "OPNEMEN",
|
||||
"deposit": "STORTEN",
|
||||
"transfer": "OVERSCHRIJVEN",
|
||||
"transferReceive": "ONTVANGEN ONVERSCHRIJVING",
|
||||
"moneyFormat": "€__replaceData__",
|
||||
"graphTitle": "Jouw saldo",
|
||||
"moreGraphTitle": "Grote grafiek",
|
||||
"moreHistoryTitle": "Laat meer geschiedenis zien",
|
||||
"inputErrorTitle": "Data is niet correct",
|
||||
"inputErrorMessage": "Deze input kan niet leeg zijn of een waarde minder dan 1 !",
|
||||
"showPincodeErrorTitle": "PIN onjuist",
|
||||
"showPincodeErrorMessage": "Je pincode moet tenminste 4 karakters hebben!",
|
||||
"tableLang": {
|
||||
"typeLabel": "Transactie type",
|
||||
"transactionLabel": "Transaction Label",
|
||||
"balanceLabel": "Saldo",
|
||||
"amountLabel": "Bedrag",
|
||||
"timeLabel": "Tijd",
|
||||
"searchInputPlaceholder": "Zoeken ...",
|
||||
"_comment": "tableFullLanguage options: English, Hungarian, Italian, Spanish, French, you can find here all lang: https://cdn.datatables.net/plug-ins/9dcbecd42ad/i18n/",
|
||||
"tableFullLanguage": "Nederlands"
|
||||
}
|
||||
}
|
||||
},
|
||||
"zh-CN": {
|
||||
"DYNAMIC_FORM_DATA": [
|
||||
{
|
||||
"componentName": "moreGraph",
|
||||
"elementID": "#wrapper",
|
||||
"title": "",
|
||||
"closeButtonText": "关闭 ❌",
|
||||
"bankTitle": "花园银行",
|
||||
"mainExitButtonText": "注销"
|
||||
},
|
||||
{
|
||||
"elementID": "#cpincode",
|
||||
"name": "cpincode",
|
||||
"buttonText": "验证密码",
|
||||
"inputPlaceholder": "请输入4位数字的密码...",
|
||||
"title": "修改PIN密码",
|
||||
"description": "在这里您可以编辑/更改您的密码.",
|
||||
"type": "password"
|
||||
},
|
||||
{
|
||||
"elementID": "#withdraw",
|
||||
"name": "withdraw",
|
||||
"buttonText": "确认",
|
||||
"inputPlaceholder": "金额数量",
|
||||
"title": "提现",
|
||||
"description": "在这里您可以从银行取款.",
|
||||
"type": "number"
|
||||
},
|
||||
{
|
||||
"elementID": "#deposit",
|
||||
"name": "deposit",
|
||||
"buttonText": "确认",
|
||||
"inputPlaceholder": "金额数量",
|
||||
"title": "存款",
|
||||
"description": "在这里您可以将钱存入银行.",
|
||||
"type": "number"
|
||||
},
|
||||
{
|
||||
"elementID": "#transfer",
|
||||
"name": "transfer",
|
||||
"buttonText": "转账",
|
||||
"inputPlaceholder": "金额数量",
|
||||
"inputPlaceholder2": "玩家服务器ID",
|
||||
"title": "转账",
|
||||
"description": "在这里您可以将钱转账给他人."
|
||||
},
|
||||
{
|
||||
"componentName": "trans",
|
||||
"elementID": "#third-column",
|
||||
"title": "交易记录",
|
||||
"description": "在这里您可以查看您的交易记录.",
|
||||
"moreHistoryText": "显示更多记录",
|
||||
"moreGraphText": "显示更多图表"
|
||||
},
|
||||
{
|
||||
"componentName": "pincodePanel",
|
||||
"elementID": "#wrapper",
|
||||
"title": "输入 PIN 密码",
|
||||
"deleteButtonText": "<i class='fa-solid fa-ban'></i>",
|
||||
"loginButtonText": "<i class='fa-solid fa-right-to-bracket'></i>",
|
||||
"closeButtonText": "关闭 ❌"
|
||||
},
|
||||
{
|
||||
"componentName": "atmComponent",
|
||||
"elementID": "#wrapper",
|
||||
"title": "花园银行-ATM",
|
||||
"closeButtonText": "注销"
|
||||
}
|
||||
],
|
||||
"LAUNGAGE": {
|
||||
"your_money_title": "我的信息",
|
||||
"your_money_desc": "在这里您可以看到您当前的余额和现金.",
|
||||
"your_money_cash_label": "您的现金",
|
||||
"your_money_bank_label": "您的银行余额",
|
||||
"withdraw": "提现",
|
||||
"deposit": "存款",
|
||||
"transfer": "转账",
|
||||
"transferReceive": "已收到转账",
|
||||
"moneyFormat": "$__replaceData__",
|
||||
"graphTitle": "您的余额",
|
||||
"moreGraphTitle": "详情页",
|
||||
"moreHistoryTitle": "详情页",
|
||||
"inputErrorTitle": "数据不正确",
|
||||
"inputErrorMessage": "无法为空空或值小于 1",
|
||||
"showPincodeErrorTitle": "输入的 PIN 密码不正确",
|
||||
"showPincodeErrorMessage": "PIN 码必须至少有 4 个字符!",
|
||||
"tableLang": {
|
||||
"typeLabel": "交易类型",
|
||||
"transactionLabel": "Transaction Label",
|
||||
"balanceLabel": "我的信息",
|
||||
"amountLabel": "数量",
|
||||
"timeLabel": "时间",
|
||||
"searchInputPlaceholder": "研究 ...",
|
||||
"_comment": "Langue complète: Anglais, Hongrois, Italien, Espagnole Français, vous pouvez trouver ici toutes les langues: https://cdn.datatables.net/plug-ins/9dcbecd42ad/i18n/",
|
||||
"tableFullLanguage": "Chinese"
|
||||
}
|
||||
}
|
||||
},
|
||||
"SR": {
|
||||
"DYNAMIC_FORM_DATA": [
|
||||
{
|
||||
"componentName": "moreGraph",
|
||||
"elementID": "#wrapper",
|
||||
"title": "",
|
||||
"closeButtonText": "Zatvori",
|
||||
"bankTitle": "Fleeca Banka",
|
||||
"mainExitButtonText": "Log out"
|
||||
},
|
||||
{
|
||||
"elementID": "#cpincode",
|
||||
"name": "cpincode",
|
||||
"buttonText": "Potvrdi",
|
||||
"inputPlaceholder": "Unesi 4 cifre...",
|
||||
"title": "PIN KOD",
|
||||
"description": "Ovde možete postaviti ili izmeniti PIN kod.",
|
||||
"type": "password"
|
||||
},
|
||||
{
|
||||
"elementID": "#withdraw",
|
||||
"name": "withdraw",
|
||||
"buttonText": "Potvrdi",
|
||||
"inputPlaceholder": "Iznos",
|
||||
"title": "PODIGNI",
|
||||
"description": "Ovde možete podići novac sa vašeg računa.",
|
||||
"type": "number"
|
||||
},
|
||||
{
|
||||
"elementID": "#deposit",
|
||||
"name": "deposit",
|
||||
"buttonText": "Potvrdi",
|
||||
"inputPlaceholder": "Iznos",
|
||||
"title": "UPLATA",
|
||||
"description": "Ovde možete uplatiti novac na vaš račun",
|
||||
"type": "number"
|
||||
},
|
||||
{
|
||||
"elementID": "#transfer",
|
||||
"name": "transfer",
|
||||
"buttonText": "Transfer",
|
||||
"inputPlaceholder": "Iznos",
|
||||
"inputPlaceholder2": "ID Osobe",
|
||||
"title": "TRANSFER",
|
||||
"description": "Ovde možete poslati novac nekome."
|
||||
},
|
||||
{
|
||||
"componentName": "trans",
|
||||
"elementID": "#third-column",
|
||||
"title": "ISTORIJA TRANSAKCIJA",
|
||||
"description": "Ovde možete videti istoriju transakcija.",
|
||||
"moreHistoryText": "Prikaži više",
|
||||
"moreGraphText": "Prikaži više grafikona"
|
||||
},
|
||||
{
|
||||
"componentName": "pincodePanel",
|
||||
"elementID": "#wrapper",
|
||||
"title": "Unesite PIN",
|
||||
"deleteButtonText": "<i class='fa-solid fa-ban'></i>",
|
||||
"loginButtonText": "<i class='fa-solid fa-right-to-bracket'></i>",
|
||||
"closeButtonText": "Zatvori"
|
||||
},
|
||||
{
|
||||
"componentName": "atmComponent",
|
||||
"elementID": "#wrapper",
|
||||
"title": "Fleeca Banka",
|
||||
"closeButtonText": "Log out"
|
||||
}
|
||||
],
|
||||
"LAUNGAGE": {
|
||||
"your_money_title": "Balans",
|
||||
"your_money_desc": "Ovde možete videti iznos novca na vašem računu i kod vas",
|
||||
"your_money_cash_label": "Vaš novac",
|
||||
"your_money_bank_label": "Vaš novac na računu",
|
||||
"withdraw": "PODIGNI",
|
||||
"deposit": "UPLATI",
|
||||
"transfer": "TRANSFER",
|
||||
"transferReceive": "PRIMLJEN TRANSFER",
|
||||
"moneyFormat": "$__replaceData__",
|
||||
"graphTitle": "Vaš balansa",
|
||||
"moreGraphTitle": "Veliki Grafikon",
|
||||
"moreHistoryTitle": "Prikaži više",
|
||||
"inputErrorTitle": "Podaci su nevažeći",
|
||||
"inputErrorMessage": "Ne može biti prazno ili iznos manji od 1!",
|
||||
"showPincodeErrorTitle": "PIN netačan",
|
||||
"showPincodeErrorMessage": "PIN mora imati 4 karaktera!",
|
||||
"tableLang": {
|
||||
"typeLabel": "Tip transakcije",
|
||||
"balanceLabel": "Balans",
|
||||
"amountLabel": "Iznos",
|
||||
"timeLabel": "Vreme",
|
||||
"searchInputPlaceholder": "Pretraži ...",
|
||||
"_comment": "tableFullLanguage options: English, Hungarian, Italian, Spanish, French, Serbian, you can find here all lang: https://cdn.datatables.net/plug-ins/9dcbecd42ad/i18n/",
|
||||
"tableFullLanguage": "Serbian"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
806
resources/[esx_addons]/esx_banking/html/css/app.css
Normal file
806
resources/[esx_addons]/esx_banking/html/css/app.css
Normal file
@@ -0,0 +1,806 @@
|
||||
:root {
|
||||
--primary-color: #2e69d5;
|
||||
--secondary-color: #378cbf;
|
||||
--text-color: #ffff;
|
||||
--background-light: #232934;
|
||||
--background-light-2: #202020;
|
||||
--background-dark: #0a0e19;
|
||||
--accent-red: #378cbf;
|
||||
--accent-green: #45b157;
|
||||
--accent-gray: #474e57;
|
||||
--accent-gray-2: #545457;
|
||||
|
||||
--columnsBackground: var(--background-dark);
|
||||
--allTitleColor: var(--text-color);
|
||||
--yourMoneyPriceTextColor: var(--accent-green);
|
||||
--bankCardBackgroundColor: linear-gradient(
|
||||
110deg,
|
||||
var(--primary-color) 0%,
|
||||
var(--secondary-color) 100%
|
||||
);
|
||||
--buttonBackgroundColor: var(--background-light);
|
||||
--inputBackgroundColor: var(--background-light);
|
||||
--inputTextColor: var(--text-color);
|
||||
--inputPlaceholderColor: var(--accent-gray-2);
|
||||
--checkmarkColor: var(--text-color);
|
||||
--acceptExitButtonColorText: var(--text-color);
|
||||
--exitButtonHoverBackgroundColor: var(--primary-color);
|
||||
--acceptButtonHoverBackgroundColor: var(--secondary-color);
|
||||
--bankCardTextColor: var(--text-color);
|
||||
--bankCardNumberColor: var(--text-color);
|
||||
--moneyContainerBackgroundColor: var(--background-light);
|
||||
--moneyAndTransactionContainer: var(--background-light);
|
||||
--transactionContainerBackgroundColor: var(--background-light);
|
||||
--moneyAndTransactionallTitleColorText: var(--text-color);
|
||||
--transactionDataTextColor: var(--text-color);
|
||||
--cardSubtitleTextColor: var(--accent-gray);
|
||||
--depositColorText: var(--accent-green);
|
||||
--withDrawColorText: var(--primary-color);
|
||||
--moreHistoryButtonHoverColor: var(--secondary-color);
|
||||
--moreGraphButtonHoverColor: var(--secondary-color);
|
||||
--hrRowColor: var(--accent-gray);
|
||||
--loadingCircle: var(--secondary-color);
|
||||
--tableAllTextColor: var(--text-color);
|
||||
--tableBackgroundColorPaginationButton: var(--secondary-color);
|
||||
--tableBackgroundColorPaginationButtonHover: var(--secondary-color);
|
||||
--tableRowHoverBackgroundColor: var(--secondary-color);
|
||||
--tableScrollBarBackgroundColor: var(--background-light);
|
||||
--tableScrollBarBackgroundColorHover: var(--secondary-color);
|
||||
--tableSelectBoxBackgroundColor: var(--background-light);
|
||||
--tableSearchInputBackgroundColor: var(--background-light);
|
||||
--tableScrollBarBackgroundColor2: var(--background-light);
|
||||
--disableButtonBackgroundColor: var(--background-light-2);
|
||||
--graphLineColor: var(--secondary-color);
|
||||
--graphLineBackgroundColor: var(--secondary-color);
|
||||
}
|
||||
|
||||
@import url("https://fonts.googleapis.com/css2?family=Raleway:wght@100;400;500;800&display=swap");
|
||||
|
||||
* {
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
#wrapper {
|
||||
width: 100%;
|
||||
height: 93.24vmin;
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
font-family: "Raleway", sans-serif;
|
||||
user-select: none;
|
||||
min-width: 42vmin;
|
||||
font-size: 2vmin;
|
||||
display: none;
|
||||
}
|
||||
|
||||
#container {
|
||||
height: 73vmin;
|
||||
width: 139.41vmin;
|
||||
cursor: default;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
max-width: 150vmin;
|
||||
flex-wrap: wrap;
|
||||
margin: 2vmin;
|
||||
position: relative;
|
||||
display: none;
|
||||
}
|
||||
|
||||
#menu {
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
gap: 3vmin;
|
||||
flex-wrap: wrap;
|
||||
height: 68.15vmin;
|
||||
}
|
||||
|
||||
/* FIRST COLUMN START */
|
||||
|
||||
#menu #first-column {
|
||||
width: 36vmin;
|
||||
background: var(--columnsBackground);
|
||||
padding: 1.85vmin;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 1.79vmin;
|
||||
border-radius: 1.38vmin;
|
||||
flex: 1 1 27.7vmin;
|
||||
height: 72.56vmin;
|
||||
}
|
||||
|
||||
#menu #first-column hr {
|
||||
border: 1px solid var(--hrRowColor);
|
||||
width: 80%;
|
||||
margin: 0 auto;
|
||||
}
|
||||
|
||||
#bankcard {
|
||||
height: 16.6vmin;
|
||||
width: 25vmin;
|
||||
margin: 0 auto;
|
||||
background: var(--bankCardBackgroundColor);
|
||||
border-radius: 1.38vmin;
|
||||
padding: 1.85vmin 1.6vmin 0px 1.85vmin;
|
||||
position: relative;
|
||||
}
|
||||
|
||||
#bankcard .content p {
|
||||
margin: 0;
|
||||
color: var(--bankCardTextColor);
|
||||
font-size: 0.92vmin;
|
||||
}
|
||||
|
||||
#bankcard .title {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
}
|
||||
|
||||
#bankcard .title span {
|
||||
color: var(--bankCardTextColor);
|
||||
}
|
||||
|
||||
#bankcard .title svg {
|
||||
width: 4.16vmin;
|
||||
height: 4.16vmin;
|
||||
}
|
||||
|
||||
#bankcard .content {
|
||||
position: absolute;
|
||||
bottom: 1.66vmin;
|
||||
}
|
||||
|
||||
#bankcard .content .card-data {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
}
|
||||
|
||||
#bankcard .content .cardnumber {
|
||||
color: var(--bankCardNumberColor);
|
||||
font-size: 1.85vmin;
|
||||
letter-spacing: 0.37vmin;
|
||||
margin-bottom: 0.46vmin;
|
||||
}
|
||||
|
||||
#bankcard .content .card-data:nth-child(2) {
|
||||
margin-right: 0.27vmin;
|
||||
}
|
||||
|
||||
#bankcard .content .card-data p {
|
||||
font-size: 1.48vmin;
|
||||
}
|
||||
|
||||
#your-money-panel #money-containers {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 0.92vmin;
|
||||
}
|
||||
|
||||
.exit-button,
|
||||
.accept-button,
|
||||
#pincode-container .button-groups button {
|
||||
background-color: var(--buttonBackgroundColor);
|
||||
padding: 1.85vmin 1.85vmin;
|
||||
/*width: 35vmin;*/
|
||||
width: 100%;
|
||||
outline: none;
|
||||
border: none;
|
||||
color: var(--acceptExitButtonColorText);
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
transition: all 0.3s ease;
|
||||
font-weight: bold;
|
||||
border-radius: 0.27vmin;
|
||||
font-family: "Raleway", sans-serif;
|
||||
font-size: 1.5vmin;
|
||||
}
|
||||
|
||||
.exit-button:hover,
|
||||
#modal-container #title-container button:hover {
|
||||
background-color: var(--exitButtonHoverBackgroundColor);
|
||||
box-shadow: -1vmin 1vmin 1vmin -1vmin var(--exitButtonHoverBackgroundColor);
|
||||
}
|
||||
|
||||
.accept-button:hover {
|
||||
background-color: var(--acceptButtonHoverBackgroundColor);
|
||||
box-shadow: -1vmin 1vmin 1vmin -1vmin var(--acceptButtonHoverBackgroundColor);
|
||||
}
|
||||
|
||||
/* FIRST COLUMN END */
|
||||
|
||||
/* SECOND COLUMN START*/
|
||||
|
||||
#menu #second-column {
|
||||
width: 35.18vmin;
|
||||
border-radius: 1.38vmin;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
flex-direction: column;
|
||||
gap: 0.92vmin;
|
||||
flex: 1 1 27.77vmin;
|
||||
padding-right: 1.85vmin;
|
||||
padding-left: 1.85vmin;
|
||||
}
|
||||
|
||||
#withdraw,
|
||||
#deposit,
|
||||
#transfer {
|
||||
background: var(--columnsBackground);
|
||||
padding: 1.85vmin;
|
||||
border-radius: 1.38vmin;
|
||||
width: 35.18vmin;
|
||||
}
|
||||
|
||||
#menu #second-column #withdraw {
|
||||
height: 18.48vmin;
|
||||
}
|
||||
|
||||
#menu #second-column #deposit {
|
||||
height: 18.48vmin;
|
||||
}
|
||||
|
||||
#menu #second-column #transfer {
|
||||
height: 26.63vmin;
|
||||
}
|
||||
|
||||
/* SECOND COLUMN END*/
|
||||
|
||||
/* THIRD COLUMN START*/
|
||||
|
||||
#menu #third-column {
|
||||
width: 32.77vmin;
|
||||
background: var(--columnsBackground);
|
||||
border-radius: 1.38vmin;
|
||||
padding: 1.85vmin;
|
||||
flex: 1 1 37.03vmin;
|
||||
}
|
||||
|
||||
#menu #third-column #graph-container {
|
||||
width: calc(100% - 0.46vmin);
|
||||
height: 38vmin;
|
||||
}
|
||||
|
||||
#menu #third-column #buttons-container {
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
margin: 0px 1.9vmin;
|
||||
margin-top: 1.48vmin;
|
||||
gap: 0.92vmin;
|
||||
}
|
||||
|
||||
#menu #third-column #buttons-container button {
|
||||
padding: 0.92vmin;
|
||||
width: 20.92vmin;
|
||||
}
|
||||
|
||||
#menu #third-column #buttons-container #more_history:hover {
|
||||
background-color: var(--moreHistoryButtonHoverColor);
|
||||
box-shadow: 0px 3.42vmin 9.25vmin -1.2vmin var(--moreHistoryButtonHoverColor);
|
||||
}
|
||||
|
||||
#menu #third-column #buttons-container #more_graph:hover {
|
||||
background-color: var(--moreGraphButtonHoverColor);
|
||||
box-shadow: 0px 3.42vmin 9.25vmin -1.2vmin var(--moreGraphButtonHoverColor);
|
||||
}
|
||||
|
||||
#menu #third-column #transactions-container {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
gap: 0.92vmin;
|
||||
padding: 1.85vmin;
|
||||
}
|
||||
|
||||
#menu #third-column #transactions-container .transaction-container {
|
||||
/* width: 40.37vmin; */
|
||||
width: 100%;
|
||||
background-color: var(--transactionContainerBackgroundColor);
|
||||
padding: 0.92vmin 0.92vmin 0.92vmin 1.85vmin;
|
||||
font-size: 1.8vmin;
|
||||
}
|
||||
|
||||
#menu
|
||||
#third-column
|
||||
#transactions-container
|
||||
.transaction-container
|
||||
.transaction {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
font-size: 1.5vmin;
|
||||
margin-bottom: 0.8vmin;
|
||||
}
|
||||
|
||||
#menu
|
||||
#third-column
|
||||
#transactions-container
|
||||
.transaction-container
|
||||
.transaction
|
||||
span {
|
||||
color: var(--transactionDataTextColor);
|
||||
background: var(--columnsBackground);
|
||||
border-radius: 0.27vmin;
|
||||
padding: 0.46vmin;
|
||||
font-size: 1.2vmin;
|
||||
}
|
||||
|
||||
/* THIRD COLUMN END*/
|
||||
|
||||
/* GENERAL START*/
|
||||
|
||||
.money-container,
|
||||
.transaction-container {
|
||||
background-color: var(--moneyAndTransactionContainer);
|
||||
padding: 0.92vmin 0.92vmin 0.92vmin 1.85vmin;
|
||||
border-radius: 0.27vmin;
|
||||
}
|
||||
|
||||
.money-container {
|
||||
background-color: var(--moneyContainerBackgroundColor);
|
||||
}
|
||||
|
||||
.money-container h4 {
|
||||
margin-bottom: 0.5vmin;
|
||||
}
|
||||
|
||||
.money-container h4,
|
||||
.transaction h4 {
|
||||
color: var(--moneyAndTransactionallTitleColorText);
|
||||
text-shadow: 0.09vmin 0.09vmin 0.18vmin black;
|
||||
font-size: 1.5vmin;
|
||||
width: 25vmin;
|
||||
}
|
||||
|
||||
.money-container span,
|
||||
.transaction-container span {
|
||||
color: var(--yourMoneyPriceTextColor);
|
||||
text-shadow: 0.09vmin 0.09vmin 0.18vmin black;
|
||||
font-size: 1.5vmin;
|
||||
}
|
||||
|
||||
.accept-button svg {
|
||||
height: 1.38vmin;
|
||||
fill: var(--checkmarkColor);
|
||||
}
|
||||
|
||||
.green-text {
|
||||
color: var(--depositColorText) !important;
|
||||
}
|
||||
|
||||
.red-text {
|
||||
color: var(--withDrawColorText) !important;
|
||||
}
|
||||
|
||||
.disable-button {
|
||||
background-color: var(--disableButtonBackgroundColor) !important;
|
||||
pointer-events: none;
|
||||
}
|
||||
|
||||
h3 {
|
||||
color: #ecedef;
|
||||
color: var(--allTitleColor);
|
||||
font-size: 2.31vmin;
|
||||
text-shadow: 0.09vmin 0.09vmin 0.92vmin rgb(255 255 255 / 47%);
|
||||
text-transform: uppercase;
|
||||
}
|
||||
|
||||
p {
|
||||
color: var(--cardSubtitleTextColor);
|
||||
margin-bottom: 0.92vmin;
|
||||
font-size: 1.5vmin;
|
||||
}
|
||||
|
||||
input {
|
||||
width: 100%;
|
||||
font-family: "Raleway", sans-serif;
|
||||
font-size: 1.38vmin;
|
||||
background-color: var(--inputBackgroundColor);
|
||||
padding: 1.85vmin 1.85vmin;
|
||||
outline: none;
|
||||
border: none;
|
||||
color: var(--inputTextColor);
|
||||
margin-bottom: 1.85vmin;
|
||||
border-radius: 0.46vmin;
|
||||
}
|
||||
|
||||
input::placeholder {
|
||||
color: var(--inputPlaceholderColor);
|
||||
opacity: 1;
|
||||
}
|
||||
|
||||
input::-webkit-outer-spin-button,
|
||||
input::-webkit-inner-spin-button {
|
||||
-webkit-appearance: none;
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
/* GENERAL END*/
|
||||
|
||||
#modal-container {
|
||||
background-color: var(--columnsBackground);
|
||||
position: absolute;
|
||||
top: 50%;
|
||||
height: 100%;
|
||||
width: 100%;
|
||||
z-index: 2;
|
||||
transform: translateY(-50%);
|
||||
display: none;
|
||||
border-radius: 1.38vmin;
|
||||
}
|
||||
|
||||
#more-modal-container {
|
||||
height: 93%;
|
||||
padding: 0 6vmin;
|
||||
}
|
||||
|
||||
#modal-container h3 {
|
||||
text-align: center;
|
||||
width: 100%;
|
||||
margin-top: 1vmin;
|
||||
}
|
||||
|
||||
#modal-container #title-container button {
|
||||
background-color: var(--buttonBackgroundColor);
|
||||
padding: 1.85vmin 1.85vmin;
|
||||
transition: all 0.3s ease;
|
||||
font-weight: bold;
|
||||
border-radius: 0.27vmin 0.27vmin 0.27vmin 1.27vmin;
|
||||
font-family: "Raleway", sans-serif;
|
||||
font-size: 1.5vmin;
|
||||
border: none;
|
||||
color: var(--inputTextColor);
|
||||
margin-left: auto;
|
||||
position: absolute;
|
||||
right: 0vmin;
|
||||
top: 0vmin;
|
||||
width: 14vmin;
|
||||
}
|
||||
|
||||
/*DATA TABLES DESIGN */
|
||||
|
||||
.dataTables_wrapper .dataTables_info {
|
||||
clear: both;
|
||||
float: left;
|
||||
padding-top: 0.755em;
|
||||
color: var(--tableAllTextColor) !important;
|
||||
}
|
||||
|
||||
#example_wrapper {
|
||||
margin-top: 4vmin;
|
||||
color: var(--tableAllTextColor) !important;
|
||||
padding: 1vmin;
|
||||
font-family: "Raleway", sans-serif !important;
|
||||
}
|
||||
|
||||
#example_filter input {
|
||||
display: flex;
|
||||
gap: 1vmin;
|
||||
border: none;
|
||||
padding: 2vmin;
|
||||
background-color: var(--tableSearchInputBackgroundColor);
|
||||
}
|
||||
|
||||
.dataTables_wrapper .dataTables_length,
|
||||
.dataTables_wrapper .dataTables_filter,
|
||||
.dataTables_wrapper .dataTables_info,
|
||||
.dataTables_wrapper .dataTables_processing,
|
||||
.dataTables_wrapper .dataTables_paginate {
|
||||
color: var(--tableAllTextColor) !important;
|
||||
}
|
||||
|
||||
table.dataTable thead > tr > th.sorting,
|
||||
table.dataTable thead > tr > th.sorting_asc,
|
||||
table.dataTable thead > tr > th.sorting_desc,
|
||||
table.dataTable thead > tr > th.sorting_asc_disabled,
|
||||
table.dataTable thead > tr > th.sorting_desc_disabled,
|
||||
table.dataTable thead > tr > td.sorting,
|
||||
table.dataTable thead > tr > td.sorting_asc,
|
||||
table.dataTable thead > tr > td.sorting_desc,
|
||||
table.dataTable thead > tr > td.sorting_asc_disabled,
|
||||
table.dataTable thead > tr > td.sorting_desc_disabled,
|
||||
table.dataTable thead > tr > td.sorting_disabled {
|
||||
cursor: pointer;
|
||||
position: relative;
|
||||
padding-right: 26px;
|
||||
color: var(--tableAllTextColor) !important;
|
||||
}
|
||||
|
||||
table.dataTable tbody tr td {
|
||||
color: var(--tableAllTextColor);
|
||||
font-weight: 500;
|
||||
}
|
||||
|
||||
.greenTableText {
|
||||
color: var(--depositColorText) !important;
|
||||
}
|
||||
|
||||
.redTableText {
|
||||
color: var(--withDrawColorText) !important;
|
||||
}
|
||||
|
||||
table.dataTable.no-footer {
|
||||
border-bottom: 1px solid rgba(0, 0, 0, 0.3);
|
||||
}
|
||||
|
||||
.dataTables_wrapper .dataTables_paginate .paginate_button.disabled,
|
||||
.dataTables_wrapper .dataTables_paginate .paginate_button.disabled:hover,
|
||||
.dataTables_wrapper .dataTables_paginate .paginate_button.disabled:active {
|
||||
cursor: default;
|
||||
color: var(--tableAllTextColor) !important;
|
||||
border: 1px solid #828282;
|
||||
background: transparent;
|
||||
box-shadow: none;
|
||||
}
|
||||
|
||||
.dataTables_wrapper .dataTables_paginate .paginate_button {
|
||||
background: none;
|
||||
color: var(--tableAllTextColor) !important;
|
||||
border-radius: 4px;
|
||||
border: 1px solid #828282;
|
||||
}
|
||||
|
||||
.dataTables_wrapper .dataTables_paginate .paginate_button:hover {
|
||||
color: white !important;
|
||||
background: var(--tableBackgroundColorPaginationButtonHover) !important;
|
||||
background: var(--tableBackgroundColorPaginationButtonHover) !important;
|
||||
background: var(--tableBackgroundColorPaginationButtonHover) !important;
|
||||
background: var(--tableBackgroundColorPaginationButtonHover) !important;
|
||||
box-shadow: 0px 3.42vmin 9.25vmin -1.2vmin var(--tableBackgroundColorPaginationButtonHover) !important;
|
||||
}
|
||||
|
||||
.dataTables_wrapper .dataTables_paginate .paginate_button.current,
|
||||
.dataTables_wrapper .dataTables_paginate .paginate_button.current:hover {
|
||||
background: var(--tableBackgroundColorPaginationButton) !important;
|
||||
background: var(--tableBackgroundColorPaginationButton) !important;
|
||||
background: var(--tableBackgroundColorPaginationButton) !important;
|
||||
background: var(--tableBackgroundColorPaginationButton) !important;
|
||||
box-shadow: 0px 3.42vmin 9.25vmin -1.2vmin var(--tableBackgroundColorPaginationButton) !important;
|
||||
color: var(--tableAllTextColor) !important;
|
||||
}
|
||||
|
||||
.dataTables_wrapper .dataTables_length select {
|
||||
border-radius: 3px;
|
||||
padding: 5px;
|
||||
background-color: var(--tableSelectBoxBackgroundColor) !important;
|
||||
padding: 4px;
|
||||
color: var(--tableAllTextColor) !important;
|
||||
padding: 1vmin;
|
||||
border: none;
|
||||
outline: none;
|
||||
}
|
||||
|
||||
table.dataTable tbody tr {
|
||||
height: 50px !important;
|
||||
}
|
||||
|
||||
table.dataTable tbody tr:hover {
|
||||
background-color: var(--tableRowHoverBackgroundColor) !important;
|
||||
}
|
||||
|
||||
#example_wrapper
|
||||
> div.dataTables_scroll
|
||||
> div.dataTables_scrollHead
|
||||
> div
|
||||
> table
|
||||
> thead
|
||||
> tr
|
||||
> th.sorting_disabled {
|
||||
color: var(--tableAllTextColor) !important;
|
||||
}
|
||||
|
||||
/*DATA TABLE DESIGN END*/
|
||||
|
||||
/*SCROLLBAR DESIGN*/
|
||||
::-webkit-scrollbar {
|
||||
width: 5px;
|
||||
}
|
||||
::-webkit-scrollbar-track {
|
||||
background: var(--tableScrollBarBackgroundColor2);
|
||||
}
|
||||
::-webkit-scrollbar-thumb {
|
||||
background: var(--tableScrollBarBackgroundColor);
|
||||
}
|
||||
::-webkit-scrollbar-thumb:hover {
|
||||
background: var(--tableScrollBarBackgroundColorHover);
|
||||
}
|
||||
|
||||
/* LOADING CIRCLE*/
|
||||
|
||||
:root {
|
||||
--rotation-animation-speed: 2s;
|
||||
--rotation-animation-easing: linear;
|
||||
--stroke-animation-speed: 1.5s;
|
||||
--stroke-animation-easing: ease-in-out;
|
||||
--stroke-width: 3px;
|
||||
--stroke-start-dasharray: 1, 200;
|
||||
--stroke-end-dasharray: 89, 200;
|
||||
}
|
||||
|
||||
.loader {
|
||||
margin: 0px auto;
|
||||
width: 23.14vmin;
|
||||
height: 23.14vmin;
|
||||
position: absolute;
|
||||
top: 50%;
|
||||
left: 50%;
|
||||
transform: translate(-50%, -50%);
|
||||
z-index: 2;
|
||||
display: none;
|
||||
}
|
||||
|
||||
.circular-loader {
|
||||
animation: rotate var(--rotation-animation-speed)
|
||||
var(--rotation-animation-easing) infinite;
|
||||
}
|
||||
|
||||
.loader-path {
|
||||
fill: none;
|
||||
stroke-width: var(--stroke-width);
|
||||
animation: animate-stroke var(--stroke-animation-speed)
|
||||
var(--stroke-animation-easing) infinite;
|
||||
stroke-linecap: round;
|
||||
}
|
||||
|
||||
@keyframes rotate {
|
||||
100% {
|
||||
transform: rotate(360deg);
|
||||
}
|
||||
}
|
||||
|
||||
@keyframes animate-stroke {
|
||||
0% {
|
||||
stroke-dasharray: var(--stroke-start-dasharray);
|
||||
stroke-dashoffset: 0;
|
||||
stroke: var(--columnsBackground);
|
||||
}
|
||||
50% {
|
||||
stroke-dasharray: var(--stroke-end-dasharray);
|
||||
stroke-dashoffset: -35;
|
||||
stroke: var(--loadingCircle);
|
||||
}
|
||||
100% {
|
||||
stroke-dasharray: var(--stroke-end-dasharray);
|
||||
stroke-dashoffset: -124;
|
||||
stroke: var(--loadingCircle);
|
||||
}
|
||||
}
|
||||
|
||||
#pincode-container {
|
||||
background-color: var(--columnsBackground);
|
||||
height: 80%;
|
||||
width: 40vmin;
|
||||
color: white;
|
||||
display: flex;
|
||||
border-radius: 3vmin;
|
||||
flex-direction: column;
|
||||
justify-content: center;
|
||||
gap: 5vmin;
|
||||
}
|
||||
|
||||
#pincode-container h4 {
|
||||
text-align: center;
|
||||
margin-top: 2vmin;
|
||||
}
|
||||
|
||||
#pincode-container .pincode-input {
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
height: 15vmin;
|
||||
width: 100%;
|
||||
gap: 10px;
|
||||
}
|
||||
|
||||
#pincode-container .pincode-input span {
|
||||
display: block;
|
||||
width: 3vmin;
|
||||
height: 3vmin;
|
||||
border-radius: 50%;
|
||||
border: 2px solid var(--secondary-color);
|
||||
transition: all 0.2s ease;
|
||||
}
|
||||
|
||||
#pincode-container .pincode-numbers {
|
||||
display: grid;
|
||||
grid-template-columns: 10vmin 10vmin 10vmin;
|
||||
grid-template-rows: 10vmin 10vmin 10vmin;
|
||||
place-items: center;
|
||||
justify-content: center;
|
||||
}
|
||||
|
||||
#pincode-container .pincode-numbers div {
|
||||
background-color: var(--background-light);
|
||||
padding: 2vmin 2vmin;
|
||||
border-radius: 50%;
|
||||
width: 3vmin;
|
||||
height: 3vmin;
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
transition: all 0.3s ease;
|
||||
}
|
||||
|
||||
#pincode-container .pincode-numbers div:hover {
|
||||
background-color: var(--secondary-color);
|
||||
box-shadow: 0px 3.42vmin 9.25vmin -1.2vmin var(--secondary-color);
|
||||
}
|
||||
|
||||
#pincode-container .pincode-numbers div:nth-child(11):hover {
|
||||
background-color: var(--exitButtonHoverBackgroundColor);
|
||||
box-shadow: 0px 3.42vmin 9.25vmin -1.2vmin var(--exitButtonHoverBackgroundColor);
|
||||
}
|
||||
|
||||
#pincode-container .pincode-numbers div:nth-child(12):hover {
|
||||
background-color: var(--acceptButtonHoverBackgroundColor);
|
||||
box-shadow: 0px 3.42vmin 9.25vmin -1.2vmin var(--acceptButtonHoverBackgroundColor);
|
||||
}
|
||||
|
||||
#pincode-container .button-groups {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
gap: 2vmin;
|
||||
margin-top: 2vmin;
|
||||
}
|
||||
|
||||
#pincode-container .button-groups button {
|
||||
width: 80%;
|
||||
}
|
||||
|
||||
#pincode-container .button-groups button:hover {
|
||||
background-color: var(--exitButtonHoverBackgroundColor);
|
||||
box-shadow: 0px 3.42vmin 9.25vmin -1.2vmin var(--exitButtonHoverBackgroundColor);
|
||||
}
|
||||
|
||||
#pincode-container .button-groups .login:hover {
|
||||
background-color: var(--acceptButtonHoverBackgroundColor);
|
||||
box-shadow: 0px 3.42vmin 9.25vmin -1.2vmin var(--acceptButtonHoverBackgroundColor);
|
||||
}
|
||||
|
||||
.circleBackground {
|
||||
background-color: var(--secondary-color);
|
||||
}
|
||||
|
||||
/* ATM DESIGNS*/
|
||||
|
||||
#atm-container {
|
||||
display: grid;
|
||||
grid-template-columns: 60% 60%;
|
||||
gap: 3vmin;
|
||||
height: 58vh;
|
||||
}
|
||||
|
||||
.firstGridColumn,
|
||||
.secondGridColumn {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
padding: 1.85vmin;
|
||||
}
|
||||
|
||||
.firstGridColumn {
|
||||
gap: 1.79vmin;
|
||||
border-radius: 1.38vmin;
|
||||
background: var(--columnsBackground);
|
||||
}
|
||||
|
||||
.secondGridColumn {
|
||||
gap: 3vmin;
|
||||
justify-content: center;
|
||||
}
|
||||
|
||||
.secondGridColumn div {
|
||||
background: var(--columnsBackground);
|
||||
padding: 3vmin;
|
||||
border-radius: 1.38vmin;
|
||||
}
|
||||
|
||||
/*MEDIA QUERY*/
|
||||
@media only screen and (max-width: 1280px) {
|
||||
.dataTables_scrollBody {
|
||||
max-height: 310px !important;
|
||||
}
|
||||
}
|
||||
2
resources/[esx_addons]/esx_banking/html/jquery-3.6.4.min.js
vendored
Normal file
2
resources/[esx_addons]/esx_banking/html/jquery-3.6.4.min.js
vendored
Normal file
File diff suppressed because one or more lines are too long
BIN
resources/[esx_addons]/esx_banking/html/roboto.ttf
Normal file
BIN
resources/[esx_addons]/esx_banking/html/roboto.ttf
Normal file
Binary file not shown.
1036
resources/[esx_addons]/esx_banking/html/scripts/app.js
Normal file
1036
resources/[esx_addons]/esx_banking/html/scripts/app.js
Normal file
File diff suppressed because it is too large
Load Diff
39
resources/[esx_addons]/esx_banking/html/ui.html
Normal file
39
resources/[esx_addons]/esx_banking/html/ui.html
Normal file
@@ -0,0 +1,39 @@
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="utf-8" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||
<link
|
||||
rel="stylesheet"
|
||||
type="text/css"
|
||||
href="https://cdn.datatables.net/v/dt/dt-1.12.1/datatables.min.css"
|
||||
/>
|
||||
<link
|
||||
rel="stylesheet"
|
||||
href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.1.2/css/all.min.css"
|
||||
integrity="sha512-1sCRPdkRXhBV2PBLUdRb4tMg1w2YPf37qatUFeS7zlBy7jJI8Lf4VHwWfZZfpXtYSLy85pkm9GaYVYMfw5BC1A=="
|
||||
crossorigin="anonymous"
|
||||
referrerpolicy="no-referrer"
|
||||
/>
|
||||
<link rel="stylesheet" href="css/app.css" type="text/css" />
|
||||
</head>
|
||||
<body>
|
||||
<div class="loader"></div>
|
||||
<div id="wrapper"></div>
|
||||
<script src="./jquery-3.6.4.min.js"></script>
|
||||
<script
|
||||
src="https://cdnjs.cloudflare.com/ajax/libs/Chart.js/3.9.1/chart.min.js"
|
||||
integrity="sha512-ElRFoEQdI5Ht6kZvyzXhYG9NqjtkmlkfYk0wr6wHxU9JEHakS7UJZNeml5ALk+8IKlU6jDgMabC3vkumRokgJA=="
|
||||
crossorigin="anonymous"
|
||||
referrerpolicy="no-referrer"
|
||||
></script>
|
||||
<script
|
||||
type="text/javascript"
|
||||
src="https://cdn.datatables.net/v/dt/dt-1.12.1/datatables.min.js"
|
||||
></script>
|
||||
<script
|
||||
src="https://kit.fontawesome.com/bc14c07181.js"
|
||||
crossorigin="anonymous"
|
||||
></script>
|
||||
<script src="scripts/app.js"></script>
|
||||
</body>
|
||||
</html>
|
||||
16
resources/[esx_addons]/esx_banking/locales/da.lua
Normal file
16
resources/[esx_addons]/esx_banking/locales/da.lua
Normal file
@@ -0,0 +1,16 @@
|
||||
Locales['da'] = {
|
||||
['invalid_amount'] = 'Det er et ugyldigt beløb',
|
||||
['deposit_money'] = 'du har indbetalt $%s',
|
||||
['withdraw_money'] = 'du har udbetalt $%s',
|
||||
['pincode_money'] = 'du har ny pinkode %s',
|
||||
['transfer_money'] = 'du har fuldført penge overførelsen af %s DKK til ID: %s',
|
||||
['receive_transfer'] = 'du modtog en penge overførselse af %s DKK til ID: %s',
|
||||
['press_e_banking'] = 'tryk [E] for at få adgang til banken',
|
||||
['access_bank'] = 'Tilgå banken',
|
||||
['banking_blip'] = 'Bank',
|
||||
['cant_do_it'] = "Du kan ikke gøre det!",
|
||||
['not_enough_money'] = "Ikke nok penge! Du mangler %s DKK!",
|
||||
['pincode_not_found'] = "Ugyldig PIN-kode",
|
||||
['pincode_found'] = "Gyldig PIN-kode...",
|
||||
['bank_name'] = "Fleeca Bank"
|
||||
}
|
||||
16
resources/[esx_addons]/esx_banking/locales/de.lua
Normal file
16
resources/[esx_addons]/esx_banking/locales/de.lua
Normal file
@@ -0,0 +1,16 @@
|
||||
Locales['de'] = {
|
||||
['invalid_amount'] = 'Das ist eine Ungültige anzahl von Geld',
|
||||
['deposit_money'] = 'Du zahlst ein %s€',
|
||||
['withdraw_money'] = 'Du zahlst aus %s€',
|
||||
['pincode_money'] = 'Dein neuer Pin lautet %s',
|
||||
['transfer_money'] = 'Du überweist %s€ an ID: %s',
|
||||
['receive_transfer'] = 'Du erhälst eine überweisung Betrag: %s€ Von: %s',
|
||||
['press_e_banking'] = 'Drücke [E] um auf die Bank zuzugreifen',
|
||||
['access_bank'] = 'Auf die Bank zugreifen',
|
||||
['banking_blip'] = 'Bank',
|
||||
['cant_do_it'] = "Kannst du nicht tun!",
|
||||
['not_enough_money'] = "Nicht genug Geld! Du benötigst %s Geld!",
|
||||
['pincode_not_found'] = "Ungültiger PIN Code",
|
||||
['pincode_found'] = "Gültiger PIN Code!",
|
||||
['bank_name'] = "Fleeca Bank"
|
||||
}
|
||||
16
resources/[esx_addons]/esx_banking/locales/en.lua
Normal file
16
resources/[esx_addons]/esx_banking/locales/en.lua
Normal file
@@ -0,0 +1,16 @@
|
||||
Locales['en'] = {
|
||||
['invalid_amount'] = 'That\'s an invalid amount of money',
|
||||
['deposit_money'] = 'you have deposited $%s',
|
||||
['withdraw_money'] = 'you have withdrawn $%s',
|
||||
['pincode_money'] = 'you have new pincode %s',
|
||||
['transfer_money'] = 'you success transfer money $%s ID: %s',
|
||||
['receive_transfer'] = 'you receive transfer money $%s ID: %s',
|
||||
['press_e_banking'] = 'press [E] to access the bank',
|
||||
['access_bank'] = 'Access the bank',
|
||||
['banking_blip'] = 'Bank',
|
||||
['cant_do_it'] = "Can't do it!",
|
||||
['not_enough_money'] = "Not enough money! You need %s money!",
|
||||
['pincode_not_found'] = "Invalid PIN code",
|
||||
['pincode_found'] = "Valid PIN code...",
|
||||
['bank_name'] = "Fleeca Bank"
|
||||
}
|
||||
16
resources/[esx_addons]/esx_banking/locales/es.lua
Normal file
16
resources/[esx_addons]/esx_banking/locales/es.lua
Normal file
@@ -0,0 +1,16 @@
|
||||
Locales['es'] = {
|
||||
['invalid_amount'] = 'No es una cantidad válida',
|
||||
['deposit_money'] = 'Has depositado $%s',
|
||||
['withdraw_money'] = 'Has retirado $%s',
|
||||
['pincode_money'] = 'Tienes un nuevo código PIN %s',
|
||||
['transfer_money'] = 'Transferencia exitosa por $%s al ID: %s',
|
||||
['receive_transfer'] = 'Recibiste una transferencia por $%s del ID: %s',
|
||||
['press_e_banking'] = 'Pulsa [E] para acceder al banco',
|
||||
['access_bank'] = 'Acceder al banco',
|
||||
['banking_blip'] = 'Banco',
|
||||
['cant_do_it'] = "No puedes permitirte esto!",
|
||||
['not_enough_money'] = "¡No tienes suficiente dinero! Necesitas %s de dinero!",
|
||||
['pincode_not_found'] = "Código PIN invalido",
|
||||
['pincode_found'] = "Código PIN válido.. Bienvenido",
|
||||
['bank_name'] = "Fleeca"
|
||||
}
|
||||
16
resources/[esx_addons]/esx_banking/locales/et.lua
Normal file
16
resources/[esx_addons]/esx_banking/locales/et.lua
Normal file
@@ -0,0 +1,16 @@
|
||||
Locales['et'] = {
|
||||
['invalid_amount'] = 'Tundmatu kogus raha',
|
||||
['deposit_money'] = 'Sa sisestasid $%s',
|
||||
['withdraw_money'] = 'Sa võtsid välja $%s',
|
||||
['pincode_money'] = 'Uus PIN kood: %s',
|
||||
['transfer_money'] = 'Sa tegid ülekande summas: $%s ID: %s',
|
||||
['receive_transfer'] = 'Sa said ülekande summas: $%s ID: %s',
|
||||
['press_e_banking'] = 'Vajuta [E], et avada pank',
|
||||
['access_bank'] = 'Ava pank',
|
||||
['banking_blip'] = 'Pank',
|
||||
['cant_do_it'] = "Ei saa seda teha!",
|
||||
['not_enough_money'] = "Pole piisavalt raha! Sul on vaja %s !",
|
||||
['pincode_not_found'] = "Vale PIN",
|
||||
['pincode_found'] = "Õige PIN...",
|
||||
['bank_name'] = "Fleeca Pank"
|
||||
}
|
||||
16
resources/[esx_addons]/esx_banking/locales/fi.lua
Normal file
16
resources/[esx_addons]/esx_banking/locales/fi.lua
Normal file
@@ -0,0 +1,16 @@
|
||||
Locales['fi'] = {
|
||||
['invalid_amount'] = 'Virheellinen summa',
|
||||
['deposit_money'] = 'Olet tallettanut $%s',
|
||||
['withdraw_money'] = 'Olet nostanut $%s',
|
||||
['pincode_money'] = 'Sinulla on uusi PIN-koodi %s',
|
||||
['transfer_money'] = 'Siirsit onnistuneesti rahaa $%s ID: %s',
|
||||
['receive_transfer'] = 'Vastaanotit rahaa $%s ID: %s',
|
||||
['press_e_banking'] = 'Paina [E] avataksesi pankki',
|
||||
['access_bank'] = 'Avaa pankki',
|
||||
['banking_blip'] = 'Pankki',
|
||||
['cant_do_it'] = "Ei voida tehdä sitä!",
|
||||
['not_enough_money'] = "Ei tarpeeksi rahaa! Tarvitset %s rahaa!",
|
||||
['pincode_not_found'] = "Virheellinen PIN-koodi",
|
||||
['pincode_found'] = "Kelvollinen PIN-koodi...",
|
||||
['bank_name'] = "Pankki"
|
||||
}
|
||||
16
resources/[esx_addons]/esx_banking/locales/fr.lua
Normal file
16
resources/[esx_addons]/esx_banking/locales/fr.lua
Normal file
@@ -0,0 +1,16 @@
|
||||
Locales['fr'] = {
|
||||
['invalid_amount'] = "Le montant est invalide.",
|
||||
['deposit_money'] = 'Tu as déposé $%s',
|
||||
['withdraw_money'] = 'Tu as retiré $%s',
|
||||
['pincode_money'] = 'Tu as défini un nouveau code PIN : %s',
|
||||
['transfer_money'] = 'Tu as transféré $%s à ID: %s',
|
||||
['receive_transfer'] = 'Tu as reçu $%s de ID: %s',
|
||||
['press_e_banking'] = 'Appuie sur [E] pour accéder a la banque.',
|
||||
['access_bank'] = 'Accéder à la banque',
|
||||
['banking_blip'] = 'Banque',
|
||||
['cant_do_it'] = "Tu ne peux pas faire ça!",
|
||||
['not_enough_money'] = "Tu n'as pas assez d'argent ! Tu as besoin de %s!",
|
||||
['pincode_not_found'] = "Code PIN invalide",
|
||||
['pincode_found'] = "Code PIN valide...",
|
||||
['bank_name'] = "Banque Fleeca"
|
||||
}
|
||||
16
resources/[esx_addons]/esx_banking/locales/hu.lua
Normal file
16
resources/[esx_addons]/esx_banking/locales/hu.lua
Normal file
@@ -0,0 +1,16 @@
|
||||
Locales['hu'] = {
|
||||
['invalid_amount'] = 'Érvénytelen pénz mennyiség',
|
||||
['deposit_money'] = 'Befizettél %s$-t',
|
||||
['withdraw_money'] = 'Kivettél %s$-t',
|
||||
['pincode_money'] = 'Az új PIN kódod: %s',
|
||||
['transfer_money'] = 'Sikeres utalás! Összeg: $%s ID: %s',
|
||||
['receive_transfer'] = 'Utalás érkezett! Összeg: $%s ID: %s',
|
||||
['press_e_banking'] = 'Nyomd meg a [E] gombot a bank eléréséhez',
|
||||
['access_bank'] = 'Bank megnyitása',
|
||||
['banking_blip'] = 'Bank',
|
||||
['cant_do_it'] = "Ezt nem lehet!",
|
||||
['not_enough_money'] = "Nincs elég pénzed, még szükséged lesz ennyire: %s",
|
||||
['pincode_not_found'] = "Érvénytelen PIN kód",
|
||||
['pincode_found'] = "Érvényes PIN kód...",
|
||||
['bank_name'] = "Fleeca Bank"
|
||||
}
|
||||
16
resources/[esx_addons]/esx_banking/locales/it.lua
Normal file
16
resources/[esx_addons]/esx_banking/locales/it.lua
Normal file
@@ -0,0 +1,16 @@
|
||||
Locales['it'] = {
|
||||
['invalid_amount'] = 'questa è una somma di denaro non valida',
|
||||
['deposit_money'] = 'hai depositato $%s',
|
||||
['withdraw_money'] = 'hai prelevato $%s',
|
||||
['pincode_money'] = 'hai un nuovo codice pin %s',
|
||||
['transfer_money'] = 'hai trasferito con successo il denaro a $%s ID: %s',
|
||||
['receive_transfer'] = 'hai ricevuto un trasferimento di denaro da $%s ID: %s',
|
||||
['press_e_banking'] = 'premi [E] per accedere alla banca',
|
||||
['access_bank'] = 'accedi alla banca',
|
||||
['banking_blip'] = 'Banca',
|
||||
['cant_do_it'] = "non puoi farlo!",
|
||||
['not_enough_money'] = "non hai abbastanza soldi! hai bisogno di %s soldi!",
|
||||
['pincode_not_found'] = "codice PIN errato",
|
||||
['pincode_found'] = "codice PIN valido...",
|
||||
['bank_name'] = "Banca Fleeca",
|
||||
}
|
||||
16
resources/[esx_addons]/esx_banking/locales/nl.lua
Normal file
16
resources/[esx_addons]/esx_banking/locales/nl.lua
Normal file
@@ -0,0 +1,16 @@
|
||||
Locales['nl'] = {
|
||||
['invalid_amount'] = 'Ongeldig bedrag',
|
||||
['deposit_money'] = 'Je hebt €%s gestort',
|
||||
['withdraw_money'] = 'Je hebt €%s opgenomen',
|
||||
['pincode_money'] = 'Je nieuwe pincode is %s',
|
||||
['transfer_money'] = 'Met succes €%s overgemaakt naar ID: %s',
|
||||
['receive_transfer'] = 'Je hebt €%s ontvangen van ID: %s',
|
||||
['press_e_banking'] = 'Klik op [E] om de bank te gebruiken',
|
||||
['access_bank'] = 'Geldautomaat',
|
||||
['banking_blip'] = 'Bank',
|
||||
['cant_do_it'] = "Kan dit niet doen!",
|
||||
['not_enough_money'] = "Niet genoeg geld! Je hebt nog %s nodig!",
|
||||
['pincode_not_found'] = "Onjuiste PIN",
|
||||
['pincode_found'] = "Een moment geduld...",
|
||||
['bank_name'] = "Fleeca Bank"
|
||||
}
|
||||
16
resources/[esx_addons]/esx_banking/locales/sl.lua
Normal file
16
resources/[esx_addons]/esx_banking/locales/sl.lua
Normal file
@@ -0,0 +1,16 @@
|
||||
Locales['sl'] = {
|
||||
['invalid_amount'] = 'Neveljavna količina',
|
||||
['deposit_money'] = 'Vi ste položili $%s',
|
||||
['withdraw_money'] = 'Vi ste Dvignili $%s',
|
||||
['pincode_money'] = 'Vi imate novo PIN Kodo %s',
|
||||
['transfer_money'] = 'Vi ste uspešno poslali denar $%s TRR: %s',
|
||||
['receive_transfer'] = 'Vi ste dobili denar $%s TRR: %s',
|
||||
['press_e_banking'] = 'Pritisnite [E] da odprete Banko',
|
||||
['access_bank'] = 'Dostop do banke',
|
||||
['banking_blip'] = 'Banka',
|
||||
['cant_do_it'] = "NI možno to narediti!",
|
||||
['not_enough_money'] = "Premalo denarja! Vi potrebujete %s denarja!",
|
||||
['pincode_not_found'] = "Neveljavna PIN Koda",
|
||||
['pincode_found'] = "Pravilna PIN Koda...",
|
||||
['bank_name'] = "Delavska Hranilnica"
|
||||
}
|
||||
16
resources/[esx_addons]/esx_banking/locales/sr.lua
Normal file
16
resources/[esx_addons]/esx_banking/locales/sr.lua
Normal file
@@ -0,0 +1,16 @@
|
||||
Locales['sr'] = {
|
||||
['invalid_amount'] = 'Nevazeci iznos novca',
|
||||
['deposit_money'] = 'Uplatili ste $%s',
|
||||
['withdraw_money'] = 'Podigli ste $%s',
|
||||
['pincode_money'] = 'Imate novi PIN kod: %s',
|
||||
['transfer_money'] = 'Uspesno ste prebacili novac $%s ID: %s',
|
||||
['receive_transfer'] = 'Primili ste novac od $%s ID: %s',
|
||||
['press_e_banking'] = 'Pritisnite [E] da pristupite banci',
|
||||
['access_bank'] = 'Pristupi banci',
|
||||
['banking_blip'] = 'Banka',
|
||||
['cant_do_it'] = "Ne mozete to uraditi!",
|
||||
['not_enough_money'] = "Nemate dovoljno novca! Potrebno vam je %s !",
|
||||
['pincode_not_found'] = "Pogresan PIN kod",
|
||||
['pincode_found'] = "Validni PIN kod...",
|
||||
['bank_name'] = "Fleeca Banka"
|
||||
}
|
||||
16
resources/[esx_addons]/esx_banking/locales/sv.lua
Normal file
16
resources/[esx_addons]/esx_banking/locales/sv.lua
Normal file
@@ -0,0 +1,16 @@
|
||||
Locales['sv'] = {
|
||||
['invalid_amount'] = 'Detta är en ogiltig summa pengar',
|
||||
['deposit_money'] = 'Du har suttit in %skr',
|
||||
['withdraw_money'] = 'Du har tagit ut %skr',
|
||||
['pincode_money'] = 'Du har en ny pinkod: %s',
|
||||
['transfer_money'] = 'Du överförde %skr ID: %s',
|
||||
['receive_transfer'] = 'Du mottog en överföring på %skr ID: %s',
|
||||
['press_e_banking'] = 'Tryck [E] för att öppna banken',
|
||||
['access_bank'] = 'Öppna banken',
|
||||
['banking_blip'] = 'Bank',
|
||||
['cant_do_it'] = "Går inte att göra!",
|
||||
['not_enough_money'] = "Inte tillräckligt med pengar! Du behöver %skr!",
|
||||
['pincode_not_found'] = "Ogiltig PIN-kod",
|
||||
['pincode_found'] = "Giltig PIN-kod...",
|
||||
['bank_name'] = "Fleeca Bank"
|
||||
}
|
||||
17
resources/[esx_addons]/esx_banking/locales/tr.lua
Normal file
17
resources/[esx_addons]/esx_banking/locales/tr.lua
Normal file
@@ -0,0 +1,17 @@
|
||||
Locales['tr'] = {
|
||||
['invalid_amount'] = 'Bu geçersiz bir miktar para',
|
||||
['deposit_money'] = 'Para yatırdınız: $%s',
|
||||
['withdraw_money'] = 'Para çektiniz: $%s',
|
||||
['pincode_money'] = 'Yeni PIN kodunuz: %s',
|
||||
['transfer_money'] = 'Başarılı bir şekilde $%s para transfer ettiniz, ID: %s',
|
||||
['receive_transfer'] = 'Size $%s para transferi yapıldı, ID: %s',
|
||||
['press_e_banking'] = '[E] tuşuna basarak bankaya erişin',
|
||||
['access_bank'] = 'Bankaya Erişim',
|
||||
['banking_blip'] = 'Banka',
|
||||
['cant_do_it'] = "Yapamazsınız!",
|
||||
['not_enough_money'] = "Yetersiz bakiye! %s para gerekiyor!",
|
||||
['pincode_not_found'] = "Geçersiz PIN kodu",
|
||||
['pincode_found'] = "Geçerli PIN kodu...",
|
||||
['bank_name'] = "Fleeca Bank"
|
||||
}
|
||||
|
||||
16
resources/[esx_addons]/esx_banking/locales/zh-cn.lua
Normal file
16
resources/[esx_addons]/esx_banking/locales/zh-cn.lua
Normal file
@@ -0,0 +1,16 @@
|
||||
Locales['zh-cn'] = {
|
||||
['invalid_amount'] = '无效的金额输入!',
|
||||
['deposit_money'] = '您已存入-$%s',
|
||||
['withdraw_money'] = '你已提取-$%s',
|
||||
['pincode_money'] = '您配置了新的密码:%s',
|
||||
['transfer_money'] = '已将 $%s 转账至ID: %s',
|
||||
['receive_transfer'] = '收到转账 $%s, 转账人ID: %s',
|
||||
['press_e_banking'] = '键下 [E] 访问银行',
|
||||
['access_bank'] = '访问银行',
|
||||
['banking_blip'] = '花园银行',
|
||||
['cant_do_it'] = "错误的操作!",
|
||||
['not_enough_money'] = "暂无足够现金! 您还需要至少 %s 的现金!",
|
||||
['pincode_not_found'] = "无效的PIN密码输入",
|
||||
['pincode_found'] = "验证PIN密码中...",
|
||||
['bank_name'] = "花园银行"
|
||||
}
|
||||
234
resources/[esx_addons]/esx_banking/server/main.lua
Normal file
234
resources/[esx_addons]/esx_banking/server/main.lua
Normal file
@@ -0,0 +1,234 @@
|
||||
local spawnedPeds, netIdTable = {}, {}
|
||||
|
||||
-- get keys utils
|
||||
local function get_key(t)
|
||||
local key
|
||||
for k, _ in pairs(t) do
|
||||
key = k
|
||||
end
|
||||
return key
|
||||
end
|
||||
|
||||
-- Resource starting
|
||||
AddEventHandler('onResourceStart', function(resourceName)
|
||||
if (GetCurrentResourceName() ~= resourceName) then return end
|
||||
if Config.EnablePeds then BANK.CreatePeds() end
|
||||
local twoMonthMs = (os.time() - 5259487) * 1000
|
||||
MySQL.Sync.fetchScalar('DELETE FROM banking WHERE time < ? ', {twoMonthMs})
|
||||
end)
|
||||
|
||||
AddEventHandler('onResourceStop', function(resourceName)
|
||||
if (GetCurrentResourceName() ~= resourceName) then return end
|
||||
if Config.EnablePeds then BANK.DeletePeds() end
|
||||
end)
|
||||
|
||||
if Config.EnablePeds then
|
||||
AddEventHandler('esx:playerLoaded', function(playerId)
|
||||
TriggerClientEvent('esx_banking:pedHandler', playerId, netIdTable)
|
||||
end)
|
||||
end
|
||||
|
||||
-- event
|
||||
RegisterServerEvent('esx_banking:doingType')
|
||||
AddEventHandler('esx_banking:doingType', function(typeData)
|
||||
if source == nil then return end
|
||||
if (typeData == nil) then return end
|
||||
|
||||
local source = source
|
||||
local xPlayer = ESX.Player(source)
|
||||
local identifier = xPlayer.getIdentifier()
|
||||
local money = xPlayer.getAccount('money').money
|
||||
local bankMoney = xPlayer.getAccount('bank').money
|
||||
local amount
|
||||
|
||||
local key = get_key(typeData)
|
||||
if typeData.deposit then
|
||||
amount = tonumber(typeData.deposit)
|
||||
elseif typeData.withdraw then
|
||||
amount = tonumber(typeData.withdraw)
|
||||
elseif typeData.transfer and typeData.transfer.moneyAmount then
|
||||
amount = tonumber(typeData.transfer.moneyAmount)
|
||||
elseif typeData.pincode then
|
||||
amount = tonumber(typeData.pincode)
|
||||
end
|
||||
|
||||
if not tonumber(amount) then return end
|
||||
amount = ESX.Math.Round(amount)
|
||||
|
||||
if amount == nil or (not typeData.pincode and amount <= 0) then
|
||||
TriggerClientEvent("esx:showNotification", source, TranslateCap('invalid_amount'), "error")
|
||||
else
|
||||
if typeData.deposit and amount <= money then
|
||||
-- deposit
|
||||
BANK.Deposit(amount, xPlayer)
|
||||
elseif typeData.withdraw and bankMoney ~= nil and amount <= bankMoney then
|
||||
-- withdraw
|
||||
BANK.Withdraw(amount, xPlayer)
|
||||
elseif typeData.pincode then
|
||||
-- pincode
|
||||
BANK.Pincode(amount, identifier)
|
||||
elseif typeData.transfer then
|
||||
-- transfer
|
||||
if tonumber(typeData.transfer.playerId) <= 0 then
|
||||
TriggerClientEvent("esx:showNotification", source, TranslateCap("cant_do_it"), "error")
|
||||
return
|
||||
end
|
||||
|
||||
if bankMoney < amount then
|
||||
TriggerClientEvent("esx:showNotification", source, TranslateCap('not_enough_money', amount), "error")
|
||||
return
|
||||
end
|
||||
|
||||
local xTarget = ESX.Player(tonumber(typeData.transfer.playerId))
|
||||
if not BANK.Transfer(xTarget, xPlayer, amount, key) then
|
||||
return
|
||||
end
|
||||
else
|
||||
TriggerClientEvent("esx:showNotification", source, TranslateCap('not_enough_money', amount), "error")
|
||||
return
|
||||
end
|
||||
|
||||
money = xPlayer.getAccount('money').money
|
||||
bankMoney = xPlayer.getAccount('bank').money
|
||||
if typeData.transfer then
|
||||
TriggerClientEvent("esx:showNotification", source,
|
||||
TranslateCap(string.format('%s_money', key), amount, typeData.transfer.playerId), "success")
|
||||
else
|
||||
TriggerClientEvent("esx:showNotification", source, TranslateCap(string.format('%s_money', key), typeData.pincode and (string.format("%04d", amount)) or amount), "success")
|
||||
end
|
||||
if not typeData.pincode then
|
||||
BANK.LogTransaction(source,string.upper(key), string.upper(key), amount, bankMoney)
|
||||
end
|
||||
|
||||
TriggerClientEvent("esx_banking:updateMoneyInUI", source, key, bankMoney, money)
|
||||
end
|
||||
end)
|
||||
|
||||
-- register callbacks
|
||||
ESX.RegisterServerCallback("esx_banking:getPlayerData", function(source, cb)
|
||||
local xPlayer = ESX.Player(source)
|
||||
local identifier = xPlayer.getIdentifier()
|
||||
local weekAgo = (os.time() - 604800) * 1000
|
||||
local transactionHistory = MySQL.Sync.fetchAll(
|
||||
'SELECT * FROM banking WHERE identifier = ? AND time > ? ORDER BY time DESC LIMIT 10', {identifier, weekAgo})
|
||||
local playerData = {
|
||||
playerName = xPlayer.getName(),
|
||||
money = xPlayer.getAccount('money').money,
|
||||
bankMoney = xPlayer.getAccount('bank').money,
|
||||
transactionHistory = transactionHistory
|
||||
}
|
||||
|
||||
cb(playerData)
|
||||
end)
|
||||
|
||||
ESX.RegisterServerCallback("esx_banking:checkPincode", function(source, cb, inputPincode)
|
||||
local xPlayer = ESX.Player(source)
|
||||
local identifier = xPlayer.getIdentifier()
|
||||
local pincode = MySQL.Sync.fetchScalar('SELECT COUNT(1) AS pincode FROM users WHERE identifier = ? AND pincode = ?',
|
||||
{identifier, inputPincode})
|
||||
cb(pincode > 0)
|
||||
end)
|
||||
|
||||
function logTransaction(targetSource,label, key,amount)
|
||||
if targetSource == nil then
|
||||
print("ERROR: TargetSource nil!")
|
||||
return
|
||||
end
|
||||
|
||||
if key == nil then
|
||||
print("ERROR: Do you need use these: WITHDRAW,DEPOSIT,TRANSFER_RECEIVE")
|
||||
return
|
||||
end
|
||||
|
||||
if type(key) ~= "string" or key == '' then
|
||||
print("ERROR: Do you need use these: WITHDRAW,DEPOSIT,TRANSFER_RECEIVE and can only be string type!")
|
||||
return
|
||||
end
|
||||
|
||||
if amount == nil then
|
||||
print("ERROR: Amount value is nil! Add some numeric value to the amount!")
|
||||
return
|
||||
end
|
||||
|
||||
if label == nil then
|
||||
label = "UNKNOW LABEL"
|
||||
end
|
||||
|
||||
local xPlayer = ESX.Player(tonumber(targetSource))
|
||||
|
||||
if xPlayer ~= nil then
|
||||
local bankCurrentMoney = xPlayer.getAccount('bank').money
|
||||
BANK.LogTransaction(targetSource, label, string.upper(key), amount, bankCurrentMoney)
|
||||
else
|
||||
print("ERROR: xPlayer is nil!")
|
||||
end
|
||||
end
|
||||
exports("logTransaction", logTransaction)
|
||||
|
||||
RegisterServerEvent('esx_banking:logTransaction')
|
||||
AddEventHandler('esx_banking:logTransaction', function(label,key,amount)
|
||||
logTransaction(source,label,key,amount)
|
||||
end)
|
||||
|
||||
-- bank functions
|
||||
BANK = {
|
||||
CreatePeds = function()
|
||||
for i = 1, #Config.Peds do
|
||||
local model = Config.Peds[i].Model
|
||||
local coords = Config.Peds[i].Position
|
||||
spawnedPeds[i] = CreatePed(0, model, coords.x, coords.y, coords.z, coords.w, true, true)
|
||||
netIdTable[i] = NetworkGetNetworkIdFromEntity(spawnedPeds[i])
|
||||
while not DoesEntityExist(spawnedPeds[i]) do Wait(50) end
|
||||
end
|
||||
|
||||
Wait(100)
|
||||
TriggerClientEvent('esx_banking:pedHandler', -1, netIdTable)
|
||||
end,
|
||||
DeletePeds = function()
|
||||
for i = 1, #spawnedPeds do
|
||||
DeleteEntity(spawnedPeds[i])
|
||||
spawnedPeds[i] = nil
|
||||
end
|
||||
end,
|
||||
Withdraw = function(amount, xPlayer)
|
||||
xPlayer.addAccountMoney('money', amount)
|
||||
xPlayer.removeAccountMoney('bank', amount)
|
||||
end,
|
||||
Deposit = function(amount, xPlayer)
|
||||
xPlayer.removeAccountMoney('money', amount)
|
||||
xPlayer.addAccountMoney('bank', amount)
|
||||
end,
|
||||
Transfer = function(xTarget, xPlayer, amount, key)
|
||||
if xTarget == nil or xPlayer.src == xTarget.src then
|
||||
TriggerClientEvent("esx:showNotification", source, TranslateCap("cant_do_it"), "error")
|
||||
return false
|
||||
end
|
||||
|
||||
xPlayer.removeAccountMoney('bank', amount)
|
||||
xTarget.addAccountMoney('bank', amount)
|
||||
local bankMoney = xTarget.getAccount('bank').money
|
||||
BANK.LogTransaction(xTarget.src, "TRANSFER_RECEIVE", amount, bankMoney)
|
||||
TriggerClientEvent("esx:showNotification", xTarget.src, TranslateCap('receive_transfer', amount, xPlayer.src),
|
||||
"success")
|
||||
|
||||
return true
|
||||
end,
|
||||
Pincode = function(amount, identifier)
|
||||
MySQL.update('UPDATE users SET pincode = ? WHERE identifier = ? ', {amount, identifier})
|
||||
end,
|
||||
LogTransaction = function(playerId, label, logType, amount, bankMoney)
|
||||
if playerId == nil then
|
||||
return
|
||||
end
|
||||
|
||||
if label == nil then
|
||||
label = logType
|
||||
end
|
||||
|
||||
local xPlayer = ESX.Player(playerId)
|
||||
local identifier = xPlayer.getIdentifier()
|
||||
|
||||
MySQL.insert('INSERT INTO banking (identifier, label, type, amount, time, balance) VALUES (?, ?, ?, ?, ?, ?)',
|
||||
{identifier,label,logType,amount, os.time() * 1000, bankMoney})
|
||||
end
|
||||
}
|
||||
Reference in New Issue
Block a user