0.0.1
This commit is contained in:
674
resources/[esx_addons]/esx_dmvschool/LICENSE
Normal file
674
resources/[esx_addons]/esx_dmvschool/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_dmvschool
|
||||
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_dmvschool 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>.
|
||||
15
resources/[esx_addons]/esx_dmvschool/README.md
Normal file
15
resources/[esx_addons]/esx_dmvschool/README.md
Normal file
@@ -0,0 +1,15 @@
|
||||
<h1 align='center'>[ESX] DMV School</a></h1><p align='center'><b><a href='https://discord.esx-framework.org/'>Discord</a> - <a href='https://documentation.esx-framework.org/legacy/installation'>Documentation</a></b></h5>
|
||||
|
||||
Tired of waiting for your local DMV to be free so you can get your driving licence? well today is your day! This amazingly Realistic DMV schools allows you to sit a tough theory test and a Rage fueled , high-stakes Practial Driving Test for Cars, motocycles and Trucks, all from the comfort of FiveM!
|
||||
|
||||
# Legal
|
||||
|
||||
esx_dmvschool - realistic DMV school for ESX
|
||||
|
||||
Copyright (C) 2015-2025 ESX
|
||||
|
||||
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/>.
|
||||
372
resources/[esx_addons]/esx_dmvschool/client/main.lua
Normal file
372
resources/[esx_addons]/esx_dmvschool/client/main.lua
Normal file
@@ -0,0 +1,372 @@
|
||||
local CurrentAction = nil
|
||||
local CurrentActionMsg = nil
|
||||
local CurrentActionData = nil
|
||||
local Licenses = {}
|
||||
local CurrentTest = nil
|
||||
local CurrentTestType = nil
|
||||
local CurrentVehicle = nil
|
||||
local CurrentCheckPoint, DriveErrors = 0, 0
|
||||
local LastCheckPoint = -1
|
||||
local CurrentBlip = nil
|
||||
local CurrentZoneType = nil
|
||||
local LastVehicleHealth = nil
|
||||
local failedTest = false
|
||||
|
||||
function DrawMissionText(msg, time)
|
||||
ClearPrints()
|
||||
BeginTextCommandPrint('STRING')
|
||||
AddTextComponentSubstringPlayerName(msg)
|
||||
EndTextCommandPrint(time, true)
|
||||
end
|
||||
|
||||
function StartTheoryTest()
|
||||
CurrentTest = 'theory'
|
||||
|
||||
SendNUIMessage({
|
||||
openQuestion = true
|
||||
})
|
||||
|
||||
ESX.SetTimeout(200, function()
|
||||
SetNuiFocus(true, true)
|
||||
end)
|
||||
|
||||
|
||||
end
|
||||
|
||||
function StopTheoryTest(success)
|
||||
CurrentTest = nil
|
||||
|
||||
SendNUIMessage({
|
||||
openQuestion = false
|
||||
})
|
||||
|
||||
SetNuiFocus(false)
|
||||
|
||||
if success then
|
||||
TriggerServerEvent('esx_dmvschool:addLicense', 'dmv')
|
||||
ESX.ShowNotification(TranslateCap('passed_test'))
|
||||
else
|
||||
ESX.ShowNotification(TranslateCap('failed_test'))
|
||||
end
|
||||
end
|
||||
|
||||
function StartDriveTest(type)
|
||||
ESX.Game.SpawnVehicle(Config.VehicleModels[type], vector3(Config.Zones.VehicleSpawnPoint.Pos.x, Config.Zones.VehicleSpawnPoint.Pos.y, Config.Zones.VehicleSpawnPoint.Pos.z), Config.Zones.VehicleSpawnPoint.Pos.h, function(vehicle)
|
||||
CurrentTest = 'drive'
|
||||
CurrentTestType = type
|
||||
CurrentCheckPoint = 0
|
||||
LastCheckPoint = -1
|
||||
CurrentZoneType = 'residence'
|
||||
DriveErrors = 0
|
||||
IsAboveSpeedLimit = false
|
||||
CurrentVehicle = vehicle
|
||||
LastVehicleHealth = GetEntityHealth(vehicle)
|
||||
failedTest = false
|
||||
|
||||
local playerPed = PlayerPedId()
|
||||
TaskWarpPedIntoVehicle(playerPed, vehicle, -1)
|
||||
SetVehicleFuelLevel(vehicle, 100.0)
|
||||
DecorSetFloat(vehicle, "_FUEL_LEVEL", GetVehicleFuelLevel(vehicle))
|
||||
end)
|
||||
end
|
||||
|
||||
function StopDriveTest(success)
|
||||
if success then
|
||||
TriggerServerEvent('esx_dmvschool:addLicense', CurrentTestType)
|
||||
ESX.ShowNotification(TranslateCap('passed_test'))
|
||||
ESX.ShowNotification(TranslateCap('driving_test_complete'))
|
||||
else
|
||||
ESX.ShowNotification(TranslateCap('failed_test'))
|
||||
end
|
||||
|
||||
CurrentTest = nil
|
||||
CurrentTestType = nil
|
||||
end
|
||||
|
||||
function SetCurrentZoneType(type)
|
||||
CurrentZoneType = type
|
||||
end
|
||||
|
||||
function OpenDMVSchoolMenu()
|
||||
local ownedLicenses = {}
|
||||
|
||||
for i=1, #Licenses, 1 do
|
||||
ownedLicenses[Licenses[i].type] = true
|
||||
end
|
||||
|
||||
local elements = {
|
||||
{unselectable = true, icon = "fas fa-car", title = TranslateCap("driving_school")}
|
||||
}
|
||||
|
||||
if not ownedLicenses['dmv'] then
|
||||
elements[#elements+1] = {
|
||||
icon = "fas fa-car",
|
||||
title = (('%s: <span style="color:green;">%s</span>'):format(TranslateCap('theory_test'), TranslateCap('school_item', ESX.Math.GroupDigits(Config.Prices['dmv'])))),
|
||||
value = "theory_test"
|
||||
}
|
||||
end
|
||||
|
||||
if ownedLicenses['dmv'] then
|
||||
if not ownedLicenses['drive'] then
|
||||
elements[#elements+1] = {
|
||||
icon = "fas fa-car",
|
||||
title = (('%s: <span style="color:green;">%s</span>'):format(TranslateCap('road_test_car'), TranslateCap('school_item', ESX.Math.GroupDigits(Config.Prices['drive'])))),
|
||||
value = "drive_test",
|
||||
type = "drive"
|
||||
}
|
||||
end
|
||||
|
||||
if not ownedLicenses['drive_bike'] then
|
||||
elements[#elements+1] = {
|
||||
icon = "fas fa-car",
|
||||
title = (('%s: <span style="color:green;">%s</span>'):format(TranslateCap('road_test_bike'), TranslateCap('school_item', ESX.Math.GroupDigits(Config.Prices['drive_bike'])))),
|
||||
value = "drive_test",
|
||||
type = "drive_bike"
|
||||
}
|
||||
end
|
||||
|
||||
if not ownedLicenses['drive_truck'] then
|
||||
elements[#elements+1] = {
|
||||
icon = "fas fa-car",
|
||||
title = (('%s: <span style="color:green;">%s</span>'):format(TranslateCap('road_test_truck'), TranslateCap('school_item', ESX.Math.GroupDigits(Config.Prices['drive_truck'])))),
|
||||
value = "drive_test",
|
||||
type = "drive_truck"
|
||||
}
|
||||
end
|
||||
end
|
||||
|
||||
ESX.OpenContext("right", elements, function(menu,element)
|
||||
if element.value == "theory_test" then
|
||||
ESX.TriggerServerCallback('esx_dmvschool:canYouPay', function(haveMoney)
|
||||
if haveMoney then
|
||||
ESX.CloseContext()
|
||||
StartTheoryTest()
|
||||
else
|
||||
ESX.ShowNotification(TranslateCap('not_enough_money'))
|
||||
end
|
||||
end, 'dmv')
|
||||
elseif element.value == "drive_test" then
|
||||
ESX.TriggerServerCallback('esx_dmvschool:canYouPay', function(haveMoney)
|
||||
if haveMoney then
|
||||
ESX.CloseContext()
|
||||
StartDriveTest(element.type)
|
||||
else
|
||||
ESX.ShowNotification(TranslateCap('not_enough_money'))
|
||||
end
|
||||
end, element.type)
|
||||
end
|
||||
end, function(menu)
|
||||
CurrentAction = 'dmvschool_menu'
|
||||
CurrentActionMsg = TranslateCap('press_open_menu')
|
||||
CurrentActionData = {}
|
||||
end)
|
||||
end
|
||||
|
||||
RegisterNUICallback('question', function(data, cb)
|
||||
SendNUIMessage({
|
||||
openSection = 'question'
|
||||
})
|
||||
|
||||
cb()
|
||||
end)
|
||||
|
||||
RegisterNUICallback('close', function(data, cb)
|
||||
StopTheoryTest(true)
|
||||
cb()
|
||||
end)
|
||||
|
||||
RegisterNUICallback('kick', function(data, cb)
|
||||
StopTheoryTest(false)
|
||||
cb()
|
||||
end)
|
||||
|
||||
AddEventHandler('esx_dmvschool:hasEnteredMarker', function(zone)
|
||||
if zone == 'DMVSchool' then
|
||||
CurrentAction = 'dmvschool_menu'
|
||||
CurrentActionMsg = TranslateCap('press_open_menu')
|
||||
CurrentActionData = {}
|
||||
end
|
||||
end)
|
||||
|
||||
AddEventHandler('esx_dmvschool:hasExitedMarker', function(zone)
|
||||
CurrentAction = nil
|
||||
ESX.CloseContext()
|
||||
end)
|
||||
|
||||
RegisterNetEvent('esx_dmvschool:loadLicenses')
|
||||
AddEventHandler('esx_dmvschool:loadLicenses', function(licenses)
|
||||
Licenses = licenses
|
||||
end)
|
||||
|
||||
-- Create Blips
|
||||
CreateThread(function()
|
||||
local blip = AddBlipForCoord(Config.Zones.DMVSchool.Pos.x, Config.Zones.DMVSchool.Pos.y, Config.Zones.DMVSchool.Pos.z)
|
||||
|
||||
SetBlipSprite (blip, 408)
|
||||
SetBlipColour (blip, 0)
|
||||
SetBlipDisplay(blip, 4)
|
||||
SetBlipScale (blip, 1.2)
|
||||
SetBlipAsShortRange(blip, true)
|
||||
|
||||
BeginTextCommandSetBlipName("STRING")
|
||||
AddTextComponentSubstringPlayerName(TranslateCap('driving_school_blip'))
|
||||
EndTextCommandSetBlipName(blip)
|
||||
end)
|
||||
|
||||
-- Display markers
|
||||
CreateThread(function()
|
||||
while true do
|
||||
local sleep = 1500
|
||||
local playerPed = PlayerPedId()
|
||||
local coords = GetEntityCoords(playerPed)
|
||||
|
||||
for k,v in pairs(Config.Zones) do
|
||||
local Pos = vector3(v.Pos.x, v.Pos.y, v.Pos.z)
|
||||
if(v.Type ~= -1 and #(coords - Pos) < Config.DrawDistance) then
|
||||
sleep = 0
|
||||
DrawMarker(v.Type, v.Pos.x, v.Pos.y, v.Pos.z, 0.0, 0.0, 0.0, 0, 0.0, 0.0, v.Size.x, v.Size.y, v.Size.z, v.Color.r, v.Color.g, v.Color.b, 100, false, true, 2, false, false, false, false)
|
||||
end
|
||||
end
|
||||
|
||||
if CurrentTest == 'theory' then
|
||||
|
||||
sleep = 0
|
||||
DisableControlAction(0, 1, true) -- LookLeftRight
|
||||
DisableControlAction(0, 2, true) -- LookUpDown
|
||||
DisablePlayerFiring(playerPed, true) -- Disable weapon firing
|
||||
DisableControlAction(0, 142, true) -- MeleeAttackAlternate
|
||||
DisableControlAction(0, 106, true) -- VehicleMouseControlOverride
|
||||
end
|
||||
|
||||
if CurrentTest == 'drive' then
|
||||
sleep = 0
|
||||
local nextCheckPoint = CurrentCheckPoint + 1
|
||||
|
||||
if Config.CheckPoints[nextCheckPoint] == nil then
|
||||
if DoesBlipExist(CurrentBlip) then
|
||||
RemoveBlip(CurrentBlip)
|
||||
end
|
||||
|
||||
CurrentTest = nil
|
||||
StopDriveTest(DriveErrors < Config.MaxErrors)
|
||||
else
|
||||
if CurrentCheckPoint ~= LastCheckPoint then
|
||||
if DoesBlipExist(CurrentBlip) then
|
||||
RemoveBlip(CurrentBlip)
|
||||
end
|
||||
|
||||
CurrentBlip = AddBlipForCoord(Config.CheckPoints[nextCheckPoint].Pos.x, Config.CheckPoints[nextCheckPoint].Pos.y, Config.CheckPoints[nextCheckPoint].Pos.z)
|
||||
SetBlipRoute(CurrentBlip, 1)
|
||||
|
||||
LastCheckPoint = CurrentCheckPoint
|
||||
end
|
||||
|
||||
local Pos = vector3(Config.CheckPoints[nextCheckPoint].Pos.x,Config.CheckPoints[nextCheckPoint].Pos.y,Config.CheckPoints[nextCheckPoint].Pos.z)
|
||||
local distance = #(coords - Pos)
|
||||
|
||||
if distance <= Config.DrawDistance then
|
||||
DrawMarker(1, Config.CheckPoints[nextCheckPoint].Pos.x, Config.CheckPoints[nextCheckPoint].Pos.y, Config.CheckPoints[nextCheckPoint].Pos.z, 0.0, 0.0, 0.0, 0, 0.0, 0.0, 1.5, 1.5, 1.5, 102, 204, 102, 100, false, true, 2, false, false, false, false)
|
||||
end
|
||||
|
||||
if distance <= 3.0 then
|
||||
Config.CheckPoints[nextCheckPoint].Action(playerPed, CurrentVehicle, SetCurrentZoneType)
|
||||
CurrentCheckPoint = CurrentCheckPoint + 1
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
if CurrentAction then
|
||||
sleep = 0
|
||||
ESX.ShowHelpNotification(CurrentActionMsg)
|
||||
|
||||
if (IsControlJustReleased(0, 38)) and (CurrentAction == 'dmvschool_menu') then
|
||||
OpenDMVSchoolMenu()
|
||||
CurrentAction = nil
|
||||
end
|
||||
end
|
||||
|
||||
local isInMarker = false
|
||||
local currentZone = nil
|
||||
|
||||
for k,v in pairs(Config.Zones) do
|
||||
local Pos = vector3(v.Pos.x, v.Pos.y, v.Pos.z)
|
||||
if(#(coords - Pos) < v.Size.x) then
|
||||
sleep = 0
|
||||
isInMarker = true
|
||||
currentZone = k
|
||||
end
|
||||
end
|
||||
|
||||
if (isInMarker and not HasAlreadyEnteredMarker) or (isInMarker and LastZone ~= currentZone) then
|
||||
HasAlreadyEnteredMarker = true
|
||||
LastZone = currentZone
|
||||
TriggerEvent('esx_dmvschool:hasEnteredMarker', currentZone)
|
||||
end
|
||||
|
||||
if not isInMarker and HasAlreadyEnteredMarker then
|
||||
HasAlreadyEnteredMarker = false
|
||||
TriggerEvent('esx_dmvschool:hasExitedMarker', LastZone)
|
||||
end
|
||||
Wait(sleep)
|
||||
end
|
||||
end)
|
||||
|
||||
|
||||
function TestFailedGoToLastCheckPoint()
|
||||
CurrentCheckPoint = #Config.CheckPoints - 1
|
||||
failedTest = true
|
||||
end
|
||||
|
||||
-- Speed / Damage control
|
||||
CreateThread(function()
|
||||
while true do
|
||||
local sleep = 1500
|
||||
if CurrentTest == 'drive' then
|
||||
sleep = 0
|
||||
local playerPed = PlayerPedId()
|
||||
|
||||
if IsPedInAnyVehicle(playerPed, false) then
|
||||
local vehicle = GetVehiclePedIsIn(playerPed, false)
|
||||
local speed = GetEntitySpeed(vehicle) * Config.SpeedMultiplier
|
||||
local health = GetEntityHealth(vehicle)
|
||||
|
||||
-- Speed check
|
||||
for k, v in pairs(Config.SpeedLimits) do
|
||||
|
||||
if CurrentZoneType == k and speed > v then
|
||||
DriveErrors += 1
|
||||
|
||||
if DriveErrors <= Config.MaxErrors then
|
||||
ESX.ShowNotification(TranslateCap('driving_too_fast', v))
|
||||
ESX.ShowNotification(TranslateCap('errors', DriveErrors, Config.MaxErrors))
|
||||
end
|
||||
|
||||
sleep = (Config.SpeedingErrorDelay < 5000) and 5000 or Config.SpeedingErrorDelay
|
||||
end
|
||||
end
|
||||
|
||||
-- Vehicle damage check
|
||||
if health < LastVehicleHealth then
|
||||
DriveErrors += 1
|
||||
if DriveErrors <= Config.MaxErrors then
|
||||
ESX.ShowNotification(TranslateCap('you_damaged_veh'))
|
||||
ESX.ShowNotification(TranslateCap('errors', DriveErrors, Config.MaxErrors))
|
||||
end
|
||||
|
||||
LastVehicleHealth = health
|
||||
sleep = 1500
|
||||
end
|
||||
|
||||
if DriveErrors > Config.MaxErrors then
|
||||
ESX.ShowNotification(TranslateCap('test_failed_go_to_start_point'))
|
||||
if not failedTest then
|
||||
TestFailedGoToLastCheckPoint()
|
||||
end
|
||||
sleep = 5000
|
||||
end
|
||||
end
|
||||
end
|
||||
Wait(sleep)
|
||||
end
|
||||
end)
|
||||
|
||||
186
resources/[esx_addons]/esx_dmvschool/config.lua
Normal file
186
resources/[esx_addons]/esx_dmvschool/config.lua
Normal file
@@ -0,0 +1,186 @@
|
||||
Config = {}
|
||||
Config.DrawDistance = 10.0
|
||||
Config.MaxErrors = 5
|
||||
Config.SpeedMultiplier = 3.6
|
||||
Config.SpeedingErrorDelay = 5000 --Min: 5000ms
|
||||
Config.Locale = GetConvar('esx:locale', 'en')
|
||||
|
||||
Config.Prices = {
|
||||
dmv = 500,
|
||||
drive = 2500,
|
||||
drive_bike = 3000,
|
||||
drive_truck = 5000
|
||||
}
|
||||
|
||||
Config.VehicleModels = {
|
||||
drive = 'blista',
|
||||
drive_bike = 'sanchez',
|
||||
drive_truck = 'mule3'
|
||||
}
|
||||
|
||||
Config.SpeedLimits = {
|
||||
residence = 50,
|
||||
town = 80,
|
||||
freeway = 120
|
||||
}
|
||||
|
||||
Config.Zones = {
|
||||
|
||||
DMVSchool = {
|
||||
Pos = {x = 239.471, y = -1380.960, z = 32.741},
|
||||
Size = {x = 1.5, y = 1.5, z = 1.0},
|
||||
Color = {r = 204, g = 204, b = 0},
|
||||
Type = 1
|
||||
},
|
||||
|
||||
VehicleSpawnPoint = {
|
||||
Pos = {x = 249.409, y = -1407.230, z = 30.4094, h = 317.0},
|
||||
Size = {x = 1.5, y = 1.5, z = 1.0},
|
||||
Color = {r = 204, g = 204, b = 0},
|
||||
Type = -1
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Config.CheckPoints = {
|
||||
|
||||
{
|
||||
Pos = {x = 255.139, y = -1400.731, z = 29.537},
|
||||
Action = function(playerPed, vehicle, setCurrentZoneType)
|
||||
DrawMissionText(TranslateCap('next_point_speed', Config.SpeedLimits['residence']), 5000)
|
||||
end
|
||||
},
|
||||
|
||||
{
|
||||
Pos = {x = 271.874, y = -1370.574, z = 30.932},
|
||||
Action = function(playerPed, vehicle, setCurrentZoneType)
|
||||
DrawMissionText(TranslateCap('go_next_point'), 5000)
|
||||
end
|
||||
},
|
||||
|
||||
{
|
||||
Pos = {x = 234.907, y = -1345.385, z = 29.542},
|
||||
Action = function(playerPed, vehicle, setCurrentZoneType)
|
||||
CreateThread(function()
|
||||
DrawMissionText(TranslateCap('stop_for_ped'), 5000)
|
||||
PlaySound(-1, 'RACE_PLACED', 'HUD_AWARDS', false, 0, true)
|
||||
FreezeEntityPosition(vehicle, true)
|
||||
Wait(4000)
|
||||
|
||||
FreezeEntityPosition(vehicle, false)
|
||||
DrawMissionText(TranslateCap('good_lets_cont'), 5000)
|
||||
end)
|
||||
end
|
||||
},
|
||||
|
||||
{
|
||||
Pos = {x = 217.821, y = -1410.520, z = 28.292},
|
||||
Action = function(playerPed, vehicle, setCurrentZoneType)
|
||||
setCurrentZoneType('town')
|
||||
|
||||
CreateThread(function()
|
||||
DrawMissionText(TranslateCap('stop_look_left', Config.SpeedLimits['town']), 5000)
|
||||
PlaySound(-1, 'RACE_PLACED', 'HUD_AWARDS', false, 0, true)
|
||||
FreezeEntityPosition(vehicle, true)
|
||||
Wait(6000)
|
||||
|
||||
FreezeEntityPosition(vehicle, false)
|
||||
DrawMissionText(TranslateCap('good_turn_right'), 5000)
|
||||
end)
|
||||
end
|
||||
},
|
||||
|
||||
{
|
||||
Pos = {x = 178.550, y = -1401.755, z = 27.725},
|
||||
Action = function(playerPed, vehicle, setCurrentZoneType)
|
||||
DrawMissionText(TranslateCap('watch_traffic_lightson'), 5000)
|
||||
end
|
||||
},
|
||||
|
||||
{
|
||||
Pos = {x = 113.160, y = -1365.276, z = 27.725},
|
||||
Action = function(playerPed, vehicle, setCurrentZoneType)
|
||||
DrawMissionText(TranslateCap('go_next_point'), 5000)
|
||||
end
|
||||
},
|
||||
|
||||
{
|
||||
Pos = {x = -73.542, y = -1364.335, z = 27.789},
|
||||
Action = function(playerPed, vehicle, setCurrentZoneType)
|
||||
DrawMissionText(TranslateCap('stop_for_passing'), 5000)
|
||||
PlaySound(-1, 'RACE_PLACED', 'HUD_AWARDS', false, 0, true)
|
||||
FreezeEntityPosition(vehicle, true)
|
||||
Wait(6000)
|
||||
FreezeEntityPosition(vehicle, false)
|
||||
end
|
||||
},
|
||||
|
||||
{
|
||||
Pos = {x = -355.143, y = -1420.282, z = 27.868},
|
||||
Action = function(playerPed, vehicle, setCurrentZoneType)
|
||||
DrawMissionText(TranslateCap('go_next_point'), 5000)
|
||||
end
|
||||
},
|
||||
|
||||
{
|
||||
Pos = {x = -439.148, y = -1417.100, z = 27.704},
|
||||
Action = function(playerPed, vehicle, setCurrentZoneType)
|
||||
DrawMissionText(TranslateCap('go_next_point'), 5000)
|
||||
end
|
||||
},
|
||||
|
||||
{
|
||||
Pos = {x = -453.790, y = -1444.726, z = 27.665},
|
||||
Action = function(playerPed, vehicle, setCurrentZoneType)
|
||||
setCurrentZoneType('freeway')
|
||||
|
||||
DrawMissionText(TranslateCap('hway_time', Config.SpeedLimits['freeway']), 5000)
|
||||
PlaySound(-1, 'RACE_PLACED', 'HUD_AWARDS', false, 0, true)
|
||||
end
|
||||
},
|
||||
|
||||
{
|
||||
Pos = {x = -463.237, y = -1592.178, z = 37.519},
|
||||
Action = function(playerPed, vehicle, setCurrentZoneType)
|
||||
DrawMissionText(TranslateCap('go_next_point'), 5000)
|
||||
end
|
||||
},
|
||||
|
||||
{
|
||||
Pos = {x = -900.647, y = -1986.28, z = 26.109},
|
||||
Action = function(playerPed, vehicle, setCurrentZoneType)
|
||||
DrawMissionText(TranslateCap('go_next_point'), 5000)
|
||||
end
|
||||
},
|
||||
|
||||
{
|
||||
Pos = {x = 1225.759, y = -1948.792, z = 38.718},
|
||||
Action = function(playerPed, vehicle, setCurrentZoneType)
|
||||
DrawMissionText(TranslateCap('go_next_point'), 5000)
|
||||
end
|
||||
},
|
||||
|
||||
{
|
||||
Pos = {x = 1225.759, y = -1948.792, z = 38.718},
|
||||
Action = function(playerPed, vehicle, setCurrentZoneType)
|
||||
setCurrentZoneType('town')
|
||||
DrawMissionText(TranslateCap('in_town_speed', Config.SpeedLimits['town']), 5000)
|
||||
end
|
||||
},
|
||||
|
||||
{
|
||||
Pos = {x = 1163.603, y = -1841.771, z = 35.679},
|
||||
Action = function(playerPed, vehicle, setCurrentZoneType)
|
||||
DrawMissionText(TranslateCap('gratz_stay_alert'), 5000)
|
||||
PlaySound(-1, 'RACE_PLACED', 'HUD_AWARDS', false, 0, true)
|
||||
end
|
||||
},
|
||||
|
||||
{
|
||||
Pos = {x = 235.283, y = -1398.329, z = 28.921},
|
||||
Action = function(playerPed, vehicle, setCurrentZoneType)
|
||||
ESX.Game.DeleteVehicle(vehicle)
|
||||
end
|
||||
}
|
||||
|
||||
}
|
||||
6
resources/[esx_addons]/esx_dmvschool/esx_dmvschool.sql
Normal file
6
resources/[esx_addons]/esx_dmvschool/esx_dmvschool.sql
Normal file
@@ -0,0 +1,6 @@
|
||||
INSERT INTO `licenses` (`type`, `label`) VALUES
|
||||
('dmv', 'Code de la route'),
|
||||
('drive', 'Permis de conduire'),
|
||||
('drive_bike', 'Permis moto'),
|
||||
('drive_truck', 'Permis camion')
|
||||
;
|
||||
42
resources/[esx_addons]/esx_dmvschool/fxmanifest.lua
Normal file
42
resources/[esx_addons]/esx_dmvschool/fxmanifest.lua
Normal file
@@ -0,0 +1,42 @@
|
||||
fx_version 'adamant'
|
||||
|
||||
game 'gta5'
|
||||
|
||||
description "A DMV School for players to get their drivers license"
|
||||
|
||||
version '1.0'
|
||||
legacyversion '1.13.4'
|
||||
|
||||
lua54 'yes'
|
||||
|
||||
shared_script '@es_extended/imports.lua'
|
||||
|
||||
server_scripts {
|
||||
'@es_extended/locale.lua',
|
||||
'locales/*.lua',
|
||||
'config.lua',
|
||||
'server/main.lua'
|
||||
}
|
||||
|
||||
client_scripts {
|
||||
'@es_extended/locale.lua',
|
||||
'locales/*.lua',
|
||||
'config.lua',
|
||||
'client/main.lua'
|
||||
}
|
||||
|
||||
ui_page 'html/ui.html'
|
||||
|
||||
files {
|
||||
'html/ui.html',
|
||||
'html/dmv.png',
|
||||
'html/styles.css',
|
||||
'html/questions.js',
|
||||
'html/scripts.js',
|
||||
'html/debounce.min.js'
|
||||
}
|
||||
|
||||
dependencies {
|
||||
'es_extended',
|
||||
'esx_license'
|
||||
}
|
||||
9
resources/[esx_addons]/esx_dmvschool/html/debounce.min.js
vendored
Normal file
9
resources/[esx_addons]/esx_dmvschool/html/debounce.min.js
vendored
Normal file
@@ -0,0 +1,9 @@
|
||||
/*
|
||||
* jQuery throttle / debounce - v1.1 - 3/7/2010
|
||||
* http://benalman.com/projects/jquery-throttle-debounce-plugin/
|
||||
*
|
||||
* Copyright (c) 2010 "Cowboy" Ben Alman
|
||||
* Dual licensed under the MIT and GPL licenses.
|
||||
* http://benalman.com/about/license/
|
||||
*/
|
||||
(function(b,c){var $=b.jQuery||b.Cowboy||(b.Cowboy={}),a;$.throttle=a=function(e,f,j,i){var h,d=0;if(typeof f!=="boolean"){i=j;j=f;f=c}function g(){var o=this,m=+new Date()-d,n=arguments;function l(){d=+new Date();j.apply(o,n)}function k(){h=c}if(i&&!h){l()}h&&clearTimeout(h);if(i===c&&m>e){l()}else{if(f!==true){h=setTimeout(i?k:l,i===c?e-m:e)}}}if($.guid){g.guid=j.guid=j.guid||$.guid++}return g};$.debounce=function(d,e,f){return f===c?a(d,e,false):a(d,f,e!==false)}})(this);
|
||||
BIN
resources/[esx_addons]/esx_dmvschool/html/dmv.png
Normal file
BIN
resources/[esx_addons]/esx_dmvschool/html/dmv.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 745 B |
91
resources/[esx_addons]/esx_dmvschool/html/questions.js
Normal file
91
resources/[esx_addons]/esx_dmvschool/html/questions.js
Normal file
@@ -0,0 +1,91 @@
|
||||
var tableauQuestion = [
|
||||
{
|
||||
question: "If you're going 80 km/h, and you're approaching a residential area you must:",
|
||||
propositionA: "You accelerate",
|
||||
propositionB: "You keep your speed, if you do not pass other vehicles",
|
||||
propositionC: "You slow down",
|
||||
propositionD: "You keep your speed",
|
||||
reponse: "C"
|
||||
},
|
||||
|
||||
{
|
||||
question: "If you're turning right at a traffic light, but see a pedestrian crossing what do you do:",
|
||||
propositionA: "You pass the pedestrian",
|
||||
propositionB: "You check that there is no other vehicles around",
|
||||
propositionC: "You wait until the pedestrian has crossed",
|
||||
propositionD: "You shoot the pedestrian and continue to drive",
|
||||
reponse: "C"
|
||||
},
|
||||
|
||||
{
|
||||
question: "Without any prior indication, the speed in a residential area is: __ km/h",
|
||||
propositionA: "30 km/h",
|
||||
propositionB: "50 km/h",
|
||||
propositionC: "40 km/h",
|
||||
propositionD: "60 km/h",
|
||||
reponse: "B"
|
||||
},
|
||||
|
||||
{
|
||||
question: "Before every lane change you must:",
|
||||
propositionA: "Check your mirrors",
|
||||
propositionB: "Check your blind spots",
|
||||
propositionC: "Signal your intentions",
|
||||
propositionD: "All of the above",
|
||||
reponse: "D"
|
||||
},
|
||||
|
||||
{
|
||||
question: "What blood alcohol level is classified as driving while intoxicated?",
|
||||
propositionA: "0.05%",
|
||||
propositionB: "0.18%",
|
||||
propositionC: "0.08%",
|
||||
propositionD: "0.06%",
|
||||
reponse: "C"
|
||||
},
|
||||
|
||||
{
|
||||
question: "When can you continue to drive at a traffic light?",
|
||||
propositionA: "When it is green",
|
||||
propositionB: "When there is nobody in the intersection",
|
||||
propositionC: "You are in a school zone",
|
||||
propositionD: "When it is green and / or red and you're turning right",
|
||||
reponse: "D"
|
||||
},
|
||||
|
||||
{
|
||||
question: "A pedestrian has a do not cross signal, what do you do?",
|
||||
propositionA: "You let them pass",
|
||||
propositionB: "You observe before continuing",
|
||||
propositionC: "You wave to tell them to cross",
|
||||
propositionD: "You continue because your traffic light is green",
|
||||
reponse: "D"
|
||||
},
|
||||
|
||||
{
|
||||
question: "What is allowed when passing another vehicle",
|
||||
propositionA: "You follow it closely to pass it faster",
|
||||
propositionB: "You pass it without leaving the roadway",
|
||||
propositionC: "You drive on the opposite side of the road to pass",
|
||||
propositionD: "You exceed the speed limit to pass them",
|
||||
reponse: "C"
|
||||
},
|
||||
|
||||
{
|
||||
question: "You are driving on a highway which indicates a maximum speed of 120 km/h. But most trafficers drive at 125 km/h, so you should not drive faster than:",
|
||||
propositionA: "120 km/h",
|
||||
propositionB: "125 km/h",
|
||||
propositionC: "130 km/h",
|
||||
propositionD: "110 km/h",
|
||||
reponse: "A"
|
||||
},
|
||||
|
||||
{
|
||||
question: "When you are overtaken by another vehicle it is important NOT to:",
|
||||
propositionA: "Slow Down",
|
||||
propositionB: "Check your mirrors",
|
||||
propositionC: "Watch other drivers",
|
||||
propositionD: "Increase your speed",
|
||||
reponse: "D"
|
||||
},
|
||||
]
|
||||
91
resources/[esx_addons]/esx_dmvschool/html/questions_de.js
Normal file
91
resources/[esx_addons]/esx_dmvschool/html/questions_de.js
Normal file
@@ -0,0 +1,91 @@
|
||||
var tableauQuestion = [
|
||||
{
|
||||
question: "Wenn du 80km/h fährst, und dich einer Wohngegend näherst musst du:",
|
||||
propositionA: "Beschleunigen",
|
||||
propositionB: "Geschwindigkeit halten, und keine anderen Fahrzeuge überholen",
|
||||
propositionC: "Verlangsamen",
|
||||
propositionD: "Geschwindigkeit beibehalten",
|
||||
reponse: "C"
|
||||
},
|
||||
|
||||
{
|
||||
question: "Wenn du an einer Ampel nach rechts abbiegen möchtest, und einen Fußgänger überqueren siehst, was tust du dann?:",
|
||||
propositionA: "Den Fußgänger überfahren",
|
||||
propositionB: "Überprüfen das kein anderes Fahrzeug in der nähe ist",
|
||||
propositionC: "Du wartest bis der Fußgänger die Straße überquert hat",
|
||||
propositionD: "Du erschießt den Fußgänger und fährst weiter",
|
||||
reponse: "C"
|
||||
},
|
||||
|
||||
{
|
||||
question: "Ohne einen vorherigen Hinweis, in einer Wohngegend musst du : __ km/h fahren:",
|
||||
propositionA: "30 km/h",
|
||||
propositionB: "50 km/h",
|
||||
propositionC: "40 km/h",
|
||||
propositionD: "60 km/h",
|
||||
reponse: "B"
|
||||
},
|
||||
|
||||
{
|
||||
question: "Bevor einem Spurwechsel musst du:",
|
||||
propositionA: "Deine Spiegel überprüfen",
|
||||
propositionB: "Deine Blinden Stellen überprüfen",
|
||||
propositionC: "Den Spurwechsel signalisieren",
|
||||
propositionD: "Alles von oben",
|
||||
reponse: "D"
|
||||
},
|
||||
|
||||
{
|
||||
question: "Welcher Blutalkoholspiegel zählt als Betrunken?",
|
||||
propositionA: "0.05%",
|
||||
propositionB: "0.18%",
|
||||
propositionC: "0.08%",
|
||||
propositionD: "0.06%",
|
||||
reponse: "C"
|
||||
},
|
||||
|
||||
{
|
||||
question: "Wann kannst du an einer Ampel weiterfahren?",
|
||||
propositionA: "Wenn die Ampel Grün ist",
|
||||
propositionB: "Wenn niemand in dem bereich ist",
|
||||
propositionC: "Wenn du in einer Schulzone bist",
|
||||
propositionD: "Wenn es grün ist und niemand in dem bereich ist",
|
||||
reponse: "D"
|
||||
},
|
||||
|
||||
{
|
||||
question: "Ein Fußgänger hat ein nicht überqueren Signal, was tust du?",
|
||||
propositionA: "Du lässt ihn gehen",
|
||||
propositionB: "Du beobachtest ihn bevor du weiterfährst",
|
||||
propositionC: "Du winkst ihn rüber",
|
||||
propositionD: "Du fährst weiter, weil deine Ampel grün ist.",
|
||||
reponse: "D"
|
||||
},
|
||||
|
||||
{
|
||||
question: "Was ist erlaubt wenn du ein anderes Fahrzeug überholst?",
|
||||
propositionA: "Du folgst ihm nahe um ihn zu überholen",
|
||||
propositionB: "Du überholst es ohne die Straße zu verlassen",
|
||||
propositionC: "Du fährst auf der anderen Straßenseite um ihn zu überholen",
|
||||
propositionD: "Du fährst schneller als erlaubt um ihn zu überholen",
|
||||
reponse: "C"
|
||||
},
|
||||
|
||||
{
|
||||
question: "Du bist auf einer Autobahn und fährst 120km/h jedoch fahren die anderen Autofahrer 125km/h also fährst du nicht schneller als:",
|
||||
propositionA: "120 km/h",
|
||||
propositionB: "125 km/h",
|
||||
propositionC: "130 km/h",
|
||||
propositionD: "110 km/h",
|
||||
reponse: "A"
|
||||
},
|
||||
|
||||
{
|
||||
question: "Wenn du von einem anderen Fahrzeug überholt wirst, ist es Wichtig das du NICHT:",
|
||||
propositionA: "Verlangsamst",
|
||||
propositionB: "Deine Spiegel überprüfst",
|
||||
propositionC: "Andere Autofahrer beobachtest",
|
||||
propositionD: "Schneller wirst",
|
||||
reponse: "D"
|
||||
},
|
||||
]
|
||||
91
resources/[esx_addons]/esx_dmvschool/html/questions_en.js
Normal file
91
resources/[esx_addons]/esx_dmvschool/html/questions_en.js
Normal file
@@ -0,0 +1,91 @@
|
||||
var tableauQuestion = [
|
||||
{
|
||||
question: "If you're going 80 km/h, and you're approaching a residential area you must:",
|
||||
propositionA: "You accelerate",
|
||||
propositionB: "You keep your speed, if you do not pass other vehicles",
|
||||
propositionC: "You slow down",
|
||||
propositionD: "You keep your speed",
|
||||
reponse: "C"
|
||||
},
|
||||
|
||||
{
|
||||
question: "If you're turning right at a traffic light, but see a pedestrian crossing what do you do:",
|
||||
propositionA: "You pass the pedestrian",
|
||||
propositionB: "You check that there is no other vehicles around",
|
||||
propositionC: "You wait until the pedestrian has crossed",
|
||||
propositionD: "You shoot the pedestrian and continue to drive",
|
||||
reponse: "C"
|
||||
},
|
||||
|
||||
{
|
||||
question: "Without any prior indication, the speed in a residential area is: __ km/h",
|
||||
propositionA: "30 km/h",
|
||||
propositionB: "50 km/h",
|
||||
propositionC: "40 km/h",
|
||||
propositionD: "60 km/h",
|
||||
reponse: "B"
|
||||
},
|
||||
|
||||
{
|
||||
question: "Before every lane change you must:",
|
||||
propositionA: "Check your mirrors",
|
||||
propositionB: "Check your blind spots",
|
||||
propositionC: "Signal your intentions",
|
||||
propositionD: "All of the above",
|
||||
reponse: "D"
|
||||
},
|
||||
|
||||
{
|
||||
question: "What blood alcohol level is classified as driving while intoxicated?",
|
||||
propositionA: "0.05%",
|
||||
propositionB: "0.18%",
|
||||
propositionC: "0.08%",
|
||||
propositionD: "0.06%",
|
||||
reponse: "C"
|
||||
},
|
||||
|
||||
{
|
||||
question: "When can you continue to drive at a traffic light?",
|
||||
propositionA: "When it is green",
|
||||
propositionB: "When there is nobody in the intersection",
|
||||
propositionC: "You are in a school zone",
|
||||
propositionD: "When it is green and / or red and you're turning right",
|
||||
reponse: "D"
|
||||
},
|
||||
|
||||
{
|
||||
question: "A pedestrian has a do not cross signal, what do you do?",
|
||||
propositionA: "You let them pass",
|
||||
propositionB: "You observe before continuing",
|
||||
propositionC: "You wave to tell them to cross",
|
||||
propositionD: "You continue because your traffic light is green",
|
||||
reponse: "D"
|
||||
},
|
||||
|
||||
{
|
||||
question: "What is allowed when passing another vehicle",
|
||||
propositionA: "You follow it closely to pass it faster",
|
||||
propositionB: "You pass it without leaving the roadway",
|
||||
propositionC: "You drive on the opposite side of the road to pass",
|
||||
propositionD: "You exceed the speed limit to pass them",
|
||||
reponse: "C"
|
||||
},
|
||||
|
||||
{
|
||||
question: "You are driving on a highway which indicates a maximum speed of 120 km/h. But most trafficers drive at 125 km/h, so you should not drive faster than:",
|
||||
propositionA: "120 km/h",
|
||||
propositionB: "125 km/h",
|
||||
propositionC: "130 km/h",
|
||||
propositionD: "110 km/h",
|
||||
reponse: "A"
|
||||
},
|
||||
|
||||
{
|
||||
question: "When you are overtaken by another vehicle it is important NOT to:",
|
||||
propositionA: "Slow Down",
|
||||
propositionB: "Check your mirrors",
|
||||
propositionC: "Watch other drivers",
|
||||
propositionD: "Increase your speed",
|
||||
reponse: "D"
|
||||
},
|
||||
]
|
||||
91
resources/[esx_addons]/esx_dmvschool/html/questions_es.js
Normal file
91
resources/[esx_addons]/esx_dmvschool/html/questions_es.js
Normal file
@@ -0,0 +1,91 @@
|
||||
var tableauQuestion = [
|
||||
{
|
||||
question: "Si vas a 80 km / h, y te aproximas a una zona residencial, debes:",
|
||||
propositionA: "Acelerar",
|
||||
propositionB: "Mantienes tu velocidad, si no pasas otros vehículos.",
|
||||
propositionC: "Frenas",
|
||||
propositionD: "Mantienes la velocidad",
|
||||
reponse: "C"
|
||||
},
|
||||
|
||||
{
|
||||
question: "Si está girando a la derecha en un semáforo, pero ve un cruce de peatones, ¿qué hace?",
|
||||
propositionA: "Pasas del peaton",
|
||||
propositionB: "Comprueba que no hay otros vehículos alrededor.",
|
||||
propositionC: "Esperas hasta que el peatón haya cruzado.",
|
||||
propositionD: "Disparas al peatón y sigues conduciendo.",
|
||||
reponse: "C"
|
||||
},
|
||||
|
||||
{
|
||||
question: "Sin ninguna indicación previa, la velocidad en una zona residencial es de: __ km / h",
|
||||
propositionA: "30 km/h",
|
||||
propositionB: "50 km/h",
|
||||
propositionC: "40 km/h",
|
||||
propositionD: "60 km/h",
|
||||
reponse: "B"
|
||||
},
|
||||
|
||||
{
|
||||
question: "Antes de cada cambio de carril debe:",
|
||||
propositionA: "Mirar por los espejos",
|
||||
propositionB: "Comprobar los puntos muertos del vehiculo",
|
||||
propositionC: "Señalizar tu intención de girar",
|
||||
propositionD: "Todas las anteriores",
|
||||
reponse: "D"
|
||||
},
|
||||
|
||||
{
|
||||
question: "¿Qué nivel de alcohol en la sangre se clasifica como conducir bajo los efectos del alcohol?",
|
||||
propositionA: "0,5",
|
||||
propositionB: "0,1",
|
||||
propositionC: "0,8",
|
||||
propositionD: "0,0",
|
||||
reponse: "C"
|
||||
},
|
||||
|
||||
{
|
||||
question: "¿Cuándo puedes continuar conduciendo en un semáforo?",
|
||||
propositionA: "Cuando esta verde",
|
||||
propositionB: "Cuando no esta cruzando nadie",
|
||||
propositionC: "Cuando estas en una zona de colegio",
|
||||
propositionD: "Cuando estas entre un 60 u 80 km/h",
|
||||
reponse: "A"
|
||||
},
|
||||
|
||||
{
|
||||
question: "Un peatón tiene una señal de no cruzar, ¿qué haces?",
|
||||
propositionA: "Le dejas cruzar",
|
||||
propositionB: "Te quedas mirandolo",
|
||||
propositionC: "Le dices que cruce para que lo puedas atropellar",
|
||||
propositionD: "Continuas porque tu señal de tráfico esta en verde",
|
||||
reponse: "D"
|
||||
},
|
||||
|
||||
{
|
||||
question: "¿Que esta permitido cuando adelantas a otro vehículo?",
|
||||
propositionA: "Lo sigues de cerca para pasarlo más rápido.",
|
||||
propositionB: "Lo adelantas por la acera si es necesario.",
|
||||
propositionC: "Conduce por el lado opuesto de la carretera para adelantarlo.",
|
||||
propositionD: "Lo adelantas rapido",
|
||||
reponse: "C"
|
||||
},
|
||||
|
||||
{
|
||||
question: "Usted está conduciendo en una carretera que indica una velocidad máxima de 120 km / h. Pero la mayoría de los conductores conducen a 125 km / h, por lo que no debe conducir más rápido que:",
|
||||
propositionA: "120 km/h",
|
||||
propositionB: "125 km/h",
|
||||
propositionC: "130 km/h",
|
||||
propositionD: "110 km/h",
|
||||
reponse: "A"
|
||||
},
|
||||
|
||||
{
|
||||
question: "Cuando es superado por otro vehículo, es importante NO:",
|
||||
propositionA: "Seguir con la misma velocidad",
|
||||
propositionB: "Comprobar los espejos",
|
||||
propositionC: "Mirar a otros conductores",
|
||||
propositionD: "Aumentar la velocidad",
|
||||
reponse: "D"
|
||||
},
|
||||
]
|
||||
91
resources/[esx_addons]/esx_dmvschool/html/questions_fi.js
Normal file
91
resources/[esx_addons]/esx_dmvschool/html/questions_fi.js
Normal file
@@ -0,0 +1,91 @@
|
||||
var tableauQuestion = [
|
||||
{
|
||||
question: "Jos ajat 80km/h ja vastaan on tulossa asutus alue mitä teet ?",
|
||||
propositionA: "Painat kaasua että pääset mahollisimman nopeaa pois",
|
||||
propositionB: "Voit ajaa samaa vauhtia jos alueella ei ole muita autoja",
|
||||
propositionC: "Sinun pitää hidastaa",
|
||||
propositionD: "Voit jatkaa samaan malliin",
|
||||
reponse: "C"
|
||||
},
|
||||
|
||||
{
|
||||
question: "Kun olet kääntymässä vasemmalle vihreistä valoista, näet jalankulkian jalkakäytävällä. Kummalla on lupa mennä ensin.",
|
||||
propositionA: "Jalankulkijalla koska he voivat mennä tien yli millä valoilla tahansa",
|
||||
propositionB: "Sinulla koska valo oli vihreä",
|
||||
propositionC: "Jalankulkijalla, koska hänellä palaa vihreä valo",
|
||||
propositionD: "Sinulla koska ajoneuvolla on aina oikeus ensin",
|
||||
reponse: "C"
|
||||
},
|
||||
|
||||
{
|
||||
question: "Muualla ilmoittamatta, sallittu nopeus asutusalueella on ____ km/h.",
|
||||
propositionA: "50",
|
||||
propositionB: "55",
|
||||
propositionC: "65",
|
||||
propositionD: "70",
|
||||
reponse: "A"
|
||||
},
|
||||
|
||||
{
|
||||
question: "Ennen jokaista kaistan vaihtoa, sinun pitäisi?",
|
||||
propositionA: "Katsoa peilit",
|
||||
propositionB: "Katsoa kuolleet kulmat",
|
||||
propositionC: "Näyttää vilkuilla mitä aijot tehdä",
|
||||
propositionD: "Kaikki yllä mainitut",
|
||||
reponse: "D"
|
||||
},
|
||||
|
||||
{
|
||||
question: "Minkä veren alkoholipitoisuus luokitellaan päihtyneeksi?",
|
||||
propositionA: "0.2 promillea",
|
||||
propositionB: "0.8 promillea",
|
||||
propositionC: "0.5 promillea",
|
||||
propositionD: "0.4 promillea",
|
||||
reponse: "C"
|
||||
},
|
||||
|
||||
{
|
||||
question: "Sinun on vedettävä sivuun ja pysähtyä, kunnes hälyytysajoneuvo on ajanut ohi sireenit päällä, ellei:",
|
||||
propositionA: "Sinulla ole kiirre",
|
||||
propositionB: "Jos hälyytysajoneuvolla on toisella kaistalla tilaa",
|
||||
propositionC: "Olet koulunalueella",
|
||||
propositionD: "Olet risteyksessä",
|
||||
reponse: "D"
|
||||
},
|
||||
|
||||
{
|
||||
question: "Täytyykö poliisin vilkkuviin valoihin pysähtyä jos ne seuraavat sinua?",
|
||||
propositionA: "Ei, jos poliisilla ei ole sireenejä päällä",
|
||||
propositionB: "Kyllä",
|
||||
propositionC: "Riippuu tilanteesta",
|
||||
propositionD: "Ei",
|
||||
reponse: "B"
|
||||
},
|
||||
|
||||
{
|
||||
question: "Mikä seuraavista on sallittua kun aloitat ohittaan ajoneuvoa?",
|
||||
propositionA: "Ajaminen lähellä ennen ohitusta",
|
||||
propositionB: "Koitat ajaa katukivetyksen kautta",
|
||||
propositionC: "Ajaminen vastakkaisella kaistalla",
|
||||
propositionD: "Nopeusrajoituksen ylittäminen",
|
||||
reponse: "A"
|
||||
},
|
||||
|
||||
{
|
||||
question: "Ajat moottoritiellä, jonka nopeus on 120 km/h. Suurinosa liikenteestä ajaa 130km/h, joten sinun ei pitäisi ajaa nopeampaa kuin",
|
||||
propositionA: "80 kmh",
|
||||
propositionB: "40 kmh",
|
||||
propositionC: "50 kmh",
|
||||
propositionD: "120 kmh",
|
||||
reponse: "D"
|
||||
},
|
||||
|
||||
{
|
||||
question: "Kun sinut ohittaa toinen ajoneuvo, mitä sinun EI pitäisi tehdä?",
|
||||
propositionA: "Hiljentää",
|
||||
propositionB: "Tarkistaa peilit",
|
||||
propositionC: "Katsot toista kuskia",
|
||||
propositionD: "Kiihdyttää",
|
||||
reponse: "D"
|
||||
},
|
||||
]
|
||||
91
resources/[esx_addons]/esx_dmvschool/html/questions_fr.js
Normal file
91
resources/[esx_addons]/esx_dmvschool/html/questions_fr.js
Normal file
@@ -0,0 +1,91 @@
|
||||
var tableauQuestion = [
|
||||
{
|
||||
question: "Si vous allez à 80 km/h, et vous vous approchez d'une zone résidentiel vous devez:",
|
||||
propositionA: "Vous accélérez",
|
||||
propositionB: "Vous gardez votre vitesse, si vous ne voyez pas d'autre voitures",
|
||||
propositionC: "Vous ralentissez",
|
||||
propositionD: "Voud gardez votre vitesse",
|
||||
reponse: "C"
|
||||
},
|
||||
|
||||
{
|
||||
question: "Si vous étiez entrain de tourner à droite à une lumière, mais vous voyez quelqu'un traverser que faites-vous:",
|
||||
propositionA: "Vous passez le piéton",
|
||||
propositionB: "Vous regardez qu'il n'y ai plus de véhicles aux alentours",
|
||||
propositionC: "Vous attendez que le piéton ai passé",
|
||||
propositionD: "Vous tirez le piéton et continuez à conduire",
|
||||
reponse: "C"
|
||||
},
|
||||
|
||||
{
|
||||
question: "Sans aucune indication, la vitesse permise dans une zone résidentielle est de: __ km/h",
|
||||
propositionA: "30 km/h",
|
||||
propositionB: "50 km/h",
|
||||
propositionC: "40 km/h",
|
||||
propositionD: "60 km/h",
|
||||
reponse: "B"
|
||||
},
|
||||
|
||||
{
|
||||
question: "Avant chaque changement de ligne vous devez:",
|
||||
propositionA: "Regardez vos mirroires",
|
||||
propositionB: "Regardez vos angles mort",
|
||||
propositionC: "Signalez vos intentions",
|
||||
propositionD: "Toutes c'esr réponses",
|
||||
reponse: "D"
|
||||
},
|
||||
|
||||
{
|
||||
question: "Quel est le taux d’alcoolémie qui est considéré comme conduite avec des facultés affaiblies?",
|
||||
propositionA: "0.05%",
|
||||
propositionB: "0.18%",
|
||||
propositionC: "0.08%",
|
||||
propositionD: "0.06%",
|
||||
reponse: "C"
|
||||
},
|
||||
|
||||
{
|
||||
question: "Quand pouvez-vous continuer à conduire à un feu de signalisation?",
|
||||
propositionA: "Lorsque il est vert",
|
||||
propositionB: "Lorsque personne n'est à l'intersection",
|
||||
propositionC: "Lorsque vous êtes dans une zone écolière",
|
||||
propositionD: "Lorsqie c'est vert et / ou rouge et que vous tourner à droite",
|
||||
reponse: "D"
|
||||
},
|
||||
|
||||
{
|
||||
question: "Un piéton a un signal indiquant de ne pas traverser, que faites-vous?",
|
||||
propositionA: "Vous les laisser passer",
|
||||
propositionB: "Vous observez avant de continuer",
|
||||
propositionC: "Vous lui faites signe de traverser",
|
||||
propositionD: "Vous continuez car la lumière est verte",
|
||||
reponse: "D"
|
||||
},
|
||||
|
||||
{
|
||||
question: "Qu'est-ce qui est permis pour dépasser un autre véhicule",
|
||||
propositionA: "Vous le suivez de près pour le dépasser plus rapidement",
|
||||
propositionB: "Vous le passez sans quitter la chaussée",
|
||||
propositionC: "Vous conduisez sur la route opposée pour le dépasser",
|
||||
propositionD: "Vous dépassez la limite permise pour le dépasser",
|
||||
reponse: "C"
|
||||
},
|
||||
|
||||
{
|
||||
question: "Vous conduisez sur une autoroute qui indique une vitesse maximale de 120 km/h. Mais la plupart des conducteurs conduisent à 125 km/h, donc vous ne devriez pas conduire plus vite que:",
|
||||
propositionA: "120 km/h",
|
||||
propositionB: "125 km/h",
|
||||
propositionC: "130 km/h",
|
||||
propositionD: "110 km/h",
|
||||
reponse: "A"
|
||||
},
|
||||
|
||||
{
|
||||
question: "Lorsque vous êtes dépassé par un autre véhicule il est important de NE pas:",
|
||||
propositionA: "Ralentir",
|
||||
propositionB: "Vérifier vos rétroviseurs",
|
||||
propositionC: "Regarder les autres conducteurs",
|
||||
propositionD: "Augmenter votre vitesse",
|
||||
reponse: "D"
|
||||
},
|
||||
]
|
||||
91
resources/[esx_addons]/esx_dmvschool/html/questions_it.js
Normal file
91
resources/[esx_addons]/esx_dmvschool/html/questions_it.js
Normal file
@@ -0,0 +1,91 @@
|
||||
var tableauQuestion = [
|
||||
{
|
||||
question: "Se stai andando a 80 km/h, e ti stai avvicinando a una zona residenziale devi::",
|
||||
propositionA: "Accellerare",
|
||||
propositionB: "Mantieni la velocità, se non sorpassi altri veicoli",
|
||||
propositionC: "Ralenti",
|
||||
propositionD: "Mantieni la velocità",
|
||||
reponse: "C"
|
||||
},
|
||||
|
||||
{
|
||||
question: "Se al semaforo stai svoltaando a destra, ma vedi un pedone cosa fai:",
|
||||
propositionA: "Superi il pedone",
|
||||
propositionB: "Controlli che non ci siano altri veicoli in giro",
|
||||
propositionC: "Aspetti che il pedone abbia attraversato",
|
||||
propositionD: "Spari al pedone e continui a guidare",
|
||||
reponse: "C"
|
||||
},
|
||||
|
||||
{
|
||||
question: "Senza alcuna indicazione preventiva, la velocità in una zona residenziale è: __ km/h",
|
||||
propositionA: "30 km/h",
|
||||
propositionB: "50 km/h",
|
||||
propositionC: "40 km/h",
|
||||
propositionD: "60 km/h",
|
||||
reponse: "B"
|
||||
},
|
||||
|
||||
{
|
||||
question: "Prima di ogni cambio si corsia devi:",
|
||||
propositionA: "Controllare gli specchietti",
|
||||
propositionB: "Controllare i punti ciechi",
|
||||
propositionC: "Segnalare le tue intenzioni",
|
||||
propositionD: "Tutte le risposte sono esatte",
|
||||
reponse: "D"
|
||||
},
|
||||
|
||||
{
|
||||
question: "Quale livello di alcol nel sangue è classificato come guida in stato di ebbrezza?",
|
||||
propositionA: "0.05%",
|
||||
propositionB: "0.18%",
|
||||
propositionC: "0.08%",
|
||||
propositionD: "0.06%",
|
||||
reponse: "C"
|
||||
},
|
||||
|
||||
{
|
||||
question: "Quando puoi continuare a guidare a un semaforo?",
|
||||
propositionA: "Quando è verde",
|
||||
propositionB: "Quando non c'è nessuno all'incrocio",
|
||||
propositionC: "Quando sei in una zona scolastca",
|
||||
propositionD: "Quando è verde e/o rosso e stai girando a destra",
|
||||
reponse: "D"
|
||||
},
|
||||
|
||||
{
|
||||
question: "Un pedone ha un segnale di non attraversare, cosa fai?",
|
||||
propositionA: "Li lasci passare",
|
||||
propositionB: "Osservi prima di continuare",
|
||||
propositionC: "Fai la mano per dire loro di attraversare",
|
||||
propositionD: "Continui perchè il tuo semaforo è verde",
|
||||
reponse: "D"
|
||||
},
|
||||
|
||||
{
|
||||
question: "Cosa è consentito quando si supera un'altro veicolo",
|
||||
propositionA: "Lo segui da vicino per superarlo velocemente",
|
||||
propositionB: "Lo passi senza lasciare la carreggiata",
|
||||
propositionC: "Si guida sul lato opposto della strada per passare",
|
||||
propositionD: "Si supera il limite di velocità per superarli",
|
||||
reponse: "C"
|
||||
},
|
||||
|
||||
{
|
||||
question: "Stai guidando su un'autostrada che indica una velocità massima di 120 km/h. Ma la maggior parte dei trafficanti guida a 125 km/h, quindi non dovresti guidare più veloce di:",
|
||||
propositionA: "120 km/h",
|
||||
propositionB: "125 km/h",
|
||||
propositionC: "130 km/h",
|
||||
propositionD: "110 km/h",
|
||||
reponse: "A"
|
||||
},
|
||||
|
||||
{
|
||||
question: "Quando vieni sorpassato da un altro veicolo è importane NON:",
|
||||
propositionA: "Rallentare",
|
||||
propositionB: "Controllare gli specchietti",
|
||||
propositionC: "Guardare gli altri automobilisti",
|
||||
propositionD: "Aumentare la tua velocità",
|
||||
reponse: "D"
|
||||
},
|
||||
]
|
||||
91
resources/[esx_addons]/esx_dmvschool/html/questions_nl.js
Normal file
91
resources/[esx_addons]/esx_dmvschool/html/questions_nl.js
Normal file
@@ -0,0 +1,91 @@
|
||||
var tableauQuestion = [
|
||||
{
|
||||
question: "Je rijd 80 km/u maar je nadert een woonwijk, wat doe je ?:",
|
||||
propositionA: "Je geeft gas bij",
|
||||
propositionB: "Je behoudt je snelheid, zo lang je niemand inhaalt",
|
||||
propositionC: "Je behoudt je snelheid",
|
||||
propositionD: "Je remt af",
|
||||
reponse: "D"
|
||||
},
|
||||
|
||||
{
|
||||
question: "Je gaat rechts bij een stoplicht maar je ziet iemand oversteken, wat doe je ?:",
|
||||
propositionA: "Je wacht totdat de voetganger is overgestoken",
|
||||
propositionB: "Je passeert de voetganger",
|
||||
propositionC: "Je kijkt of er geen voertuigen om je heen zijn",
|
||||
propositionD: "Je rijdt de voetganger aan en maakt dat je weg komt",
|
||||
reponse: "A"
|
||||
},
|
||||
|
||||
{
|
||||
question: "Zonder enige indicatie, de snelheid in een woonwijk is: __ km/h",
|
||||
propositionA: "30 km/u",
|
||||
propositionB: "50 km/u",
|
||||
propositionC: "40 km/u",
|
||||
propositionD: "60 km/u",
|
||||
reponse: "A"
|
||||
},
|
||||
|
||||
{
|
||||
question: "Voordat je van rijstrook veranderd moet je:",
|
||||
propositionA: "Kijken in je spiegels",
|
||||
propositionB: "Kijken in je blinde hoek",
|
||||
propositionC: "Gebruik je knipperlicht naar de correcte rijbaan",
|
||||
propositionD: "Alles hierboven",
|
||||
reponse: "D"
|
||||
},
|
||||
|
||||
{
|
||||
question: "Welk alcoholgehalte word gezien als rijden onder invloed?",
|
||||
propositionA: "0.05%",
|
||||
propositionB: "0.18%",
|
||||
propositionC: "0.08%",
|
||||
propositionD: "0.06%",
|
||||
reponse: "C"
|
||||
},
|
||||
|
||||
{
|
||||
question: "Wanneer kan je doorrijden bij een verkeerslicht?",
|
||||
propositionA: "Wanneer het groen is",
|
||||
propositionB: "Wanneer er niemand bij het kruispunt is",
|
||||
propositionC: "Als je in een school zone bent",
|
||||
propositionD: "Als je boven de 100km/u rijdt.",
|
||||
reponse: "A"
|
||||
},
|
||||
|
||||
{
|
||||
question: "Een voetganger heeft een rood licht om over te steken, wat doe je ?",
|
||||
propositionA: "Je laat diegene passeren",
|
||||
propositionB: "Je observeert wat diegene doet en gaat vervolgens door omdat het groen is.",
|
||||
propositionC: "Je signaleert diegene om over te steken",
|
||||
propositionD: "Je gaat door want je hebt groen licht.",
|
||||
reponse: "D"
|
||||
},
|
||||
|
||||
{
|
||||
question: "Wat is toegestaan als je een voertuig inhaalt",
|
||||
propositionA: "Je gaat bumper kleven om sneller voorbij te gaan",
|
||||
propositionB: "Je passeert zonder de weg te verlaten",
|
||||
propositionC: "Je rijdt aan de andere kant van de weg om in te halen",
|
||||
propositionD: "Je gaat te snel rijden.",
|
||||
reponse: "C"
|
||||
},
|
||||
|
||||
{
|
||||
question: "Je rijdt op de snelweg wat een maxiumum snelheid van 120 km/u hanteert maar iedereen rijdt gemiddeld 125 km/u, hoe hard mag je maximaal gaan:",
|
||||
propositionA: "120 km/u",
|
||||
propositionB: "125 km/u",
|
||||
propositionC: "130 km/u",
|
||||
propositionD: "110 km/u",
|
||||
reponse: "A"
|
||||
},
|
||||
|
||||
{
|
||||
question: "Wat moet je NIET doen als je word ingehaald door een ander voertuig:",
|
||||
propositionA: "Verslomen",
|
||||
propositionB: "Je spiegels bekijken",
|
||||
propositionC: "Andere bestuurders bekijken",
|
||||
propositionD: "Snelheid verhogen",
|
||||
reponse: "D"
|
||||
},
|
||||
]
|
||||
91
resources/[esx_addons]/esx_dmvschool/html/questions_pl.js
Normal file
91
resources/[esx_addons]/esx_dmvschool/html/questions_pl.js
Normal file
@@ -0,0 +1,91 @@
|
||||
var tableauQuestion = [
|
||||
{
|
||||
question: "Jeśli masz 80 km/h, a zbliżasz się do terenu zabudowanego, musisz:",
|
||||
propositionA: "Przyspieszyć",
|
||||
propositionB: "Zahamować po czym jechać 50 km/h",
|
||||
propositionC: "Zwolnić",
|
||||
propositionD: "Zachować prędkość",
|
||||
reponse: "C"
|
||||
},
|
||||
|
||||
{
|
||||
question: "Jeśli skręcasz w prawo na światłach bezkolizyjnych, ale widzisz przejście dla pieszych, co robisz:",
|
||||
propositionA: "Przepuszczam pieszego",
|
||||
propositionB: "Sprawdzam, czy w pobliżu nie ma innych pojazdów",
|
||||
propositionC: "Zachowuje szczególną ostrożność i przejeżdżam",
|
||||
propositionD: "Strzelam do pieszego i jadę dalej",
|
||||
reponse: "C"
|
||||
},
|
||||
|
||||
{
|
||||
question: "Bez wcześniejszego wskazania prędkość w obszarze zabudowanym wynosi: __ km/h",
|
||||
propositionA: "40",
|
||||
propositionB: "50",
|
||||
propositionC: "60",
|
||||
propositionD: "70",
|
||||
reponse: "B"
|
||||
},
|
||||
|
||||
{
|
||||
question: "Przed każdą zmianą pasa ruchu należy:",
|
||||
propositionA: "Spojżeć w lusterka",
|
||||
propositionB: "Sprawdź swoje martwe pole",
|
||||
propositionC: "Zasygnalizuj swoje zamiary",
|
||||
propositionD: "Wszystkie powyższe",
|
||||
reponse: "D"
|
||||
},
|
||||
|
||||
{
|
||||
question: "Jaki poziom alkoholu we krwi NIE jest klasyfikowany jako jazda po pijanemu?",
|
||||
propositionA: "0.02%",
|
||||
propositionB: "0.19%",
|
||||
propositionC: "0.05%",
|
||||
propositionD: "0.04%",
|
||||
reponse: "A"
|
||||
},
|
||||
|
||||
{
|
||||
question: "Kiedy możesz kontynuować jazdę na światłach?",
|
||||
propositionA: "Kiedy zaświeci się zielone",
|
||||
propositionB: "Kiedy nie ma nikogo na skrzyżowaniu",
|
||||
propositionC: "Kiedy zaświeci się żółte",
|
||||
propositionD: "Kiedy jest zielony lub czerwony ale skręcasz w prawo",
|
||||
reponse: "A"
|
||||
},
|
||||
|
||||
{
|
||||
question: "Przewożąc ładunek gabarytowy możesz poruszać się tylko:",
|
||||
propositionA: "Drogami do tego przeznaczonymi",
|
||||
propositionB: "Nocami",
|
||||
propositionC: "Drogami ekspresowymi",
|
||||
propositionD: "Skrzyżowaniami o ruchu okrężnym",
|
||||
reponse: "B"
|
||||
},
|
||||
|
||||
{
|
||||
question: "Posiadając prawo jazdy kategorii B możesz prowadzić :",
|
||||
propositionA: "Pojazd samochodowy o dopuszczalnej masie całkowitej nieprzekraczającej 3.5 t, z wyjątkiem autobusu i motocykla",
|
||||
propositionB: "Zespołem pojazdów złożonym z pojazdu, o którym mowa wyżej, oraz z przyczepy lekkiej",
|
||||
propositionC: "Zespołem pojazdów złożonym z pojazdu, o którym mowa wyżej, oraz z przyczepy innej niż lekka, o ile łączna dopuszczalna masa całkowita zespołu tych pojazdów nie przekracza 4250 kg",
|
||||
propositionD: "Wszystkie powyższe",
|
||||
reponse: "D"
|
||||
},
|
||||
|
||||
{
|
||||
question: "Jedziesz autostradą, która wskazuje maksymalną prędkość 120 km/h. Większość aut jedzie z prędkością 140km/h, więc nie powinieneś jechać szybciej niż:",
|
||||
propositionA: "120 km/h",
|
||||
propositionB: "130 km/h",
|
||||
propositionC: "140 km/h",
|
||||
propositionD: "150 km/h",
|
||||
reponse: "A"
|
||||
},
|
||||
|
||||
{
|
||||
question: "Wyprzedzając inne pojazdy należy:",
|
||||
propositionA: "Zwolnić",
|
||||
propositionB: "Trąbić na wyprzedzany pojazd",
|
||||
propositionC: "Oglądać wyprzedzany pojazd",
|
||||
propositionD: "Zwiększ prędkość",
|
||||
reponse: "D"
|
||||
},
|
||||
]
|
||||
92
resources/[esx_addons]/esx_dmvschool/html/questions_sr.js
Normal file
92
resources/[esx_addons]/esx_dmvschool/html/questions_sr.js
Normal file
@@ -0,0 +1,92 @@
|
||||
|
||||
var tableauQuestion = [
|
||||
{
|
||||
question: "Ako vozite 80 km/h i prilazite naseljenom mestu, vi ćete:",
|
||||
propositionA: "Dodati gas i ubrzati",
|
||||
propositionB: "Nastaviti voziti 80 km/h, ako ne pretičete",
|
||||
propositionC: "Usporiti",
|
||||
propositionD: "Zadržati brzinu od 80 km/h",
|
||||
reponse: "C"
|
||||
},
|
||||
|
||||
{
|
||||
question: "Ako skrećete desno na semafor i vidite pešaka koji prelazi pešački prelaz, vi ćete:",
|
||||
propositionA: "Proći pored pešaka",
|
||||
propositionB: "Pogledati da li ima vozila",
|
||||
propositionC: "Sačekati da pešak pređe put",
|
||||
propositionD: "Udariti pešaka i nastaviti voziti",
|
||||
reponse: "C"
|
||||
},
|
||||
|
||||
{
|
||||
question: "Bez ikakvog znaka, ograničenje brzine u naseljenom mestu je: __ km/h",
|
||||
propositionA: "30 km/h",
|
||||
propositionB: "50 km/h",
|
||||
propositionC: "40 km/h",
|
||||
propositionD: "60 km/h",
|
||||
reponse: "B"
|
||||
},
|
||||
|
||||
{
|
||||
question: "Pre svakog prestrojavanja, vi morate:",
|
||||
propositionA: "Pogledati retrovizore",
|
||||
propositionB: "Proveriti mrtve uglove",
|
||||
propositionC: "Signalizirati vaše namere",
|
||||
propositionD: "Sve od navedenog",
|
||||
reponse: "D"
|
||||
},
|
||||
|
||||
{
|
||||
question: "Koji nivo alkohola u krvi je dozvoljen dok vozite?",
|
||||
propositionA: "0.05%",
|
||||
propositionB: "0.18%",
|
||||
propositionC: "0.08%",
|
||||
propositionD: "0.06%",
|
||||
reponse: "C"
|
||||
},
|
||||
|
||||
{
|
||||
question: "Kada možete nastaviti voziti na semaforu?",
|
||||
propositionA: "Kada je zeleno svetlo",
|
||||
propositionB: "Kada nema nikoga na raskrsnici",
|
||||
propositionC: "Kada ste u zoni škole",
|
||||
propositionD: "Kada je zeleno i/ili vi skrećete desno",
|
||||
reponse: "D"
|
||||
},
|
||||
|
||||
{
|
||||
question: "Pešak stoji na semaforu i njemu je crveno za pešake, šta ćete učiniti?",
|
||||
propositionA: "Pustiti ga da pređe",
|
||||
propositionB: "Gledati dobro pre nego što prođete",
|
||||
propositionC: "Pokazati mu da pređe put",
|
||||
propositionD: "Nastaviti normalno jer je vama zeleno svetlo",
|
||||
reponse: "D"
|
||||
},
|
||||
|
||||
{
|
||||
question: "Šta je dozvoljeno kada pretičete vozilo?",
|
||||
propositionA: "Približavanje preblizu vozila da bi ga brže pretekli",
|
||||
propositionB: "Preticanje bez napuštanja trake",
|
||||
propositionC: "Vožnja suprotnim smerom dok pretičete",
|
||||
propositionD: "Prekoračenje brzine dok pretičete",
|
||||
reponse: "C"
|
||||
},
|
||||
|
||||
{
|
||||
question: "Vozite se autoputem gde je ograničenje 130 km/h, ali svi oko vas voze brže od vas, koliko smete voziti?",
|
||||
propositionA: "130 km/h",
|
||||
propositionB: "145 km/h",
|
||||
propositionC: "120 km/h",
|
||||
propositionD: "135 km/h",
|
||||
reponse: "A"
|
||||
},
|
||||
|
||||
{
|
||||
question: "Kada vas pretiče drugo vozilo, ne smete uraditi sledeće:",
|
||||
propositionA: "Usporiti",
|
||||
propositionB: "Proveriti retrovizore",
|
||||
propositionC: "Gledati ostale vozače",
|
||||
propositionD: "Povećati brzinu",
|
||||
reponse: "D"
|
||||
},
|
||||
]
|
||||
91
resources/[esx_addons]/esx_dmvschool/html/questions_sv.js
Normal file
91
resources/[esx_addons]/esx_dmvschool/html/questions_sv.js
Normal file
@@ -0,0 +1,91 @@
|
||||
var tableauQuestion = [
|
||||
{
|
||||
question: "Om du ligger i 80 km/h, och kommer in i ett bostadsområde måste du:",
|
||||
propositionA: "Du accelererar",
|
||||
propositionB: "Du behåller din hastighet, om du inte passerar andra fordon",
|
||||
propositionC: "Du saktar ner",
|
||||
propositionD: "Du behåller hastigheten",
|
||||
reponse: "C"
|
||||
},
|
||||
|
||||
{
|
||||
question: "Om du svänger höger vid ett trafikljus, men ser en fotgängare gå över vägen. Vad gör du?:",
|
||||
propositionA: "Du passerar fotgängaren",
|
||||
propositionB: "Du ser omkring dig att det inte finns några andra fordon i närheten",
|
||||
propositionC: "Du väntar tills fotgängaren passerat",
|
||||
propositionD: "Du skjuter fotgängaren och kör över han",
|
||||
reponse: "C"
|
||||
},
|
||||
|
||||
{
|
||||
question: "Utan någon förhandsindikation, hastigheten i ett bostadsområde är: __ km/h",
|
||||
propositionA: "30 km/h",
|
||||
propositionB: "50 km/h",
|
||||
propositionC: "40 km/h",
|
||||
propositionD: "60 km/h",
|
||||
reponse: "B"
|
||||
},
|
||||
|
||||
{
|
||||
question: "Innan varje filbyte måste du:",
|
||||
propositionA: "Kolla dina speglar",
|
||||
propositionB: "Kontrollera dina döda vinklar",
|
||||
propositionC: "Signalera dina avsikter",
|
||||
propositionD: "Alla uppskrivna",
|
||||
reponse: "D"
|
||||
},
|
||||
|
||||
{
|
||||
question: "Vilken alkoholhalt i blodet klassas som rattfylleri?",
|
||||
propositionA: "0.05%",
|
||||
propositionB: "0.18%",
|
||||
propositionC: "0.08%",
|
||||
propositionD: "0.06%",
|
||||
reponse: "C"
|
||||
},
|
||||
|
||||
{
|
||||
question: "När kan du fortsätta att köra vid ett trafikljus?",
|
||||
propositionA: "När det är grönt",
|
||||
propositionB: "När det inte finns någon i korsningen",
|
||||
propositionC: "Du befinner dig i en skolzon",
|
||||
propositionD: "När det är grönt och / eller rött och du svänger höger",
|
||||
reponse: "D"
|
||||
},
|
||||
|
||||
{
|
||||
question: "En fotgängare har inte en grön gubbe lysandes, men går ändå. Vad gör du?",
|
||||
propositionA: "Du låter de passera",
|
||||
propositionB: "Du observerar innan du fortsätter",
|
||||
propositionC: "Du vinkar för att säga åt dem att gå över",
|
||||
propositionD: "Du fortsätter eftersom ditt trafikljus är grönt",
|
||||
reponse: "D"
|
||||
},
|
||||
|
||||
{
|
||||
question: "Vad är tillåtet när man passerar ett annat fordon?",
|
||||
propositionA: "Du följer den noga för att passera den snabbare",
|
||||
propositionB: "Du passerar den utan att lämna vägbanan",
|
||||
propositionC: "Du kör på motsatt sida av vägen för att passera",
|
||||
propositionD: "Du överskrider hastighetsgränsen för att passera dem",
|
||||
reponse: "C"
|
||||
},
|
||||
|
||||
{
|
||||
question: "Du kör på en motorväg som anger en maxhastighet på 120 km/h. Men de flesta trafikanter kör i 125 km/h, så du ska inte köra fortare än:",
|
||||
propositionA: "120 km/h",
|
||||
propositionB: "125 km/h",
|
||||
propositionC: "130 km/h",
|
||||
propositionD: "110 km/h",
|
||||
reponse: "A"
|
||||
},
|
||||
|
||||
{
|
||||
question: "När du blir omkörd av ett annat fordon är det viktigt att INTE göra det:",
|
||||
propositionA: "Sakta ned",
|
||||
propositionB: "Kolla dina backspeglar",
|
||||
propositionC: "Titta på andra förare",
|
||||
propositionD: "Öka din hastighet",
|
||||
reponse: "D"
|
||||
},
|
||||
]
|
||||
137
resources/[esx_addons]/esx_dmvschool/html/scripts.js
Normal file
137
resources/[esx_addons]/esx_dmvschool/html/scripts.js
Normal file
@@ -0,0 +1,137 @@
|
||||
// question variables
|
||||
var questionNumber = 1;
|
||||
var userAnswer = [];
|
||||
var goodAnswer = [];
|
||||
var questionUsed = [];
|
||||
var nbQuestionToAnswer = 10; // don't forget to change the progress bar max value in html
|
||||
var nbAnswerNeeded = 5; // out of nbQuestionToAnswer
|
||||
var nbPossibleQuestions = 10; // number of questions in database questions.js
|
||||
var lastClick = 0;
|
||||
|
||||
function getRandomQuestion() {
|
||||
var random = Math.floor(Math.random() * nbPossibleQuestions);
|
||||
|
||||
while (true) {
|
||||
if (questionUsed.indexOf(random) === -1) {
|
||||
break;
|
||||
}
|
||||
|
||||
random = Math.floor(Math.random() * nbPossibleQuestions);
|
||||
}
|
||||
|
||||
questionUsed.push(random);
|
||||
|
||||
return random;
|
||||
}
|
||||
|
||||
// Partial Functions
|
||||
function closeMain() {
|
||||
$(".home").css("display", "none");
|
||||
}
|
||||
function openMain() {
|
||||
$(".home").css("display", "block");
|
||||
}
|
||||
function closeAll() {
|
||||
$(".body").css("display", "none");
|
||||
}
|
||||
function openQuestionnaire() {
|
||||
$(".questionnaire-container").css("display", "block");
|
||||
var randomQuestion = getRandomQuestion();
|
||||
|
||||
$("#questionNumero").html("Question: " + questionNumber);
|
||||
$("#question").html(tableauQuestion[randomQuestion].question);
|
||||
$(".answerA").html(tableauQuestion[randomQuestion].propositionA);
|
||||
$(".answerB").html(tableauQuestion[randomQuestion].propositionB);
|
||||
$(".answerC").html(tableauQuestion[randomQuestion].propositionC);
|
||||
$(".answerD").html(tableauQuestion[randomQuestion].propositionD);
|
||||
$('input[name=question]').attr('checked', false);
|
||||
|
||||
goodAnswer.push(tableauQuestion[randomQuestion].reponse);
|
||||
$(".questionnaire-container .progression").val(questionNumber - 1);
|
||||
}
|
||||
function openResultGood() {
|
||||
$(".resultGood").css("display", "block");
|
||||
}
|
||||
function openResultBad() {
|
||||
$(".resultBad").css("display", "block");
|
||||
}
|
||||
function openContainer() {
|
||||
$(".question-container").css("display", "block");
|
||||
}
|
||||
function closeContainer() {
|
||||
$(".question-container").css("display", "none");
|
||||
}
|
||||
|
||||
// Listen for NUI Events
|
||||
window.addEventListener('message', function (event) {
|
||||
var item = event.data;
|
||||
|
||||
// Open & Close main window
|
||||
if (item.openQuestion == true) {
|
||||
openContainer();
|
||||
openMain();
|
||||
}
|
||||
|
||||
if (item.openQuestion == false) {
|
||||
closeContainer();
|
||||
closeMain();
|
||||
}
|
||||
|
||||
// Open sub-windows / partials
|
||||
if (item.openSection == "question") {
|
||||
closeAll();
|
||||
openQuestionnaire();
|
||||
}
|
||||
});
|
||||
|
||||
// Handle Button Presses
|
||||
$(".btnQuestion").click(function () {
|
||||
$.post('http://esx_dmvschool/question', JSON.stringify({}));
|
||||
});
|
||||
|
||||
$(".btnClose").click(function () {
|
||||
$.post('http://esx_dmvschool/close', JSON.stringify({}));
|
||||
userAnswer = [];
|
||||
goodAnswer = [];
|
||||
questionUsed = [];
|
||||
questionNumber = 1;
|
||||
});
|
||||
|
||||
$(".btnKick").click(function () {
|
||||
$.post('http://esx_dmvschool/kick', JSON.stringify({}));
|
||||
userAnswer = [];
|
||||
goodAnswer = [];
|
||||
questionUsed = [];
|
||||
questionNumber = 1;
|
||||
});
|
||||
|
||||
// Handle Form Submits
|
||||
$("#question-form").submit(function (e) {
|
||||
e.preventDefault();
|
||||
|
||||
if (questionNumber != nbQuestionToAnswer) {
|
||||
//question 1 to 9: pushing answer in array
|
||||
closeAll();
|
||||
userAnswer.push($('input[name="question"]:checked').val());
|
||||
questionNumber++;
|
||||
openQuestionnaire();
|
||||
} else {
|
||||
// question 10: comparing arrays and sending number of good answers
|
||||
userAnswer.push($('input[name="question"]:checked').val());
|
||||
var nbGoodAnswer = 0;
|
||||
for (i = 0; i < nbQuestionToAnswer; i++) {
|
||||
if (userAnswer[i] == goodAnswer[i]) {
|
||||
nbGoodAnswer++;
|
||||
}
|
||||
}
|
||||
|
||||
closeAll();
|
||||
if (nbGoodAnswer >= nbAnswerNeeded) {
|
||||
openResultGood();
|
||||
} else {
|
||||
openResultBad();
|
||||
}
|
||||
}
|
||||
|
||||
return false;
|
||||
});
|
||||
187
resources/[esx_addons]/esx_dmvschool/html/styles.css
Normal file
187
resources/[esx_addons]/esx_dmvschool/html/styles.css
Normal file
@@ -0,0 +1,187 @@
|
||||
html {
|
||||
overflow: hidden;
|
||||
font-family: 'Open Sans', sans-serif;
|
||||
}
|
||||
|
||||
.full-screen {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
.question-container {
|
||||
width: 70%;
|
||||
height: 700px;
|
||||
background-color: #fff;
|
||||
border: 1px solid #222;
|
||||
border-radius: 1px;
|
||||
margin-left: auto;
|
||||
margin-right: auto;
|
||||
overflow: hidden;
|
||||
z-index: 9999999;
|
||||
display: none;
|
||||
}
|
||||
|
||||
.header {
|
||||
width: 100%;
|
||||
height: 20%;
|
||||
background-color: #eee;
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
flex-wrap: wrap;
|
||||
justify-content: center;
|
||||
}
|
||||
|
||||
.header .logo {
|
||||
width: 80%;
|
||||
max-height: 50%;
|
||||
margin: auto;
|
||||
margin-bottom: 0;
|
||||
}
|
||||
|
||||
.header h1 {
|
||||
font-size: 2em;
|
||||
text-align: center;
|
||||
margin: auto;
|
||||
}
|
||||
|
||||
.body {
|
||||
width: 100%;
|
||||
height: 80%;
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
flex-wrap: wrap;
|
||||
display: none;
|
||||
}
|
||||
|
||||
.content {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-self: center;
|
||||
width: 90%;
|
||||
height: 70%;
|
||||
margin: auto;
|
||||
border: none;
|
||||
}
|
||||
|
||||
.content .logo {
|
||||
width: auto;
|
||||
max-height: auto;
|
||||
margin: auto;
|
||||
margin-bottom: 0;
|
||||
}
|
||||
|
||||
.content h2, p {
|
||||
margin: 5px;
|
||||
}
|
||||
|
||||
.buttonspot {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-self: center;
|
||||
width: auto;
|
||||
height: 15%;
|
||||
margin: auto;
|
||||
border: none;
|
||||
}
|
||||
|
||||
.buttonspot h2, p {
|
||||
margin: 5px;
|
||||
}
|
||||
|
||||
.button {
|
||||
width: 30%;
|
||||
height: 40px;
|
||||
align-self: center;
|
||||
text-align: center;
|
||||
margin-left: 40px;
|
||||
margin-right: 40px;
|
||||
background: #6699ff;
|
||||
background-image: linear-gradient(to bottom, #6699ff, #4d88ff);
|
||||
border-radius: 4px;
|
||||
color: #ffffff;
|
||||
font-size: 1.5em;
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
.form {
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
justify-content: center;
|
||||
flex-wrap: wrap;
|
||||
width: 100%;
|
||||
margin-top: 5px;
|
||||
}
|
||||
|
||||
.form div {
|
||||
margin: auto;
|
||||
margin-top: 5px;
|
||||
margin-bottom: 5px;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.submit {
|
||||
align-items: center;
|
||||
height: 30px;
|
||||
text-align: center;
|
||||
width: 30%;
|
||||
background: #017ebc;
|
||||
background-image: linear-gradient(to bottom, #6699ff, #4d88ff);
|
||||
border-radius: 4px;
|
||||
color: #fff;
|
||||
font-size: 1.2em;
|
||||
margin-top: 10px;
|
||||
}
|
||||
|
||||
.barre-progression {
|
||||
width: 50%;
|
||||
align-self: center;
|
||||
height: 10%;
|
||||
margin: auto;
|
||||
margin-top: 0;
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
justify-content: center;
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
.barre-progression h2 {
|
||||
width: 100%;
|
||||
height: 60%;
|
||||
text-align: center;
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
margin: 0;
|
||||
color: #6699ff;
|
||||
}
|
||||
|
||||
.progression {
|
||||
width: 80%;
|
||||
border: 0 none;
|
||||
background: #ddd;
|
||||
border-radius: 14px;
|
||||
box-shadow: inset 0px 1px 1px rgba(0, 0, 0, 0.5), 0px 1px 0px rgba(255, 255, 255, 0.2);
|
||||
}
|
||||
|
||||
.progression::-moz-progress-bar {
|
||||
background: #FFF;
|
||||
border-radius: 14px;
|
||||
box-shadow: inset 0 -2px 4px rgba(0, 0, 0, 0.4), 0 2px 5px 0px rgba(0, 0, 0, 0.3);
|
||||
}
|
||||
|
||||
.progression::-webkit-progress-bar {
|
||||
background: transparent;
|
||||
}
|
||||
|
||||
.progression::-webkit-progress-value {
|
||||
background-image: linear-gradient(to bottom, #6699ff, #4d88ff);
|
||||
border-radius: 14px;
|
||||
box-shadow: inset 0 -2px 4px rgba(0, 0, 0, 0.4), 0 2px 5px 0px rgba(0, 0, 0, 0.3);
|
||||
}
|
||||
|
||||
.bold-text {
|
||||
font-weight: bold;
|
||||
font-size: 1.3em;
|
||||
}
|
||||
120
resources/[esx_addons]/esx_dmvschool/html/ui.html
Normal file
120
resources/[esx_addons]/esx_dmvschool/html/ui.html
Normal file
@@ -0,0 +1,120 @@
|
||||
<head>
|
||||
<link href="https://fonts.googleapis.com/css?family=Open+Sans" rel="stylesheet">
|
||||
<link rel="stylesheet" href="styles.css" type="text/css">
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<div class="full-screen">
|
||||
<div class="question-container">
|
||||
<!-- header -->
|
||||
<div class="header">
|
||||
<h1>Driving School</h1>
|
||||
</div>
|
||||
<!-- home -->
|
||||
<div class="body home">
|
||||
<div class="content">
|
||||
<!-- ICI BREVE PRESENTATION -->
|
||||
<center>
|
||||
<img src="dmv.png" class="logo">
|
||||
<br>
|
||||
<p class="bold-text">Welcome to Driving School
|
||||
</center>
|
||||
<br>
|
||||
<center>All citizens of Los Santos must pass their exam before they can drive.
|
||||
<br>Take your time, answer with common sense, and do not answer randomly.
|
||||
<br>
|
||||
<br> Theory Test
|
||||
<br> - The Theory Test costs $200, this is not refunded if you fail the test.
|
||||
<br> - Don't be afraid, the driving school accepts credit, but be careful not to get into debt.
|
||||
<br> - If you fail your test the first time, you can't retake it immediately, you'll have to take it at a later
|
||||
date.
|
||||
<br>
|
||||
<br> Driving Test
|
||||
<br> - The Driving Test costs $500, just like the theory test, this payment will not be refunded if you fail.
|
||||
<br> - Make sure you stay alert whilst driving, and avoid accidents!</p>
|
||||
</center>
|
||||
</div>
|
||||
<div class="buttonspot">
|
||||
<a href="#" class="button btnQuestion">Start</a>
|
||||
</div>
|
||||
<div class="barre-progression">
|
||||
<h2>Progress</h2>
|
||||
<progress class="progression" value="0" max="10">
|
||||
</div>
|
||||
</div>
|
||||
<!-- Question-->
|
||||
<div class="body questionnaire-container">
|
||||
<div class="content">
|
||||
<h2 id="questionNumero"></h2>
|
||||
<p id="question"></p>
|
||||
<form class="form" id="question-form">
|
||||
<div>
|
||||
<input type="radio" name="question" id="answerA" value="A">
|
||||
<label class="answerA"></label>
|
||||
</div>
|
||||
<div>
|
||||
<input type="radio" name="question" id="answerB" value="B">
|
||||
<label class="answerB"></label>
|
||||
</div>
|
||||
<div>
|
||||
<input type="radio" name="question" id="answerC" value="C">
|
||||
<label class="answerC"></label>
|
||||
</div>
|
||||
<div>
|
||||
<input type="radio" name="question" id="answerD" value="D">
|
||||
<label class="answerD"></label>
|
||||
</div>
|
||||
<button type="submit" id="submit" class="submit">Next question</button>
|
||||
</form>
|
||||
</div>
|
||||
<div class="barre-progression">
|
||||
<h2>Progress</h2>
|
||||
<progress class="progression" value="0" max="10">
|
||||
</div>
|
||||
</div>
|
||||
<!-- Results -->
|
||||
<div class="body resultGood">
|
||||
<div class="content">
|
||||
<center>
|
||||
<p class="bold-text">Good work!</p>
|
||||
<br>
|
||||
<br>You did well during the examination.
|
||||
<br>
|
||||
<br>You can close this window, and go take your road test(s).
|
||||
</center>
|
||||
</div>
|
||||
<div class="buttonspot">
|
||||
<a href="#" class="button btnClose">Close</a>
|
||||
</div>
|
||||
<div class="barre-progression">
|
||||
<h2>Progress</h2>
|
||||
<progress class="progression" value="10" max="10">
|
||||
</div>
|
||||
</div>
|
||||
<div class="body resultBad">
|
||||
<div class="content">
|
||||
<center>
|
||||
<p class="bold-text">You failed</p>
|
||||
<br>
|
||||
<br>You weren't ready for this test, try again later...
|
||||
<br>
|
||||
<br>
|
||||
</center>
|
||||
</div>
|
||||
<div class="buttonspot">
|
||||
<a href="#" class="button btnKick">Close</a>
|
||||
</div>
|
||||
<div class="barre-progression">
|
||||
<h2>Progress</h2>
|
||||
<progress class="progression" value="10" max="10">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<script src="nui://game/ui/jquery.js" type="text/javascript"></script>
|
||||
<script src="questions.js" type="text/javascript"></script>
|
||||
<script src="scripts.js" type="text/javascript"></script>
|
||||
<script src="debounce.min.js" type="text/javascript"></script>
|
||||
|
||||
</body>
|
||||
121
resources/[esx_addons]/esx_dmvschool/html/ui_de.html
Normal file
121
resources/[esx_addons]/esx_dmvschool/html/ui_de.html
Normal file
@@ -0,0 +1,121 @@
|
||||
<head>
|
||||
<link href="https://fonts.googleapis.com/css?family=Open+Sans" rel="stylesheet">
|
||||
<link rel="stylesheet" href="styles.css" type="text/css">
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<div class="full-screen">
|
||||
<div class="question-container">
|
||||
<!-- header -->
|
||||
<div class="header">
|
||||
<h1>Fahrschule</h1>
|
||||
</div>
|
||||
<!-- home -->
|
||||
<div class="body home">
|
||||
<div class="content">
|
||||
<!-- ICI BREVE PRESENTATION -->
|
||||
<center>
|
||||
<img src="dmv.png" class="logo">
|
||||
<br>
|
||||
<p class="bold-text">Willkommen zur Fahrschule!
|
||||
</center>
|
||||
<br>
|
||||
<center>Alle Bürger von Los Santos müssen diesen Test bestehen um Fahren zu können!
|
||||
<br>Nehme dir zeit, und beantworte keine Fragen Zufällig.
|
||||
<br>
|
||||
<br> Theorie Test
|
||||
<br> - Der Theorie Test kostet 200€, das Geld wird dir wenn du den Test nicht bestehst rückerstattet!
|
||||
<br> - Habe keine angst, die Fahrschule akzeptiert Kreditkarten jedoch gehe nicht zu weit in das Minus.
|
||||
<br> - Wenn du den Test nicht bestehst, kannst du diesen nicht sofort wiederholen! Du musst den Test an einem
|
||||
anderem Datum wiederholen.
|
||||
<br>
|
||||
<br> Auto Führerschein
|
||||
<br> - Der Autoführerschein kostet 500€ und wird nicht zurückerstattet genau wie bei dem Theorie Test.
|
||||
<br> - Stelle sicher du bleibst aufmerksam, wenn du am Fahren bist und baue keine Unfälle!</p>
|
||||
</center>
|
||||
</div>
|
||||
<div class="buttonspot">
|
||||
<a href="#" class="button btnQuestion">Start</a>
|
||||
</div>
|
||||
<div class="barre-progression">
|
||||
<h2>Fortschritt</h2>
|
||||
<progress class="progression" value="0" max="10">
|
||||
</div>
|
||||
</div>
|
||||
<!-- Question-->
|
||||
<div class="body questionnaire-container">
|
||||
<div class="content">
|
||||
<h2 id="questionNumero"></h2>
|
||||
<p id="question"></p>
|
||||
<form class="form" id="question-form">
|
||||
<div>
|
||||
<input type="radio" name="question" id="answerA" value="A">
|
||||
<label class="answerA"></label>
|
||||
</div>
|
||||
<div>
|
||||
<input type="radio" name="question" id="answerB" value="B">
|
||||
<label class="answerB"></label>
|
||||
</div>
|
||||
<div>
|
||||
<input type="radio" name="question" id="answerC" value="C">
|
||||
<label class="answerC"></label>
|
||||
</div>
|
||||
<div>
|
||||
<input type="radio" name="question" id="answerD" value="D">
|
||||
<label class="answerD"></label>
|
||||
</div>
|
||||
<button type="submit" id="submit" class="submit">Nächste Frage</button>
|
||||
</form>
|
||||
</div>
|
||||
<div class="barre-progression">
|
||||
<h2>Fortschritt</h2>
|
||||
<progress class="progression" value="0" max="10">
|
||||
</div>
|
||||
</div>
|
||||
<!-- Results -->
|
||||
<div class="body resultGood">
|
||||
<div class="content">
|
||||
<center>
|
||||
<p class="bold-text">Gute Arbeit!</p>
|
||||
<br>
|
||||
<br>Du hast den Test bestanden!
|
||||
<br>
|
||||
<br>Du kannst dieses Fenster nun schließen, und deine Prüfungen beginnen!
|
||||
</center>
|
||||
</div>
|
||||
<div class="buttonspot">
|
||||
<a href="#" class="button btnClose">schließen</a>
|
||||
</div>
|
||||
<div class="barre-progression">
|
||||
<h2>Fortschritt</h2>
|
||||
<progress class="progression" value="10" max="10">
|
||||
</div>
|
||||
</div>
|
||||
<div class="body resultBad">
|
||||
<div class="content">
|
||||
<center>
|
||||
<p class="bold-text">Nicht bestanden</p>
|
||||
<br>
|
||||
<br> Du warst nicht bereit für den Test...
|
||||
<br> Versuche es Später erneut!
|
||||
<br>
|
||||
<br>
|
||||
</center>
|
||||
</div>
|
||||
<div class="buttonspot">
|
||||
<a href="#" class="button btnKick">schließen</a>
|
||||
</div>
|
||||
<div class="barre-progression">
|
||||
<h2>Fortschritt</h2>
|
||||
<progress class="progression" value="10" max="10">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<script src="nui://game/ui/jquery.js" type="text/javascript"></script>
|
||||
<script src="questions.js" type="text/javascript"></script>
|
||||
<script src="scripts.js" type="text/javascript"></script>
|
||||
<script src="debounce.min.js" type="text/javascript"></script>
|
||||
|
||||
</body>
|
||||
120
resources/[esx_addons]/esx_dmvschool/html/ui_en.html
Normal file
120
resources/[esx_addons]/esx_dmvschool/html/ui_en.html
Normal file
@@ -0,0 +1,120 @@
|
||||
<head>
|
||||
<link href="https://fonts.googleapis.com/css?family=Open+Sans" rel="stylesheet">
|
||||
<link rel="stylesheet" href="styles.css" type="text/css">
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<div class="full-screen">
|
||||
<div class="question-container">
|
||||
<!-- header -->
|
||||
<div class="header">
|
||||
<h1>Driving School</h1>
|
||||
</div>
|
||||
<!-- home -->
|
||||
<div class="body home">
|
||||
<div class="content">
|
||||
<!-- ICI BREVE PRESENTATION -->
|
||||
<center>
|
||||
<img src="dmv.png" class="logo">
|
||||
<br>
|
||||
<p class="bold-text">Welcome to Driving School
|
||||
</center>
|
||||
<br>
|
||||
<center>All citizens of Los Santos must pass their exam before they can drive.
|
||||
<br>Take your time, answer with common sense, and do not answer randomly.
|
||||
<br>
|
||||
<br> Theory Test
|
||||
<br> - The Theory Test costs $200, this is not refunded if you fail the test.
|
||||
<br> - Don't be afraid, the driving school accepts credit, but be careful not to get into debt.
|
||||
<br> - If you fail your test the first time, you can't retake it immediately, you'll have to take it at a later
|
||||
date.
|
||||
<br>
|
||||
<br> Driving Test
|
||||
<br> - The Driving Test costs $500, just like the theory test, this payment will not be refunded if you fail.
|
||||
<br> - Make sure you stay alert whilst driving, and avoid accidents!</p>
|
||||
</center>
|
||||
</div>
|
||||
<div class="buttonspot">
|
||||
<a href="#" class="button btnQuestion">Start</a>
|
||||
</div>
|
||||
<div class="barre-progression">
|
||||
<h2>Progress</h2>
|
||||
<progress class="progression" value="0" max="10">
|
||||
</div>
|
||||
</div>
|
||||
<!-- Question-->
|
||||
<div class="body questionnaire-container">
|
||||
<div class="content">
|
||||
<h2 id="questionNumero"></h2>
|
||||
<p id="question"></p>
|
||||
<form class="form" id="question-form">
|
||||
<div>
|
||||
<input type="radio" name="question" id="answerA" value="A">
|
||||
<label class="answerA"></label>
|
||||
</div>
|
||||
<div>
|
||||
<input type="radio" name="question" id="answerB" value="B">
|
||||
<label class="answerB"></label>
|
||||
</div>
|
||||
<div>
|
||||
<input type="radio" name="question" id="answerC" value="C">
|
||||
<label class="answerC"></label>
|
||||
</div>
|
||||
<div>
|
||||
<input type="radio" name="question" id="answerD" value="D">
|
||||
<label class="answerD"></label>
|
||||
</div>
|
||||
<button type="submit" id="submit" class="submit">Next question</button>
|
||||
</form>
|
||||
</div>
|
||||
<div class="barre-progression">
|
||||
<h2>Progress</h2>
|
||||
<progress class="progression" value="0" max="10">
|
||||
</div>
|
||||
</div>
|
||||
<!-- Results -->
|
||||
<div class="body resultGood">
|
||||
<div class="content">
|
||||
<center>
|
||||
<p class="bold-text">Good work!</p>
|
||||
<br>
|
||||
<br>You did well during the examination.
|
||||
<br>
|
||||
<br>You can close this window, and go take your road test(s).
|
||||
</center>
|
||||
</div>
|
||||
<div class="buttonspot">
|
||||
<a href="#" class="button btnClose">Close</a>
|
||||
</div>
|
||||
<div class="barre-progression">
|
||||
<h2>Progress</h2>
|
||||
<progress class="progression" value="10" max="10">
|
||||
</div>
|
||||
</div>
|
||||
<div class="body resultBad">
|
||||
<div class="content">
|
||||
<center>
|
||||
<p class="bold-text">You failed</p>
|
||||
<br>
|
||||
<br>You weren't ready for this test, try again later...
|
||||
<br>
|
||||
<br>
|
||||
</center>
|
||||
</div>
|
||||
<div class="buttonspot">
|
||||
<a href="#" class="button btnKick">Close</a>
|
||||
</div>
|
||||
<div class="barre-progression">
|
||||
<h2>Progress</h2>
|
||||
<progress class="progression" value="10" max="10">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<script src="nui://game/ui/jquery.js" type="text/javascript"></script>
|
||||
<script src="questions.js" type="text/javascript"></script>
|
||||
<script src="scripts.js" type="text/javascript"></script>
|
||||
<script src="debounce.min.js" type="text/javascript"></script>
|
||||
|
||||
</body>
|
||||
119
resources/[esx_addons]/esx_dmvschool/html/ui_es.html
Normal file
119
resources/[esx_addons]/esx_dmvschool/html/ui_es.html
Normal file
@@ -0,0 +1,119 @@
|
||||
<head>
|
||||
<link href="https://fonts.googleapis.com/css?family=Open+Sans" rel="stylesheet">
|
||||
<link rel="stylesheet" href="styles.css" type="text/css">
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<div class="full-screen">
|
||||
<div class="question-container">
|
||||
<!-- header -->
|
||||
<div class="header">
|
||||
<h1>Escuela de Conducción</h1>
|
||||
</div>
|
||||
<!-- home -->
|
||||
<div class="body home">
|
||||
<div class="content">
|
||||
<!-- ICI BREVE PRESENTATION -->
|
||||
<center>
|
||||
<img src="dmv.png" class="logo">
|
||||
<br>
|
||||
<p class="bold-text">Bienvenido a la Escuela de Conducción
|
||||
</center>
|
||||
<br>
|
||||
<center>Todos los ciudadanos de la ciudad deben aprobar su examen antes de poder conducir.
|
||||
<br>Tómese su tiempo, responda con sentido común y no conteste al azar.
|
||||
<br>
|
||||
<br> Examen teórico
|
||||
<br> - La prueba teórica cuesta $ 200, esto no se reembolsa si falla la prueba.
|
||||
<br> - No tenga miedo, la escuela de conducción acepta crédito, pero tenga cuidado de no entrar en deuda.
|
||||
<br> - Si falla la prueba la primera vez, no puede volver a tomarla de inmediato, tendrá que realizarla más adelante.
|
||||
<br>
|
||||
<br> Examen de Conducir
|
||||
<br> - La prueba de conducir cuesta $500, al igual que la prueba de la teoría, este pago no se devolverá si fallas.
|
||||
<br> - ¡Asegúrate de estar alerta mientras conduces y de evitar accidentes!</p>
|
||||
</center>
|
||||
</div>
|
||||
<div class="buttonspot">
|
||||
<a href="#" class="button btnQuestion">Empezar</a>
|
||||
</div>
|
||||
<div class="barre-progression">
|
||||
<h2>Progreso</h2>
|
||||
<progress class="progression" value="0" max="10">
|
||||
</div>
|
||||
</div>
|
||||
<!-- Question-->
|
||||
<div class="body questionnaire-container">
|
||||
<div class="content">
|
||||
<h2 id="questionNumero"></h2>
|
||||
<p id="question"></p>
|
||||
<form class="form" id="question-form">
|
||||
<div>
|
||||
<input type="radio" name="question" id="answerA" value="A">
|
||||
<label class="answerA"></label>
|
||||
</div>
|
||||
<div>
|
||||
<input type="radio" name="question" id="answerB" value="B">
|
||||
<label class="answerB"></label>
|
||||
</div>
|
||||
<div>
|
||||
<input type="radio" name="question" id="answerC" value="C">
|
||||
<label class="answerC"></label>
|
||||
</div>
|
||||
<div>
|
||||
<input type="radio" name="question" id="answerD" value="D">
|
||||
<label class="answerD"></label>
|
||||
</div>
|
||||
<button type="submit" id="submit" class="submit">Siguiente Pregunta</button>
|
||||
</form>
|
||||
</div>
|
||||
<div class="barre-progression">
|
||||
<h2>Progreso</h2>
|
||||
<progress class="progression" value="0" max="10">
|
||||
</div>
|
||||
</div>
|
||||
<!-- Results -->
|
||||
<div class="body resultGood">
|
||||
<div class="content">
|
||||
<center>
|
||||
<p class="bold-text">¡Buen trabajo!</p>
|
||||
<br>
|
||||
<br>Lo hiciste bien durante el examen.
|
||||
<br>
|
||||
<br>Puede cerrar esta ventana y tomar la prueba de conducción.
|
||||
</center>
|
||||
</div>
|
||||
<div class="buttonspot">
|
||||
<a href="#" class="button btnClose">Cerrar</a>
|
||||
</div>
|
||||
<div class="barre-progression">
|
||||
<h2>Progress</h2>
|
||||
<progress class="progression" value="10" max="10">
|
||||
</div>
|
||||
</div>
|
||||
<div class="body resultBad">
|
||||
<div class="content">
|
||||
<center>
|
||||
<p class="bold-text">Has fallado</p>
|
||||
<br>
|
||||
<br>No estabas listo para esta prueba, inténtalo de nuevo más tarde ...
|
||||
<br>
|
||||
<br>
|
||||
</center>
|
||||
</div>
|
||||
<div class="buttonspot">
|
||||
<a href="#" class="button btnKick">Cerrar</a>
|
||||
</div>
|
||||
<div class="barre-progression">
|
||||
<h2>Progress</h2>
|
||||
<progress class="progression" value="10" max="10">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<script src="nui://game/ui/jquery.js" type="text/javascript"></script>
|
||||
<script src="questions.js" type="text/javascript"></script>
|
||||
<script src="scripts.js" type="text/javascript"></script>
|
||||
<script src="debounce.min.js" type="text/javascript"></script>
|
||||
|
||||
</body>
|
||||
122
resources/[esx_addons]/esx_dmvschool/html/ui_fi.html
Normal file
122
resources/[esx_addons]/esx_dmvschool/html/ui_fi.html
Normal file
@@ -0,0 +1,122 @@
|
||||
<head>
|
||||
<link href="https://fonts.googleapis.com/css?family=Open+Sans" rel="stylesheet">
|
||||
<link rel="stylesheet" href="styles.css" type="text/css">
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<div class="full-screen">
|
||||
<div class="question-container">
|
||||
<!-- header -->
|
||||
<div class="header">
|
||||
<h1>Autokoulu</h1>
|
||||
</div>
|
||||
<!-- home -->
|
||||
<div class="body home">
|
||||
<div class="content">
|
||||
<!-- ICI BREVE PRESENTATION -->
|
||||
<center>
|
||||
<img src="dmv.png" class="logo">
|
||||
<br>
|
||||
<p class="bold-text">Tervetuloa autokouluun
|
||||
</center>
|
||||
<br>
|
||||
<center>Vaadimme kaikilta kansalaisilta että pääset läpi teoriaoppitestin ennen kuin voit saada voimassa olevan
|
||||
ajokortin.
|
||||
<br>Varaa aikaa ja vastaa maalaisjärjellä, älä yritä vastata tuurilla.
|
||||
<br>
|
||||
<br>
|
||||
</center>
|
||||
Teoriakoe
|
||||
<br> - Teoriakoe maksaa 200 € ja siitä ei voi saada rahoja takaisin jos epäonnistut
|
||||
<br> - Älä huoli, Autokoulu antaa maksaa luotolla, mutta älä ota liian paljon luottoa
|
||||
<br> - Jos epäonnistut testissä, et voi ottaa sitä heti uudelleen, palaa takaisin toisella kertaa yrittään
|
||||
uudelleen.
|
||||
<br>
|
||||
<br> Inssi
|
||||
<br> - Ajokortti vaihtoehtoja on useita ja hinnat vaihtelee niitten mukaan.
|
||||
<br> - Inssin päätavote on kiinittää huomiota yksityiskohtiin, ympäristöön ja liikenteeseen. Älä myöskään kolaroi!</p>
|
||||
</div>
|
||||
<div class="buttonspot">
|
||||
<a href="#" class="button btnQuestion">Aloitus</a>
|
||||
</div>
|
||||
<div class="barre-progression">
|
||||
<h2>Edistyminen</h2>
|
||||
<progress class="progression" value="0" max="10">
|
||||
</div>
|
||||
</div>
|
||||
<!-- Question-->
|
||||
<div class="body questionnaire-container">
|
||||
<div class="content">
|
||||
<h2 id="questionNumero"></h2>
|
||||
<p id="question"></p>
|
||||
<form class="form" id="question-form">
|
||||
<div>
|
||||
<input type="radio" name="question" id="answerA" value="A">
|
||||
<label class="answerA"></label>
|
||||
</div>
|
||||
<div>
|
||||
<input type="radio" name="question" id="answerB" value="B">
|
||||
<label class="answerB"></label>
|
||||
</div>
|
||||
<div>
|
||||
<input type="radio" name="question" id="answerC" value="C">
|
||||
<label class="answerC"></label>
|
||||
</div>
|
||||
<div>
|
||||
<input type="radio" name="question" id="answerD" value="D">
|
||||
<label class="answerD"></label>
|
||||
</div>
|
||||
<button type="submit" id="submit" class="submit">Seuraava kysymys</button>
|
||||
</form>
|
||||
</div>
|
||||
<div class="barre-progression">
|
||||
<h2>Edistyminen</h2>
|
||||
<progress class="progression" value="0" max="10">
|
||||
</div>
|
||||
</div>
|
||||
<!-- Results -->
|
||||
<div class="body resultGood">
|
||||
<div class="content">
|
||||
<center>
|
||||
<p class="bold-text">Hienoa !</p>
|
||||
<br>
|
||||
<br>Sinulla meni testi aika hyvin!
|
||||
<br>
|
||||
<br>Voit sulkea tämän ikkunan nyt ja jatkaa inssikokeeseen.
|
||||
</center>
|
||||
</div>
|
||||
<div class="buttonspot">
|
||||
<a href="#" class="button btnClose">Sulje</a>
|
||||
</div>
|
||||
<div class="barre-progression">
|
||||
<h2>Edistyminen</h2>
|
||||
<progress class="progression" value="10" max="10">
|
||||
</div>
|
||||
</div>
|
||||
<div class="body resultBad">
|
||||
<div class="content">
|
||||
<center>
|
||||
<p class="bold-text">Epäonnistuit</p>
|
||||
<br>
|
||||
<br>Et ole vielä valmis aloittaa suorittaa mitään ajokorttia, kokeile toisella kertaa.
|
||||
<br>
|
||||
<br>
|
||||
</center>
|
||||
</div>
|
||||
<div class="buttonspot">
|
||||
<a href="#" class="button btnKick">Sulje</a>
|
||||
</div>
|
||||
<div class="barre-progression">
|
||||
<h2>Edistyminen</h2>
|
||||
<progress class="progression" value="10" max="10">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<script src="nui://game/ui/jquery.js" type="text/javascript"></script>
|
||||
<script src="questions.js" type="text/javascript"></script>
|
||||
<script src="scripts.js" type="text/javascript"></script>
|
||||
<script src="debounce.min.js" type="text/javascript"></script>
|
||||
|
||||
</body>
|
||||
119
resources/[esx_addons]/esx_dmvschool/html/ui_fr.html
Normal file
119
resources/[esx_addons]/esx_dmvschool/html/ui_fr.html
Normal file
@@ -0,0 +1,119 @@
|
||||
<head>
|
||||
<link href="https://fonts.googleapis.com/css?family=Open+Sans" rel="stylesheet">
|
||||
<link rel="stylesheet" href="styles.css" type="text/css">
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<div class="full-screen">
|
||||
<div class="question-container">
|
||||
<!-- header -->
|
||||
<div class="header">
|
||||
<h1>Auto-école</h1>
|
||||
</div>
|
||||
<!-- home -->
|
||||
<div class="body home">
|
||||
<div class="content">
|
||||
<!-- ICI BREVE PRESENTATION -->
|
||||
<center>
|
||||
<img src="dmv.png" class="logo">
|
||||
<br>
|
||||
<p class="bold-text">Bienvenue à l’école de conduite
|
||||
</center>
|
||||
<br>
|
||||
<center>Tous les citoyens de Los Santos doivent passer leur examen avant de pouvoir conduire.
|
||||
<br>Prenez votre temps, répondez avec bon sens, et ne répondez pas au hasard.
|
||||
<br>
|
||||
<br> Test théorique
|
||||
<br> - Le test théorique coûte 200 $. Il n’est pas remboursé si vous échouez au test.
|
||||
<br> - N’ayez pas peur, l’école de conduite accepte le crédit, mais faites attention de ne pas vous endetter.
|
||||
<br> - Si vous échouez à votre test la première fois, vous ne pouvez pas le reprendre immédiatement, vous devrez le reprendre à une date ultérieure.
|
||||
<br>
|
||||
<br> Test de conduite
|
||||
<br> - Le test de conduite coûte 500 $, tout comme le test théorique, ce paiement ne sera pas remboursé si vous échouez.
|
||||
<br> - Restez vigilant en conduisant et évitez les accidents!</p>
|
||||
</center>
|
||||
</div>
|
||||
<div class="buttonspot">
|
||||
<a href="#" class="button btnQuestion">Commencer</a>
|
||||
</div>
|
||||
<div class="barre-progression">
|
||||
<h2>Progrès</h2>
|
||||
<progress class="progression" value="0" max="10">
|
||||
</div>
|
||||
</div>
|
||||
<!-- Question-->
|
||||
<div class="body questionnaire-container">
|
||||
<div class="content">
|
||||
<h2 id="questionNumero"></h2>
|
||||
<p id="question"></p>
|
||||
<form class="form" id="question-form">
|
||||
<div>
|
||||
<input type="radio" name="question" id="answerA" value="A">
|
||||
<label class="answerA"></label>
|
||||
</div>
|
||||
<div>
|
||||
<input type="radio" name="question" id="answerB" value="B">
|
||||
<label class="answerB"></label>
|
||||
</div>
|
||||
<div>
|
||||
<input type="radio" name="question" id="answerC" value="C">
|
||||
<label class="answerC"></label>
|
||||
</div>
|
||||
<div>
|
||||
<input type="radio" name="question" id="answerD" value="D">
|
||||
<label class="answerD"></label>
|
||||
</div>
|
||||
<button type="submit" id="submit" class="submit">Prochaine question</button>
|
||||
</form>
|
||||
</div>
|
||||
<div class="barre-progression">
|
||||
<h2>Progrès</h2>
|
||||
<progress class="progression" value="0" max="10">
|
||||
</div>
|
||||
</div>
|
||||
<!-- Results -->
|
||||
<div class="body resultGood">
|
||||
<div class="content">
|
||||
<center>
|
||||
<p class="bold-text">Bon travail!</p>
|
||||
<br>
|
||||
<br>Vous vous êtes bien débrouillé pendant l’examen.
|
||||
<br>
|
||||
<br>Vous pouvez fermer cette fenêtre, et aller faire votre/vos essai routier(s).
|
||||
</center>
|
||||
</div>
|
||||
<div class="buttonspot">
|
||||
<a href="#" class="button btnClose">Fermer</a>
|
||||
</div>
|
||||
<div class="barre-progression">
|
||||
<h2>Progrès</h2>
|
||||
<progress class="progression" value="10" max="10">
|
||||
</div>
|
||||
</div>
|
||||
<div class="body resultBad">
|
||||
<div class="content">
|
||||
<center>
|
||||
<p class="bold-text">Vous avez échoué</p>
|
||||
<br>
|
||||
<br>Vous n’étiez pas prêt pour ce test, réessayez plus tard...
|
||||
<br>
|
||||
<br>
|
||||
</center>
|
||||
</div>
|
||||
<div class="buttonspot">
|
||||
<a href="#" class="button btnKick">Fermer</a>
|
||||
</div>
|
||||
<div class="barre-progression">
|
||||
<h2>Progrès</h2>
|
||||
<progress class="progression" value="10" max="10">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<script src="nui://game/ui/jquery.js" type="text/javascript"></script>
|
||||
<script src="questions.js" type="text/javascript"></script>
|
||||
<script src="scripts.js" type="text/javascript"></script>
|
||||
<script src="debounce.min.js" type="text/javascript"></script>
|
||||
|
||||
</body>
|
||||
120
resources/[esx_addons]/esx_dmvschool/html/ui_hu.html
Normal file
120
resources/[esx_addons]/esx_dmvschool/html/ui_hu.html
Normal file
@@ -0,0 +1,120 @@
|
||||
<head>
|
||||
<link href="https://fonts.googleapis.com/css?family=Open+Sans" rel="stylesheet">
|
||||
<link rel="stylesheet" href="styles.css" type="text/css">
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<div class="full-screen">
|
||||
<div class="question-container">
|
||||
<!-- header -->
|
||||
<div class="header">
|
||||
<h1>Autós Iskola</h1>
|
||||
</div>
|
||||
<!-- home -->
|
||||
<div class="body home">
|
||||
<div class="content">
|
||||
<!-- ICI BREVE PRESENTATION -->
|
||||
<center>
|
||||
<img src="dmv.png" class="logo">
|
||||
<br>
|
||||
<p class="bold-text">Köszöntünk az Autós Iskolában
|
||||
</center>
|
||||
<br>
|
||||
<center>All citizens of Los Santos must pass their exam before they can drive.
|
||||
<br>Take your time, answer with common sense, and do not answer randomly.
|
||||
<br>
|
||||
<br> Elméleti Teszt:
|
||||
<br> - A teszt ára $200, sikertelen teszt esetén nem kerül jóváírásra!
|
||||
<br> - Az autós iskola elfogad hitelt (ha nincs elég pénzed is megcsinálhatod De minuszban leszel!)
|
||||
<br> - Ha nem sikerül a teszt készülj fel jobban és próbáld meg később
|
||||
date.
|
||||
<br>
|
||||
<br> Vezetési Vizsga:
|
||||
<br> - A vizsga ára $500, sikertelen vizsga esetén nem kerül jóváírásra!
|
||||
<br> - Legyél mindig éber, kövesd az utasításokat és kerüld a baleseteket.</p>
|
||||
</center>
|
||||
</div>
|
||||
<div class="buttonspot">
|
||||
<a href="#" class="button btnQuestion">Indítás</a>
|
||||
</div>
|
||||
<div class="barre-progression">
|
||||
<h2>Haladás</h2>
|
||||
<progress class="progression" value="0" max="10">
|
||||
</div>
|
||||
</div>
|
||||
<!-- Question-->
|
||||
<div class="body questionnaire-container">
|
||||
<div class="content">
|
||||
<h2 id="questionNumero"></h2>
|
||||
<p id="question"></p>
|
||||
<form class="form" id="question-form">
|
||||
<div>
|
||||
<input type="radio" name="question" id="answerA" value="A">
|
||||
<label class="answerA"></label>
|
||||
</div>
|
||||
<div>
|
||||
<input type="radio" name="question" id="answerB" value="B">
|
||||
<label class="answerB"></label>
|
||||
</div>
|
||||
<div>
|
||||
<input type="radio" name="question" id="answerC" value="C">
|
||||
<label class="answerC"></label>
|
||||
</div>
|
||||
<div>
|
||||
<input type="radio" name="question" id="answerD" value="D">
|
||||
<label class="answerD"></label>
|
||||
</div>
|
||||
<button type="submit" id="submit" class="submit">Következő Kérdés</button>
|
||||
</form>
|
||||
</div>
|
||||
<div class="barre-progression">
|
||||
<h2>Haladás</h2>
|
||||
<progress class="progression" value="0" max="10">
|
||||
</div>
|
||||
</div>
|
||||
<!-- Results -->
|
||||
<div class="body resultGood">
|
||||
<div class="content">
|
||||
<center>
|
||||
<p class="bold-text">Szép munka!</p>
|
||||
<br>
|
||||
<br>Sikeresen kitöltötted az elméleti vizsgát
|
||||
<br>
|
||||
<br>Bezárhatod a tesztet és tovább mehetsz a vezetési vizsgára.
|
||||
</center>
|
||||
</div>
|
||||
<div class="buttonspot">
|
||||
<a href="#" class="button btnClose">Bezárás</a>
|
||||
</div>
|
||||
<div class="barre-progression">
|
||||
<h2>Haladás</h2>
|
||||
<progress class="progression" value="10" max="10">
|
||||
</div>
|
||||
</div>
|
||||
<div class="body resultBad">
|
||||
<div class="content">
|
||||
<center>
|
||||
<p class="bold-text">Nem sikerült a teszt!</p>
|
||||
<br>
|
||||
<br>Sajnos nem értél el elég pontot a vizsgán, próbáld újra később...
|
||||
<br>
|
||||
<br>
|
||||
</center>
|
||||
</div>
|
||||
<div class="buttonspot">
|
||||
<a href="#" class="button btnKick">Bezárás</a>
|
||||
</div>
|
||||
<div class="barre-progression">
|
||||
<h2>Haladás</h2>
|
||||
<progress class="progression" value="10" max="10">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<script src="nui://game/ui/jquery.js" type="text/javascript"></script>
|
||||
<script src="questions.js" type="text/javascript"></script>
|
||||
<script src="scripts.js" type="text/javascript"></script>
|
||||
<script src="debounce.min.js" type="text/javascript"></script>
|
||||
|
||||
</body>
|
||||
119
resources/[esx_addons]/esx_dmvschool/html/ui_it.html
Normal file
119
resources/[esx_addons]/esx_dmvschool/html/ui_it.html
Normal file
@@ -0,0 +1,119 @@
|
||||
<head>
|
||||
<link href="https://fonts.googleapis.com/css?family=Open+Sans" rel="stylesheet">
|
||||
<link rel="stylesheet" href="styles.css" type="text/css">
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<div class="full-screen">
|
||||
<div class="question-container">
|
||||
<!-- header -->
|
||||
<div class="header">
|
||||
<h1>Scuola Guida</h1>
|
||||
</div>
|
||||
<!-- home -->
|
||||
<div class="body home">
|
||||
<div class="content">
|
||||
<!-- ICI BREVE PRESENTATION -->
|
||||
<center>
|
||||
<img src="dmv.png" class="logo">
|
||||
<br>
|
||||
<p class="bold-text">Benvenuto alla Scuola Guida
|
||||
</center>
|
||||
<br>
|
||||
<center>Tutti i cittadini di Los Santos devono superare l'esame prima di poter governare.
|
||||
<br>Prenditi il tuo tempo, rispondi con il buon senso e non rispondere a caso.
|
||||
<br>
|
||||
<br> Prova di teoria
|
||||
<br> - Il test di teoria costa $ 200, questo non viene rimborsato se non superi il test.
|
||||
<br> - Non abbiate paura, la scuola guida accetta crediti, ma attenzione a non indebitarvi.
|
||||
<br> - Se fallisci il test la prima volta, non puoi ripeterlo immediatamente, eseguirlo in un secondo momento.
|
||||
<br>
|
||||
<br> Esame di guid
|
||||
<br> - L'esame di guida costa $ 500, proprio come l'esame di teoria, questo pagamento non verrà rimborsato in caso di esito negativo.
|
||||
<br> - Assicurati di stare attento durante la guida ed evitare incidenti!</p>
|
||||
</center>
|
||||
</div>
|
||||
<div class="buttonspot">
|
||||
<a href="#" class="button btnQuestion">Inizio</a>
|
||||
</div>
|
||||
<div class="barre-progression">
|
||||
<h2>Progressi</h2>
|
||||
<progress class="progression" value="0" max="10">
|
||||
</div>
|
||||
</div>
|
||||
<!-- Question-->
|
||||
<div class="body questionnaire-container">
|
||||
<div class="content">
|
||||
<h2 id="questionNumero"></h2>
|
||||
<p id="question"></p>
|
||||
<form class="form" id="question-form">
|
||||
<div>
|
||||
<input type="radio" name="question" id="answerA" value="A">
|
||||
<label class="answerA"></label>
|
||||
</div>
|
||||
<div>
|
||||
<input type="radio" name="question" id="answerB" value="B">
|
||||
<label class="answerB"></label>
|
||||
</div>
|
||||
<div>
|
||||
<input type="radio" name="question" id="answerC" value="C">
|
||||
<label class="answerC"></label>
|
||||
</div>
|
||||
<div>
|
||||
<input type="radio" name="question" id="answerD" value="D">
|
||||
<label class="answerD"></label>
|
||||
</div>
|
||||
<button type="submit" id="submit" class="submit">Prossima domanda</button>
|
||||
</form>
|
||||
</div>
|
||||
<div class="barre-progression">
|
||||
<h2>Progressi</h2>
|
||||
<progress class="progression" value="0" max="10">
|
||||
</div>
|
||||
</div>
|
||||
<!-- Results -->
|
||||
<div class="body resultGood">
|
||||
<div class="content">
|
||||
<center>
|
||||
<p class="bold-text">Buon lavoro!</p>
|
||||
<br>
|
||||
<br>Hai fatto bene durante l'esame.
|
||||
<br>
|
||||
<br>Puoi chiudere questa finestra e fare la tua prova su strada.
|
||||
</center>
|
||||
</div>
|
||||
<div class="buttonspot">
|
||||
<a href="#" class="button btnClose">Chiudi</a>
|
||||
</div>
|
||||
<div class="barre-progression">
|
||||
<h2>Progressi</h2>
|
||||
<progress class="progression" value="10" max="10">
|
||||
</div>
|
||||
</div>
|
||||
<div class="body resultBad">
|
||||
<div class="content">
|
||||
<center>
|
||||
<p class="bold-text">Hai fallito</p>
|
||||
<br>
|
||||
<br>Non eri pronto per questo test, riprova più tardi...
|
||||
<br>
|
||||
<br>
|
||||
</center>
|
||||
</div>
|
||||
<div class="buttonspot">
|
||||
<a href="#" class="button btnKick">Chiudi</a>
|
||||
</div>
|
||||
<div class="barre-progression">
|
||||
<h2>Progressi</h2>
|
||||
<progress class="progression" value="10" max="10">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<script src="nui://game/ui/jquery.js" type="text/javascript"></script>
|
||||
<script src="questions.js" type="text/javascript"></script>
|
||||
<script src="scripts.js" type="text/javascript"></script>
|
||||
<script src="debounce.min.js" type="text/javascript"></script>
|
||||
|
||||
</body>
|
||||
120
resources/[esx_addons]/esx_dmvschool/html/ui_pl.html
Normal file
120
resources/[esx_addons]/esx_dmvschool/html/ui_pl.html
Normal file
@@ -0,0 +1,120 @@
|
||||
<head>
|
||||
<link href="https://fonts.googleapis.com/css?family=Open+Sans" rel="stylesheet">
|
||||
<link rel="stylesheet" href="styles.css" type="text/css">
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<div class="full-screen">
|
||||
<div class="question-container">
|
||||
<!-- header -->
|
||||
<div class="header">
|
||||
<h1>Szkoła Jazdy</h1>
|
||||
</div>
|
||||
<!-- home -->
|
||||
<div class="body home">
|
||||
<div class="content">
|
||||
<!-- ICI BREVE PRESENTATION -->
|
||||
<center>
|
||||
<img src="dmv.png" class="logo">
|
||||
<br>
|
||||
<p class="bold-text">Witaj w szkole jazdy.
|
||||
</center>
|
||||
<br>
|
||||
<center>Wszyscy mieszkańcy naszej wyspy muszą zdać egzamin zanim zaczną jeździć po ulicach.
|
||||
<br>Nie spiesz się, odpowiadaj zgodnie z polskimi przepisami i nie odpowiadaj losowo.
|
||||
<br>
|
||||
<br> Egzamin teoretyczny
|
||||
<br> - Test teoretyczny kosztuje 200 $, kwota uiszczana za każde podejście.
|
||||
<br> - Jeśli nie zdasz za pierwszym razem możesz przystąpić ponownie
|
||||
<br> - Nie obawiaj się, szkoła jazdy akceptuje kredyt, ale uważaj, aby nie zadłużać się za bardzo.
|
||||
<br> - Jeśli nie zaliczysz egzaminu teoretycznego, nie możesz przystąpić do egzaminu praktycznego.
|
||||
<br>
|
||||
<br> Egzamin praktycznyt
|
||||
<br> - Egzamin praktyczny kosztuje 500 $, tak jak w przypadku praktyki kwota uiszczana jest za każde podejście.
|
||||
<br> - Zachowaj czujność podczas jazdy i unikaj wypadków!</p>
|
||||
</center>
|
||||
</div>
|
||||
<div class="buttonspot">
|
||||
<a href="#" class="button btnQuestion">Start</a>
|
||||
</div>
|
||||
<div class="barre-progression">
|
||||
<h2>Postęp</h2>
|
||||
<progress class="progression" value="0" max="10">
|
||||
</div>
|
||||
</div>
|
||||
<!-- Question-->
|
||||
<div class="body questionnaire-container">
|
||||
<div class="content">
|
||||
<h2 id="questionNumero"></h2>
|
||||
<p id="question"></p>
|
||||
<form class="form" id="question-form">
|
||||
<div>
|
||||
<input type="radio" name="question" id="answerA" value="A">
|
||||
<label class="answerA"></label>
|
||||
</div>
|
||||
<div>
|
||||
<input type="radio" name="question" id="answerB" value="B">
|
||||
<label class="answerB"></label>
|
||||
</div>
|
||||
<div>
|
||||
<input type="radio" name="question" id="answerC" value="C">
|
||||
<label class="answerC"></label>
|
||||
</div>
|
||||
<div>
|
||||
<input type="radio" name="question" id="answerD" value="D">
|
||||
<label class="answerD"></label>
|
||||
</div>
|
||||
<button type="submit" id="submit" class="submit">Następne pytanie</button>
|
||||
</form>
|
||||
</div>
|
||||
<div class="barre-progression">
|
||||
<h2>Postęp</h2>
|
||||
<progress class="progression" value="0" max="10">
|
||||
</div>
|
||||
</div>
|
||||
<!-- Results -->
|
||||
<div class="body resultGood">
|
||||
<div class="content">
|
||||
<center>
|
||||
<p class="bold-text">Gratulacje!</p>
|
||||
<br>
|
||||
<br>Dobrze się spisałeś podczas egzaminu.
|
||||
<br>
|
||||
<br>Możesz zamknąć to okno i przejść do egzaminu praktycznego.
|
||||
</center>
|
||||
</div>
|
||||
<div class="buttonspot">
|
||||
<a href="#" class="button btnClose">Zamknij</a>
|
||||
</div>
|
||||
<div class="barre-progression">
|
||||
<h2>Postęp</h2>
|
||||
<progress class="progression" value="10" max="10">
|
||||
</div>
|
||||
</div>
|
||||
<div class="body resultBad">
|
||||
<div class="content">
|
||||
<center>
|
||||
<p class="bold-text">Egzamin niezaliczony</p>
|
||||
<br>
|
||||
<br>Nie jesteś gotowy na ten test, spróbuj ponownie później ...
|
||||
<br>
|
||||
<br>
|
||||
</center>
|
||||
</div>
|
||||
<div class="buttonspot">
|
||||
<a href="#" class="button btnKick">Zamknij</a>
|
||||
</div>
|
||||
<div class="barre-progression">
|
||||
<h2>Postęp</h2>
|
||||
<progress class="progression" value="10" max="10">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<script src="nui://game/ui/jquery.js" type="text/javascript"></script>
|
||||
<script src="questions_pl.js" type="text/javascript"></script>
|
||||
<script src="scripts.js" type="text/javascript"></script>
|
||||
<script src="debounce.min.js" type="text/javascript"></script>
|
||||
|
||||
</body>
|
||||
119
resources/[esx_addons]/esx_dmvschool/html/ui_sr.html
Normal file
119
resources/[esx_addons]/esx_dmvschool/html/ui_sr.html
Normal file
@@ -0,0 +1,119 @@
|
||||
<head>
|
||||
<link href="https://fonts.googleapis.com/css?family=Open+Sans" rel="stylesheet">
|
||||
<link rel="stylesheet" href="styles.css" type="text/css">
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<div class="full-screen">
|
||||
<div class="question-container">
|
||||
<!-- header -->
|
||||
<div class="header">
|
||||
<h1>Škola Vožnje</h1>
|
||||
</div>
|
||||
<!-- home -->
|
||||
<div class="body home">
|
||||
<div class="content">
|
||||
<!-- ICI BREVE PRESENTATION -->
|
||||
<center>
|
||||
<img src="dmv.png" class="logo">
|
||||
<br>
|
||||
<p class="bold-text">Dobrodošli u Auto Školu
|
||||
</center>
|
||||
<br>
|
||||
<center>Svi građani moraju proći testove pre nego što mogu da voze.
|
||||
<br>Odvojite vremena i odgovorite zdravorazumski na pitanja, nemojte odgovarati nasumično.
|
||||
<br>
|
||||
<br> Test Teorije
|
||||
<br> - Test teorije košta 200$ i novac vam neće biti vraćen ako padnete.
|
||||
<br> - Auto Škola prihvata i plaćanja kreditnim karticama.
|
||||
<br> - Ako padnete test, ne možete odmah polagati ponovo, morate sačekati da prođe neko vreme.
|
||||
<br>
|
||||
<br> Test Vožnje
|
||||
<br> - Test vožnje košta 500$ i novac vam takođe neće biti vraćen ako padnete.
|
||||
<br> - Ostanite fokusirani tokom vožnje!</p>
|
||||
</center>
|
||||
</div>
|
||||
<div class="buttonspot">
|
||||
<a href="#" class="button btnQuestion">Započni</a>
|
||||
</div>
|
||||
<div class="barre-progression">
|
||||
<h2>Napredak</h2>
|
||||
<progress class="progression" value="0" max="10">
|
||||
</div>
|
||||
</div>
|
||||
<!-- Question-->
|
||||
<div class="body questionnaire-container">
|
||||
<div class="content">
|
||||
<h2 id="questionNumero"></h2>
|
||||
<p id="question"></p>
|
||||
<form class="form" id="question-form">
|
||||
<div>
|
||||
<input type="radio" name="question" id="answerA" value="A">
|
||||
<label class="answerA"></label>
|
||||
</div>
|
||||
<div>
|
||||
<input type="radio" name="question" id="answerB" value="B">
|
||||
<label class="answerB"></label>
|
||||
</div>
|
||||
<div>
|
||||
<input type="radio" name="question" id="answerC" value="C">
|
||||
<label class="answerC"></label>
|
||||
</div>
|
||||
<div>
|
||||
<input type="radio" name="question" id="answerD" value="D">
|
||||
<label class="answerD"></label>
|
||||
</div>
|
||||
<button type="submit" id="submit" class="submit">Sledeće Pitanje</button>
|
||||
</form>
|
||||
</div>
|
||||
<div class="barre-progression">
|
||||
<h2>Napredak</h2>
|
||||
<progress class="progression" value="0" max="10">
|
||||
</div>
|
||||
</div>
|
||||
<!-- Results -->
|
||||
<div class="body resultGood">
|
||||
<div class="content">
|
||||
<center>
|
||||
<p class="bold-text">Čestitamo!</p>
|
||||
<br>
|
||||
<br>Uradili ste dobro test.
|
||||
<br>
|
||||
<br>Možete zatvoriti ovaj prozor i preći na polaganje vožnje.
|
||||
</center>
|
||||
</div>
|
||||
<div class="buttonspot">
|
||||
<a href="#" class="button btnClose">Zatvori</a>
|
||||
</div>
|
||||
<div class="barre-progression">
|
||||
<h2>Napredak</h2>
|
||||
<progress class="progression" value="10" max="10">
|
||||
</div>
|
||||
</div>
|
||||
<div class="body resultBad">
|
||||
<div class="content">
|
||||
<center>
|
||||
<p class="bold-text">Vi ste pali!</p>
|
||||
<br>
|
||||
<br>Niste bili spremni za test, pokušajte ponovo kasnije...
|
||||
<br>
|
||||
<br>
|
||||
</center>
|
||||
</div>
|
||||
<div class="buttonspot">
|
||||
<a href="#" class="button btnKick">Zatvori</a>
|
||||
</div>
|
||||
<div class="barre-progression">
|
||||
<h2>Napredak</h2>
|
||||
<progress class="progression" value="10" max="10">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<script src="nui://game/ui/jquery.js" type="text/javascript"></script>
|
||||
<script src="questions.js" type="text/javascript"></script>
|
||||
<script src="scripts.js" type="text/javascript"></script>
|
||||
<script src="debounce.min.js" type="text/javascript"></script>
|
||||
|
||||
</body>
|
||||
121
resources/[esx_addons]/esx_dmvschool/html/ui_sv.html
Normal file
121
resources/[esx_addons]/esx_dmvschool/html/ui_sv.html
Normal file
@@ -0,0 +1,121 @@
|
||||
<head>
|
||||
<link href="https://fonts.googleapis.com/css?family=Open+Sans" rel="stylesheet">
|
||||
<link rel="stylesheet" href="styles.css" type="text/css">
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<div class="full-screen">
|
||||
<div class="question-container">
|
||||
<!-- header -->
|
||||
<div class="header">
|
||||
<h1>Körskola</h1>
|
||||
</div>
|
||||
<!-- home -->
|
||||
<div class="body home">
|
||||
<div class="content">
|
||||
<!-- ICI BREVE PRESENTATION -->
|
||||
<center>
|
||||
<img src="dmv.png" class="logo">
|
||||
<br>
|
||||
<p class="bold-text">Välkommen till körskolan
|
||||
</center>
|
||||
<br>
|
||||
<center>Alla medborgare i Los Santos måste ha körkort för att få behörigheten att köra fordon
|
||||
<br>Ta din tid, svara med sunt förnuft och svara inte slumpmässigt.
|
||||
<br>
|
||||
<br> Kunskapsprov
|
||||
<br> - Det teoretiska provet kostar 200 SEK, och kommer ej återbetalas om du misslyckas.
|
||||
<br> - Var inte rädd, körskolan accepterar kredit. Var dock försiktig så att du inte får en stor skuld.
|
||||
<br> - Om du misslyckas med testet första gången kan du inte omedelbart återta det, du måste ta det på ett senare
|
||||
tillfälle.
|
||||
<br>
|
||||
<br> Uppkörning
|
||||
<br> - Uppkörningen kostar 500 SEK, precis som den teoretiska delen. Denna betalning återbetalas ej om du
|
||||
misslyckas.
|
||||
<br> - Se till att du är uppmärksam vid körning och försök undvik olyckor!</p>
|
||||
</center>
|
||||
</div>
|
||||
<div class="buttonspot">
|
||||
<a href="#" class="button btnQuestion">Starta</a>
|
||||
</div>
|
||||
<div class="barre-progression">
|
||||
<h2>Framsteg</h2>
|
||||
<progress class="progression" value="0" max="10">
|
||||
</div>
|
||||
</div>
|
||||
<!-- Question-->
|
||||
<div class="body questionnaire-container">
|
||||
<div class="content">
|
||||
<h2 id="questionNumero"></h2>
|
||||
<p id="question"></p>
|
||||
<form class="form" id="question-form">
|
||||
<div>
|
||||
<input type="radio" name="question" id="answerA" value="A">
|
||||
<label class="answerA"></label>
|
||||
</div>
|
||||
<div>
|
||||
<input type="radio" name="question" id="answerB" value="B">
|
||||
<label class="answerB"></label>
|
||||
</div>
|
||||
<div>
|
||||
<input type="radio" name="question" id="answerC" value="C">
|
||||
<label class="answerC"></label>
|
||||
</div>
|
||||
<div>
|
||||
<input type="radio" name="question" id="answerD" value="D">
|
||||
<label class="answerD"></label>
|
||||
</div>
|
||||
<button type="submit" id="submit" class="submit">Nästa fråga</button>
|
||||
</form>
|
||||
</div>
|
||||
<div class="barre-progression">
|
||||
<h2>Framsteg</h2>
|
||||
<progress class="progression" value="0" max="10">
|
||||
</div>
|
||||
</div>
|
||||
<!-- Results -->
|
||||
<div class="body resultGood">
|
||||
<div class="content">
|
||||
<center>
|
||||
<p class="bold-text">Bra jobbat!</p>
|
||||
<br>
|
||||
<br>Du har klarat teoretiska delen av körkortet
|
||||
<br>
|
||||
<br>Du kan nu stänga det här fönstret och ta uppkörningen!
|
||||
</center>
|
||||
</div>
|
||||
<div class="buttonspot">
|
||||
<a href="#" class="button btnClose">Stäng</a>
|
||||
</div>
|
||||
<div class="barre-progression">
|
||||
<h2>Framsteg</h2>
|
||||
<progress class="progression" value="10" max="10">
|
||||
</div>
|
||||
</div>
|
||||
<div class="body resultBad">
|
||||
<div class="content">
|
||||
<center>
|
||||
<p class="bold-text">Du misslyckades</p>
|
||||
<br>
|
||||
<br>Du var inte redo för testet, försök igen senare...
|
||||
<br>
|
||||
<br>
|
||||
</center>
|
||||
</div>
|
||||
<div class="buttonspot">
|
||||
<a href="#" class="button btnKick">Stäng</a>
|
||||
</div>
|
||||
<div class="barre-progression">
|
||||
<h2>Framsteg</h2>
|
||||
<progress class="progression" value="10" max="10">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<script src="nui://game/ui/jquery.js" type="text/javascript"></script>
|
||||
<script src="questions.js" type="text/javascript"></script>
|
||||
<script src="scripts.js" type="text/javascript"></script>
|
||||
<script src="debounce.min.js" type="text/javascript"></script>
|
||||
|
||||
</body>
|
||||
30
resources/[esx_addons]/esx_dmvschool/locales/de.lua
Normal file
30
resources/[esx_addons]/esx_dmvschool/locales/de.lua
Normal file
@@ -0,0 +1,30 @@
|
||||
Locales['de'] = {
|
||||
['you_paid'] = 'Du zahlst %s€ an die Fahrschule!',
|
||||
['go_next_point'] = 'Fahre zum nächsten Punkt!',
|
||||
['in_town_speed'] = 'Du betrittst die Stadt! Neues Geschwindigkeitslimit: %s km/h',
|
||||
['next_point_speed'] = 'Fahre zum nächsten Punkt. Neues Geschwindigkeitslimit: %s km/h',
|
||||
['stop_for_ped'] = '~r~Stoppe, und lasse den Fußgänger den Weg passieren!',
|
||||
['good_lets_cont'] = 'Gut! Weiter so.',
|
||||
['stop_look_left'] = '~r~Stopp und gucke Links. Geschwindigkeitslimit: %s km/h',
|
||||
['good_turn_right'] = 'Gut, biege rechts ab, und folge der Linie!',
|
||||
['watch_traffic_lightson'] = 'Gucke auf den Vehrkehr und schalte deine Lichter an!',
|
||||
['stop_for_passing'] = '~r~Stopp für Fahrende fahrzeuge!',
|
||||
['hway_time'] = 'Es ist Zeit auf der Autobahn zu fahren! Neues Geschwindigkeitslimit: %s km/h',
|
||||
['gratz_stay_alert'] = 'Ich bin Stolz auf dich! Jedoch bleibe ~r~wachsam während du fährst!',
|
||||
['passed_test'] = 'Du hast den Test bestanden! Glückwunsch!',
|
||||
['failed_test'] = 'Du hast ~r~leider den Test nicht bestanden! Viel Glück beim nächsten mal!',
|
||||
['theory_test'] = 'Theoretische Fahrprüfung',
|
||||
['road_test_car'] = 'Auto Führerscheinprüfung',
|
||||
['road_test_bike'] = 'Motorrad Führerscheinprüfung',
|
||||
['road_test_truck'] = 'LKW Führerscheinprüfung',
|
||||
['school_item'] = '%s€',
|
||||
['driving_school'] = 'Fahrschule',
|
||||
['press_open_menu'] = 'Drücke [E] um das Menü zu öffnen!',
|
||||
['driving_school_blip'] = 'Fahrschule',
|
||||
['driving_test_complete'] = 'Führerschein Test beendet!',
|
||||
['driving_too_fast'] = '~r~Du bist zu Schnell Das derzeitige Geschwindigkeitslimit beträgt: %s km/h!',
|
||||
['test_failed_go_to_start_point'] = '~r~Go to the starting point, because you failed the test!',
|
||||
['errors'] = 'Fehler: ~r~%s/%s',
|
||||
['you_damaged_veh'] = 'Du hast das Fahrzeug beschädigt!',
|
||||
['not_enough_money'] = 'Du hast nicht genug Geld!',
|
||||
}
|
||||
30
resources/[esx_addons]/esx_dmvschool/locales/en.lua
Normal file
30
resources/[esx_addons]/esx_dmvschool/locales/en.lua
Normal file
@@ -0,0 +1,30 @@
|
||||
Locales['en'] = {
|
||||
['you_paid'] = 'you paid $%s to the DMV school',
|
||||
['go_next_point'] = 'go to the next point!',
|
||||
['in_town_speed'] = 'entered town, pay attention to your speed! Speed Limit: %s km/h',
|
||||
['next_point_speed'] = 'go to the next point! Speed Limit: %s km/h',
|
||||
['stop_for_ped'] = '~r~Stop for the pedestrian crossing',
|
||||
['good_lets_cont'] = 'Good, continue.',
|
||||
['stop_look_left'] = '~r~Stop and look left. Speed Limit: %s km/h',
|
||||
['good_turn_right'] = 'Good, turn right and follow the line',
|
||||
['watch_traffic_lightson'] = 'watch the traffic and turn on your lights!',
|
||||
['stop_for_passing'] = '~r~Stop for passing vehicles!',
|
||||
['hway_time'] = 'it\'s time to drive on the highway! Speed Limit: %s km/h',
|
||||
['gratz_stay_alert'] = 'i\'m impressed, but don\'t forget to stay ~r~alert whilst driving!',
|
||||
['passed_test'] = 'you passed the test, congratulations!',
|
||||
['failed_test'] = 'you ~r~failed the test, better luck next time!',
|
||||
['theory_test'] = 'theoretical Driving Test',
|
||||
['road_test_car'] = 'driving Test',
|
||||
['road_test_bike'] = 'motorcycle Skills Test',
|
||||
['road_test_truck'] = 'truck Skills Test',
|
||||
['school_item'] = '$%s',
|
||||
['driving_school'] = 'driving School',
|
||||
['press_open_menu'] = 'press [E] to open the menu',
|
||||
['driving_school_blip'] = 'driving School',
|
||||
['driving_test_complete'] = 'driving test completed',
|
||||
['driving_too_fast'] = '~r~You\'re driving too fast, the current speed limit is: %s km/h!',
|
||||
['test_failed_go_to_start_point'] = '~r~Go to the starting point, because you failed the test!',
|
||||
['errors'] = 'mistakes: ~r~%s/%s',
|
||||
['you_damaged_veh'] = 'you damaged the vehicle',
|
||||
['not_enough_money'] = 'You don\'t have enough money',
|
||||
}
|
||||
30
resources/[esx_addons]/esx_dmvschool/locales/es.lua
Normal file
30
resources/[esx_addons]/esx_dmvschool/locales/es.lua
Normal file
@@ -0,0 +1,30 @@
|
||||
Locales['es'] = {
|
||||
['you_paid'] = 'Pagaste %s$ a la autoescuela',
|
||||
['go_next_point'] = '¡Vete al siguiente punto!',
|
||||
['in_town_speed'] = '¡Entraste a la ciudad, presta atención a tu velocidad! Límite de velocidad: %s km/h',
|
||||
['next_point_speed'] = '¡Vete al siguiente punto! Límite de velocidad: %s km/h',
|
||||
['stop_for_ped'] = '~r~Para en el paso de peatones',
|
||||
['good_lets_cont'] = 'Bien, continua',
|
||||
['stop_look_left'] = '~r~Para y mira a la izquierda. Límite de velocidad: %s km/h',
|
||||
['good_turn_right'] = 'Bien, gira a la derecha y sigue la línea',
|
||||
['watch_traffic_lightson'] = '¡Mira el tráfico y enciende las luces!',
|
||||
['stop_for_passing'] = '¡~r~Para para que pasen los vehículos!',
|
||||
['hway_time'] = '¡Es hora de conducir por la autopista! Límite de velocidad: %s km/h',
|
||||
['gratz_stay_alert'] = '¡Estoy impresionado pero no dejes de estar ~r~alerta mientras conduces!',
|
||||
['passed_test'] = 'Has aprobado el examen, ¡Enorabuena!',
|
||||
['failed_test'] = 'Has ~r~suspendido el examen, ¡Más suerte la próxima vez!',
|
||||
['theory_test'] = 'Examen teórico de conducir',
|
||||
['road_test_car'] = 'Examen práctico de conducir',
|
||||
['road_test_bike'] = 'Examen práctico de moto',
|
||||
['road_test_truck'] = 'Examen práctico de camiones',
|
||||
['school_item'] = '%s$',
|
||||
['driving_school'] = 'Escuela de conducción',
|
||||
['press_open_menu'] = 'Pulsa [E] para abrir el menú',
|
||||
['driving_school_blip'] = 'Autoescuela',
|
||||
['driving_test_complete'] = 'Examen de conducir finalizado',
|
||||
['driving_too_fast'] = '¡~r~Estás conduciendo muy rápido, el límite de velocidad actual es: %s km/h!',
|
||||
['test_failed_go_to_start_point'] = '~r~Go to the starting point, because you failed the test!',
|
||||
['errors'] = 'Fallos: ~r~%s / %s',
|
||||
['you_damaged_veh'] = '¡Has dañado el vehículo!',
|
||||
['not_enough_money'] = 'No tienes suficiente dinero'
|
||||
}
|
||||
30
resources/[esx_addons]/esx_dmvschool/locales/fi.lua
Normal file
30
resources/[esx_addons]/esx_dmvschool/locales/fi.lua
Normal file
@@ -0,0 +1,30 @@
|
||||
Locales['fi'] = {
|
||||
['you_paid'] = 'Sinä maksoit $%s autokoululle',
|
||||
['go_next_point'] = 'Mene seuraavaan pisteeseen.',
|
||||
['in_town_speed'] = 'Saavuit kaupunkiin! Seuraa nopeuttasi Nopeusrajoitus: %s km/h',
|
||||
['next_point_speed'] = 'mene seuraavaan pisteeseen Nopeusrajoitus: %s km/h',
|
||||
['stop_for_ped'] = '~r~Pysähdy katso tietä ylittäviä jalankulikijoita',
|
||||
['good_lets_cont'] = 'Hyvä, jatkakaa.',
|
||||
['stop_look_left'] = '~r~Pysähdy ja katso vasemmalle. Nopeusrajoitus: %s km/h',
|
||||
['good_turn_right'] = 'Hyvä, käänny oikealle ja seuraa kaistaa',
|
||||
['watch_traffic_lightson'] = 'Seuraa liikennettä, ja käänny kun valot ovat vihreät!',
|
||||
['stop_for_passing'] = '~r~Pysähdy ohi menevien autojen vuoksi',
|
||||
['hway_time'] = 'On aika mennä moottoritielle. Nopeusrajoitus: %s km/h',
|
||||
['gratz_stay_alert'] = 'Onnitelut, ole ~r~tarkkana kun ajat!',
|
||||
['passed_test'] = 'Sinä läpäisit kokeen',
|
||||
['failed_test'] = 'Sinä ~r~epäonnistuit kokeessa',
|
||||
['theory_test'] = 'Teoriakoe',
|
||||
['road_test_car'] = 'Ajokoe',
|
||||
['road_test_bike'] = 'Moottoripyörä ajokoe',
|
||||
['road_test_truck'] = 'Rekka ajokoe',
|
||||
['school_item'] = '$%s',
|
||||
['driving_school'] = 'Autokoulu',
|
||||
['press_open_menu'] = 'Paina [E] hankkiaksesi ajokortti',
|
||||
['driving_school_blip'] = 'Autokoulu',
|
||||
['driving_test_complete'] = 'ajokoe suoritettu',
|
||||
['driving_too_fast'] = '~r~Ajat liian nopeaa! Hidasta! Nopeusrajoitus: %s km/h!',
|
||||
['test_failed_go_to_start_point'] = '~r~Go to the starting point, because you failed the test!',
|
||||
['errors'] = 'mistakes: ~r~%s/%s',
|
||||
['you_damaged_veh'] = 'Vahingoitit ajoneuvoa. Aja varovaisemmin...',
|
||||
['not_enough_money'] = 'Sinulla ei ole tarpeeksi rahaa'
|
||||
}
|
||||
30
resources/[esx_addons]/esx_dmvschool/locales/fr.lua
Normal file
30
resources/[esx_addons]/esx_dmvschool/locales/fr.lua
Normal file
@@ -0,0 +1,30 @@
|
||||
Locales['fr'] = {
|
||||
['you_paid'] = 'Vous avez payé $%s',
|
||||
['go_next_point'] = 'Allez vers le prochain passage!',
|
||||
['in_town_speed'] = 'Entrée en ville, attention à votre vitesse! Vitesse limite: %s km/h',
|
||||
['next_point_speed'] = 'Allez vers le prochain passage! Vitesse limite: %s km/h',
|
||||
['stop_for_ped'] = 'Faites rapidement un ~r~stop pour le piéton qui traverse',
|
||||
['good_lets_cont'] = 'Bien! Continuons!',
|
||||
['stop_look_left'] = 'Marquer rapidement un ~r~stop et regardez à votre gauche. Vitesse limite: %s km/h',
|
||||
['good_turn_right'] = 'Bien! prenez à droite et suivez votre file',
|
||||
['watch_traffic_lightson'] = 'Observez le traffic allumez vos feux!',
|
||||
['stop_for_passing'] = 'Arrêtez-vous pour laisser passer les véhicules!',
|
||||
['hway_time'] = 'Il est temps d\'aller sur l\'autoroute! Vitesse limite: %s km/h',
|
||||
['gratz_stay_alert'] = 'Bravo, restez vigiliant!',
|
||||
['passed_test'] = 'Vous avez réussi le test',
|
||||
['failed_test'] = 'Vous avez ~r~raté le test',
|
||||
['theory_test'] = 'Examen du code',
|
||||
['road_test_car'] = 'Examen de conduite [voiture]',
|
||||
['road_test_bike'] = 'Examen de conduite [moto]',
|
||||
['road_test_truck'] = 'Examen de conduite [camion]',
|
||||
['school_item'] = '$%s',
|
||||
['driving_school'] = 'École de conduite',
|
||||
['press_open_menu'] = 'Appuyez sur [E] pour ouvrir le menu',
|
||||
['driving_school_blip'] = 'auto-école',
|
||||
['driving_test_complete'] = 'Test de conduite terminé',
|
||||
['driving_too_fast'] = 'Vous roulez trop vite, vitesse limite: %s km/h!',
|
||||
['test_failed_go_to_start_point'] = '~r~Go to the starting point, because you failed the test!',
|
||||
['errors'] = 'erreurs: ~r~%s/%s',
|
||||
['you_damaged_veh'] = 'Vous avez endommagé votre véhicule',
|
||||
['not_enough_money'] = 'Tu n\'as pas assez d\'argent'
|
||||
}
|
||||
30
resources/[esx_addons]/esx_dmvschool/locales/hu.lua
Normal file
30
resources/[esx_addons]/esx_dmvschool/locales/hu.lua
Normal file
@@ -0,0 +1,30 @@
|
||||
Locales['hu'] = {
|
||||
['you_paid'] = 'Fizettél $%s az autósiskolának iskolának!',
|
||||
['go_next_point'] = 'Menj a kövtkező ponthoz!',
|
||||
['in_town_speed'] = 'Beértél a városba, figyelj a sebességedre! A sebesség határ: %s km/h',
|
||||
['next_point_speed'] = 'Menj a következő ponthoz! Sebesség határ: %s km/h',
|
||||
['stop_for_ped'] = 'Mindig ~r~álj meg a zebránál!',
|
||||
['good_lets_cont'] = 'Ügyes, folytasd a vezetést.',
|
||||
['stop_look_left'] = '~r~Álj meg és néz balra. Sebesség határ: %s km/h',
|
||||
['good_turn_right'] = 'Ügyes, fordulj jobbra, és kövesd a vonalat',
|
||||
['watch_traffic_lightson'] = 'Nézd a forgalmat, és kapcsold fel a fényszóróidat!',
|
||||
['stop_for_passing'] = '~r~Álj meg a keresztező autóknak!',
|
||||
['hway_time'] = 'Itt az idő, hogy először vezess autópályán! Sebesség határ: %s km/h',
|
||||
['gratz_stay_alert'] = 'Levagyok nyűgözve, de sose feledd, ~r~NE vezess fáradtan!',
|
||||
['passed_test'] = 'Átmentél a vizsgán, gratulálok!',
|
||||
['failed_test'] = '~r~Megbuktál a vizsgán, pár óra plusz vezetés után próbáld újra!',
|
||||
['theory_test'] = 'Elméleti vizsga',
|
||||
['road_test_car'] = 'Személyautó vizsga',
|
||||
['road_test_bike'] = ' Nagy motor vizsga',
|
||||
['road_test_truck'] = 'Teher autó vizsga',
|
||||
['school_item'] = '$%s',
|
||||
['driving_school'] = 'Autósiskola',
|
||||
['press_open_menu'] = 'Nyomd meg a(z) [E] gombot, hogy megnyisd a menüt.',
|
||||
['driving_school_blip'] = 'Autósiskola',
|
||||
['driving_test_complete'] = 'A vizsga sikeres volt',
|
||||
['driving_too_fast'] = '~r~Túl gyorsan hajtasz,a végén még megállít a rendőr. A sebesség határ: %s km/h!',
|
||||
['test_failed_go_to_start_point'] = '~r~Menj a kezdőpontra mert a elbuktad a vizsgát!',
|
||||
['errors'] = 'Hibapontok: ~r~%s/%s',
|
||||
['you_damaged_veh'] = 'Összetörted az autót, ez drága lesz.',
|
||||
['not_enough_money'] = 'Nincs elég pénzed!',
|
||||
}
|
||||
30
resources/[esx_addons]/esx_dmvschool/locales/it.lua
Normal file
30
resources/[esx_addons]/esx_dmvschool/locales/it.lua
Normal file
@@ -0,0 +1,30 @@
|
||||
Locales['it'] = {
|
||||
['you_paid'] = 'hai pagato $%s alla scuola guida',
|
||||
['go_next_point'] = 'vai al punto successivo!',
|
||||
['in_town_speed'] = 'sei entrato in città, fai attenzione alla tua velocità! Limite di velocità: %s km/h',
|
||||
['next_point_speed'] = 'vai al punto successivo! Limite di velocità: %s km/h',
|
||||
['stop_for_ped'] = '~r~Stop per il passaggio pedonale',
|
||||
['good_lets_cont'] = 'Bene, continua.',
|
||||
['stop_look_left'] = '~r~Fermati e guarda a sinistra. Limite di velocità: %s km/h',
|
||||
['good_turn_right'] = 'Bene, gira a destra e segui la linea',
|
||||
['watch_traffic_lightson'] = 'guarda il traffico e accendi le luci!',
|
||||
['stop_for_passing'] = '~r~Fermati per i veicoli in transito!',
|
||||
['hway_time'] = 'è ora di guidare in autostrada! Limite di velocità: %s km/h',
|
||||
['gratz_stay_alert'] = 'sono impressionato, ma non dimenticare di stare in ~r~allerta mentre guidi!',
|
||||
['passed_test'] = 'hai superato il test, congratulazioni!',
|
||||
['failed_test'] = '~r~non hai superato il test, buona fortuna per la prossima volta!',
|
||||
['theory_test'] = 'Quiz teorico',
|
||||
['road_test_car'] = 'Test pratico auto',
|
||||
['road_test_bike'] = 'Test pratico moto',
|
||||
['road_test_truck'] = 'Test pratico camion',
|
||||
['school_item'] = '$%s',
|
||||
['driving_school'] = 'scuola guida',
|
||||
['press_open_menu'] = 'premi [E] per aprire il menu',
|
||||
['driving_school_blip'] = 'scuola guida',
|
||||
['driving_test_complete'] = 'test di guida completato',
|
||||
['driving_too_fast'] = '~r~stai guidando troppo veloce, il limite di velocità attuale è: %s km/h!',
|
||||
['test_failed_go_to_start_point'] = '~r~Go to the starting point, because you failed the test!',
|
||||
['errors'] = 'errori: ~r~%s/%s',
|
||||
['you_damaged_veh'] = 'hai danneggiato il veicolo',
|
||||
['not_enough_money'] = 'non hai abbastanza soldi',
|
||||
}
|
||||
30
resources/[esx_addons]/esx_dmvschool/locales/nl.lua
Normal file
30
resources/[esx_addons]/esx_dmvschool/locales/nl.lua
Normal file
@@ -0,0 +1,30 @@
|
||||
Locales['nl'] = {
|
||||
['you_paid'] = 'je betaalde €%s aan het CBR',
|
||||
['go_next_point'] = 'ga naar het volgende punt!',
|
||||
['in_town_speed'] = 'We zitten in de stad, let op je snelheid! Snelheids limiet: %s km/h',
|
||||
['next_point_speed'] = 'Ga naar het volgende punt! Snelheids limiet: %s km/h',
|
||||
['stop_for_ped'] = '~r~Stop voor de overstekende voetganger',
|
||||
['good_lets_cont'] = 'Goed, ga verder.',
|
||||
['stop_look_left'] = '~r~Stop en kijk naar links Snelheids limiet: %s km/h',
|
||||
['good_turn_right'] = 'Goed, ga naar rechts en volg de weg.',
|
||||
['watch_traffic_lightson'] = 'Let op het verkeer en zet je lichten aan!',
|
||||
['stop_for_passing'] = '~r~Stop voor passerende voertuigen!',
|
||||
['hway_time'] = 'Het is tijd om op de snelweg te rijden! Snelheids limiet: %s km/h',
|
||||
['gratz_stay_alert'] = 'Ik ben onder de indruk, vergeet tijdens het rijden niet om ~r~alert te blijven!',
|
||||
['passed_test'] = 'je bent geslaagd, gefeliciteerd!',
|
||||
['failed_test'] = 'je bent ~r~gezakt~s~, volgende keer beter!',
|
||||
['theory_test'] = 'Theorie examen',
|
||||
['road_test_car'] = 'Praktijk examen',
|
||||
['road_test_bike'] = 'Motor examen',
|
||||
['road_test_truck'] = 'Vrachtwagen examen',
|
||||
['school_item'] = '€%s',
|
||||
['driving_school'] = 'CBR',
|
||||
['press_open_menu'] = 'klik op [E] om het menu te openen',
|
||||
['driving_school_blip'] = 'CBR',
|
||||
['driving_test_complete'] = 'Praktijk examen gedaan',
|
||||
['driving_too_fast'] = '~r~Je rijd te snel! De snelheids limiet is: %s km/h!',
|
||||
['test_failed_go_to_start_point'] = '~r~Go to the starting point, because you failed the test!',
|
||||
['errors'] = 'Fouten: ~r~%s/%s',
|
||||
['you_damaged_veh'] = 'Je hebt het voertuig beschadigd',
|
||||
['not_enough_money'] = 'Je hebt niet genoeg geld',
|
||||
}
|
||||
30
resources/[esx_addons]/esx_dmvschool/locales/pl.lua
Normal file
30
resources/[esx_addons]/esx_dmvschool/locales/pl.lua
Normal file
@@ -0,0 +1,30 @@
|
||||
Locales['pl'] = {
|
||||
['you_paid'] = 'zapłaciłes $%s dla szkoły jazdy.',
|
||||
['go_next_point'] = 'udaj się do nastepnego punktu!',
|
||||
['in_town_speed'] = 'wjeżdżasz do miasta, zachowaj ostrożność! Ograniczenie prędkości: %s km/h',
|
||||
['next_point_speed'] = 'udaj się do nastepnego punktu! Ograniczenie prędkości: %s km/h',
|
||||
['stop_for_ped'] = '~r~Stop przejście dla pieszych',
|
||||
['good_lets_cont'] = 'Świetnie, kontynuuj.',
|
||||
['stop_look_left'] = '~r~Stop spójrz w lewo. Ograniczenie prędkości: %s km/h',
|
||||
['good_turn_right'] = 'Świetnie, skręć w prawo i podążaj za linią',
|
||||
['watch_traffic_lightson'] = 'obserwuj ruch uliczny i włącz światła!',
|
||||
['stop_for_passing'] = '~r~Stop przepuść przejeżdźające pojazdy!',
|
||||
['hway_time'] = 'czas na autostradę! Ograniczenie prędkości: %s km/h',
|
||||
['gratz_stay_alert'] = 'jestem pod wrażeniem, ale nie zapomnij się zatrzymać ~r~alert podczas jazdy!',
|
||||
['passed_test'] = 'Zdałeś egzamin, gratulacje!',
|
||||
['failed_test'] = '~r~Oblałeś egzamin, powodzenia następnym razem!',
|
||||
['theory_test'] = 'ezgamin Teoretyczny',
|
||||
['road_test_car'] = 'egzamin praktyczny kat. B',
|
||||
['road_test_bike'] = 'egzamin praktyczny kat. A',
|
||||
['road_test_truck'] = 'egzamin praktyczny kat. C',
|
||||
['school_item'] = '$%s',
|
||||
['driving_school'] = 'szkoła jazdy',
|
||||
['press_open_menu'] = 'wciśnij [E] by otworzyć menu',
|
||||
['driving_school_blip'] = 'ośrodek egzaminacyjny',
|
||||
['driving_test_complete'] = 'test praktyczny zakończony',
|
||||
['driving_too_fast'] = '~r~Przekroczenie prędkości! , limit prędkości to: %s km/h!',
|
||||
['test_failed_go_to_start_point'] = '~r~Go to the starting point, because you failed the test!',
|
||||
['errors'] = 'błędy: ~r~%s/%s',
|
||||
['you_damaged_veh'] = 'uszkodziłeś auto',
|
||||
['not_enough_money'] = 'Nie masz wystarczająco dużo pieniędzy'
|
||||
}
|
||||
30
resources/[esx_addons]/esx_dmvschool/locales/sr.lua
Normal file
30
resources/[esx_addons]/esx_dmvschool/locales/sr.lua
Normal file
@@ -0,0 +1,30 @@
|
||||
Locales['sr'] = {
|
||||
['you_paid'] = 'Platili ste $%s AutoŠkoli',
|
||||
['go_next_point'] = 'Idite do sledeće tačke!',
|
||||
['in_town_speed'] = 'Ušli ste u grad, obratite pažnju na brzinu! Ograničenje Brzine: %s km/h',
|
||||
['next_point_speed'] = 'Idite do sledeće tačke! Ograničenje Brzine: %s km/h',
|
||||
['stop_for_ped'] = '~r~Stanite da propustite pešaka',
|
||||
['good_lets_cont'] = 'Odlično, nastavite.',
|
||||
['stop_look_left'] = '~r~Stanite i pogledajte levo. Ograničenje Brzine: %s km/h',
|
||||
['good_turn_right'] = 'Odlično, skrenite desno i nastavite pravo',
|
||||
['watch_traffic_lightson'] = 'Pratite semafore i uključite vasa svetla!',
|
||||
['stop_for_passing'] = '~r~Stanite da propustite vozila!',
|
||||
['hway_time'] = 'Vreme je da vozimo na autoputu! Ograničenje Brzine: %s km/h',
|
||||
['gratz_stay_alert'] = 'Impresioniran sam, ali ne zaboravite da ostanete ~r~fokusirani dok vozite!',
|
||||
['passed_test'] = 'Položili ste test, čestitamo!',
|
||||
['failed_test'] = 'Vi ste ~r~pali test, više sreće drugi put!',
|
||||
['theory_test'] = 'Teorijski Test',
|
||||
['road_test_car'] = 'Polaganje Vožnje',
|
||||
['road_test_bike'] = 'Test za Motor',
|
||||
['road_test_truck'] = 'Test za Kamion',
|
||||
['school_item'] = '$%s',
|
||||
['driving_school'] = 'AutoSkola',
|
||||
['press_open_menu'] = 'Pritisnite [E] da otvorite meni',
|
||||
['driving_school_blip'] = 'AutoŠkola',
|
||||
['driving_test_complete'] = 'Polaganje vožnje završeno',
|
||||
['driving_too_fast'] = '~r~Vozite prebrzo, trenutno ograničenje brzine: %s km/h!',
|
||||
['test_failed_go_to_start_point'] = '~r~Go to the starting point, because you failed the test!',
|
||||
['errors'] = 'Greške: ~r~%s/%s',
|
||||
['you_damaged_veh'] = 'Oštetili ste vozilo',
|
||||
['not_enough_money'] = 'Nemate dovoljno novca',
|
||||
}
|
||||
30
resources/[esx_addons]/esx_dmvschool/locales/sv.lua
Normal file
30
resources/[esx_addons]/esx_dmvschool/locales/sv.lua
Normal file
@@ -0,0 +1,30 @@
|
||||
Locales['sv'] = {
|
||||
['you_paid'] = 'Du betalade %skr till körskolan!',
|
||||
['go_next_point'] = 'Åk till nästa punkt!',
|
||||
['in_town_speed'] = 'Du är inne i stan, håll koll på hastigheten! Hastighetsgräns: %s km/h',
|
||||
['next_point_speed'] = 'Åk till nästa punkt! Hastighetsgräns: %s km/h',
|
||||
['stop_for_ped'] = '~r~Stanna för övergångsstället',
|
||||
['good_lets_cont'] = 'Bra, fortsätt.',
|
||||
['stop_look_left'] = '~r~Stanna och kolla vänster. Hastighetsgräns: %s km/h',
|
||||
['good_turn_right'] = 'Bra, sväng höger och följ linjen',
|
||||
['watch_traffic_lightson'] = 'Håll koll på trafiken och sätt på dina lampor!',
|
||||
['stop_for_passing'] = '~r~Stanna för förbipasserande fordon!',
|
||||
['hway_time'] = 'Dags att köra ut på motorvägen! Hastighetsgräns: %s km/h',
|
||||
['gratz_stay_alert'] = 'Jag är imponerad, men glöm inte att vara ~r~alert medans du kör!',
|
||||
['passed_test'] = 'Du klarade testet, grattis!',
|
||||
['failed_test'] = 'Du ~r~misslyckades med testet, lycka till nästa gång!',
|
||||
['theory_test'] = 'Teoretiskt körprov',
|
||||
['road_test_car'] = 'Körprov',
|
||||
['road_test_bike'] = 'Motorcykel kompetensprov',
|
||||
['road_test_truck'] = 'Lastbil färdighetstest',
|
||||
['school_item'] = '%skr',
|
||||
['driving_school'] = 'Körskola',
|
||||
['press_open_menu'] = 'Tryck [E] för att öppna menyn',
|
||||
['driving_school_blip'] = 'Körskola',
|
||||
['driving_test_complete'] = 'Körprov avklarat',
|
||||
['driving_too_fast'] = '~r~Du kör för fort, tillåtna hastighet är: %s km/h!',
|
||||
['test_failed_go_to_start_point'] = '~r~Go to the starting point, because you failed the test!',
|
||||
['errors'] = 'Misstag: ~r~%s/%s',
|
||||
['you_damaged_veh'] = 'Du skadade fordonet',
|
||||
['not_enough_money'] = 'Du har inte tillräckligt med pengar',
|
||||
}
|
||||
31
resources/[esx_addons]/esx_dmvschool/locales/tr.lua
Normal file
31
resources/[esx_addons]/esx_dmvschool/locales/tr.lua
Normal file
@@ -0,0 +1,31 @@
|
||||
Locales['tr'] = {
|
||||
['you_paid'] = 'DMV okuluna $%s ödediniz',
|
||||
['go_next_point'] = 'Bir sonraki noktaya git!',
|
||||
['in_town_speed'] = 'Şehre girdiniz, hızınıza dikkat edin! Hız Sınırı: %s km/sa',
|
||||
['next_point_speed'] = 'Bir sonraki noktaya git! Hız Sınırı: %s km/sa',
|
||||
['stop_for_ped'] = '~r~Yaya geçidine durun',
|
||||
['good_lets_cont'] = 'Harika, devam edin.',
|
||||
['stop_look_left'] = '~r~Durun ve sola bakın. Hız Sınırı: %s km/sa',
|
||||
['good_turn_right'] = 'Harika, sağa dönün ve çizgiyi takip edin',
|
||||
['watch_traffic_lightson'] = 'Trafik kurallarına dikkat edin ve ışıkları açın!',
|
||||
['stop_for_passing'] = '~r~Geçen araçlar için durun!',
|
||||
['hway_time'] = 'Otoyolda sürmeyi zamanı geldi! Hız Sınırı: %s km/sa',
|
||||
['gratz_stay_alert'] = 'Etkilendim, ancak sürerken ~r~uyanık kalmayı unutmayın!',
|
||||
['passed_test'] = 'Sınavı geçtiniz, tebrikler!',
|
||||
['failed_test'] = 'Sınavı ~r~başaramadınız, bir sonraki sefer daha iyi şanslar!',
|
||||
['theory_test'] = 'Teorik Sürüş Sınavı',
|
||||
['road_test_car'] = 'Sürüş Sınavı',
|
||||
['road_test_bike'] = 'Motosiklet Beceri Sınavı',
|
||||
['road_test_truck'] = 'Tır Beceri Sınavı',
|
||||
['school_item'] = '$%s',
|
||||
['driving_school'] = 'Sürücü Okulu',
|
||||
['press_open_menu'] = 'Menüyü açmak için [E] tuşuna basın',
|
||||
['driving_school_blip'] = 'Sürücü Okulu',
|
||||
['driving_test_complete'] = 'Sürüş testi tamamlandı',
|
||||
['driving_too_fast'] = '~r~Çok hızlı sürüyorsunuz, mevcut hız sınırı: %s km/sa!',
|
||||
['test_failed_go_to_start_point'] = '~r~Go to the starting point, because you failed the test!',
|
||||
['errors'] = 'Hatalar: ~r~%s/%s',
|
||||
['you_damaged_veh'] = 'Araç hasar gördü',
|
||||
['not_enough_money'] = 'Yeterli paranız yok',
|
||||
}
|
||||
|
||||
30
resources/[esx_addons]/esx_dmvschool/locales/zh-cn.lua
Normal file
30
resources/[esx_addons]/esx_dmvschool/locales/zh-cn.lua
Normal file
@@ -0,0 +1,30 @@
|
||||
Locales['zh-cn'] = {
|
||||
['you_paid'] = '成功支付驾考学费:$%s',
|
||||
['go_next_point'] = '请小心驾驶前往下一考试点!',
|
||||
['in_town_speed'] = '请注意进入城区, 请减速! 注意限速: %s km/h',
|
||||
['next_point_speed'] = '请小心驾驶前往下一考试点! 注意限速: %s km/h',
|
||||
['stop_for_ped'] = '路过~r~人行横道时~s~, 请小心驾驶注意两边行人',
|
||||
['good_lets_cont'] = 'Good, 继续.',
|
||||
['stop_look_left'] = '驾驶时应~r~时刻保持警惕~s~两边来往车辆. 注意限速: %s km/h',
|
||||
['good_turn_right'] = '做的好, 现在右转前往汇入城区主干道',
|
||||
['watch_traffic_lightson'] = '请时刻注意驾驶时的道路红绿灯!',
|
||||
['stop_for_passing'] = '停车! 有过往车辆时请注意避让',
|
||||
['hway_time'] = '现在正在汇入高速公路路段! 注意限速: %s km/h',
|
||||
['gratz_stay_alert'] = '完成驾考! 现在请返回驾校! 以后的驾驶中请勿忘记今日所学内容!',
|
||||
['passed_test'] = '你已通过测验, 恭喜你!',
|
||||
['failed_test'] = '考试~r~失败~s~! 下次继续努力!',
|
||||
['theory_test'] = '理论驾驶考试',
|
||||
['road_test_car'] = '小型轿车驾考',
|
||||
['road_test_bike'] = '摩托载具驾考',
|
||||
['road_test_truck'] = '商业卡车驾考',
|
||||
['school_item'] = '$%s',
|
||||
['driving_school'] = '驾校',
|
||||
['press_open_menu'] = '键下 [E] 访问驾校',
|
||||
['driving_school_blip'] = '驾校',
|
||||
['driving_test_complete'] = '驾驶考试完成',
|
||||
['driving_too_fast'] = '驾驶载具速度过快, 注意限速: %s km/h!',
|
||||
['test_failed_go_to_start_point'] = '~r~Go to the starting point, because you failed the test!',
|
||||
['errors'] = '失误: ~r~%s~s~/~g~%s~s~',
|
||||
['you_damaged_veh'] = '载具出现受损!',
|
||||
['not_enough_money'] = '您暂无足够现金',
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
INSERT INTO `licenses` (`type`, `label`) VALUES
|
||||
('dmv', 'Führerscheun'),
|
||||
('drive', 'Autoführerschein'),
|
||||
('drive_bike', 'Motorradführerschein'),
|
||||
('drive_truck', 'LKW Führerschein')
|
||||
;
|
||||
@@ -0,0 +1,6 @@
|
||||
INSERT INTO `licenses` (`type`, `label`) VALUES
|
||||
('dmv', 'Driving Permit'),
|
||||
('drive', 'Drivers License'),
|
||||
('drive_bike', 'Motorcycle License'),
|
||||
('drive_truck', 'Commercial Drivers License')
|
||||
;
|
||||
@@ -0,0 +1,6 @@
|
||||
INSERT INTO `licenses` (`type`, `label`) VALUES
|
||||
('dmv', 'Permiso teórico de conducir'),
|
||||
('drive', 'Permiso de conducir de coche'),
|
||||
('drive_bike', 'Permiso de conducir de moto'),
|
||||
('drive_truck', 'Permiso de conducir de camión')
|
||||
;
|
||||
@@ -0,0 +1,6 @@
|
||||
INSERT INTO `licenses` (`type`, `label`) VALUES
|
||||
('dmv', 'Teoriakoe'),
|
||||
('drive', 'Autokortti'),
|
||||
('drive_bike', 'Moottoripyöräkortti'),
|
||||
('drive_truck', 'Rekkakortti')
|
||||
;
|
||||
@@ -0,0 +1,6 @@
|
||||
INSERT INTO `licenses` (`type`, `label`) VALUES
|
||||
('dmv', 'Code de la route'),
|
||||
('drive', 'Permis de conduire'),
|
||||
('drive_bike', 'Permis moto'),
|
||||
('drive_truck', 'Permis camion')
|
||||
;
|
||||
@@ -0,0 +1,6 @@
|
||||
INSERT INTO `licenses` (`type`, `label`) VALUES
|
||||
('dmv', 'Vezetési engedély'),
|
||||
('drive', 'Jogosítvány'),
|
||||
('drive_bike', 'Motoros Jogosítvány'),
|
||||
('drive_truck', 'Kereskedelmi Jogosítvány')
|
||||
;
|
||||
@@ -0,0 +1,6 @@
|
||||
INSERT INTO `licenses` (`type`, `label`) VALUES
|
||||
('dmv', 'Foglio Rosa'),
|
||||
('drive', 'Patente Auto'),
|
||||
('drive_bike', 'Patente Moto'),
|
||||
('drive_truck', 'Patente Camion')
|
||||
;
|
||||
@@ -0,0 +1,6 @@
|
||||
INSERT INTO `licenses` (`type`, `label`) VALUES
|
||||
('dmv', 'Theorie examen'),
|
||||
('drive', 'Rijbewijs B'),
|
||||
('drive_bike', 'Rijbewijs A'),
|
||||
('drive_truck', 'Rijbewijs C')
|
||||
;
|
||||
@@ -0,0 +1,6 @@
|
||||
INSERT INTO `licenses` (`type`, `label`) VALUES
|
||||
('dmv', 'Vozačka dozvola'),
|
||||
('drive', 'Vozačka dozvola'),
|
||||
('drive_bike', 'Dozvola za motor'),
|
||||
('drive_truck', 'Komercijalna vozačka dozvola')
|
||||
;
|
||||
@@ -0,0 +1,6 @@
|
||||
INSERT INTO `licenses` (`type`, `label`) VALUES
|
||||
('dmv', 'Körtillstånd'),
|
||||
('drive', 'B-körkort'),
|
||||
('drive_bike', 'A-körkort'),
|
||||
('drive_truck', 'C-körkort')
|
||||
;
|
||||
@@ -0,0 +1,6 @@
|
||||
INSERT INTO `licenses` (`type`, `label`) VALUES
|
||||
('dmv', 'Sürücü Belgesi'),
|
||||
('drive', 'Sürücü Ehliyeti'),
|
||||
('drive_bike', 'Motosiklet Ehliyeti'),
|
||||
('drive_truck', ' Ticari Sürücü Ehliyeti')
|
||||
;
|
||||
29
resources/[esx_addons]/esx_dmvschool/server/main.lua
Normal file
29
resources/[esx_addons]/esx_dmvschool/server/main.lua
Normal file
@@ -0,0 +1,29 @@
|
||||
ESX.RegisterServerCallback('esx_dmvschool:canYouPay', function(source, cb, type)
|
||||
local xPlayer = ESX.Player(source)
|
||||
|
||||
if xPlayer.getMoney() >= Config.Prices[type] then
|
||||
xPlayer.removeMoney(Config.Prices[type], "DMV Purchase")
|
||||
TriggerClientEvent('esx:showNotification', source, TranslateCap('you_paid', Config.Prices[type]))
|
||||
cb(true)
|
||||
else
|
||||
cb(false)
|
||||
end
|
||||
end)
|
||||
|
||||
AddEventHandler('esx:playerLoaded', function(source)
|
||||
TriggerEvent('esx_license:getLicenses', source, function(licenses)
|
||||
TriggerClientEvent('esx_dmvschool:loadLicenses', source, licenses)
|
||||
end)
|
||||
end)
|
||||
|
||||
RegisterNetEvent('esx_dmvschool:addLicense')
|
||||
AddEventHandler('esx_dmvschool:addLicense', function(type)
|
||||
local source = source
|
||||
|
||||
TriggerEvent('esx_license:addLicense', source, type, function()
|
||||
TriggerEvent('esx_license:getLicenses', source, function(licenses)
|
||||
TriggerClientEvent('esx_dmvschool:loadLicenses', source, licenses)
|
||||
end)
|
||||
end)
|
||||
end)
|
||||
|
||||
Reference in New Issue
Block a user