├── LICENSE ├── README.md ├── client.lua ├── config.lua ├── fxmanifest.lua ├── html ├── app.js ├── index.html ├── responsive.css └── styles.css ├── locales ├── ar.lua ├── cs.lua ├── da.lua ├── de.lua ├── en.lua ├── es.lua ├── fa.lua ├── fi.lua ├── fr.lua ├── ge.lua ├── it.lua ├── nl.lua ├── pt.lua ├── sk.lua ├── sv.lua └── tr.lua ├── server.lua └── stream ├── minimap.gfx ├── minimap_0_0.ytd ├── minimap_0_1.ytd ├── minimap_0_2.ydd ├── minimap_0_3.ydd ├── minimap_0_4.ydd ├── minimap_0_5.ydd ├── minimap_0_6.ydd ├── minimap_1_0.ytd ├── minimap_1_1.ydd ├── minimap_1_1.ytd ├── minimap_1_2.ydd ├── minimap_1_3.ydd ├── minimap_1_4.ydd ├── minimap_1_5.ydd ├── minimap_1_6.ydd ├── minimap_1_7.ydd ├── minimap_1_8.ydd ├── minimap_2_0.ydd ├── minimap_2_0.ytd ├── minimap_2_1.ydd ├── minimap_2_1.ytd ├── minimap_2_2.ydd ├── minimap_2_3.ydd ├── minimap_2_4.ydd ├── minimap_2_5.ydd ├── minimap_2_6.ydd ├── minimap_2_7.ydd ├── minimap_2_8.ydd ├── minimap_3_0.ydd ├── minimap_3_1.ydd ├── minimap_3_2.ydd ├── minimap_3_3.ydd ├── minimap_3_4.ydd ├── minimap_3_5.ydd ├── minimap_3_6.ydd ├── minimap_3_7.ydd ├── minimap_3_8.ydd ├── minimap_4_0.ydd ├── minimap_4_1.ydd ├── minimap_4_2.ydd ├── minimap_4_3.ydd ├── minimap_4_4.ydd ├── minimap_4_5.ydd ├── minimap_4_6.ydd ├── minimap_4_7.ydd ├── minimap_4_8.ydd ├── minimap_5_0.ydd ├── minimap_5_1.ydd ├── minimap_5_2.ydd ├── minimap_5_3.ydd ├── minimap_5_4.ydd ├── minimap_5_5.ydd ├── minimap_5_6.ydd ├── minimap_5_7.ydd ├── minimap_5_8.ydd ├── minimap_6_0.ydd ├── minimap_6_1.ydd ├── minimap_6_2.ydd ├── minimap_6_3.ydd ├── minimap_6_4.ydd ├── minimap_6_5.ydd ├── minimap_6_6.ydd ├── minimap_6_7.ydd ├── minimap_6_8.ydd ├── minimap_7_0.ydd ├── minimap_7_1.ydd ├── minimap_7_2.ydd ├── minimap_7_3.ydd ├── minimap_7_4.ydd ├── minimap_7_5.ydd ├── minimap_7_6.ydd ├── minimap_lod_128.ytd ├── minimap_sea_0_0.ytd ├── minimap_sea_0_1.ytd ├── minimap_sea_1_0.ytd ├── minimap_sea_1_1.ytd ├── minimap_sea_2_0.ytd ├── minimap_sea_2_1.ytd └── squaremap.ytd /LICENSE: -------------------------------------------------------------------------------- 1 | GNU GENERAL PUBLIC LICENSE 2 | Version 3, 29 June 2007 3 | 4 | Copyright (C) 2007 Free Software Foundation, Inc. 5 | Everyone is permitted to copy and distribute verbatim copies 6 | of this license document, but changing it is not allowed. 7 | 8 | Preamble 9 | 10 | The GNU General Public License is a free, copyleft license for 11 | software and other kinds of works. 12 | 13 | The licenses for most software and other practical works are designed 14 | to take away your freedom to share and change the works. By contrast, 15 | the GNU General Public License is intended to guarantee your freedom to 16 | share and change all versions of a program--to make sure it remains free 17 | software for all its users. We, the Free Software Foundation, use the 18 | GNU General Public License for most of our software; it applies also to 19 | any other work released this way by its authors. You can apply it to 20 | your programs, too. 21 | 22 | When we speak of free software, we are referring to freedom, not 23 | price. Our General Public Licenses are designed to make sure that you 24 | have the freedom to distribute copies of free software (and charge for 25 | them if you wish), that you receive source code or can get it if you 26 | want it, that you can change the software or use pieces of it in new 27 | free programs, and that you know you can do these things. 28 | 29 | To protect your rights, we need to prevent others from denying you 30 | these rights or asking you to surrender the rights. Therefore, you have 31 | certain responsibilities if you distribute copies of the software, or if 32 | you modify it: responsibilities to respect the freedom of others. 33 | 34 | For example, if you distribute copies of such a program, whether 35 | gratis or for a fee, you must pass on to the recipients the same 36 | freedoms that you received. You must make sure that they, too, receive 37 | or can get the source code. And you must show them these terms so they 38 | know their rights. 39 | 40 | Developers that use the GNU GPL protect your rights with two steps: 41 | (1) assert copyright on the software, and (2) offer you this License 42 | giving you legal permission to copy, distribute and/or modify it. 43 | 44 | For the developers' and authors' protection, the GPL clearly explains 45 | that there is no warranty for this free software. For both users' and 46 | authors' sake, the GPL requires that modified versions be marked as 47 | changed, so that their problems will not be attributed erroneously to 48 | authors of previous versions. 49 | 50 | Some devices are designed to deny users access to install or run 51 | modified versions of the software inside them, although the manufacturer 52 | can do so. This is fundamentally incompatible with the aim of 53 | protecting users' freedom to change the software. The systematic 54 | pattern of such abuse occurs in the area of products for individuals to 55 | use, which is precisely where it is most unacceptable. Therefore, we 56 | have designed this version of the GPL to prohibit the practice for those 57 | products. If such problems arise substantially in other domains, we 58 | stand ready to extend this provision to those domains in future versions 59 | of the GPL, as needed to protect the freedom of users. 60 | 61 | Finally, every program is threatened constantly by software patents. 62 | States should not allow patents to restrict development and use of 63 | software on general-purpose computers, but in those that do, we wish to 64 | avoid the special danger that patents applied to a free program could 65 | make it effectively proprietary. To prevent this, the GPL assures that 66 | patents cannot be used to render the program non-free. 67 | 68 | The precise terms and conditions for copying, distribution and 69 | modification follow. 70 | 71 | TERMS AND CONDITIONS 72 | 73 | 0. Definitions. 74 | 75 | "This License" refers to version 3 of the GNU General Public License. 76 | 77 | "Copyright" also means copyright-like laws that apply to other kinds of 78 | works, such as semiconductor masks. 79 | 80 | "The Program" refers to any copyrightable work licensed under this 81 | License. Each licensee is addressed as "you". "Licensees" and 82 | "recipients" may be individuals or organizations. 83 | 84 | To "modify" a work means to copy from or adapt all or part of the work 85 | in a fashion requiring copyright permission, other than the making of an 86 | exact copy. The resulting work is called a "modified version" of the 87 | earlier work or a work "based on" the earlier work. 88 | 89 | A "covered work" means either the unmodified Program or a work based 90 | on the Program. 91 | 92 | To "propagate" a work means to do anything with it that, without 93 | permission, would make you directly or secondarily liable for 94 | infringement under applicable copyright law, except executing it on a 95 | computer or modifying a private copy. Propagation includes copying, 96 | distribution (with or without modification), making available to the 97 | public, and in some countries other activities as well. 98 | 99 | To "convey" a work means any kind of propagation that enables other 100 | parties to make or receive copies. Mere interaction with a user through 101 | a computer network, with no transfer of a copy, is not conveying. 102 | 103 | An interactive user interface displays "Appropriate Legal Notices" 104 | to the extent that it includes a convenient and prominently visible 105 | feature that (1) displays an appropriate copyright notice, and (2) 106 | tells the user that there is no warranty for the work (except to the 107 | extent that warranties are provided), that licensees may convey the 108 | work under this License, and how to view a copy of this License. If 109 | the interface presents a list of user commands or options, such as a 110 | menu, a prominent item in the list meets this criterion. 111 | 112 | 1. Source Code. 113 | 114 | The "source code" for a work means the preferred form of the work 115 | for making modifications to it. "Object code" means any non-source 116 | form of a work. 117 | 118 | A "Standard Interface" means an interface that either is an official 119 | standard defined by a recognized standards body, or, in the case of 120 | interfaces specified for a particular programming language, one that 121 | is widely used among developers working in that language. 122 | 123 | The "System Libraries" of an executable work include anything, other 124 | than the work as a whole, that (a) is included in the normal form of 125 | packaging a Major Component, but which is not part of that Major 126 | Component, and (b) serves only to enable use of the work with that 127 | Major Component, or to implement a Standard Interface for which an 128 | implementation is available to the public in source code form. A 129 | "Major Component", in this context, means a major essential component 130 | (kernel, window system, and so on) of the specific operating system 131 | (if any) on which the executable work runs, or a compiler used to 132 | produce the work, or an object code interpreter used to run it. 133 | 134 | The "Corresponding Source" for a work in object code form means all 135 | the source code needed to generate, install, and (for an executable 136 | work) run the object code and to modify the work, including scripts to 137 | control those activities. However, it does not include the work's 138 | System Libraries, or general-purpose tools or generally available free 139 | programs which are used unmodified in performing those activities but 140 | which are not part of the work. For example, Corresponding Source 141 | includes interface definition files associated with source files for 142 | the work, and the source code for shared libraries and dynamically 143 | linked subprograms that the work is specifically designed to require, 144 | such as by intimate data communication or control flow between those 145 | subprograms and other parts of the work. 146 | 147 | The Corresponding Source need not include anything that users 148 | can regenerate automatically from other parts of the Corresponding 149 | Source. 150 | 151 | The Corresponding Source for a work in source code form is that 152 | same work. 153 | 154 | 2. Basic Permissions. 155 | 156 | All rights granted under this License are granted for the term of 157 | copyright on the Program, and are irrevocable provided the stated 158 | conditions are met. This License explicitly affirms your unlimited 159 | permission to run the unmodified Program. The output from running a 160 | covered work is covered by this License only if the output, given its 161 | content, constitutes a covered work. This License acknowledges your 162 | rights of fair use or other equivalent, as provided by copyright law. 163 | 164 | You may make, run and propagate covered works that you do not 165 | convey, without conditions so long as your license otherwise remains 166 | in force. You may convey covered works to others for the sole purpose 167 | of having them make modifications exclusively for you, or provide you 168 | with facilities for running those works, provided that you comply with 169 | the terms of this License in conveying all material for which you do 170 | not control copyright. Those thus making or running the covered works 171 | for you must do so exclusively on your behalf, under your direction 172 | and control, on terms that prohibit them from making any copies of 173 | your copyrighted material outside their relationship with you. 174 | 175 | Conveying under any other circumstances is permitted solely under 176 | the conditions stated below. Sublicensing is not allowed; section 10 177 | makes it unnecessary. 178 | 179 | 3. Protecting Users' Legal Rights From Anti-Circumvention Law. 180 | 181 | No covered work shall be deemed part of an effective technological 182 | measure under any applicable law fulfilling obligations under article 183 | 11 of the WIPO copyright treaty adopted on 20 December 1996, or 184 | similar laws prohibiting or restricting circumvention of such 185 | measures. 186 | 187 | When you convey a covered work, you waive any legal power to forbid 188 | circumvention of technological measures to the extent such circumvention 189 | is effected by exercising rights under this License with respect to 190 | the covered work, and you disclaim any intention to limit operation or 191 | modification of the work as a means of enforcing, against the work's 192 | users, your or third parties' legal rights to forbid circumvention of 193 | technological measures. 194 | 195 | 4. Conveying Verbatim Copies. 196 | 197 | You may convey verbatim copies of the Program's source code as you 198 | receive it, in any medium, provided that you conspicuously and 199 | appropriately publish on each copy an appropriate copyright notice; 200 | keep intact all notices stating that this License and any 201 | non-permissive terms added in accord with section 7 apply to the code; 202 | keep intact all notices of the absence of any warranty; and give all 203 | recipients a copy of this License along with the Program. 204 | 205 | You may charge any price or no price for each copy that you convey, 206 | and you may offer support or warranty protection for a fee. 207 | 208 | 5. Conveying Modified Source Versions. 209 | 210 | You may convey a work based on the Program, or the modifications to 211 | produce it from the Program, in the form of source code under the 212 | terms of section 4, provided that you also meet all of these conditions: 213 | 214 | a) The work must carry prominent notices stating that you modified 215 | it, and giving a relevant date. 216 | 217 | b) The work must carry prominent notices stating that it is 218 | released under this License and any conditions added under section 219 | 7. This requirement modifies the requirement in section 4 to 220 | "keep intact all notices". 221 | 222 | c) You must license the entire work, as a whole, under this 223 | License to anyone who comes into possession of a copy. This 224 | License will therefore apply, along with any applicable section 7 225 | additional terms, to the whole of the work, and all its parts, 226 | regardless of how they are packaged. This License gives no 227 | permission to license the work in any other way, but it does not 228 | invalidate such permission if you have separately received it. 229 | 230 | d) If the work has interactive user interfaces, each must display 231 | Appropriate Legal Notices; however, if the Program has interactive 232 | interfaces that do not display Appropriate Legal Notices, your 233 | work need not make them do so. 234 | 235 | A compilation of a covered work with other separate and independent 236 | works, which are not by their nature extensions of the covered work, 237 | and which are not combined with it such as to form a larger program, 238 | in or on a volume of a storage or distribution medium, is called an 239 | "aggregate" if the compilation and its resulting copyright are not 240 | used to limit the access or legal rights of the compilation's users 241 | beyond what the individual works permit. Inclusion of a covered work 242 | in an aggregate does not cause this License to apply to the other 243 | parts of the aggregate. 244 | 245 | 6. Conveying Non-Source Forms. 246 | 247 | You may convey a covered work in object code form under the terms 248 | of sections 4 and 5, provided that you also convey the 249 | machine-readable Corresponding Source under the terms of this License, 250 | in one of these ways: 251 | 252 | a) Convey the object code in, or embodied in, a physical product 253 | (including a physical distribution medium), accompanied by the 254 | Corresponding Source fixed on a durable physical medium 255 | customarily used for software interchange. 256 | 257 | b) Convey the object code in, or embodied in, a physical product 258 | (including a physical distribution medium), accompanied by a 259 | written offer, valid for at least three years and valid for as 260 | long as you offer spare parts or customer support for that product 261 | model, to give anyone who possesses the object code either (1) a 262 | copy of the Corresponding Source for all the software in the 263 | product that is covered by this License, on a durable physical 264 | medium customarily used for software interchange, for a price no 265 | more than your reasonable cost of physically performing this 266 | conveying of source, or (2) access to copy the 267 | Corresponding Source from a network server at no charge. 268 | 269 | c) Convey individual copies of the object code with a copy of the 270 | written offer to provide the Corresponding Source. This 271 | alternative is allowed only occasionally and noncommercially, and 272 | only if you received the object code with such an offer, in accord 273 | with subsection 6b. 274 | 275 | d) Convey the object code by offering access from a designated 276 | place (gratis or for a charge), and offer equivalent access to the 277 | Corresponding Source in the same way through the same place at no 278 | further charge. You need not require recipients to copy the 279 | Corresponding Source along with the object code. If the place to 280 | copy the object code is a network server, the Corresponding Source 281 | may be on a different server (operated by you or a third party) 282 | that supports equivalent copying facilities, provided you maintain 283 | clear directions next to the object code saying where to find the 284 | Corresponding Source. Regardless of what server hosts the 285 | Corresponding Source, you remain obligated to ensure that it is 286 | available for as long as needed to satisfy these requirements. 287 | 288 | e) Convey the object code using peer-to-peer transmission, provided 289 | you inform other peers where the object code and Corresponding 290 | Source of the work are being offered to the general public at no 291 | charge under subsection 6d. 292 | 293 | A separable portion of the object code, whose source code is excluded 294 | from the Corresponding Source as a System Library, need not be 295 | included in conveying the object code work. 296 | 297 | A "User Product" is either (1) a "consumer product", which means any 298 | tangible personal property which is normally used for personal, family, 299 | or household purposes, or (2) anything designed or sold for incorporation 300 | into a dwelling. In determining whether a product is a consumer product, 301 | doubtful cases shall be resolved in favor of coverage. For a particular 302 | product received by a particular user, "normally used" refers to a 303 | typical or common use of that class of product, regardless of the status 304 | of the particular user or of the way in which the particular user 305 | actually uses, or expects or is expected to use, the product. A product 306 | is a consumer product regardless of whether the product has substantial 307 | commercial, industrial or non-consumer uses, unless such uses represent 308 | the only significant mode of use of the product. 309 | 310 | "Installation Information" for a User Product means any methods, 311 | procedures, authorization keys, or other information required to install 312 | and execute modified versions of a covered work in that User Product from 313 | a modified version of its Corresponding Source. The information must 314 | suffice to ensure that the continued functioning of the modified object 315 | code is in no case prevented or interfered with solely because 316 | modification has been made. 317 | 318 | If you convey an object code work under this section in, or with, or 319 | specifically for use in, a User Product, and the conveying occurs as 320 | part of a transaction in which the right of possession and use of the 321 | User Product is transferred to the recipient in perpetuity or for a 322 | fixed term (regardless of how the transaction is characterized), the 323 | Corresponding Source conveyed under this section must be accompanied 324 | by the Installation Information. But this requirement does not apply 325 | if neither you nor any third party retains the ability to install 326 | modified object code on the User Product (for example, the work has 327 | been installed in ROM). 328 | 329 | The requirement to provide Installation Information does not include a 330 | requirement to continue to provide support service, warranty, or updates 331 | for a work that has been modified or installed by the recipient, or for 332 | the User Product in which it has been modified or installed. Access to a 333 | network may be denied when the modification itself materially and 334 | adversely affects the operation of the network or violates the rules and 335 | protocols for communication across the network. 336 | 337 | Corresponding Source conveyed, and Installation Information provided, 338 | in accord with this section must be in a format that is publicly 339 | documented (and with an implementation available to the public in 340 | source code form), and must require no special password or key for 341 | unpacking, reading or copying. 342 | 343 | 7. Additional Terms. 344 | 345 | "Additional permissions" are terms that supplement the terms of this 346 | License by making exceptions from one or more of its conditions. 347 | Additional permissions that are applicable to the entire Program shall 348 | be treated as though they were included in this License, to the extent 349 | that they are valid under applicable law. If additional permissions 350 | apply only to part of the Program, that part may be used separately 351 | under those permissions, but the entire Program remains governed by 352 | this License without regard to the additional permissions. 353 | 354 | When you convey a copy of a covered work, you may at your option 355 | remove any additional permissions from that copy, or from any part of 356 | it. (Additional permissions may be written to require their own 357 | removal in certain cases when you modify the work.) You may place 358 | additional permissions on material, added by you to a covered work, 359 | for which you have or can give appropriate copyright permission. 360 | 361 | Notwithstanding any other provision of this License, for material you 362 | add to a covered work, you may (if authorized by the copyright holders of 363 | that material) supplement the terms of this License with terms: 364 | 365 | a) Disclaiming warranty or limiting liability differently from the 366 | terms of sections 15 and 16 of this License; or 367 | 368 | b) Requiring preservation of specified reasonable legal notices or 369 | author attributions in that material or in the Appropriate Legal 370 | Notices displayed by works containing it; or 371 | 372 | c) Prohibiting misrepresentation of the origin of that material, or 373 | requiring that modified versions of such material be marked in 374 | reasonable ways as different from the original version; or 375 | 376 | d) Limiting the use for publicity purposes of names of licensors or 377 | authors of the material; or 378 | 379 | e) Declining to grant rights under trademark law for use of some 380 | trade names, trademarks, or service marks; or 381 | 382 | f) Requiring indemnification of licensors and authors of that 383 | material by anyone who conveys the material (or modified versions of 384 | it) with contractual assumptions of liability to the recipient, for 385 | any liability that these contractual assumptions directly impose on 386 | those licensors and authors. 387 | 388 | All other non-permissive additional terms are considered "further 389 | restrictions" within the meaning of section 10. If the Program as you 390 | received it, or any part of it, contains a notice stating that it is 391 | governed by this License along with a term that is a further 392 | restriction, you may remove that term. If a license document contains 393 | a further restriction but permits relicensing or conveying under this 394 | License, you may add to a covered work material governed by the terms 395 | of that license document, provided that the further restriction does 396 | not survive such relicensing or conveying. 397 | 398 | If you add terms to a covered work in accord with this section, you 399 | must place, in the relevant source files, a statement of the 400 | additional terms that apply to those files, or a notice indicating 401 | where to find the applicable terms. 402 | 403 | Additional terms, permissive or non-permissive, may be stated in the 404 | form of a separately written license, or stated as exceptions; 405 | the above requirements apply either way. 406 | 407 | 8. Termination. 408 | 409 | You may not propagate or modify a covered work except as expressly 410 | provided under this License. Any attempt otherwise to propagate or 411 | modify it is void, and will automatically terminate your rights under 412 | this License (including any patent licenses granted under the third 413 | paragraph of section 11). 414 | 415 | However, if you cease all violation of this License, then your 416 | license from a particular copyright holder is reinstated (a) 417 | provisionally, unless and until the copyright holder explicitly and 418 | finally terminates your license, and (b) permanently, if the copyright 419 | holder fails to notify you of the violation by some reasonable means 420 | prior to 60 days after the cessation. 421 | 422 | Moreover, your license from a particular copyright holder is 423 | reinstated permanently if the copyright holder notifies you of the 424 | violation by some reasonable means, this is the first time you have 425 | received notice of violation of this License (for any work) from that 426 | copyright holder, and you cure the violation prior to 30 days after 427 | your receipt of the notice. 428 | 429 | Termination of your rights under this section does not terminate the 430 | licenses of parties who have received copies or rights from you under 431 | this License. If your rights have been terminated and not permanently 432 | reinstated, you do not qualify to receive new licenses for the same 433 | material under section 10. 434 | 435 | 9. Acceptance Not Required for Having Copies. 436 | 437 | You are not required to accept this License in order to receive or 438 | run a copy of the Program. Ancillary propagation of a covered work 439 | occurring solely as a consequence of using peer-to-peer transmission 440 | to receive a copy likewise does not require acceptance. However, 441 | nothing other than this License grants you permission to propagate or 442 | modify any covered work. These actions infringe copyright if you do 443 | not accept this License. Therefore, by modifying or propagating a 444 | covered work, you indicate your acceptance of this License to do so. 445 | 446 | 10. Automatic Licensing of Downstream Recipients. 447 | 448 | Each time you convey a covered work, the recipient automatically 449 | receives a license from the original licensors, to run, modify and 450 | propagate that work, subject to this License. You are not responsible 451 | for enforcing compliance by third parties with this License. 452 | 453 | An "entity transaction" is a transaction transferring control of an 454 | organization, or substantially all assets of one, or subdividing an 455 | organization, or merging organizations. If propagation of a covered 456 | work results from an entity transaction, each party to that 457 | transaction who receives a copy of the work also receives whatever 458 | licenses to the work the party's predecessor in interest had or could 459 | give under the previous paragraph, plus a right to possession of the 460 | Corresponding Source of the work from the predecessor in interest, if 461 | the predecessor has it or can get it with reasonable efforts. 462 | 463 | You may not impose any further restrictions on the exercise of the 464 | rights granted or affirmed under this License. For example, you may 465 | not impose a license fee, royalty, or other charge for exercise of 466 | rights granted under this License, and you may not initiate litigation 467 | (including a cross-claim or counterclaim in a lawsuit) alleging that 468 | any patent claim is infringed by making, using, selling, offering for 469 | sale, or importing the Program or any portion of it. 470 | 471 | 11. Patents. 472 | 473 | A "contributor" is a copyright holder who authorizes use under this 474 | License of the Program or a work on which the Program is based. The 475 | work thus licensed is called the contributor's "contributor version". 476 | 477 | A contributor's "essential patent claims" are all patent claims 478 | owned or controlled by the contributor, whether already acquired or 479 | hereafter acquired, that would be infringed by some manner, permitted 480 | by this License, of making, using, or selling its contributor version, 481 | but do not include claims that would be infringed only as a 482 | consequence of further modification of the contributor version. For 483 | purposes of this definition, "control" includes the right to grant 484 | patent sublicenses in a manner consistent with the requirements of 485 | this License. 486 | 487 | Each contributor grants you a non-exclusive, worldwide, royalty-free 488 | patent license under the contributor's essential patent claims, to 489 | make, use, sell, offer for sale, import and otherwise run, modify and 490 | propagate the contents of its contributor version. 491 | 492 | In the following three paragraphs, a "patent license" is any express 493 | agreement or commitment, however denominated, not to enforce a patent 494 | (such as an express permission to practice a patent or covenant not to 495 | sue for patent infringement). To "grant" such a patent license to a 496 | party means to make such an agreement or commitment not to enforce a 497 | patent against the party. 498 | 499 | If you convey a covered work, knowingly relying on a patent license, 500 | and the Corresponding Source of the work is not available for anyone 501 | to copy, free of charge and under the terms of this License, through a 502 | publicly available network server or other readily accessible means, 503 | then you must either (1) cause the Corresponding Source to be so 504 | available, or (2) arrange to deprive yourself of the benefit of the 505 | patent license for this particular work, or (3) arrange, in a manner 506 | consistent with the requirements of this License, to extend the patent 507 | license to downstream recipients. "Knowingly relying" means you have 508 | actual knowledge that, but for the patent license, your conveying the 509 | covered work in a country, or your recipient's use of the covered work 510 | in a country, would infringe one or more identifiable patents in that 511 | country that you have reason to believe are valid. 512 | 513 | If, pursuant to or in connection with a single transaction or 514 | arrangement, you convey, or propagate by procuring conveyance of, a 515 | covered work, and grant a patent license to some of the parties 516 | receiving the covered work authorizing them to use, propagate, modify 517 | or convey a specific copy of the covered work, then the patent license 518 | you grant is automatically extended to all recipients of the covered 519 | work and works based on it. 520 | 521 | A patent license is "discriminatory" if it does not include within 522 | the scope of its coverage, prohibits the exercise of, or is 523 | conditioned on the non-exercise of one or more of the rights that are 524 | specifically granted under this License. You may not convey a covered 525 | work if you are a party to an arrangement with a third party that is 526 | in the business of distributing software, under which you make payment 527 | to the third party based on the extent of your activity of conveying 528 | the work, and under which the third party grants, to any of the 529 | parties who would receive the covered work from you, a discriminatory 530 | patent license (a) in connection with copies of the covered work 531 | conveyed by you (or copies made from those copies), or (b) primarily 532 | for and in connection with specific products or compilations that 533 | contain the covered work, unless you entered into that arrangement, 534 | or that patent license was granted, prior to 28 March 2007. 535 | 536 | Nothing in this License shall be construed as excluding or limiting 537 | any implied license or other defenses to infringement that may 538 | otherwise be available to you under applicable patent law. 539 | 540 | 12. No Surrender of Others' Freedom. 541 | 542 | If conditions are imposed on you (whether by court order, agreement or 543 | otherwise) that contradict the conditions of this License, they do not 544 | excuse you from the conditions of this License. If you cannot convey a 545 | covered work so as to satisfy simultaneously your obligations under this 546 | License and any other pertinent obligations, then as a consequence you may 547 | not convey it at all. For example, if you agree to terms that obligate you 548 | to collect a royalty for further conveying from those to whom you convey 549 | the Program, the only way you could satisfy both those terms and this 550 | License would be to refrain entirely from conveying the Program. 551 | 552 | 13. Use with the GNU Affero General Public License. 553 | 554 | Notwithstanding any other provision of this License, you have 555 | permission to link or combine any covered work with a work licensed 556 | under version 3 of the GNU Affero General Public License into a single 557 | combined work, and to convey the resulting work. The terms of this 558 | License will continue to apply to the part which is the covered work, 559 | but the special requirements of the GNU Affero General Public License, 560 | section 13, concerning interaction through a network will apply to the 561 | combination as such. 562 | 563 | 14. Revised Versions of this License. 564 | 565 | The Free Software Foundation may publish revised and/or new versions of 566 | the GNU General Public License from time to time. Such new versions will 567 | be similar in spirit to the present version, but may differ in detail to 568 | address new problems or concerns. 569 | 570 | Each version is given a distinguishing version number. If the 571 | Program specifies that a certain numbered version of the GNU General 572 | Public License "or any later version" applies to it, you have the 573 | option of following the terms and conditions either of that numbered 574 | version or of any later version published by the Free Software 575 | Foundation. If the Program does not specify a version number of the 576 | GNU General Public License, you may choose any version ever published 577 | by the Free Software Foundation. 578 | 579 | If the Program specifies that a proxy can decide which future 580 | versions of the GNU General Public License can be used, that proxy's 581 | public statement of acceptance of a version permanently authorizes you 582 | to choose that version for the Program. 583 | 584 | Later license versions may give you additional or different 585 | permissions. However, no additional obligations are imposed on any 586 | author or copyright holder as a result of your choosing to follow a 587 | later version. 588 | 589 | 15. Disclaimer of Warranty. 590 | 591 | THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY 592 | APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT 593 | HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY 594 | OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, 595 | THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR 596 | PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM 597 | IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF 598 | ALL NECESSARY SERVICING, REPAIR OR CORRECTION. 599 | 600 | 16. Limitation of Liability. 601 | 602 | IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING 603 | WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS 604 | THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY 605 | GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE 606 | USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF 607 | DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD 608 | PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), 609 | EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF 610 | SUCH DAMAGES. 611 | 612 | 17. Interpretation of Sections 15 and 16. 613 | 614 | If the disclaimer of warranty and limitation of liability provided 615 | above cannot be given local legal effect according to their terms, 616 | reviewing courts shall apply local law that most closely approximates 617 | an absolute waiver of all civil liability in connection with the 618 | Program, unless a warranty or assumption of liability accompanies a 619 | copy of the Program in return for a fee. 620 | 621 | END OF TERMS AND CONDITIONS 622 | 623 | How to Apply These Terms to Your New Programs 624 | 625 | If you develop a new program, and you want it to be of the greatest 626 | possible use to the public, the best way to achieve this is to make it 627 | free software which everyone can redistribute and change under these terms. 628 | 629 | To do so, attach the following notices to the program. It is safest 630 | to attach them to the start of each source file to most effectively 631 | state the exclusion of warranty; and each file should have at least 632 | the "copyright" line and a pointer to where the full notice is found. 633 | 634 | 635 | Copyright (C) 636 | 637 | This program is free software: you can redistribute it and/or modify 638 | it under the terms of the GNU General Public License as published by 639 | the Free Software Foundation, either version 3 of the License, or 640 | (at your option) any later version. 641 | 642 | This program is distributed in the hope that it will be useful, 643 | but WITHOUT ANY WARRANTY; without even the implied warranty of 644 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 645 | GNU General Public License for more details. 646 | 647 | You should have received a copy of the GNU General Public License 648 | along with this program. If not, see . 649 | 650 | Also add information on how to contact you by electronic and paper mail. 651 | 652 | If the program does terminal interaction, make it output a short 653 | notice like this when it starts in an interactive mode: 654 | 655 | Copyright (C) 656 | This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'. 657 | This is free software, and you are welcome to redistribute it 658 | under certain conditions; type `show c' for details. 659 | 660 | The hypothetical commands `show w' and `show c' should show the appropriate 661 | parts of the General Public License. Of course, your program's commands 662 | might be different; for a GUI interface, you would use an "about box". 663 | 664 | You should also get your employer (if you work as a programmer) or school, 665 | if any, to sign a "copyright disclaimer" for the program, if necessary. 666 | For more information on this, and how to apply and follow the GNU GPL, see 667 | . 668 | 669 | The GNU General Public License does not permit incorporating your program 670 | into proprietary programs. If your program is a subroutine library, you 671 | may consider it more useful to permit linking proprietary applications with 672 | the library. If this is what you want to do, use the GNU Lesser General 673 | Public License instead of this License. But first, please read 674 | . 675 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 |

Z HUD

2 | 3 | ![Z HUD Preview](https://github.com/TeamBroCode/z-hud/assets/91739770/00b300a2-6494-4b75-b3b1-be4397df174a) 4 | 5 | ## Overview 6 | 7 | Z HUD is a redesigned user interface for the popular qb-hud script that offers more and better functionality along with a few small fixes for HUD bugs. 8 | 9 | ## Addon Features 10 | 11 | - Utilize Fontawesome Pro Icons in the HUD 12 | - Support for [PS BUFFS](https://github.com/Project-Sloth/ps-buffs) 13 | 14 | ## Dependencies 15 | 16 | - QBCore 17 | - QBOX (Soon) 18 | - [PS BUFFS](https://github.com/Project-Sloth/ps-buffs) (Optional) 19 | 20 | ## Contribute 21 | 22 | We welcome contributions! If you have ideas for improvements or want to report bugs, please open an issue on GitHub. Additionally, you can fork the repository and submit a pull request. 23 | 24 | ## Credits 25 | 26 | [QB HUD](https://github.com/qbcore-framework/qb-hud) - For the Initial Code 27 | 28 | ## License 29 | 30 | This project is licensed under the [GPL-3.0 License](LICENSE). 31 | -------------------------------------------------------------------------------- /client.lua: -------------------------------------------------------------------------------- 1 | local QBCore = exports[Config.Core]:GetCoreObject() 2 | local PlayerData = QBCore.Functions.GetPlayerData() 3 | local config = Config 4 | local speedMultiplier = config.UseMPH and 2.23694 or 3.6 5 | local seatbeltOn = false 6 | local cruiseOn = false 7 | local showAltitude = false 8 | local showSeatbelt = false 9 | local nos = 0 10 | local stress = 0 11 | local hunger = 100 12 | local thirst = 100 13 | local cashAmount = 0 14 | local bankAmount = 0 15 | local nitroActive = 0 16 | local harness = 0 17 | local hp = 100 18 | local armed = 0 19 | local parachute = -1 20 | local oxygen = 100 21 | local engine = 0 22 | local dev = false 23 | local playerDead = false 24 | local showMenu = false 25 | local Menu = config.Menu 26 | local CinematicHeight = 0.2 27 | local w = 0 28 | 29 | DisplayRadar(false) 30 | 31 | local function CinematicShow(bool) 32 | SetRadarBigmapEnabled(true, false) 33 | Wait(0) 34 | SetRadarBigmapEnabled(false, false) 35 | if bool then 36 | for i = CinematicHeight, 0, -1.0 do 37 | Wait(10) 38 | w = i 39 | end 40 | else 41 | for i = 0, CinematicHeight, 1.0 do 42 | Wait(10) 43 | w = i 44 | end 45 | end 46 | end 47 | 48 | local function loadSettings(settings) 49 | for k, v in pairs(settings) do 50 | if k == 'isCineamticModeChecked' then 51 | Menu.isCineamticModeChecked = v 52 | CinematicShow(v) 53 | SendNUIMessage({ test = true, event = k, toggle = v }) 54 | elseif k == 'isChangeFPSChecked' then 55 | Menu[k] = v 56 | local val = v and 'Optimized' or 'Synced' 57 | SendNUIMessage({ test = true, event = k, toggle = val }) 58 | else 59 | Menu[k] = v 60 | SendNUIMessage({ test = true, event = k, toggle = v }) 61 | end 62 | end 63 | QBCore.Functions.Notify(Lang:t("notify.hud_settings_loaded"), "success") 64 | Wait(1000) 65 | TriggerEvent("hud:client:LoadMap") 66 | end 67 | 68 | local function saveSettings() 69 | SetResourceKvp('hudSettings', json.encode(Menu)) 70 | end 71 | 72 | local function sendBuffNUIData() 73 | -- Get player buffs nui info if they have buffs 74 | if not GetResourceState(Config.Buffs):match("start") then 75 | return 76 | end 77 | local buffNUIData = exports[Config.Buffs]:GetBuffNUIData() 78 | if buffNUIData then 79 | SendNUIMessage({ 80 | action = "externalstatus", 81 | topic = "startup", 82 | statuses = buffNUIData, 83 | }) 84 | end 85 | end 86 | 87 | RegisterNetEvent("QBCore:Client:OnPlayerLoaded", function() 88 | Wait(2000) 89 | local hudSettings = GetResourceKvpString('hudSettings') 90 | if hudSettings then loadSettings(json.decode(hudSettings)) end 91 | PlayerData = QBCore.Functions.GetPlayerData() 92 | Wait(3000) 93 | sendBuffNUIData() 94 | end) 95 | 96 | RegisterNetEvent("QBCore:Client:OnPlayerUnload", function() 97 | PlayerData = {} 98 | end) 99 | 100 | RegisterNetEvent("QBCore:Player:SetPlayerData", function(val) 101 | PlayerData = val 102 | end) 103 | 104 | AddEventHandler('onResourceStart', function(resourceName) 105 | if GetCurrentResourceName() ~= resourceName then return end 106 | Wait(2000) 107 | local hudSettings = GetResourceKvpString('hudSettings') 108 | if hudSettings then loadSettings(json.decode(hudSettings)) end 109 | Wait(3000) 110 | sendBuffNUIData() 111 | end) 112 | 113 | -- Callbacks & Events 114 | RegisterCommand('menu', function() 115 | Wait(50) 116 | if showMenu then return end 117 | TriggerEvent("hud:client:playOpenMenuSounds") 118 | SetNuiFocus(true, true) 119 | SendNUIMessage({ action = "open" }) 120 | showMenu = true 121 | end) 122 | RegisterKeyMapping('menu', 'Open Menu', 'keyboard', Config.OpenMenu) 123 | 124 | RegisterNUICallback('closeMenu', function() 125 | Wait(50) 126 | TriggerEvent("hud:client:playCloseMenuSounds") 127 | showMenu = false 128 | SetNuiFocus(false, false) 129 | end) 130 | 131 | -- Reset hud 132 | local function restartHud() 133 | TriggerEvent("hud:client:playResetHudSounds") 134 | QBCore.Functions.Notify(Lang:t("notify.hud_restart"), "error") 135 | if IsPedInAnyVehicle(PlayerPedId()) then 136 | Wait(2600) 137 | SendNUIMessage({ action = 'car', show = false }) 138 | SendNUIMessage({ action = 'car', show = true }) 139 | end 140 | Wait(2600) 141 | SendNUIMessage({ action = 'hudtick', show = false }) 142 | sendBuffNUIData() 143 | SendNUIMessage({ action = 'hudtick', show = true }) 144 | Wait(2600) 145 | QBCore.Functions.Notify(Lang:t("notify.hud_start"), "success") 146 | end 147 | 148 | RegisterNUICallback('restartHud', function() 149 | Wait(50) 150 | restartHud() 151 | end) 152 | 153 | RegisterCommand('resethud', function() 154 | Wait(50) 155 | restartHud() 156 | end) 157 | 158 | RegisterNUICallback('resetStorage', function() 159 | Wait(50) 160 | TriggerEvent("hud:client:resetStorage") 161 | end) 162 | 163 | RegisterNetEvent("hud:client:resetStorage", function() 164 | Wait(50) 165 | if Menu.isResetSoundsChecked then 166 | TriggerServerEvent("InteractSound_SV:PlayOnSource", "airwrench", 0.1) 167 | end 168 | QBCore.Functions.TriggerCallback('hud:server:getMenu', 169 | function(menu) 170 | loadSettings(menu); SetResourceKvp('hudSettings', json.encode(menu)) 171 | end) 172 | end) 173 | 174 | -- Notifications 175 | RegisterNUICallback('openMenuSounds', function() 176 | Wait(50) 177 | Menu.isOpenMenuSoundsChecked = not Menu.isOpenMenuSoundsChecked 178 | TriggerEvent("hud:client:playHudChecklistSound") 179 | saveSettings() 180 | end) 181 | 182 | RegisterNetEvent("hud:client:playOpenMenuSounds", function() 183 | Wait(50) 184 | if not Menu.isOpenMenuSoundsChecked then return end 185 | TriggerServerEvent("InteractSound_SV:PlayOnSource", "monkeyopening", 0.5) 186 | end) 187 | 188 | RegisterNetEvent("hud:client:playCloseMenuSounds", function() 189 | Wait(50) 190 | if not Menu.isOpenMenuSoundsChecked then return end 191 | TriggerServerEvent("InteractSound_SV:PlayOnSource", "catclosing", 0.05) 192 | end) 193 | 194 | RegisterNUICallback('resetHudSounds', function() 195 | Wait(50) 196 | Menu.isResetSoundsChecked = not Menu.isResetSoundsChecked 197 | TriggerEvent("hud:client:playHudChecklistSound") 198 | saveSettings() 199 | end) 200 | 201 | RegisterNetEvent("hud:client:playResetHudSounds", function() 202 | Wait(50) 203 | if not Menu.isResetSoundsChecked then return end 204 | TriggerServerEvent("InteractSound_SV:PlayOnSource", "airwrench", 0.1) 205 | end) 206 | 207 | RegisterNUICallback('checklistSounds', function() 208 | Wait(50) 209 | TriggerEvent("hud:client:checklistSounds") 210 | end) 211 | 212 | RegisterNetEvent("hud:client:checklistSounds", function() 213 | Wait(50) 214 | Menu.isListSoundsChecked = not Menu.isListSoundsChecked 215 | TriggerEvent("hud:client:playHudChecklistSound") 216 | saveSettings() 217 | end) 218 | 219 | RegisterNetEvent("hud:client:playHudChecklistSound", function() 220 | Wait(50) 221 | if not Menu.isListSoundsChecked then return end 222 | TriggerServerEvent("InteractSound_SV:PlayOnSource", "shiftyclick", 0.5) 223 | end) 224 | 225 | RegisterNUICallback('showOutMap', function() 226 | Wait(50) 227 | Menu.isOutMapChecked = not Menu.isOutMapChecked 228 | TriggerEvent("hud:client:playHudChecklistSound") 229 | saveSettings() 230 | end) 231 | 232 | RegisterNUICallback('showOutCompass', function() 233 | Wait(50) 234 | Menu.isOutCompassChecked = not Menu.isOutCompassChecked 235 | TriggerEvent("hud:client:playHudChecklistSound") 236 | saveSettings() 237 | end) 238 | 239 | RegisterNUICallback('showFollowCompass', function() 240 | Wait(50) 241 | Menu.isCompassFollowChecked = not Menu.isCompassFollowChecked 242 | TriggerEvent("hud:client:playHudChecklistSound") 243 | saveSettings() 244 | end) 245 | 246 | RegisterNUICallback('showMapNotif', function() 247 | Wait(50) 248 | Menu.isMapNotifChecked = not Menu.isMapNotifChecked 249 | TriggerEvent("hud:client:playHudChecklistSound") 250 | saveSettings() 251 | end) 252 | 253 | RegisterNUICallback('showFuelAlert', function() 254 | Wait(50) 255 | Menu.isLowFuelChecked = not Menu.isLowFuelChecked 256 | TriggerEvent("hud:client:playHudChecklistSound") 257 | saveSettings() 258 | end) 259 | 260 | RegisterNUICallback('showCinematicNotif', function() 261 | Wait(50) 262 | Menu.isCinematicNotifChecked = not Menu.isCinematicNotifChecked 263 | TriggerEvent("hud:client:playHudChecklistSound") 264 | saveSettings() 265 | end) 266 | 267 | -- Status 268 | RegisterNUICallback('dynamicHealth', function() 269 | Wait(50) 270 | TriggerEvent("hud:client:ToggleHealth") 271 | end) 272 | 273 | RegisterNetEvent("hud:client:ToggleHealth", function() 274 | Wait(50) 275 | Menu.isDynamicHealthChecked = not Menu.isDynamicHealthChecked 276 | TriggerEvent("hud:client:playHudChecklistSound") 277 | saveSettings() 278 | end) 279 | 280 | RegisterNUICallback('dynamicArmor', function() 281 | Wait(50) 282 | Menu.isDynamicArmorChecked = not Menu.isDynamicArmorChecked 283 | TriggerEvent("hud:client:playHudChecklistSound") 284 | saveSettings() 285 | end) 286 | 287 | RegisterNUICallback('dynamicHunger', function() 288 | Wait(50) 289 | Menu.isDynamicHungerChecked = not Menu.isDynamicHungerChecked 290 | TriggerEvent("hud:client:playHudChecklistSound") 291 | saveSettings() 292 | end) 293 | 294 | RegisterNUICallback('dynamicThirst', function() 295 | Wait(50) 296 | Menu.isDynamicThirstChecked = not Menu.isDynamicThirstChecked 297 | TriggerEvent("hud:client:playHudChecklistSound") 298 | saveSettings() 299 | end) 300 | 301 | RegisterNUICallback('dynamicStress', function() 302 | Wait(50) 303 | Menu.isDynamicStressChecked = not Menu.isDynamicStressChecked 304 | TriggerEvent("hud:client:playHudChecklistSound") 305 | saveSettings() 306 | end) 307 | 308 | RegisterNUICallback('dynamicOxygen', function() 309 | Wait(50) 310 | Menu.isDynamicOxygenChecked = not Menu.isDynamicOxygenChecked 311 | TriggerEvent("hud:client:playHudChecklistSound") 312 | saveSettings() 313 | end) 314 | 315 | -- Vehicle 316 | RegisterNUICallback('changeFPS', function() 317 | Wait(50) 318 | Menu.isChangeFPSChecked = not Menu.isChangeFPSChecked 319 | TriggerEvent("hud:client:playHudChecklistSound") 320 | saveSettings() 321 | end) 322 | 323 | RegisterNUICallback('HideMap', function() 324 | Wait(50) 325 | Menu.isHideMapChecked = not Menu.isHideMapChecked 326 | DisplayRadar(not Menu.isHideMapChecked) 327 | TriggerEvent("hud:client:playHudChecklistSound") 328 | saveSettings() 329 | end) 330 | 331 | RegisterNetEvent("hud:client:LoadMap", function() 332 | Wait(50) 333 | -- Credit to Dalrae for the solve. 334 | local defaultAspectRatio = 1920 / 1080 -- Don't change this. 335 | local resolutionX, resolutionY = GetActiveScreenResolution() 336 | local aspectRatio = resolutionX / resolutionY 337 | local minimapOffset = 0 338 | if aspectRatio > defaultAspectRatio then 339 | minimapOffset = ((defaultAspectRatio - aspectRatio) / 3.6) - 0.008 340 | end 341 | RequestStreamedTextureDict("squaremap", false) 342 | if not HasStreamedTextureDictLoaded("squaremap") then 343 | Wait(150) 344 | end 345 | if Menu.isMapNotifChecked then 346 | QBCore.Functions.Notify(Lang:t("notify.load_square_map")) 347 | end 348 | SetMinimapClipType(0) 349 | AddReplaceTexture("platform:/textures/graphics", "radarmasksm", "squaremap", "radarmasksm") 350 | AddReplaceTexture("platform:/textures/graphics", "radarmask1g", "squaremap", "radarmasksm") 351 | -- 0.0 = nav symbol and icons left 352 | -- 0.1638 = nav symbol and icons stretched 353 | -- 0.216 = nav symbol and icons raised up 354 | SetMinimapComponentPosition("minimap", "L", "B", 0.0 + minimapOffset, -0.047, 0.1638, 0.183) 355 | 356 | -- icons within map 357 | SetMinimapComponentPosition("minimap_mask", "L", "B", 0.0 + minimapOffset, 0.0, 0.128, 0.20) 358 | 359 | -- -0.01 = map pulled left 360 | -- 0.025 = map raised up 361 | -- 0.262 = map stretched 362 | -- 0.315 = map shorten 363 | SetMinimapComponentPosition('minimap_blur', 'L', 'B', -0.01 + minimapOffset, 0.025, 0.262, 0.300) 364 | SetBlipAlpha(GetNorthRadarBlip(), 0) 365 | SetRadarBigmapEnabled(true, false) 366 | SetMinimapClipType(0) 367 | Wait(50) 368 | SetRadarBigmapEnabled(false, false) 369 | Wait(1200) 370 | if Menu.isMapNotifChecked then 371 | QBCore.Functions.Notify(Lang:t("notify.loaded_square_map")) 372 | end 373 | end) 374 | 375 | RegisterNUICallback('dynamicEngine', function() 376 | Wait(50) 377 | Menu.isDynamicEngineChecked = not Menu.isDynamicEngineChecked 378 | TriggerEvent("hud:client:playHudChecklistSound") 379 | saveSettings() 380 | end) 381 | 382 | RegisterNUICallback('dynamicNitro', function() 383 | Wait(50) 384 | Menu.isDynamicNitroChecked = not Menu.isDynamicNitroChecked 385 | TriggerEvent("hud:client:playHudChecklistSound") 386 | saveSettings() 387 | end) 388 | 389 | -- Compass 390 | RegisterNUICallback('showCompassBase', function() 391 | Wait(50) 392 | Menu.isCompassShowChecked = not Menu.isCompassShowChecked 393 | TriggerEvent("hud:client:playHudChecklistSound") 394 | saveSettings() 395 | end) 396 | 397 | RegisterNUICallback('showStreetsNames', function() 398 | Wait(50) 399 | Menu.isShowStreetsChecked = not Menu.isShowStreetsChecked 400 | TriggerEvent("hud:client:playHudChecklistSound") 401 | saveSettings() 402 | end) 403 | 404 | RegisterNUICallback('showPointerIndex', function() 405 | Wait(50) 406 | Menu.isPointerShowChecked = not Menu.isPointerShowChecked 407 | TriggerEvent("hud:client:playHudChecklistSound") 408 | saveSettings() 409 | end) 410 | 411 | RegisterNUICallback('showDegreesNum', function() 412 | Wait(50) 413 | Menu.isDegreesShowChecked = not Menu.isDegreesShowChecked 414 | TriggerEvent("hud:client:playHudChecklistSound") 415 | saveSettings() 416 | end) 417 | 418 | RegisterNUICallback('changeCompassFPS', function() 419 | Wait(50) 420 | Menu.isChangeCompassFPSChecked = not Menu.isChangeCompassFPSChecked 421 | TriggerEvent("hud:client:playHudChecklistSound") 422 | saveSettings() 423 | end) 424 | 425 | RegisterNUICallback('cinematicMode', function() 426 | Wait(50) 427 | if Menu.isCineamticModeChecked then 428 | CinematicShow(false) 429 | Menu.isCineamticModeChecked = false 430 | if Menu.isCinematicNotifChecked then 431 | QBCore.Functions.Notify(Lang:t("notify.cinematic_off"), 'error') 432 | end 433 | DisplayRadar(1) 434 | else 435 | CinematicShow(true) 436 | Menu.isCineamticModeChecked = true 437 | if Menu.isCinematicNotifChecked then 438 | QBCore.Functions.Notify(Lang:t("notify.cinematic_on")) 439 | end 440 | end 441 | TriggerEvent("hud:client:playHudChecklistSound") 442 | saveSettings() 443 | end) 444 | 445 | RegisterNetEvent("hud:client:EngineHealth", function(newEngine) 446 | engine = newEngine 447 | end) 448 | 449 | RegisterNetEvent('hud:client:ToggleAirHud', function() 450 | showAltitude = not showAltitude 451 | end) 452 | 453 | RegisterNetEvent('hud:client:UpdateNeeds', function(newHunger, newThirst) -- Triggered in qb-core 454 | if newHunger > 100 then 455 | hunger = 100 456 | else 457 | hunger = newHunger 458 | end 459 | if newThirst > 100 then 460 | thirst = 100 461 | else 462 | thirst = newThirst 463 | end 464 | -- print(newHunger , newThirst) -- For Dev 465 | end) 466 | 467 | RegisterNetEvent('hud:client:UpdateStress', function(newStress) -- Add this event with adding stress elsewhere 468 | stress = newStress 469 | end) 470 | 471 | RegisterNetEvent('hud:client:ToggleShowSeatbelt', function() 472 | showSeatbelt = not showSeatbelt 473 | end) 474 | 475 | RegisterNetEvent('seatbelt:client:ToggleSeatbelt', function() -- Triggered in smallresources 476 | seatbeltOn = not seatbeltOn 477 | end) 478 | 479 | RegisterNetEvent('seatbelt:client:ToggleCruise', function() -- Triggered in smallresources 480 | cruiseOn = not cruiseOn 481 | end) 482 | 483 | RegisterNetEvent('hud:client:UpdateNitrous', function(hasNitro, nitroLevel, bool) 484 | nos = nitroLevel 485 | nitroActive = bool 486 | end) 487 | 488 | RegisterNetEvent('hud:client:UpdateHarness', function(harnessHp) 489 | hp = harnessHp 490 | end) 491 | 492 | RegisterNetEvent("qb-admin:client:ToggleDevmode", function() 493 | dev = not dev 494 | end) 495 | 496 | RegisterNetEvent('hud:client:BuffEffect', function(data) 497 | if data.progressColor ~= nil then 498 | SendNUIMessage({ 499 | action = "externalstatus", 500 | topic = "buff", 501 | display = data.display, 502 | iconColor = data.iconColor, 503 | iconName = data.iconName, 504 | buffName = data.buffName, 505 | progressValue = data.progressValue, 506 | progressColor = data.progressColor, 507 | }) 508 | elseif data.progressValue ~= nil then 509 | SendNUIMessage({ 510 | action = "externalstatus", 511 | topic = "buff", 512 | buffName = data.buffName, 513 | progressValue = data.progressValue, 514 | }) 515 | elseif data.display ~= nil then 516 | SendNUIMessage({ 517 | action = "externalstatus", 518 | topic = "buff", 519 | buffName = data.buffName, 520 | display = data.display, 521 | }) 522 | else 523 | print("Hud error: data invalid from client event call: hud:client:BuffEffect") 524 | end 525 | end) 526 | 527 | RegisterNetEvent('hud:client:EnhancementEffect', function(data) 528 | if data.iconColor ~= nil then 529 | SendNUIMessage({ 530 | action = "externalstatus", 531 | topic = "enhancement", 532 | display = data.display, 533 | iconColor = data.iconColor, 534 | enhancementName = data.enhancementName, 535 | }) 536 | elseif data.display ~= nil then 537 | SendNUIMessage({ 538 | action = "externalstatus", 539 | topic = "enhancement", 540 | display = data.display, 541 | enhancementName = data.enhancementName, 542 | }) 543 | else 544 | print("Hud error: data invalid from client event call: hud:client:EnhancementEffect") 545 | end 546 | end) 547 | 548 | --[[RegisterCommand('+engine', function() 549 | local vehicle = GetVehiclePedIsIn(PlayerPedId(), false) 550 | if vehicle == 0 or GetPedInVehicleSeat(vehicle, -1) ~= PlayerPedId() then return end 551 | if GetIsVehicleEngineRunning(vehicle) then 552 | QBCore.Functions.Notify(Lang:t("notify.engine_off")) 553 | else 554 | QBCore.Functions.Notify(Lang:t("notify.engine_on")) 555 | end 556 | SetVehicleEngineOn(vehicle, not GetIsVehicleEngineRunning(vehicle), false, true) 557 | end) 558 | 559 | RegisterKeyMapping('+engine', 'Toggle Engine', 'keyboard', 'G')]] 560 | -- 561 | 562 | local function IsWhitelistedWeaponArmed(weapon) 563 | if weapon then 564 | for _, v in pairs(config.WhitelistedWeaponArmed) do 565 | if weapon == v then 566 | return true 567 | end 568 | end 569 | end 570 | return false 571 | end 572 | 573 | local prevPlayerStats = { nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil } 574 | 575 | local function updatePlayerHud(data) 576 | local shouldUpdate = false 577 | for k, v in pairs(data) do 578 | if prevPlayerStats[k] ~= v then 579 | shouldUpdate = true 580 | break 581 | end 582 | end 583 | prevPlayerStats = data 584 | if shouldUpdate then 585 | SendNUIMessage({ 586 | action = 'hudtick', 587 | show = data[1], 588 | dynamicHealth = data[2], 589 | dynamicArmor = data[3], 590 | dynamicHunger = data[4], 591 | dynamicThirst = data[5], 592 | dynamicStress = data[6], 593 | dynamicOxygen = data[7], 594 | dynamicNitro = data[9], 595 | health = data[10], 596 | playerDead = data[11], 597 | armor = data[12], 598 | thirst = data[13], 599 | hunger = data[14], 600 | stress = data[15], 601 | voice = data[16], 602 | radio = data[17], 603 | talking = data[18], 604 | armed = data[19], 605 | oxygen = data[20], 606 | parachute = data[21], 607 | nos = data[22], 608 | cruise = data[23], 609 | nitroActive = data[24], 610 | harness = data[25], 611 | hp = data[26], 612 | speed = data[27], 613 | engine = data[28], 614 | cinematic = data[29], 615 | dev = data[30], 616 | }) 617 | end 618 | end 619 | 620 | local prevVehicleStats = { nil, nil, nil, nil, nil, nil, nil, nil, nil, nil } 621 | 622 | local function updateVehicleHud(data) 623 | local shouldUpdate = false 624 | for k, v in pairs(data) do 625 | if prevVehicleStats[k] ~= v then 626 | shouldUpdate = true 627 | break 628 | end 629 | end 630 | prevVehicleStats = data 631 | if shouldUpdate then 632 | SendNUIMessage({ 633 | action = 'car', 634 | show = data[1], 635 | isPaused = data[2], 636 | seatbelt = data[3], 637 | speed = data[4], 638 | fuel = data[5], 639 | engine = data[6], 640 | dynamicEngine = data[7], 641 | altitude = data[8], 642 | showAltitude = data[9], 643 | showSeatbelt = data[10], 644 | }) 645 | end 646 | end 647 | 648 | local lastFuelUpdate = 0 649 | local lastFuelCheck = {} 650 | 651 | local function getFuelLevel(vehicle) 652 | local updateTick = GetGameTimer() 653 | if (updateTick - lastFuelUpdate) > 2000 then 654 | lastFuelUpdate = updateTick 655 | lastFuelCheck = math.floor(exports[Config.Fuel]:GetFuel(vehicle)) 656 | end 657 | return lastFuelCheck 658 | end 659 | 660 | -- HUD Update loop 661 | 662 | CreateThread(function() 663 | local wasInVehicle = false 664 | while true do 665 | if Menu.isChangeFPSChecked then 666 | Wait(500) 667 | else 668 | Wait(50) 669 | end 670 | if LocalPlayer.state.isLoggedIn then 671 | local show = true 672 | local player = PlayerPedId() 673 | local playerId = PlayerId() 674 | local weapon = GetSelectedPedWeapon(player) 675 | -- Player hud 676 | if not IsWhitelistedWeaponArmed(weapon) then 677 | if weapon ~= joaat('WEAPON_UNARMED') then 678 | armed = true 679 | else 680 | armed = false 681 | end 682 | end 683 | playerDead = IsEntityDead(player) or PlayerData.metadata["inlaststand"] or PlayerData.metadata["isdead"] or 684 | false 685 | parachute = GetPedParachuteState(player) 686 | -- Stamina 687 | if not IsEntityInWater(player) then 688 | oxygen = 100 - GetPlayerSprintStaminaRemaining(playerId) 689 | end 690 | 691 | -- Oxygen 692 | if IsEntityInWater(player) then 693 | oxygen = GetPlayerUnderwaterTimeRemaining(playerId) * 10 694 | end 695 | if oxygen <= 0 then 696 | oxygen = 0 697 | end 698 | 699 | -- Player hud 700 | local talking = NetworkIsPlayerTalking(playerId) 701 | local voice = 0 702 | if LocalPlayer.state['proximity'] then 703 | voice = LocalPlayer.state['proximity'].distance 704 | end 705 | if IsPauseMenuActive() then 706 | show = false 707 | end 708 | if not (IsPedInAnyVehicle(player) and not IsThisModelABicycle(vehicle)) then 709 | updatePlayerHud({ 710 | show, 711 | Menu.isDynamicHealthChecked, 712 | Menu.isDynamicArmorChecked, 713 | Menu.isDynamicHungerChecked, 714 | Menu.isDynamicThirstChecked, 715 | Menu.isDynamicStressChecked, 716 | Menu.isDynamicOxygenChecked, 717 | Menu.isDynamicEngineChecked, 718 | Menu.isDynamicNitroChecked, 719 | GetEntityHealth(player) - 100, 720 | playerDead, 721 | GetPedArmour(player), 722 | thirst, 723 | hunger, 724 | stress, 725 | voice, 726 | LocalPlayer.state['radioChannel'], 727 | talking, 728 | armed, 729 | oxygen, 730 | GetPedParachuteState(player), 731 | -1, 732 | cruiseOn, 733 | nitroActive, 734 | harness, 735 | hp, 736 | string.format("%03d", math.ceil(GetEntitySpeed(vehicle) * speedMultiplier)), 737 | -1, 738 | Menu.isCineamticModeChecked, 739 | dev, 740 | }) 741 | end 742 | -- Vehicle hud 743 | local vehicle = GetVehiclePedIsIn(player) 744 | if IsPedInAnyHeli(player) or IsPedInAnyPlane(player) then 745 | showAltitude = true 746 | showSeatbelt = false 747 | end 748 | if IsPedInAnyVehicle(player) and not IsThisModelABicycle(vehicle) then 749 | if not wasInVehicle then 750 | DisplayRadar(true) 751 | end 752 | wasInVehicle = true 753 | updatePlayerHud({ 754 | show, 755 | Menu.isDynamicHealthChecked, 756 | Menu.isDynamicArmorChecked, 757 | Menu.isDynamicHungerChecked, 758 | Menu.isDynamicThirstChecked, 759 | Menu.isDynamicStressChecked, 760 | Menu.isDynamicOxygenChecked, 761 | Menu.isDynamicEngineChecked, 762 | Menu.isDynamicNitroChecked, 763 | GetEntityHealth(player) - 100, 764 | playerDead, 765 | GetPedArmour(player), 766 | thirst, 767 | hunger, 768 | stress, 769 | voice, 770 | LocalPlayer.state['radioChannel'], 771 | talking, 772 | armed, 773 | oxygen, 774 | GetPedParachuteState(player), 775 | nos, 776 | cruiseOn, 777 | nitroActive, 778 | harness, 779 | hp, 780 | string.format("%03d", math.ceil(GetEntitySpeed(vehicle) * speedMultiplier)), 781 | Menu.isCineamticModeChecked, 782 | dev, 783 | }) 784 | updateVehicleHud({ 785 | show, 786 | IsPauseMenuActive(), 787 | seatbeltOn, 788 | string.format("%03d", math.ceil(GetEntitySpeed(vehicle) * speedMultiplier)), 789 | getFuelLevel(vehicle), 790 | (GetVehicleEngineHealth(vehicle) / 10), 791 | Menu.isDynamicEngineChecked, 792 | math.ceil(GetEntityCoords(player).z * 0.5), 793 | showAltitude, 794 | showSeatbelt, 795 | }) 796 | showAltitude = false 797 | showSeatbelt = true 798 | else 799 | if wasInVehicle then 800 | wasInVehicle = false 801 | SendNUIMessage({ 802 | action = 'car', 803 | show = false, 804 | seatbelt = false, 805 | cruise = false, 806 | }) 807 | seatbeltOn = false 808 | cruiseOn = false 809 | harness = false 810 | end 811 | DisplayRadar(Menu.isOutMapChecked) 812 | end 813 | else 814 | SendNUIMessage({ 815 | action = 'hudtick', 816 | show = false 817 | }) 818 | end 819 | end 820 | end) 821 | 822 | -- Low fuel 823 | CreateThread(function() 824 | while true do 825 | if LocalPlayer.state.isLoggedIn then 826 | local ped = PlayerPedId() 827 | if IsPedInAnyVehicle(ped, false) and not IsThisModelABicycle(GetEntityModel(GetVehiclePedIsIn(ped, false))) then 828 | if exports[Config.Fuel]:GetFuel(GetVehiclePedIsIn(ped, false)) <= 20 then -- At 20% Fuel Left 829 | if Menu.isLowFuelChecked then 830 | TriggerServerEvent("InteractSound_SV:PlayOnSource", "pager", 0.10) 831 | QBCore.Functions.Notify(Lang:t("notify.low_fuel"), "error") 832 | Wait(60000) -- repeats every 1 min until empty 833 | end 834 | end 835 | end 836 | end 837 | Wait(10000) 838 | end 839 | end) 840 | 841 | -- Money HUD 842 | 843 | local Round = math.floor 844 | 845 | RegisterNetEvent('hud:client:ShowAccounts', function(type, amount) 846 | if type == 'cash' then 847 | SendNUIMessage({ 848 | action = 'show', 849 | type = 'cash', 850 | cash = Round(amount) 851 | }) 852 | else 853 | SendNUIMessage({ 854 | action = 'show', 855 | type = 'bank', 856 | bank = Round(amount) 857 | }) 858 | end 859 | end) 860 | 861 | RegisterNetEvent('hud:client:OnMoneyChange', function(type, amount, isMinus) 862 | cashAmount = PlayerData.money['cash'] 863 | bankAmount = PlayerData.money['bank'] 864 | SendNUIMessage({ 865 | action = 'updatemoney', 866 | cash = Round(cashAmount), 867 | bank = Round(bankAmount), 868 | amount = Round(amount), 869 | minus = isMinus, 870 | type = type 871 | }) 872 | end) 873 | 874 | -- Harness Check 875 | 876 | CreateThread(function() 877 | while true do 878 | Wait(1000) 879 | if LocalPlayer.state.isLoggedIn then 880 | local ped = PlayerPedId() 881 | if IsPedInAnyVehicle(ped, false) then 882 | QBCore.Functions.TriggerCallback('hud:server:HasHarness', function(hasItem) 883 | if hasItem then 884 | harness = true 885 | else 886 | harness = false 887 | end 888 | end, "harness") 889 | end 890 | end 891 | end 892 | end) 893 | 894 | -- Stress Gain 895 | 896 | CreateThread(function() -- Speeding 897 | while true do 898 | if LocalPlayer.state.isLoggedIn then 899 | local ped = PlayerPedId() 900 | if IsPedInAnyVehicle(ped, false) then 901 | local speed = GetEntitySpeed(GetVehiclePedIsIn(ped, false)) * speedMultiplier 902 | local stressSpeed = seatbeltOn and config.MinimumSpeed or config.MinimumSpeedUnbuckled 903 | if speed >= stressSpeed then 904 | TriggerServerEvent('hud:server:GainStress', math.random(1, 3)) 905 | end 906 | end 907 | end 908 | Wait(10000) 909 | end 910 | end) 911 | 912 | local function IsWhitelistedWeaponStress(weapon) 913 | if weapon then 914 | for _, v in pairs(config.WhitelistedWeaponStress) do 915 | if weapon == v then 916 | return true 917 | end 918 | end 919 | end 920 | return false 921 | end 922 | 923 | CreateThread(function() -- Shooting 924 | while true do 925 | if LocalPlayer.state.isLoggedIn then 926 | local ped = PlayerPedId() 927 | local weapon = GetSelectedPedWeapon(ped) 928 | if weapon ~= joaat('WEAPON_UNARMED') then 929 | if IsPedShooting(ped) and not IsWhitelistedWeaponStress(weapon) then 930 | if math.random() < config.StressChance then 931 | TriggerServerEvent('hud:server:GainStress', math.random(1, 3)) 932 | end 933 | end 934 | else 935 | Wait(1000) 936 | end 937 | end 938 | Wait(8) 939 | end 940 | end) 941 | 942 | -- Stress Screen Effects 943 | 944 | local function GetBlurIntensity(stresslevel) 945 | for k, v in pairs(config.Intensity['blur']) do 946 | if stresslevel >= v.min and stresslevel <= v.max then 947 | return v.intensity 948 | end 949 | end 950 | return 1500 951 | end 952 | 953 | local function GetEffectInterval(stresslevel) 954 | for k, v in pairs(config.EffectInterval) do 955 | if stresslevel >= v.min and stresslevel <= v.max then 956 | return v.timeout 957 | end 958 | end 959 | return 60000 960 | end 961 | 962 | CreateThread(function() 963 | while true do 964 | local waitTime = 120000 965 | if LocalPlayer.state.isLoggedIn then 966 | if stress > 75 then 967 | waitTime = 10000 968 | elseif stress > 45 then 969 | waitTime = 30000 970 | elseif stress > 20 then 971 | waitTime = 60000 972 | end 973 | if stress > 10 then 974 | TriggerScreenblurFadeIn(1000.0) 975 | Wait(1100) 976 | TriggerScreenblurFadeOut(1000.0) 977 | end 978 | end 979 | Wait(waitTime) 980 | end 981 | end) 982 | 983 | -- Minimap update 984 | CreateThread(function() 985 | while true do 986 | SetRadarBigmapEnabled(false, false) 987 | SetRadarZoom(1000) 988 | Wait(500) 989 | end 990 | end) 991 | 992 | local function BlackBars() 993 | DrawRect(0.0, 0.0, 2.0, w, 0, 0, 0, 255) 994 | DrawRect(0.0, 1.0, 2.0, w, 0, 0, 0, 255) 995 | end 996 | 997 | CreateThread(function() 998 | local minimap = RequestScaleformMovie("minimap") 999 | if not HasScaleformMovieLoaded(minimap) then 1000 | RequestScaleformMovie(minimap) 1001 | while not HasScaleformMovieLoaded(minimap) do 1002 | Wait(1) 1003 | end 1004 | end 1005 | while true do 1006 | if w > 0 then 1007 | BlackBars() 1008 | DisplayRadar(0) 1009 | SendNUIMessage({ 1010 | action = 'hudtick', 1011 | show = false, 1012 | }) 1013 | SendNUIMessage({ 1014 | action = 'car', 1015 | show = false, 1016 | }) 1017 | end 1018 | Wait(0) 1019 | end 1020 | end) 1021 | 1022 | -- Compass 1023 | function round(num, numDecimalPlaces) 1024 | local mult = 10 ^ (numDecimalPlaces or 0) 1025 | return math.floor(num + 0.5 * mult) 1026 | end 1027 | 1028 | local prevBaseplateStats = { nil, nil, nil, nil, nil, nil, nil } 1029 | 1030 | local function updateBaseplateHud(data) 1031 | local shouldUpdate = false 1032 | for k, v in pairs(data) do 1033 | if prevBaseplateStats[k] ~= v then 1034 | shouldUpdate = true 1035 | break 1036 | end 1037 | end 1038 | prevBaseplateStats = data 1039 | if shouldUpdate then 1040 | SendNUIMessage({ 1041 | action = 'baseplate', 1042 | show = data[1], 1043 | street1 = data[2], 1044 | street2 = data[3], 1045 | showCompass = data[4], 1046 | showStreets = data[5], 1047 | showPointer = data[6], 1048 | showDegrees = data[7], 1049 | }) 1050 | end 1051 | end 1052 | 1053 | local lastCrossroadUpdate = 0 1054 | local lastCrossroadCheck = {} 1055 | 1056 | local function getCrossroads(player) 1057 | local updateTick = GetGameTimer() 1058 | if updateTick - lastCrossroadUpdate > 1500 then 1059 | local pos = GetEntityCoords(player) 1060 | local street1, street2 = GetStreetNameAtCoord(pos.x, pos.y, pos.z) 1061 | lastCrossroadUpdate = updateTick 1062 | lastCrossroadCheck = { GetStreetNameFromHashKey(street1), GetStreetNameFromHashKey(street2) } 1063 | end 1064 | return lastCrossroadCheck 1065 | end 1066 | 1067 | -- Compass Update loop 1068 | 1069 | CreateThread(function() 1070 | local heading, lastHeading = 0, 1 1071 | while true do 1072 | if Menu.isChangeCompassFPSChecked then 1073 | Wait(50) 1074 | else 1075 | Wait(0) 1076 | end 1077 | local show = true 1078 | local player = PlayerPedId() 1079 | local camRot = GetGameplayCamRot(0) 1080 | if Menu.isCompassFollowChecked then 1081 | heading = tostring(round(360.0 - ((camRot.z + 360.0) % 360.0))) 1082 | else 1083 | heading = tostring(round(360.0 - GetEntityHeading(player))) 1084 | end 1085 | if heading == '360' then heading = '0' end 1086 | if heading ~= lastHeading then 1087 | if IsPedInAnyVehicle(player) then 1088 | local crossroads = getCrossroads(player) 1089 | SendNUIMessage({ 1090 | action = 'update', 1091 | value = heading 1092 | }) 1093 | updateBaseplateHud({ 1094 | show, 1095 | crossroads[1], 1096 | crossroads[2], 1097 | Menu.isCompassShowChecked, 1098 | Menu.isShowStreetsChecked, 1099 | Menu.isPointerShowChecked, 1100 | Menu.isDegreesShowChecked, 1101 | }) 1102 | else 1103 | if Menu.isOutCompassChecked then 1104 | SendNUIMessage({ 1105 | action = 'update', 1106 | value = heading 1107 | }) 1108 | SendNUIMessage({ 1109 | action = 'baseplate', 1110 | show = true, 1111 | showCompass = true, 1112 | }) 1113 | else 1114 | SendNUIMessage({ 1115 | action = 'baseplate', 1116 | show = false, 1117 | }) 1118 | end 1119 | end 1120 | end 1121 | lastHeading = heading 1122 | end 1123 | end) 1124 | -------------------------------------------------------------------------------- /config.lua: -------------------------------------------------------------------------------- 1 | Config = {} 2 | 3 | Config.Core = 'qb-core' -- Name of the core file --default qb-core or qbx-core 4 | Config.OpenMenu = 'I' -- https://docs.fivem.net/docs/game-references/input-mapper-parameter-ids/keyboard/ 5 | Config.StressChance = 0.1 -- Default: 10% -- Percentage Stress Chance When Shooting (0-1) 6 | Config.UseMPH = true -- If true speed math will be done as MPH, if false KPH will be used (YOU HAVE TO CHANGE CONTENT IN STYLES.CSS TO DISPLAY THE CORRECT TEXT) 7 | Config.MinimumStress = 50 -- Minimum Stress Level For Screen Shaking 8 | Config.MinimumSpeedUnbuckled = 50 -- Going Over This Speed Will Cause Stress 9 | Config.MinimumSpeed = 100 -- Going Over This Speed Will Cause Stress 10 | Config.DisablePoliceStress = true -- If true will disable stress for people with the police job 11 | Config.Buffs = 'ps-buffs' -- PS-Buff integration 12 | Config.Fuel = 'LegacyFuel' -- Fuel Script for getfuel and setfuel exports 13 | 14 | -- Stress 15 | Config.WhitelistedWeaponArmed = { -- weapons specifically whitelisted to not show armed mode 16 | -- miscellaneous 17 | `weapon_petrolcan`, 18 | `weapon_hazardcan`, 19 | `weapon_fireextinguisher`, 20 | -- melee 21 | `weapon_dagger`, 22 | `weapon_bat`, 23 | `weapon_bottle`, 24 | `weapon_crowbar`, 25 | `weapon_flashlight`, 26 | `weapon_golfclub`, 27 | `weapon_hammer`, 28 | `weapon_hatchet`, 29 | `weapon_knuckle`, 30 | `weapon_knife`, 31 | `weapon_machete`, 32 | `weapon_switchblade`, 33 | `weapon_nightstick`, 34 | `weapon_wrench`, 35 | `weapon_battleaxe`, 36 | `weapon_poolcue`, 37 | `weapon_briefcase`, 38 | `weapon_briefcase_02`, 39 | `weapon_garbagebag`, 40 | `weapon_handcuffs`, 41 | `weapon_bread`, 42 | `weapon_stone_hatchet`, 43 | -- throwables 44 | `weapon_grenade`, 45 | `weapon_bzgas`, 46 | `weapon_molotov`, 47 | `weapon_stickybomb`, 48 | `weapon_proxmine`, 49 | `weapon_snowball`, 50 | `weapon_pipebomb`, 51 | `weapon_ball`, 52 | `weapon_smokegrenade`, 53 | `weapon_flare` 54 | } 55 | 56 | Config.WhitelistedWeaponStress = { 57 | `weapon_petrolcan`, 58 | `weapon_hazardcan`, 59 | `weapon_fireextinguisher` 60 | } 61 | 62 | Config.Intensity = { 63 | ["blur"] = { 64 | [1] = { 65 | min = 50, 66 | max = 60, 67 | intensity = 1500, 68 | }, 69 | [2] = { 70 | min = 60, 71 | max = 70, 72 | intensity = 2000, 73 | }, 74 | [3] = { 75 | min = 70, 76 | max = 80, 77 | intensity = 2500, 78 | }, 79 | [4] = { 80 | min = 80, 81 | max = 90, 82 | intensity = 2700, 83 | }, 84 | [5] = { 85 | min = 90, 86 | max = 100, 87 | intensity = 3000, 88 | }, 89 | } 90 | } 91 | 92 | Config.EffectInterval = { 93 | [1] = { 94 | min = 50, 95 | max = 60, 96 | timeout = math.random(50000, 60000) 97 | }, 98 | [2] = { 99 | min = 60, 100 | max = 70, 101 | timeout = math.random(40000, 50000) 102 | }, 103 | [3] = { 104 | min = 70, 105 | max = 80, 106 | timeout = math.random(30000, 40000) 107 | }, 108 | [4] = { 109 | min = 80, 110 | max = 90, 111 | timeout = math.random(20000, 30000) 112 | }, 113 | [5] = { 114 | min = 90, 115 | max = 100, 116 | timeout = math.random(15000, 20000) 117 | } 118 | } 119 | 120 | Config.Menu = { 121 | isOutMapChecked = false, -- isOutMapChecked 122 | isOutCompassChecked = false, -- isOutMapChecked 123 | isCompassFollowChecked = true, -- isCompassFollowChecked 124 | isOpenMenuSoundsChecked = true, -- isOpenMenuSoundsChecked 125 | isResetSoundsChecked = true, -- isResetSoundsChecked 126 | isListSoundsChecked = true, -- isListSoundsChecked 127 | isMapNotifChecked = true, -- isMapNotifChecked 128 | isLowFuelChecked = true, -- isLowFuelChecked 129 | isCinematicNotifChecked = true, -- isCinematicNotifChecked 130 | isDynamicHealthChecked = true, -- isDynamicHealthChecked 131 | isDynamicArmorChecked = true, -- isDynamicArmorChecked 132 | isDynamicHungerChecked = true, -- isDynamicHungerChecked 133 | isDynamicThirstChecked = true, -- isDynamicThirstChecked 134 | isDynamicStressChecked = true, -- isDynamicStressChecked 135 | isDynamicOxygenChecked = true, -- isDynamicOxygenChecked 136 | isChangeFPSChecked = true, -- isChangeFPSChecked 137 | isHideMapChecked = false, -- isHideMapChecked 138 | isDynamicEngineChecked = true, -- isDynamicEngineChecked 139 | isDynamicNitroChecked = true, -- isDynamicNitroChecked 140 | isChangeCompassFPSChecked = true, -- isChangeCompassFPSChecked 141 | isCompassShowChecked = true, -- isShowCompassChecked 142 | isShowStreetsChecked = true, -- isShowStreetsChecked 143 | isPointerShowChecked = true, -- isPointerShowChecked 144 | isDegreesShowChecked = true, -- isDegreesShowChecked 145 | isCineamticModeChecked = false, -- isCineamticModeChecked 146 | } 147 | -------------------------------------------------------------------------------- /fxmanifest.lua: -------------------------------------------------------------------------------- 1 | fx_version "cerulean" 2 | game "gta5" 3 | 4 | description "Z HUD" 5 | version "1.0.0" 6 | lua54 "yes" 7 | use_fxv2_oal "yes" 8 | 9 | shared_scripts { 10 | "@qb-core/shared/locale.lua", 11 | "locales/en.lua", 12 | "config.lua" 13 | } 14 | 15 | client_script "client.lua" 16 | server_script "server.lua" 17 | 18 | ui_page "html/index.html" 19 | 20 | files { 21 | "html/index.html", 22 | "html/styles.css", 23 | "html/responsive.css", 24 | "html/app.js" 25 | } 26 | -------------------------------------------------------------------------------- /html/app.js: -------------------------------------------------------------------------------- 1 | const { ref, onBeforeUnmount } = Vue; 2 | 3 | const app = Vue.createApp({ 4 | data: function () { 5 | return { 6 | isOutMapChecked: this.initIsOutMapChecked(), 7 | isOutCompassChecked: this.initIsOutCompassChecked(), 8 | isCompassFollowChecked: this.initIsCompassFollowChecked(), 9 | isOpenMenuSoundsChecked: this.initIsOpenMenuSoundsChecked(), 10 | isResetSoundsChecked: this.initIsResetSoundsChecked(), 11 | isListSoundsChecked: this.initIsListSoundsChecked(), 12 | isMapNotifChecked: this.initIsMapNotifChecked(), 13 | isLowFuelChecked: this.initIsLowFuelChecked(), 14 | isCinematicNotifChecked: this.initIsCinematicNotifChecked(), 15 | isDynamicHealthChecked: this.initIsDynamicHealthChecked(), 16 | isDynamicArmorChecked: this.initIsDynamicArmorChecked(), 17 | isDynamicHungerChecked: this.initIsDynamicHungerChecked(), 18 | isDynamicThirstChecked: this.initIsDynamicThirstChecked(), 19 | isDynamicStressChecked: this.initIsDynamicStressChecked(), 20 | isDynamicOxygenChecked: this.initIsDynamicOxygenChecked(), 21 | isChangeFPSChecked: this.initIsChangeFPSChecked(), 22 | isHideMapChecked: this.initIsHideMapChecked(), 23 | isDynamicEngineChecked: this.initIsDynamicEngineChecked(), 24 | isDynamicNitroChecked: this.initIsDynamicNitroChecked(), 25 | isChangeCompassFPSChecked: this.initIsChangeCompassFPSChecked(), 26 | isShowCompassChecked: this.initIsShowCompassChecked(), 27 | isShowStreetsChecked: this.initIsShowStreetsChecked(), 28 | isPointerShowChecked: this.initIsPointerShowChecked(), 29 | isDegreesShowChecked: this.initIsDegreesShowChecked(), 30 | isCineamticModeChecked: this.initIsCineamticModeChecked(), 31 | }; 32 | }, 33 | setup() { 34 | const progress = ref([ 35 | { loading: false, percentage: 0 }, 36 | { loading: false, percentage: 0 }, 37 | { loading: false, percentage: 0 }, 38 | ]); 39 | 40 | const intervals = [null, null, null]; 41 | 42 | function startComputing(id) { 43 | progress.value[id].loading = true; 44 | progress.value[id].percentage = 0; 45 | 46 | intervals[id] = setInterval(() => { 47 | progress.value[id].percentage += Math.floor(Math.random() * 8 + 10); 48 | if (progress.value[id].percentage >= 100) { 49 | clearInterval(intervals[id]); 50 | progress.value[id].loading = false; 51 | } 52 | }, 700); 53 | } 54 | 55 | onBeforeUnmount(() => { 56 | intervals.forEach((val) => { 57 | clearInterval(val); 58 | }); 59 | }); 60 | return { 61 | framework: { 62 | plugins: ["LocalStorage", "SessionStorage"], 63 | }, 64 | tab: ref("hud"), 65 | splitterModel: ref(20), 66 | selection: ref([]), 67 | progress, 68 | startComputing, 69 | }; 70 | }, 71 | watch: { 72 | isOutMapChecked: function () { 73 | localStorage.setItem("isOutMapChecked", this.isOutMapChecked); 74 | }, 75 | isOutCompassChecked: function () { 76 | localStorage.setItem("isOutCompassChecked", this.isOutCompassChecked); 77 | }, 78 | isCompassFollowChecked: function () { 79 | localStorage.setItem("isCompassFollowChecked", this.isCompassFollowChecked); 80 | }, 81 | isOpenMenuSoundsChecked: function () { 82 | localStorage.setItem("isOpenMenuSoundsChecked", this.isOpenMenuSoundsChecked); 83 | }, 84 | isResetSoundsChecked: function () { 85 | localStorage.setItem("isResetSoundsChecked", this.isResetSoundsChecked); 86 | }, 87 | isListSoundsChecked: function () { 88 | localStorage.setItem("isListSoundsChecked", this.isListSoundsChecked); 89 | }, 90 | isMapNotifChecked: function () { 91 | localStorage.setItem("isMapNotifChecked", this.isMapNotifChecked); 92 | }, 93 | isLowFuelChecked: function () { 94 | localStorage.setItem("isLowFuelChecked", this.isLowFuelChecked); 95 | }, 96 | isCinematicNotifChecked: function () { 97 | localStorage.setItem("isCinematicNotifChecked", this.isCinematicNotifChecked); 98 | }, 99 | isDynamicHealthChecked: function () { 100 | localStorage.setItem("isDynamicHealthChecked", this.isDynamicHealthChecked); 101 | }, 102 | isDynamicArmorChecked: function () { 103 | localStorage.setItem("isDynamicArmorChecked", this.isDynamicArmorChecked); 104 | }, 105 | isDynamicHungerChecked: function () { 106 | localStorage.setItem("isDynamicHungerChecked", this.isDynamicHungerChecked); 107 | }, 108 | isDynamicThirstChecked: function () { 109 | localStorage.setItem("isDynamicThirstChecked", this.isDynamicThirstChecked); 110 | }, 111 | isDynamicStressChecked: function () { 112 | localStorage.setItem("isDynamicStressChecked", this.isDynamicStressChecked); 113 | }, 114 | isDynamicOxygenChecked: function () { 115 | localStorage.setItem("isDynamicOxygenChecked", this.isDynamicOxygenChecked); 116 | }, 117 | isChangeFPSChecked: function () { 118 | localStorage.setItem("isChangeFPSChecked", this.isChangeFPSChecked); 119 | }, 120 | isHideMapChecked: function () { 121 | localStorage.setItem("isHideMapChecked", this.isHideMapChecked); 122 | }, 123 | isDynamicEngineChecked: function () { 124 | localStorage.setItem("isDynamicEngineChecked", this.isDynamicEngineChecked); 125 | }, 126 | isDynamicNitroChecked: function () { 127 | localStorage.setItem("isDynamicNitroChecked", this.isDynamicNitroChecked); 128 | }, 129 | isChangeCompassFPSChecked: function () { 130 | localStorage.setItem("isChangeCompassFPSChecked", this.isChangeCompassFPSChecked); 131 | }, 132 | isShowCompassChecked: function () { 133 | localStorage.setItem("isShowCompassChecked", this.isShowCompassChecked); 134 | }, 135 | isShowStreetsChecked: function () { 136 | localStorage.setItem("isShowStreetsChecked", this.isShowStreetsChecked); 137 | }, 138 | isPointerShowChecked: function () { 139 | localStorage.setItem("isPointerShowChecked", this.isPointerShowChecked); 140 | }, 141 | isDegreesShowChecked: function () { 142 | localStorage.setItem("isDegreesShowChecked", this.isDegreesShowChecked); 143 | }, 144 | isCineamticModeChecked: function () { 145 | localStorage.setItem("isCineamticModeChecked", this.isCineamticModeChecked); 146 | }, 147 | }, 148 | methods: { 149 | initIsOutMapChecked: function () { 150 | const stored = localStorage.getItem("isOutMapChecked"); 151 | if (stored === null) { 152 | return true; 153 | } else { 154 | return stored == "true"; 155 | } 156 | }, 157 | initIsOutCompassChecked: function () { 158 | const stored = localStorage.getItem("isOutCompassChecked"); 159 | if (stored === null) { 160 | return true; 161 | } else { 162 | return stored == "true"; 163 | } 164 | }, 165 | initIsCompassFollowChecked: function () { 166 | const stored = localStorage.getItem("isCompassFollowChecked"); 167 | if (stored === null) { 168 | return true; 169 | } else { 170 | return stored == "true"; 171 | } 172 | }, 173 | initIsOpenMenuSoundsChecked: function () { 174 | const stored = localStorage.getItem("isOpenMenuSoundsChecked"); 175 | if (stored === null) { 176 | return true; 177 | } else { 178 | return stored == "true"; 179 | } 180 | }, 181 | initIsResetSoundsChecked: function () { 182 | const stored = localStorage.getItem("isResetSoundsChecked"); 183 | if (stored === null) { 184 | return true; 185 | } else { 186 | return stored == "true"; 187 | } 188 | }, 189 | initIsListSoundsChecked: function () { 190 | const stored = localStorage.getItem("isListSoundsChecked"); 191 | if (stored === null) { 192 | return true; 193 | } else { 194 | return stored == "true"; 195 | } 196 | }, 197 | initIsMapNotifChecked: function () { 198 | const stored = localStorage.getItem("isMapNotifChecked"); 199 | if (stored === null) { 200 | return true; 201 | } else { 202 | return stored == "true"; 203 | } 204 | }, 205 | initIsLowFuelChecked: function () { 206 | const stored = localStorage.getItem("isLowFuelChecked"); 207 | if (stored === null) { 208 | return true; 209 | } else { 210 | return stored == "true"; 211 | } 212 | }, 213 | initIsCinematicNotifChecked: function () { 214 | const stored = localStorage.getItem("isCinematicNotifChecked"); 215 | if (stored === null) { 216 | return true; 217 | } else { 218 | return stored == "true"; 219 | } 220 | }, 221 | initIsDynamicHealthChecked: function () { 222 | const stored = localStorage.getItem("isDynamicHealthChecked"); 223 | if (stored === null) { 224 | return false; 225 | } else { 226 | return stored == "true"; 227 | } 228 | }, 229 | initIsDynamicArmorChecked: function () { 230 | const stored = localStorage.getItem("isDynamicArmorChecked"); 231 | if (stored === null) { 232 | return false; 233 | } else { 234 | return stored == "true"; 235 | } 236 | }, 237 | initIsDynamicHungerChecked: function () { 238 | const stored = localStorage.getItem("isDynamicHungerChecked"); 239 | if (stored === null) { 240 | return false; 241 | } else { 242 | return stored == "true"; 243 | } 244 | }, 245 | initIsDynamicThirstChecked: function () { 246 | const stored = localStorage.getItem("isDynamicThirstChecked"); 247 | if (stored === null) { 248 | return false; 249 | } else { 250 | return stored == "true"; 251 | } 252 | }, 253 | initIsDynamicStressChecked: function () { 254 | const stored = localStorage.getItem("isDynamicStressChecked"); 255 | if (stored === null) { 256 | return false; 257 | } else { 258 | return stored == "true"; 259 | } 260 | }, 261 | initIsDynamicOxygenChecked: function () { 262 | const stored = localStorage.getItem("isDynamicOxygenChecked"); 263 | if (stored === null) { 264 | return false; 265 | } else { 266 | return stored == "true"; 267 | } 268 | }, 269 | initIsChangeFPSChecked: function () { 270 | const stored = localStorage.getItem("isChangeFPSChecked"); 271 | if (stored === null) { 272 | return "Optimized"; 273 | } else { 274 | return stored; 275 | } 276 | }, 277 | initIsHideMapChecked: function () { 278 | const stored = localStorage.getItem("isHideMapChecked"); 279 | if (stored === null) { 280 | return true; 281 | } else { 282 | return stored == "true"; 283 | } 284 | }, 285 | initIsDynamicEngineChecked: function () { 286 | const stored = localStorage.getItem("isDynamicEngineChecked"); 287 | if (stored === null) { 288 | return false; 289 | } else { 290 | return stored == "true"; 291 | } 292 | }, 293 | initIsDynamicNitroChecked: function () { 294 | const stored = localStorage.getItem("isDynamicNitroChecked"); 295 | if (stored === null) { 296 | return false; 297 | } else { 298 | return stored == "true"; 299 | } 300 | }, 301 | initIsChangeCompassFPSChecked: function () { 302 | const stored = localStorage.getItem("isChangeCompassFPSChecked"); 303 | if (stored === null) { 304 | return "Optimized"; 305 | } else { 306 | return stored; 307 | } 308 | }, 309 | initIsShowCompassChecked: function () { 310 | const stored = localStorage.getItem("isShowCompassChecked"); 311 | if (stored === null) { 312 | return true; 313 | } else { 314 | return stored == "true"; 315 | } 316 | }, 317 | initIsShowStreetsChecked: function () { 318 | const stored = localStorage.getItem("isShowStreetsChecked"); 319 | if (stored === null) { 320 | return true; 321 | } else { 322 | return stored == "true"; 323 | } 324 | }, 325 | initIsPointerShowChecked: function () { 326 | const stored = localStorage.getItem("isPointerShowChecked"); 327 | if (stored === null) { 328 | return true; 329 | } else { 330 | return stored == "true"; 331 | } 332 | }, 333 | initIsDegreesShowChecked: function () { 334 | const stored = localStorage.getItem("isDegreesShowChecked"); 335 | if (stored === null) { 336 | return true; 337 | } else { 338 | return stored == "true"; 339 | } 340 | }, 341 | initIsCineamticModeChecked: function () { 342 | const stored = localStorage.getItem("isCineamticModeChecked"); 343 | if (stored === null) { 344 | return false; 345 | } else { 346 | return stored == "true"; 347 | } 348 | }, 349 | resetStorage: function (event) { 350 | targetId = event.currentTarget.id; 351 | localStorage.clear(); 352 | resetStorage(); 353 | }, 354 | restartHud: function (event) { 355 | targetId = event.currentTarget.id; 356 | restartHud(); 357 | }, 358 | showOutMap: function (event) { 359 | targetId = event.currentTarget.id; 360 | showOutMap(); 361 | }, 362 | showOutCompass: function (event) { 363 | targetId = event.currentTarget.id; 364 | showOutCompass(); 365 | }, 366 | showFollowCompass: function (event) { 367 | targetId = event.currentTarget.id; 368 | showFollowCompass(); 369 | }, 370 | openMenuSounds: function (event) { 371 | targetId = event.currentTarget.id; 372 | openMenuSounds(); 373 | }, 374 | resetHudSounds: function (event) { 375 | targetId = event.currentTarget.id; 376 | resetHudSounds(); 377 | }, 378 | checklistSounds: function (event) { 379 | targetId = event.currentTarget.id; 380 | checklistSounds(); 381 | }, 382 | showMapNotif: function (event) { 383 | targetId = event.currentTarget.id; 384 | showMapNotif(); 385 | }, 386 | showFuelAlert: function (event) { 387 | targetId = event.currentTarget.id; 388 | showFuelAlert(); 389 | }, 390 | showCinematicNotif: function (event) { 391 | targetId = event.currentTarget.id; 392 | showCinematicNotif(); 393 | }, 394 | dynamicHealth: function (event) { 395 | targetId = event.currentTarget.id; 396 | dynamicHealth(); 397 | }, 398 | dynamicArmor: function (event) { 399 | targetId = event.currentTarget.id; 400 | dynamicArmor(); 401 | }, 402 | dynamicHunger: function (event) { 403 | targetId = event.currentTarget.id; 404 | dynamicHunger(); 405 | }, 406 | dynamicThirst: function (event) { 407 | targetId = event.currentTarget.id; 408 | dynamicThirst(); 409 | }, 410 | dynamicStress: function (event) { 411 | targetId = event.currentTarget.id; 412 | dynamicStress(); 413 | }, 414 | dynamicOxygen: function (event) { 415 | targetId = event.currentTarget.id; 416 | dynamicOxygen(); 417 | }, 418 | changeFPS: function (event) { 419 | targetId = event.currentTarget.id; 420 | changeFPS(); 421 | }, 422 | HideMap: function (event) { 423 | targetId = event.currentTarget.id; 424 | HideMap(); 425 | }, 426 | dynamicEngine: function (event) { 427 | targetId = event.currentTarget.id; 428 | dynamicEngine(); 429 | }, 430 | dynamicNitro: function (event) { 431 | targetId = event.currentTarget.id; 432 | dynamicNitro(); 433 | }, 434 | changeCompassFPS: function (event) { 435 | targetId = event.currentTarget.id; 436 | changeCompassFPS(); 437 | }, 438 | showCompassBase: function (event) { 439 | targetId = event.currentTarget.id; 440 | showCompassBase(); 441 | }, 442 | showStreetsNames: function (event) { 443 | targetId = event.currentTarget.id; 444 | showStreetsNames(); 445 | }, 446 | showPointerIndex: function (event) { 447 | targetId = event.currentTarget.id; 448 | showPointerIndex(); 449 | }, 450 | showDegreesNum: function (event) { 451 | targetId = event.currentTarget.id; 452 | showDegreesNum(); 453 | }, 454 | cinematicMode: function (event) { 455 | targetId = event.currentTarget.id; 456 | cinematicMode(); 457 | }, 458 | }, 459 | mounted() { 460 | this.listener = window.addEventListener("message", (event) => { 461 | if (event.data.event === "isChangeFPSChecked") { 462 | eval(`this.${event.data.event} = "${event.data.toggle}"`); 463 | } 464 | }); 465 | }, 466 | }); 467 | 468 | app.use(Quasar, { config: {} }); 469 | app.mount("#menu"); 470 | 471 | document.onkeyup = function (data) { 472 | if (data.key == "Escape") { 473 | closeMenu(); 474 | } 475 | }; 476 | 477 | function closeMenu() { 478 | $("#openmenu").fadeOut(550); 479 | $.post(`https://${GetParentResourceName()}/closeMenu`); 480 | } 481 | function restartHud() { 482 | closeMenu(); 483 | $.post(`https://${GetParentResourceName()}/restartHud`); 484 | } 485 | function resetStorage() { 486 | closeMenu(); 487 | $.post(`https://${GetParentResourceName()}/resetStorage`); 488 | } 489 | function showOutMap() { 490 | $.post(`https://${GetParentResourceName()}/showOutMap`); 491 | } 492 | function showOutCompass() { 493 | $.post(`https://${GetParentResourceName()}/showOutCompass`); 494 | } 495 | function showFollowCompass() { 496 | $.post(`https://${GetParentResourceName()}d/showFollowCompass`); 497 | } 498 | function openMenuSounds() { 499 | $.post(`https://${GetParentResourceName()}/openMenuSounds`); 500 | } 501 | function resetHudSounds() { 502 | $.post(`https://${GetParentResourceName()}/resetHudSounds`); 503 | } 504 | function checklistSounds() { 505 | $.post(`https://${GetParentResourceName()}/checklistSounds`); 506 | } 507 | function showMapNotif() { 508 | $.post(`https://${GetParentResourceName()}/showMapNotif`); 509 | } 510 | function showFuelAlert() { 511 | $.post(`https://${GetParentResourceName()}/showFuelAlert`); 512 | } 513 | function showCinematicNotif() { 514 | $.post(`https://${GetParentResourceName()}/showCinematicNotif`); 515 | } 516 | function dynamicHealth() { 517 | $.post(`https://${GetParentResourceName()}/dynamicHealth`); 518 | } 519 | function dynamicArmor() { 520 | $.post(`https://${GetParentResourceName()}/dynamicArmor`); 521 | } 522 | function dynamicHunger() { 523 | $.post(`https://${GetParentResourceName()}/dynamicHunger`); 524 | } 525 | function dynamicThirst() { 526 | $.post(`https://${GetParentResourceName()}/dynamicThirst`); 527 | } 528 | function dynamicStress() { 529 | $.post(`https://${GetParentResourceName()}/dynamicStress`); 530 | } 531 | function dynamicOxygen() { 532 | $.post(`https://${GetParentResourceName()}/dynamicOxygen`); 533 | } 534 | function dynamicEngine() { 535 | $.post(`https://${GetParentResourceName()}/dynamicEngine`); 536 | } 537 | function dynamicNitro() { 538 | $.post(`https://${GetParentResourceName()}/dynamicNitro`); 539 | } 540 | function changeFPS() { 541 | $.post(`https://${GetParentResourceName()}/changeFPS`); 542 | } 543 | function HideMap() { 544 | $.post(`https://${GetParentResourceName()}/HideMap`); 545 | } 546 | function changeCompassFPS() { 547 | $.post(`https://${GetParentResourceName()}/changeCompassFPS`); 548 | } 549 | function showCompassBase() { 550 | $.post(`https://${GetParentResourceName()}/showCompassBase`); 551 | } 552 | function showStreetsNames() { 553 | $.post(`https://${GetParentResourceName()}/showStreetsNames`); 554 | } 555 | function showPointerIndex() { 556 | $.post(`https://${GetParentResourceName()}/showPointerIndex`); 557 | } 558 | function showDegreesNum() { 559 | $.post(`https://${GetParentResourceName()}/showDegreesNum`); 560 | } 561 | function cinematicMode() { 562 | $.post(`https://${GetParentResourceName()}/cinematicMode`); 563 | } 564 | 565 | $(document).ready(function () { 566 | window.addEventListener("message", function (event) { 567 | switch (event.data.action) { 568 | case "open": 569 | Open(event.data); 570 | break; 571 | } 572 | }); 573 | }); 574 | 575 | Open = function (data) { 576 | $("#openmenu").fadeIn(150); 577 | }; 578 | $(".closeMenu").click(() => { 579 | closeMenu(); 580 | }); 581 | 582 | // MONEY HUD 583 | 584 | const moneyHud = Vue.createApp({ 585 | data() { 586 | return { 587 | cash: 0, 588 | bank: 0, 589 | amount: 0, 590 | plus: false, 591 | minus: false, 592 | showCash: false, 593 | showBank: false, 594 | showUpdate: false, 595 | }; 596 | }, 597 | destroyed() { 598 | window.removeEventListener("message", this.listener); 599 | }, 600 | mounted() { 601 | this.listener = window.addEventListener("message", (event) => { 602 | switch (event.data.action) { 603 | case "showconstant": 604 | this.showConstant(event.data); 605 | break; 606 | case "updatemoney": 607 | this.update(event.data); 608 | break; 609 | case "show": 610 | this.showAccounts(event.data); 611 | break; 612 | } 613 | }); 614 | }, 615 | methods: { 616 | // CONFIGURE YOUR CURRENCY HERE 617 | // https://www.w3schools.com/tags/ref_language_codes.asp LANGUAGE CODES 618 | // https://www.w3schools.com/tags/ref_country_codes.asp COUNTRY CODES 619 | formatMoney(value) { 620 | const formatter = new Intl.NumberFormat("en-US", { 621 | style: "currency", 622 | currency: "USD", 623 | minimumFractionDigits: 0, 624 | }); 625 | return formatter.format(value); 626 | }, 627 | showConstant(data) { 628 | this.showCash = true; 629 | this.showBank = true; 630 | this.cash = data.cash; 631 | this.bank = data.bank; 632 | }, 633 | update(data) { 634 | this.showUpdate = true; 635 | this.amount = data.amount; 636 | this.bank = data.bank; 637 | this.cash = data.cash; 638 | this.minus = data.minus; 639 | this.plus = data.plus; 640 | if (data.type === "cash") { 641 | if (data.minus) { 642 | this.showCash = true; 643 | this.minus = true; 644 | setTimeout(() => (this.showUpdate = false), 1000); 645 | setTimeout(() => (this.showCash = false), 2000); 646 | } else { 647 | this.showCash = true; 648 | this.plus = true; 649 | setTimeout(() => (this.showUpdate = false), 1000); 650 | setTimeout(() => (this.showCash = false), 2000); 651 | } 652 | } 653 | if (data.type === "bank") { 654 | if (data.minus) { 655 | this.showBank = true; 656 | this.minus = true; 657 | setTimeout(() => (this.showUpdate = false), 1000); 658 | setTimeout(() => (this.showBank = false), 2000); 659 | } else { 660 | this.showBank = true; 661 | this.plus = true; 662 | setTimeout(() => (this.showUpdate = false), 1000); 663 | setTimeout(() => (this.showBank = false), 2000); 664 | } 665 | } 666 | }, 667 | showAccounts(data) { 668 | if (data.type === "cash" && !this.showCash) { 669 | this.showCash = true; 670 | this.cash = data.cash; 671 | setTimeout(() => (this.showCash = false), 3500); 672 | } else if (data.type === "bank" && !this.showBank) { 673 | this.showBank = true; 674 | this.bank = data.bank; 675 | setTimeout(() => (this.showBank = false), 3500); 676 | } 677 | }, 678 | }, 679 | }).mount("#money-container"); 680 | 681 | // PLAYER HUD 682 | 683 | const playerHud = { 684 | data() { 685 | return { 686 | dynamicHealth: 0, 687 | dynamicHunger: 0, 688 | dynamicThirst: 0, 689 | dynamicStress: 0, 690 | dynamicOxygen: 0, 691 | dynamicNitro: 0, 692 | nos: 0, 693 | static: 100, 694 | health: 0, 695 | playerDead: 0, 696 | armor: 0, 697 | hunger: 0, 698 | thirst: 0, 699 | stress: 0, 700 | voice: 0, 701 | radio: 0, 702 | harness: 0, 703 | nitroActive: 0, 704 | cruise: 0, 705 | parachute: 0, 706 | oxygen: 0, 707 | hp: 0, 708 | armed: 0, 709 | speed: 0, 710 | cinematic: 0, 711 | dev: 0, 712 | show: false, 713 | talking: false, 714 | showVoice: true, 715 | showHealth: false, 716 | showArmor: true, 717 | showHunger: true, 718 | showThirst: true, 719 | showNos: true, 720 | showStress: true, 721 | showOxygen: false, 722 | showArmed: true, 723 | showCruise: false, 724 | showHarness: false, 725 | showParachute: false, 726 | showDev: false, 727 | voiceIcon: "fas fa-microphone", 728 | talkingColor: "#FFFFFF", 729 | nosColor: "", 730 | armorColor: "", 731 | hungerColor: "", 732 | healthColor: "", 733 | thirstColor: "", 734 | buffs: {}, 735 | enhancements: {}, 736 | }; 737 | }, 738 | 739 | destroyed() { 740 | window.removeEventListener("message", this.listener); 741 | }, 742 | mounted() { 743 | this.listener = window.addEventListener("message", (event) => { 744 | switch (event.data.action) { 745 | case "hudtick": 746 | this.hudTick(event.data); 747 | break; 748 | case "externalstatus": 749 | switch (event.data.topic) { 750 | case "buff": 751 | this.handleBuffs(event.data); 752 | break; 753 | case "enhancement": 754 | this.handleEnhancements(event.data); 755 | break; 756 | case "startup": 757 | this.handleBuffsStartup(event.data); 758 | break; 759 | } 760 | break; 761 | } 762 | }); 763 | }, 764 | methods: { 765 | handleBuffs(data) { 766 | const name = data.buffName; 767 | 768 | if (data.iconColor) { 769 | this.buffs[name] = { 770 | iconColor: data.iconColor, 771 | iconName: data.iconName, 772 | name: data.buffName, 773 | progressValue: data.progressValue, 774 | progressColor: data.progressColor, 775 | }; 776 | return; 777 | } 778 | 779 | if (!isNaN(data.progressValue) && data.progressValue >= 0) { 780 | if (this.buffs[name]) { 781 | this.buffs[name].progressValue = data.progressValue; 782 | } 783 | } else if (data.display != null && data.display != undefined && !data.display) { 784 | this.buffs = delete this.buffs[name] && this.buffs; 785 | } else { 786 | console.error("QB-Buffs error: Buff State Message malformed!"); 787 | } 788 | }, 789 | handleEnhancements(data) { 790 | const name = data.enhancementName; 791 | const playerIconName = name.replace("super-", ""); 792 | 793 | if (!this.enhancements[playerIconName]) { 794 | this.enhancements[playerIconName] = data.iconColor; 795 | } else { 796 | this.enhancements = delete this.enhancements[playerIconName] && this.enhancements; 797 | } 798 | }, 799 | // When a player logs in with active buffs 800 | handleBuffsStartup(data) { 801 | for (const status of Object.values(data.statuses)) { 802 | if (status.buffName) { 803 | this.handleBuffs(status); 804 | } else { 805 | this.handleEnhancements(status); 806 | } 807 | } 808 | }, 809 | hudTick(data) { 810 | this.show = data.show; 811 | this.health = data.health; 812 | this.armor = data.armor; 813 | this.hunger = data.hunger; 814 | this.thirst = data.thirst; 815 | this.stress = data.stress; 816 | this.voice = data.voice; 817 | this.talking = data.talking; 818 | this.radio = data.radio; 819 | this.nos = data.nos; 820 | this.oxygen = data.oxygen; 821 | this.cruise = data.cruise; 822 | this.nitroActive = data.nitroActive; 823 | this.harness = data.harness; 824 | this.speed = data.speed; 825 | this.armed = data.armed; 826 | this.parachute = data.parachute; 827 | this.hp = data.hp * 5; 828 | this.cinematic = data.cinematic; 829 | this.dev = data.dev; 830 | this.playerDead = data.playerDead; 831 | this.dynamicHealth = data.dynamicHealth; 832 | this.dynamicArmor = data.dynamicArmor; 833 | this.dynamicHunger = data.dynamicHunger; 834 | this.dynamicThirst = data.dynamicThirst; 835 | this.dynamicStress = data.dynamicStress; 836 | this.dynamicOxygen = data.dynamicOxygen; 837 | this.dynamicNitro = data.dynamicNitro; 838 | 839 | if (data.dynamicHealth == true) { 840 | if (data.health >= 100) { 841 | this.showHealth = false; 842 | } else { 843 | this.showHealth = true; 844 | } 845 | } else if (data.dynamicHealth == false) { 846 | this.showHealth = true; 847 | } 848 | if (data.playerDead === false) { 849 | this.healthColor = "#ffffff"; 850 | } else { 851 | this.healthColor = "#ff2b2b"; 852 | this.health = 100; 853 | } 854 | 855 | if (data.dynamicArmor == true) { 856 | if (data.armor == 0) { 857 | this.showArmor = false; 858 | } else { 859 | this.showArmor = true; 860 | } 861 | } else if (data.dynamicArmor == false) { 862 | this.showArmor = true; 863 | } 864 | 865 | if (data.armor <= 0) { 866 | this.armorColor = "#ffffff"; 867 | } else { 868 | this.armorColor = "#2ba3ff"; 869 | } 870 | 871 | if (data.dynamicHunger == true) { 872 | if (data.hunger >= 100) { 873 | this.showHunger = true; 874 | } else { 875 | this.showHunger = true; 876 | } 877 | } else if (data.dynamicHunger == false) { 878 | this.showHunger = true; 879 | } 880 | if (data.hunger >= 100) { 881 | this.hungerColor = "#ffbc2b"; 882 | } else if (data.hunger <= 30) { 883 | this.hungerColor = "#ff2b2b"; 884 | } else { 885 | this.hungerColor = "#ffbc2b"; 886 | } 887 | 888 | if (data.dynamicThirst == true) { 889 | if (data.thirst >= 100) { 890 | this.showThirst = true; 891 | } else { 892 | this.showThirst = true; 893 | } 894 | } else if (data.dynamicThirst == false) { 895 | this.showThirst = true; 896 | } 897 | if (data.thirst >= 100) { 898 | this.thirstColor = "#2ba3ff"; 899 | } else if (data.thirst <= 30) { 900 | this.thirstColor = "#ff2b2b"; 901 | } else { 902 | this.thirstColor = "#2ba3ff"; 903 | } 904 | 905 | // Additional condition to set both showHunger and showThirst to false 906 | if (data.thirst >= 100 && data.hunger >= 100) { 907 | this.showHunger = false; 908 | this.showThirst = false; 909 | } 910 | 911 | if (data.dynamicStress == true) { 912 | if (data.stress == 0) { 913 | this.showStress = false; 914 | } else { 915 | this.showStress = true; 916 | } 917 | } else if (data.dynamicStress == false) { 918 | this.showStress = true; 919 | } 920 | 921 | if (data.dynamicOxygen == true) { 922 | if (data.oxygen >= 100) { 923 | this.showOxygen = false; 924 | } else { 925 | this.showOxygen = true; 926 | } 927 | } else if (data.dynamicOxygen == false) { 928 | this.showOxygen = true; 929 | } 930 | 931 | if (data.dynamicNitro == true) { 932 | if (data.nos === 0 || data.nos === undefined) { 933 | this.showNos = false; 934 | } else if (data.nos < 0) { 935 | this.showNos = false; 936 | } else { 937 | this.showNos = true; 938 | } 939 | } else if (data.dynamicNitro == false) { 940 | if (data.nos < 0) { 941 | this.showNos = false; 942 | } else { 943 | this.showNos = true; 944 | } 945 | } 946 | if (data.nitroActive) { 947 | this.nosColor = "#D64763"; 948 | } else { 949 | this.nosColor = "#FFFFFF"; 950 | } 951 | 952 | if (data.talking && data.radio) { 953 | this.talkingColor = "#D64763"; 954 | } else if (data.talking) { 955 | this.talkingColor = "#FFFF3E"; 956 | } else { 957 | this.talkingColor = "#FFFFFF"; 958 | } 959 | if (data.radio != 0 && data.radio != undefined) { 960 | this.voiceIcon = "fas fa-walkie-talkie"; 961 | } else if (data.radio == 0 || data.radio == undefined) { 962 | this.voiceIcon = "fas fa-microphone"; 963 | } 964 | if (data.cruise === true) { 965 | this.cruise = 1; 966 | this.showCruise = true; 967 | } else { 968 | this.cruise = 0; 969 | this.showCruise = false; 970 | } 971 | 972 | if (data.speed > 99) { 973 | this.speedColor = "rgba(255, 255, 255, 1)"; 974 | } else if (data.speed > 9) { 975 | this.speedColor = "linear-gradient(90deg, rgba(255,255,255,0.5) 0%, rgba(255,255,255,1) 66.6%)"; 976 | } else if (data.speed > 0) { 977 | this.speedColor = "linear-gradient(90deg, rgba(255,255,255,0.5) 0%, rgba(255,255,255,1) 99.3%)"; 978 | } else { 979 | this.speedColor = "rgba(255, 255, 255, 0.5)"; 980 | } 981 | 982 | if (data.harness === true) { 983 | this.showHarness = true; 984 | } else { 985 | this.showHarness = false; 986 | } 987 | if (data.armed === true) { 988 | this.showArmed = true; 989 | } else { 990 | this.showArmed = false; 991 | } 992 | 993 | if (data.parachute >= 0) { 994 | this.showParachute = true; 995 | } else { 996 | this.showParachute = false; 997 | } 998 | 999 | if (data.dev === true) { 1000 | this.showDev = true; 1001 | } else { 1002 | this.showDev = false; 1003 | } 1004 | 1005 | if (data.isPaused === 1) { 1006 | this.show = false; 1007 | } 1008 | }, 1009 | }, 1010 | }; 1011 | const app2 = Vue.createApp(playerHud); 1012 | app2.use(Quasar); 1013 | app2.mount("#ui-container"); 1014 | 1015 | // VEHICLE HUD 1016 | 1017 | const vehHud = { 1018 | data() { 1019 | return { 1020 | speedometer: 66, 1021 | fuelgauge: 100, 1022 | altitudegauge: 75, 1023 | fuel: 0, 1024 | speed: 0, 1025 | seatbelt: 0, 1026 | engine: 0, 1027 | dynamicEngine: 0, 1028 | showEngine: false, 1029 | engineColor: "", 1030 | show: false, 1031 | showAltitude: true, 1032 | showSeatbelt: true, 1033 | seatbeltColor: "", 1034 | }; 1035 | }, 1036 | 1037 | destroyed() { 1038 | window.removeEventListener("message", this.listener); 1039 | }, 1040 | mounted() { 1041 | this.listener = window.addEventListener("message", (event) => { 1042 | if (event.data.action === "car") { 1043 | this.vehicleHud(event.data); 1044 | } 1045 | }); 1046 | }, 1047 | methods: { 1048 | vehicleHud(data) { 1049 | this.show = data.show; 1050 | this.speed = data.speed; 1051 | this.altitude = data.altitude; 1052 | this.fuel = data.fuel; 1053 | this.engine = data.engine; 1054 | this.dynamicEngine = data.dynamicEngine; 1055 | this.showSeatbelt = data.showSeatbelt; 1056 | this.showAltitude = data.showAltitude; 1057 | if (data.speed > 99) { 1058 | this.speedColor = "rgba(255, 255, 255, 1)"; 1059 | } else if (data.speed > 9) { 1060 | this.speedColor = "linear-gradient(90deg, rgba(255,255,255,0.5) 0%, rgba(255,255,255,1) 66.6%)"; 1061 | } else if (data.speed > 0) { 1062 | this.speedColor = "linear-gradient(90deg, rgba(255,255,255,0.5) 0%, rgba(255,255,255,1) 99.3%)"; 1063 | } else { 1064 | this.speedColor = "rgba(255, 255, 255, 0.5)"; 1065 | } 1066 | 1067 | if (data.seatbelt === true) { 1068 | this.seatbelt = 1; 1069 | this.seatbeltColor = "#212121"; 1070 | this.seatbeltIconColor = "#fff"; 1071 | } else { 1072 | this.seatbelt = 0; 1073 | this.seatbeltColor = "#ff5722"; 1074 | this.seatbeltIconColor = "#fff"; 1075 | } 1076 | if (data.showSeatbelt === true) { 1077 | this.showSeatbelt = true; 1078 | } else { 1079 | this.showSeatbelt = false; 1080 | } 1081 | if (data.showAltitude === true) { 1082 | this.showAltitude = true; 1083 | } else { 1084 | this.showAltitude = false; 1085 | } 1086 | if (data.fuel <= 20) { 1087 | this.fuelColor = "#ff0000"; 1088 | } else if (data.fuel <= 30) { 1089 | this.fuelColor = "#dd6e14"; 1090 | } else { 1091 | this.fuelColor = "#FFFFFF"; 1092 | } 1093 | if (data.dynamicEngine == true) { 1094 | if (data.engine >= 95) { 1095 | this.showEngine = false; 1096 | } else if (data.engine < 0) { 1097 | this.showEngine = false; 1098 | } else { 1099 | this.showEngine = true; 1100 | } 1101 | } else if (data.dynamicEngine == false) { 1102 | if (data.engine < 0) { 1103 | this.showEngine = false; 1104 | } else { 1105 | this.showEngine = true; 1106 | } 1107 | } 1108 | if (data.engine <= 45) { 1109 | this.engineColor = "#ff2b2b"; 1110 | } else if (data.engine <= 75 && data.engine >= 46) { 1111 | this.engineColor = "#ff872b"; 1112 | } else if (data.engine <= 100) { 1113 | this.engineColor = "#FFFFFF"; 1114 | } 1115 | if (data.isPaused === 1) { 1116 | this.show = false; 1117 | } 1118 | }, 1119 | }, 1120 | }; 1121 | const app3 = Vue.createApp(vehHud); 1122 | app3.use(Quasar); 1123 | app3.mount("#veh-container"); 1124 | 1125 | // COMPASS HUD 1126 | 1127 | const baseplateHud = { 1128 | data() { 1129 | return { 1130 | show: false, 1131 | street1: "", 1132 | street2: "", 1133 | showCompass: true, 1134 | showStreets: true, 1135 | showPointer: true, 1136 | showDegrees: true, 1137 | }; 1138 | }, 1139 | destroyed() { 1140 | window.removeEventListener("message", this.listener); 1141 | }, 1142 | mounted() { 1143 | this.listener = window.addEventListener("message", (event) => { 1144 | if (event.data.action == "update") { 1145 | type = event.data.type; 1146 | value = event.data.value; 1147 | if (value !== undefined) { 1148 | $(".degrees").html(value); 1149 | bar = document.getElementsByTagName("svg")[0]; 1150 | bar.setAttribute("viewBox", "" + (value - 90) + " 0 180 40"); 1151 | heading = document.getElementsByTagName("svg")[1]; 1152 | heading.setAttribute("viewBox", "" + (value - 90) + " 0 180 1.5"); 1153 | } 1154 | } 1155 | if (event.data.action === "baseplate") { 1156 | this.baseplateHud(event.data); 1157 | } 1158 | }); 1159 | }, 1160 | methods: { 1161 | baseplateHud(data) { 1162 | this.show = data.show; 1163 | this.street1 = data.street1; 1164 | this.street2 = data.street2; 1165 | this.showCompass = data.showCompass; 1166 | this.showStreets = data.showStreets; 1167 | this.showPointer = data.showPointer; 1168 | this.showDegrees = data.showDegrees; 1169 | if (data.showCompass == true) { 1170 | this.showCompass = true; 1171 | } else { 1172 | this.showCompass = false; 1173 | } 1174 | if (data.showStreets == true) { 1175 | this.showStreets = true; 1176 | } else { 1177 | this.showStreets = false; 1178 | } 1179 | if (data.showPointer == true) { 1180 | this.showPointer = true; 1181 | } else { 1182 | this.showPointer = false; 1183 | } 1184 | if (data.showDegrees == true) { 1185 | this.showDegrees = true; 1186 | } else { 1187 | this.showDegrees = false; 1188 | } 1189 | }, 1190 | }, 1191 | }; 1192 | const app4 = Vue.createApp(baseplateHud); 1193 | app4.use(Quasar); 1194 | app4.mount("#baseplate-container"); 1195 | -------------------------------------------------------------------------------- /html/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 11 | 12 | 13 | 14 | 15 | 16 | 19 | 20 | 21 | 22 | 23 | 24 | 25 |
26 |
27 |
{{street2}}
28 |
{{street1}}
29 |
30 |
31 |
˅
32 |
33 | 34 | 36 | 38 | 40 | 42 | 44 | 46 | 48 | 50 | 52 | 54 | 56 | 58 | 60 | 61 | 62 | N 63 | N 64 | NW 65 | NW 66 | NE 67 | NE 68 | E 69 | SE 70 | S 71 | SW 72 | W 73 | 74 |
75 |
76 |
77 | 283 |
284 |
285 |
286 |
287 | 288 |

{{(cash)}}

289 |
290 |
291 |
292 | 293 |

{{(bank)}}

294 |
295 |
296 |
297 |

{{(amount)}}

298 |

{{(amount)}}

299 |
300 |
301 |
302 |
303 | 304 |
305 | 308 | 311 | 313 |
314 |
315 | 316 |
317 | 320 | 323 | 326 |
327 |
328 | 329 |
330 | 333 | 336 | 338 |
339 |
340 | 341 |
342 | 345 | 348 | 352 |
353 |
354 | 355 |
356 | 359 | 362 | 365 |
366 |
367 | 368 |
369 | 372 | 374 | 377 |
378 |
379 | 380 |
381 | 384 | 386 | 389 |
390 |
391 | 392 |
393 | 396 | 398 | 400 |
401 |
402 | 403 |
404 | 407 | 409 | 411 |
412 |
413 | 414 |
415 | 418 | 420 | 422 |
423 |
424 | 425 |
426 | 429 | 431 | 434 |
435 |
436 | 437 |
438 | 441 | 443 | 445 |
446 |
447 | 448 |
449 | 452 | 454 | 456 |
457 |
458 | 459 | 460 |
461 | 464 | 467 | 468 |
469 |
470 |
471 |
472 |
473 |
474 |
475 | {{(speed)}} 477 | 478 |
479 |
480 | 482 | 484 | 485 |
486 |
487 | 490 | 493 | {{(altitude)}} 494 |
495 | 496 |
497 | 499 | 502 | 504 |
505 |
506 | 507 |
508 | 510 | 513 | 514 |
515 |
516 |
517 |
518 |
519 | 520 | 521 | -------------------------------------------------------------------------------- /html/responsive.css: -------------------------------------------------------------------------------- 1 | .responsive { 2 | position: absolute !important; 3 | margin-left: 17.3vw !important; 4 | bottom: 17.5vh !important; 5 | } 6 | 7 | /* Force your Fivem NUI to 1080p as we're lazy and adding media queries is pending. */ -------------------------------------------------------------------------------- /html/styles.css: -------------------------------------------------------------------------------- 1 | @import url('https://fonts.googleapis.com/css2?family=Oxygen:wght@300;400;700&display=swap'); 2 | 3 | /* Menu */ 4 | div#openmenu { 5 | display: none; 6 | position: absolute; 7 | width: 50%; 8 | top: 50%; 9 | left: 50%; 10 | transform: translate(-50%, -50%); 11 | } 12 | 13 | /* Menu tab & panel styles */ 14 | .text-tabcolor { 15 | color: rgb(255, 255, 255) !important; 16 | } 17 | 18 | .bg-active-tab { 19 | background: #050b17 !important; 20 | } 21 | 22 | .bg-panel { 23 | background: #050b17 !important; 24 | } 25 | 26 | .q-tab-panels { 27 | border-top-right-radius: 0.625vw !important; 28 | border-bottom-right-radius: 0.625vw !important; 29 | } 30 | 31 | /* change all 0.625vw for a different border radius (rounds edges of the menu) */ 32 | .q-splitter__panel.q-splitter__before { 33 | border-top-left-radius: 0.625vw !important; 34 | border-bottom-left-radius: 0.625vw !important; 35 | } 36 | 37 | /* change all 0.625vw for a different border radius (rounds edges of the menu) */ 38 | .q-tabs--vertical.q-tabs--not-scrollable .q-tabs__content { 39 | border-top-left-radius: 0.625vw !important; 40 | border-bottom-left-radius: 0.625vw !important; 41 | } 42 | 43 | /* change all 0.625vw for a different border radius (rounds edges of the menu) */ 44 | 45 | /* Menu text styles */ 46 | .text-h6 { 47 | color: rgb(255, 255, 255) !important; 48 | } 49 | 50 | .text-h7 { 51 | color: rgba(255, 255, 255, 0.4) !important; 52 | } 53 | 54 | /* Menu buttons & checkboxes & toggle switch icons styles */ 55 | .text-textbutton { 56 | color: rgb(20, 130, 220) !important; 57 | } 58 | 59 | .bg-bgbutton { 60 | background: rgba(20, 130, 220, 0.5) !important; 61 | } 62 | 63 | .q-checkbox__inner { 64 | color: rgb(255 255 255 / 70%) !important; 65 | } 66 | 67 | .text-checkbox { 68 | color: rgba(20, 130, 220, 0.5) !important; 69 | } 70 | 71 | .q-checkbox__svg { 72 | color: rgb(20, 130, 220) !important; 73 | } 74 | 75 | .q-checkbox__inner--truthy .q-checkbox__bg { 76 | box-shadow: 0px 0px 0.156vw 0.156vw rgba(20, 140, 220, 0.15) !important; 77 | } 78 | 79 | /* if you want the checkboxes to have a glow/shadow */ 80 | .text-toggleicons { 81 | color: rgb(20, 130, 220) !important; 82 | } 83 | 84 | /* Menu misc */ 85 | hr { 86 | opacity: 0.1 !important; 87 | } 88 | 89 | /* horizontal line that seperates sections */ 90 | .q-mb-md { 91 | margin-bottom: 0px !important; 92 | } 93 | 94 | /* removes extra top padding */ 95 | .q-mb-md-d { 96 | padding-left: 0.521vw !important; 97 | padding-bottom: 0.521vw !important; 98 | } 99 | 100 | /* keeps q-items aligned */ 101 | .q-item { 102 | padding: 0.417vw 0px !important; 103 | } 104 | 105 | /* keeps q-items aligned */ 106 | .q-item__section--avatar { 107 | min-width: 2.083vw !important 108 | } 109 | 110 | /* keeps q-items aligned */ 111 | .q-item__section--side { 112 | padding-right: 0px !important; 113 | } 114 | 115 | /* keeps q-items aligned */ 116 | .q-splitter--vertical>.q-splitter__separator { 117 | width: 0px !important; 118 | } 119 | 120 | /* keeps navigation tab panel seamless */ 121 | div#q-loading-bar { 122 | display: none !important; 123 | } 124 | 125 | /* makes sure there's no ajax load from quasar */ 126 | ::-webkit-scrollbar { 127 | display: none !important; 128 | } 129 | 130 | /* makes sure there's no ugly scrollbar on menu*/ 131 | 132 | /* Hud radial styles */ 133 | .text-health { 134 | color: rgb(33, 171, 97) !important; 135 | } 136 | 137 | .text-stress { 138 | color: #ff2b2b !important; 139 | } 140 | 141 | .text-nos { 142 | color: rgb(255, 72, 133) !important; 143 | } 144 | 145 | .text-cruise { 146 | color: rgb(255, 72, 133) !important; 147 | } 148 | 149 | .text-armed { 150 | color: rgb(255, 72, 133) !important; 151 | } 152 | 153 | .text-harness { 154 | color: rgb(182, 72, 255) !important; 155 | } 156 | 157 | .text-oxygen { 158 | color: #e6d9ff !important; 159 | } 160 | 161 | .text-parachute { 162 | color: rgb(0, 0, 0) !important; 163 | } 164 | 165 | .text-dev { 166 | color: rgb(0, 0, 0) !important; 167 | } 168 | 169 | #main-container { 170 | width: 100%; 171 | height: auto; 172 | font-family: 'Oxygen', sans-serif; 173 | } 174 | 175 | /* Money */ 176 | #money-container { 177 | position: absolute; 178 | right: 2vw; 179 | top: 5vh; 180 | font-weight: 400; 181 | font-size: 2.083vw; 182 | } 183 | 184 | #sign, 185 | #bank { 186 | text-align: right; 187 | color: #00ac31; 188 | text-shadow: -0.052vw -0.052vw 0 rgba(0, 0, 0, 0.7), 0.052vw -0.052vw 0 rgba(0, 0, 0, 0.7), -0.052vw 0.052vw 0 rgba(0, 0, 0, 0.7), 0.052vw 0.052vw 0 rgba(0, 0, 0, 0.7); 189 | } 190 | 191 | #plus { 192 | font-size: 2.604vw; 193 | text-align: right; 194 | color: #00ac31; 195 | text-shadow: -0.052vw -0.052vw 0 rgba(0, 0, 0, 0.7), 0.052vw -0.052vw 0 rgba(0, 0, 0, 0.7), -0.052vw 0.052vw 0 rgba(0, 0, 0, 0.7), 0.052vw 0.052vw 0 rgba(0, 0, 0, 0.7); 196 | } 197 | 198 | #minus { 199 | font-size: 2.604vw; 200 | text-align: right; 201 | color: #ac0000; 202 | text-shadow: -0.052vw -0.052vw 0 rgba(0, 0, 0, 0.7), 0.052vw -0.052vw 0 rgba(0, 0, 0, 0.7), -0.052vw 0.052vw 0 rgba(0, 0, 0, 0.7), 0.052vw 0.052vw 0 rgba(0, 0, 0, 0.7); 203 | } 204 | 205 | #money { 206 | text-align: right; 207 | color: #ffffff; 208 | text-shadow: -0.052vw -0.052vw 0 rgba(0, 0, 0, 0.7), 0.052vw -0.052vw 0 rgba(0, 0, 0, 0.7), -0.052vw 0.052vw 0 rgba(0, 0, 0, 0.7), 0.052vw 0.052vw 0 rgba(0, 0, 0, 0.7); 209 | } 210 | 211 | /* Player HUD */ 212 | 213 | #playerhud { 214 | position: absolute; 215 | display: flex; 216 | left: 2.5vw; 217 | bottom: 0.5vh; 218 | } 219 | 220 | .q-ml-xl { 221 | margin-left: -1.2176470588235294vw !important; 222 | /* Change this to space radials */ 223 | } 224 | 225 | /* Vehicle HUD */ 226 | 227 | #speedometer { 228 | position: relative; 229 | left: 2vh !important; 230 | } 231 | 232 | #fuelgauge { 233 | position: relative; 234 | left: 3.5vh !important; 235 | bottom: 6.6vh !important; 236 | } 237 | 238 | #altitudegauge { 239 | position: relative; 240 | left: 5vh !important; 241 | } 242 | 243 | #seatbelt { 244 | position: relative; 245 | left: 6.5vh !important; 246 | bottom: 6.6vh !important; 247 | } 248 | 249 | #engine { 250 | position: relative; 251 | left: 10.5vh !important; 252 | bottom: 6.6vh !important; 253 | } 254 | 255 | speed:before { 256 | content: "MPH"; 257 | /* If using KPH change this content from MPH */ 258 | position: absolute; 259 | display: block; 260 | background: #fff; 261 | font-size: 1.5vh !important; 262 | -webkit-background-clip: text; 263 | -webkit-text-fill-color: transparent; 264 | opacity: 50%; 265 | } 266 | 267 | speed { 268 | position: fixed; 269 | font-size: 5.5vh !important; 270 | font-family: 'Oxygen', sans-serif; 271 | font-weight: bold; 272 | } 273 | 274 | altitude:after { 275 | content: "ALT"; 276 | display: block; 277 | font-size: 0.9vh !important; 278 | padding-top: 0.521vw; 279 | padding-left: 0.104vw; 280 | padding-right: 0.104vw; 281 | } 282 | 283 | altitude { 284 | transform: rotate(135deg); 285 | font-size: 2vh !important; 286 | position: fixed; 287 | color: #fff; 288 | text-align: center; 289 | font-weight: 600; 290 | text-shadow: -0.052vw -0.052vw 0 rgba(0, 0, 0, 0.7), 0.052vw -0.052vw 0 rgba(0, 0, 0, 0.7), -0.052vw 0.052vw 0 rgba(0, 0, 0, 0.7), 0.052vw 0.052vw 0 rgba(0, 0, 0, 0.7); 291 | } 292 | 293 | /* Animation */ 294 | .slide-fade-enter-active { 295 | transition: all 0.3s ease-out; 296 | } 297 | 298 | .slide-fade-leave-active { 299 | transition: all 0.8s cubic-bezier(1, 0.5, 0.8, 1); 300 | } 301 | 302 | .slide-fade-enter-from, 303 | .slide-fade-leave-to { 304 | transform: translateX(1.042vw); 305 | opacity: 0; 306 | } 307 | 308 | .fade-enter-active, 309 | .fade-leave-active { 310 | transition: opacity 2s ease; 311 | } 312 | 313 | .fade-enter-from, 314 | .fade-leave-to { 315 | opacity: 0; 316 | } 317 | 318 | /* Compass */ 319 | .baseplate { 320 | position: relative; 321 | top: 70vh; 322 | left: 1.6%; 323 | width: 12.604vw; 324 | height: auto; 325 | } 326 | 327 | .street-container { 328 | position: relative; 329 | top: 72vh; 330 | font-family: 'Oxygen', sans-serif; 331 | font-weight: bold; 332 | font-size: 1.6vh; 333 | text-shadow: 0 0 0.052vw rgba(0, 0, 0, 0.6), 0 0 0.052vw rgba(0, 0, 0, 0.6), 0 0 0.052vw rgba(0, 0, 0, 0.6), 0 0 0.052vw rgba(0, 0, 0, 0.6); 334 | } 335 | 336 | .street1 { 337 | position: absolute; 338 | margin: 0 auto; 339 | left: 10%; 340 | color: rgb(255, 255, 255); 341 | } 342 | 343 | .street2 { 344 | position: absolute; 345 | margin: 0 auto; 346 | left: 10%; 347 | bottom: 10%; 348 | font-size: 1.4v; 349 | color: rgba(255, 255, 255, 0.8); 350 | } 351 | 352 | .pointer { 353 | position: absolute; 354 | margin: 0 auto; 355 | top: 28%; 356 | left: 0; 357 | right: 0; 358 | font-family: 'Oxygen', sans-serif; 359 | color: #ff2b2b; 360 | font-size: 1.4vh; 361 | text-align: center; 362 | text-shadow: 0 0 0.052vw rgba(0, 0, 0, 0.6), 0 0 0.052vw rgba(0, 0, 0, 0.6), 0 0 0.052vw rgba(0, 0, 0, 0.6), 0 0 0.052vw rgba(0, 0, 0, 0.6); 363 | z-index: 101; 364 | } 365 | 366 | .degrees { 367 | position: absolute; 368 | margin: 0 auto; 369 | top: 12%; 370 | left: 0; 371 | right: 0; 372 | font-family: 'Oxygen', sans-serif; 373 | color: rgba(255, 255, 255, 0.8); 374 | font-size: 1vh; 375 | font-weight: bold; 376 | text-align: center; 377 | text-shadow: 0 0 0.052vw rgb(0 0 0 / 60%), 0 0 0.052vw rgb(0 0 0 / 60%), 0 0 0.052vw rgb(0 0 0 / 60%), 0 0 0.052vw rgb(0 0 0 / 60%); 378 | z-index: 100; 379 | } 380 | 381 | .bezel { 382 | position: relative; 383 | width: 8vw; 384 | height: 2vh; 385 | font-family: 'Oxygen', sans-serif; 386 | font-size: 0.35vh; 387 | font-weight: bold; 388 | text-shadow: 0 0 0.052vw rgba(0, 0, 0, 0.6), 0 0 0.052vw rgba(0, 0, 0, 0.6), 0 0 0.052vw rgba(0, 0, 0, 0.6), 0 0 0.052vw rgba(0, 0, 0, 0.6); 389 | z-index: 101; 390 | } 391 | 392 | .bearing { 393 | position: relative; 394 | width: 8vw; 395 | height: 2.5vh; 396 | font-family: 'Oxygen', sans-serif; 397 | font-size: 2vh; 398 | font-weight: bold; 399 | letter-spacing: 0.036vw; 400 | text-shadow: 0 0 0.052vw rgba(0, 0, 0, 0.6), 0 0 0.052vw rgba(0, 0, 0, 0.6), 0 0 0.052vw rgba(0, 0, 0, 0.6), 0 0 0.052vw rgba(0, 0, 0, 0.6); 401 | background: #212121; 402 | box-shadow: rgba(50, 50, 93, 0.25) 0px 1.563vw 3.125vw -0.625vw inset, rgba(0, 0, 0, 0.3) 0px 10.417vw 1.875vw -10.417vw inset; 403 | border-radius: 0.260vw; 404 | } -------------------------------------------------------------------------------- /locales/ar.lua: -------------------------------------------------------------------------------- 1 | 2 | local Translations = { 3 | notify = { 4 | ["hud_settings_loaded"] = "تم تحميل إعدادات الهود", 5 | ["hud_restart"] = "تم اعادة الهود للوضع الاصلي", 6 | ["hud_start"] = "تم تشغيل الهود", 7 | ["hud_command_info"] = "هذا الأمر يعيد ضبط إعدادات شاشة الهود الى الوضع الاصلي", 8 | ["load_square_map"] = "تحميل خريطة مربعة", 9 | ["loaded_square_map"] = "تم تحميل خريطة مربعة", 10 | ["load_circle_map"] = "تحميل خريطة الدائرة", 11 | ["loaded_circle_map"] = "تم تحميل خريطة الدائرة", 12 | ["cinematic_on"] = "الوضع السينمائي قيد التشغيل", 13 | ["cinematic_off"] = "الوضع السينمائي قيد الايقاف", 14 | ["engine_on"] = "بدأ المحرك", 15 | ["engine_off"] = "اغلاق المحرك", 16 | ["low_fuel"] = "مستوى الوقود منخفض", 17 | ["access_denied"] = "غير مسموح لك القيام بذالك", 18 | ["stress_gain"] = "الشعور بمزيد من التوتر", 19 | ["stress_removed"] = "الشعور براحة أكبر" 20 | } 21 | } 22 | Lang = Locale:new({phrases = Translations, warnOnMissing = true}) 23 | -------------------------------------------------------------------------------- /locales/cs.lua: -------------------------------------------------------------------------------- 1 | local Translations = { 2 | notify = { 3 | ["hud_settings_loaded"] = "Nastavení HUD načteno!", 4 | ["hud_restart"] = "HUD se restartuje!", 5 | ["hud_start"] = "HUD je nyní zapnutý!", 6 | ["hud_command_info"] = "Tento příkaz resetuje vaše momentální nastavení HUD!", 7 | ["load_square_map"] = "Načítání čtvercové mapy...", 8 | ["loaded_square_map"] = "Čtvercová mapa byla načtena!", 9 | ["load_circle_map"] = "Kruhová mapa se načítá...", 10 | ["loaded_circle_map"] = "Kruhová mapa byla načtena!", 11 | ["cinematic_on"] = "Cinematic Mode On!", -- Same as in English 12 | ["cinematic_off"] = "Cinematic Mode Off!", -- Same as in English 13 | ["engine_on"] = "Motor nastartován!", 14 | ["engine_off"] = "Motor vypnut!", 15 | ["low_fuel"] = "Nedostatek paliva!", 16 | ["access_denied"] = "Na toto nemáš oprávnění!", 17 | ["stress_gain"] = "Cítíš se být vystresovaná!", 18 | ["stress_removed"] = "Cítíš se volněj!" 19 | } 20 | } 21 | Lang = Locale:new({phrases = Translations, warnOnMissing = true}) 22 | -------------------------------------------------------------------------------- /locales/da.lua: -------------------------------------------------------------------------------- 1 | local Translations = { 2 | notify = { 3 | ["hud_settings_loaded"] = "HUD indstillinger indlæst!", 4 | ["hud_restart"] = "HUD genstarter!", 5 | ["hud_start"] = "HUD er nu startet!", 6 | ["hud_command_info"] = "Denne command nulstiller alle HUD insstillinger!", 7 | ["load_square_map"] = "Firkantet map indlæses...", 8 | ["loaded_square_map"] = "Firkantet map indlæst!", 9 | ["load_circle_map"] = "Cirkel map indlæses...", 10 | ["loaded_circle_map"] = "Cikel map er indlæst!", 11 | ["cinematic_on"] = "Cinematic mode er sat til!", 12 | ["cinematic_off"] = "Cinematic mode er sat fra!", 13 | ["engine_on"] = "Motor startet!", 14 | ["engine_off"] = "Motor slukket!", 15 | ["low_fuel"] = "Brændstof er lavt!", 16 | ["access_denied"] = "Du har ingen adgang!", 17 | ["stress_gain"] = "Du føler dig mere stresset!", 18 | ["stress_removed"] = "Du føles mere afslappet!" 19 | } 20 | } 21 | Lang = Locale:new({phrases = Translations, warnOnMissing = true}) 22 | -------------------------------------------------------------------------------- /locales/de.lua: -------------------------------------------------------------------------------- 1 | local Translations = { 2 | notify = { 3 | ["hud_settings_loaded"] = "HUD Einstellungen geladen!", 4 | ["hud_restart"] = "HUD wird neugestartet!", 5 | ["hud_start"] = "HUD ist nun gestartet!", 6 | ["hud_command_info"] = "Dieser Befehl setzt deine jetzigen Einstellungen zurück!", 7 | ["load_square_map"] = "Quadratische Map lädt..", 8 | ["loaded_square_map"] = "Quadratische Map wurde geladen!", 9 | ["load_circle_map"] = "Runde Map lädt...", 10 | ["loaded_circle_map"] = "Runde Map wurde geladen!", 11 | ["cinematic_on"] = "Kino Modus aktiviert!", 12 | ["cinematic_off"] = "Kino Modus deaktiviert!", 13 | ["engine_on"] = "Motor ist nun an!", 14 | ["engine_off"] = "Motor ist nun aus!", 15 | ["low_fuel"] = "Tank Status niedrig!", 16 | ["access_denied"] = "Du bist nicht autorisiert!", 17 | ["stress_gain"] = "Du stresst!", 18 | ["stress_removed"] = "Du relaxed!" 19 | } 20 | } 21 | Lang = Locale:new({phrases = Translations, warnOnMissing = true}) 22 | -------------------------------------------------------------------------------- /locales/en.lua: -------------------------------------------------------------------------------- 1 | local Translations = { 2 | notify = { 3 | ["hud_settings_loaded"] = "HUD Settings Loaded!", 4 | ["hud_restart"] = "HUD Is Restarting!", 5 | ["hud_start"] = "HUD Is Now Started!", 6 | ["hud_command_info"] = "This command resets your current HUD settings!", 7 | ["load_square_map"] = "Square Map Loading...", 8 | ["loaded_square_map"] = "Square Map Has Loaded!", 9 | ["load_circle_map"] = "Circle Map Loading...", 10 | ["loaded_circle_map"] = "Circle Map Has Loaded!", 11 | ["cinematic_on"] = "Cinematic Mode On!", 12 | ["cinematic_off"] = "Cinematic Mode Off!", 13 | ["engine_on"] = "Engine Started!", 14 | ["engine_off"] = "Engine Shut Down!", 15 | ["low_fuel"] = "Fuel Level Low!", 16 | ["access_denied"] = "You Are Not Authorized!", 17 | ["stress_gain"] = "Feeling More Stressed!", 18 | ["stress_removed"] = "Feeling More Relaxed!" 19 | } 20 | } 21 | Lang = Locale:new({phrases = Translations, warnOnMissing = true}) 22 | -------------------------------------------------------------------------------- /locales/es.lua: -------------------------------------------------------------------------------- 1 | local Translations = { 2 | notify = { 3 | ["hud_settings_loaded"] = "Configuración de HUD cargada.", 4 | ["hud_restart"] = "HUD se está reiniciando.", 5 | ["hud_start"] = "HUD funcionando.", 6 | ["hud_command_info"] = "Este comando restablece la configuración del HUD", 7 | ["load_square_map"] = "Cargando el mapa cuadrado.", 8 | ["loaded_square_map"] = "El mapa cuadrado se ha cargado.", 9 | ["load_circle_map"] = "Cargando el mapa circular.", 10 | ["loaded_circle_map"] = "El mapa circular se ha cargado.", 11 | ["cinematic_on"] = "Modo cinematográfico activado!", 12 | ["cinematic_off"] = "Modo cinematográfico desactivado.", 13 | ["engine_on"] = "¡Motor arrancado!", 14 | ["engine_off"] = "Motor apagado.", 15 | ["low_fuel"] = "¡Nivel de gasolina bajo!", 16 | ["access_denied"] = "¿Que haces? ¡No estas autorizado!", 17 | ["stress_gain"] = "Te estás sintiéndo más estresado/a.", 18 | ["stress_removed"] = "Te estás sintiéndo más relajado/a." 19 | } 20 | } 21 | Lang = Locale:new({phrases = Translations, warnOnMissing = true}) 22 | -------------------------------------------------------------------------------- /locales/fa.lua: -------------------------------------------------------------------------------- 1 | local Translations = { 2 | notify = { 3 | ["hud_settings_loaded"] = "Tanzimat HUD Bargozari Shod!", 4 | ["hud_restart"] = "Dar Hale Bargozari Mojadad HUD!", 5 | ["hud_start"] = "HUD Bargozari Shod!", 6 | ["hud_command_info"] = "In Dastor Tanzimat HUD Feli Shoma Ra Taghir Midahad!", 7 | ["load_square_map"] = "Nagsheye Mostatili Bargozari Shod...", 8 | ["loaded_square_map"] = "Nagsheye Mostatili Bargozari Shod!", 9 | ["load_circle_map"] = "Nagsheye Daayerei Bargozari Shod...", 10 | ["loaded_circle_map"] = "Nagsheye Daayerei Bargozari Shod!", 11 | ["cinematic_on"] = "Halat Sinemayi Faal Shod!", 12 | ["cinematic_off"] = "Halat Sinemayi Gheyre Faal Shod!", 13 | ["engine_on"] = "Motor Roshan Shod!", 14 | ["engine_off"] = "Motor Khamosh Shod!", 15 | ["low_fuel"] = "Sokht Dar Hale Etmam Ast!", 16 | ["access_denied"] = "Shoma Mojaz Be In Kar Nistid!", 17 | ["stress_gain"] = "Mizan Estres Dar Hale Afzayesh Ast!", 18 | ["stress_removed"] = "Mizan Estres Dar Hale Kahesh Ast!" 19 | } 20 | } 21 | Lang = Locale:new({phrases = Translations, warnOnMissing = true}) 22 | -------------------------------------------------------------------------------- /locales/fi.lua: -------------------------------------------------------------------------------- 1 | local Translations = { 2 | notify = { 3 | ["hud_settings_loaded"] = "Hudin asetukset ladattu!", 4 | ["hud_restart"] = "Hudi resettaantuu!", 5 | ["hud_start"] = "Hudi päällä!", 6 | ["hud_command_info"] = "Tämä komento vaihtaa hudisi asetukset!", 7 | ["load_square_map"] = "Neliökartta latautuu...", 8 | ["loaded_square_map"] = "Neliökartta ladattu!", 9 | ["load_circle_map"] = "Mappi ladattu...", 10 | ["loaded_circle_map"] = "Pyöreä mappi ladattu!", 11 | ["cinematic_on"] = "Elokuvamode päällä!", 12 | ["cinematic_off"] = "Elokuvamode suljettu!", 13 | ["engine_on"] = "Moottori käynnistetty!", 14 | ["engine_off"] = "Moottori sammutettu!", 15 | ["low_fuel"] = "Bensasi on lopussa!", 16 | ["access_denied"] = "Eipä ollut tarpeaksi oikeuksia!", 17 | ["stress_gain"] = "Stressisi nousee!", 18 | ["stress_removed"] = "Stressisi on nyt loppunut! Otathan ihan clillisti sit" 19 | } 20 | } 21 | Lang = Locale:new({phrases = Translations, warnOnMissing = true}) 22 | -------------------------------------------------------------------------------- /locales/fr.lua: -------------------------------------------------------------------------------- 1 | local Translations = { 2 | notify = { 3 | ["hud_settings_loaded"] = "Paramètres du HUD chargés!", 4 | ["hud_restart"] = "L'HUD redémarre!", 5 | ["hud_start"] = "L'HUD a demarré!", 6 | ["hud_command_info"] = "Cette commande réinitialise vos paramètre d'HUD!", 7 | ["load_square_map"] = "Chargement de la carte carrée...", 8 | ["loaded_square_map"] = "La carte carrée à chargée!", 9 | ["load_circle_map"] = "Chargement de la carte ronde...", 10 | ["loaded_circle_map"] = "La carte ronde à chargée!", 11 | ["cinematic_on"] = "Mode cinématique activé!", 12 | ["cinematic_off"] = "Mode cinématique désactivé!", 13 | ["engine_on"] = "Moteur allumé!", 14 | ["engine_off"] = "Moteur éteint!", 15 | ["low_fuel"] = "Niveau d'essence bas!", 16 | ["access_denied"] = "Vous n'êtes pas autorisé!", 17 | ["stress_gain"] = "Vous stressez!", 18 | ["stress_removed"] = "Vous-vous relaxez!" 19 | } 20 | } 21 | Lang = Locale:new({phrases = Translations, warnOnMissing = true}) 22 | -------------------------------------------------------------------------------- /locales/ge.lua: -------------------------------------------------------------------------------- 1 | local Translations = { 2 | notify = { 3 | ["hud_settings_loaded"] = "HUD პარამეტრების ჩატვირთვა!", 4 | ["hud_restart"] = "HUD -ი რესტარტდება!", 5 | ["hud_start"] = "HUD -ი ჩართულია!", 6 | ["hud_command_info"] = "ეს ბრძანება დაარესეტებს ასებულ მონაცმებს!", 7 | ["load_square_map"] = "რუკა იტვირთება...", 8 | ["loaded_square_map"] = "რუკა ჩაიტვირთა!", 9 | ["load_circle_map"] = "რგვალი რუკა იტვირთება...", 10 | ["loaded_circle_map"] = "მრგვალი რუკა ჩაიტვირთა!", 11 | ["cinematic_on"] = "Cinematic რეჯიმის ჩართვა!", 12 | ["cinematic_off"] = "Cinematic რეჟიმის გათიშვა!", 13 | ["engine_on"] = "ავტომობილის დაქოქვა!", 14 | ["engine_off"] = "ავტომობილის ჩაქრობა!", 15 | ["low_fuel"] = "საწვავის ავზის მაჩვენებელი მინიმუმზე!", 16 | ["access_denied"] = "არ ხარ ავტორიზირებული!", 17 | ["stress_gain"] = "თავს გრძნობ მეტი სტრესის ქვეშ!", 18 | ["stress_removed"] = "თავს გრძნობ რელაქსირებულად!" 19 | } 20 | } 21 | Lang = Locale:new({phrases = Translations, warnOnMissing = true}) 22 | -------------------------------------------------------------------------------- /locales/it.lua: -------------------------------------------------------------------------------- 1 | local Translations = { 2 | notify = { 3 | ["hud_settings_loaded"] = "Impostazioni HUD Caricate!", 4 | ["hud_restart"] = "L\'HUD si sta restartando!", 5 | ["hud_start"] = "L\'HUD si sta avviando!", 6 | ["hud_command_info"] = "Questo comando resetta le impostazioni dell\'HUD!", 7 | ["load_square_map"] = "Caricando Mappa Quadrata...", 8 | ["loaded_square_map"] = "Mappa Quadrata Caricata!", 9 | ["load_circle_map"] = "Caricando Mappa Rotonda...", 10 | ["loaded_circle_map"] = "Mappa Rotonda Caricata!", 11 | ["cinematic_on"] = "Modalità Cinematica On!", 12 | ["cinematic_off"] = "Modalità Cinematica Off!", 13 | ["engine_on"] = "Motore Avviato!", 14 | ["engine_off"] = "Motore Spento!", 15 | ["low_fuel"] = "Livello Carburante Basso!", 16 | ["access_denied"] = "Non Sei Autorizzato!", 17 | ["stress_gain"] = "Ti Stai Stressando!", 18 | ["stress_removed"] = "Ti Stai Rilassando!" 19 | } 20 | } 21 | Lang = Locale:new({phrases = Translations, warnOnMissing = true}) 22 | -------------------------------------------------------------------------------- /locales/nl.lua: -------------------------------------------------------------------------------- 1 | local Translations = { 2 | notify = { 3 | ["hud_settings_loaded"] = "HUD instellingen geladen!", 4 | ["hud_restart"] = "HUD is aan het herstarten!", 5 | ["hud_start"] = "HUD is herstart!", 6 | ["hud_command_info"] = "Deze command reset jouw huidige HUD instellingen!", 7 | ["load_square_map"] = "Vierkante map is aan het laden...", 8 | ["loaded_square_map"] = "Vierkante map is geladen!", 9 | ["load_circle_map"] = "Cirkel map is aan het laden...", 10 | ["loaded_circle_map"] = "Cirkel map is geladen!", 11 | ["cinematic_on"] = "Bioscoop modus aan!", 12 | ["cinematic_off"] = "Bioscoop modus uit!", 13 | ["engine_on"] = "Motor aangezet!", 14 | ["engine_off"] = "Motor uitgezet!", 15 | ["low_fuel"] = "Laag brandstofniveau!", 16 | ["access_denied"] = "Je bent niet gemachtigd!", 17 | ["stress_gain"] = "Je voelt je meer gestrest!", 18 | ["stress_removed"] = "Je voelt je meer relaxed!" 19 | } 20 | } 21 | Lang = Locale:new({ 22 | phrases = Translations, 23 | warnOnMissing = true 24 | }) 25 | -------------------------------------------------------------------------------- /locales/pt.lua: -------------------------------------------------------------------------------- 1 | local Translations = { 2 | notify = { 3 | ["hud_settings_loaded"] = "Definições Do HUD Carregadas!", 4 | ["hud_restart"] = "O HUD Está A Reiniciar!", 5 | ["hud_start"] = "O HUD Está Agora Iniciada!", 6 | ["hud_command_info"] = "Este comando reseta as definições do teu HUD!", 7 | ["load_square_map"] = "A Carregar Mapa Quadrado...", 8 | ["loaded_square_map"] = "Mapa Quadrado Carregado!", 9 | ["load_circle_map"] = "A Carregar Mapa Redondo...", 10 | ["loaded_circle_map"] = "Mapa Redondo Carregado!", 11 | ["cinematic_on"] = "Modo Cinematic Ativado!", 12 | ["cinematic_off"] = "Modo Cinematic Desativado!", 13 | ["engine_on"] = "Motor Ligado!", 14 | ["engine_off"] = "Motor Desligado!", 15 | ["low_fuel"] = "Nível Do Óleo Em Baixo!", 16 | ["access_denied"] = "Não Estás Autorizado!", 17 | ["stress_gain"] = "A Sentir-me Mais Stressado(a)!", 18 | ["stress_removed"] = "A Sentir-me Mais Calmo(a)!" 19 | } 20 | } 21 | Lang = Locale:new({phrases = Translations, warnOnMissing = true}) 22 | -------------------------------------------------------------------------------- /locales/sk.lua: -------------------------------------------------------------------------------- 1 | local Translations = { 2 | notify = { 3 | ["hud_settings_loaded"] = "HUD nastavenia boli načítané!", 4 | ["hud_restart"] = "HUD sa reštartuje!", 5 | ["hud_start"] = "HUD je zapnutý!", 6 | ["hud_command_info"] = "Tento príkaz reštartuje tvoje aktuálne HUD nastavenia!", 7 | ["load_square_map"] = "Square Map sa načítava...", 8 | ["loaded_square_map"] = "Square Map sa načítala!", 9 | ["load_circle_map"] = "Circle Map sa načítava...", 10 | ["loaded_circle_map"] = "Circle Map sa načítala!", 11 | ["cinematic_on"] = "Filmový režim je zapnutý!", 12 | ["cinematic_off"] = "Filmový režim je vypnutý!", 13 | ["engine_on"] = "Motor je naštartovaný!", 14 | ["engine_off"] = "Motor je vypnutý!", 15 | ["low_fuel"] = "Nízka hladina paliva!", 16 | ["access_denied"] = "Nemáš oprávnenie!", 17 | ["stress_gain"] = "Pocituješ väčší stres!", 18 | ["stress_removed"] = "Pocituješ uvoľnenie!" 19 | } 20 | } 21 | Lang = Locale:new({phrases = Translations, warnOnMissing = true}) 22 | -------------------------------------------------------------------------------- /locales/sv.lua: -------------------------------------------------------------------------------- 1 | local Translations = { 2 | notify = { 3 | ["hud_settings_loaded"] = "HUD Inställningar laddade!", 4 | ["hud_restart"] = "HUD startar om!", 5 | ["hud_start"] = "HUD är startad!", 6 | ["hud_command_info"] = "Detta kommando nollställer dina nuvarande HUD-inställningar!", 7 | ["load_square_map"] = "Kvadratisk karta laddas!", 8 | ["loaded_square_map"] = "Kvadratisk karta har laddats!", 9 | ["load_circle_map"] = "Cirkelkartan laddas!", 10 | ["loaded_circle_map"] = "Cirkelkartan har laddats!", 11 | ["cinematic_on"] = "Bioläge på!", 12 | ["cinematic_off"] = "Bioläge av!", 13 | ["engine_on"] = "Motorn startade!", 14 | ["engine_off"] = "Motorn stängs av!", 15 | ["low_fuel"] = "Låg bränslenivå!", 16 | ["access_denied"] = "Du är inte behörighet att göra detta!", 17 | ["stress_gain"] = "Känner dig mer stressad!", 18 | ["stress_removed"] = "Känner dig mer avslappnad!" 19 | } 20 | } 21 | Lang = Locale:new({phrases = Translations, warnOnMissing = true}) 22 | -------------------------------------------------------------------------------- /locales/tr.lua: -------------------------------------------------------------------------------- 1 | local Translations = { 2 | notify = { 3 | ["hud_settings_loaded"] = "HUD Ayarları Yüklendi!", 4 | ["hud_restart"] = "HUD Yeniden Başlatılıyor!", 5 | ["hud_start"] = "HUD Şimdi Başladı!", 6 | ["hud_command_info"] = "Bu komut, mevcut HUD ayarlarınızı sıfırlar!", 7 | ["load_square_map"] = "Kare Harita Yükleniyor...", 8 | ["loaded_square_map"] = "Kare Harita Yüklendi!", 9 | ["load_circle_map"] = "Çember Haritası Yükleniyor...", 10 | ["loaded_circle_map"] = "Daire Haritası Yüklendi!", 11 | ["cinematic_on"] = "Sinema Modu Açık!", 12 | ["cinematic_off"] = "Sinema Modu Kapalı!", 13 | ["engine_on"] = "Motor Çalıştırıldı!", 14 | ["engine_off"] = "Motor Kapatıldı!", 15 | ["low_fuel"] = "Yakıt Seviyesi Düşük!", 16 | ["access_denied"] = "You Are Not Authorized!", 17 | ["stress_gain"] = "Daha Stresli Hissediyorum!", 18 | ["stress_removed"] = "Daha Rahatlamış Hissediyorum!" 19 | } 20 | } 21 | Lang = Locale:new({phrases = Translations, warnOnMissing = true}) 22 | -------------------------------------------------------------------------------- /server.lua: -------------------------------------------------------------------------------- 1 | local QBCore = exports[Config.Core]:GetCoreObject() 2 | local ResetStress = false 3 | 4 | QBCore.Commands.Add('cash', 'Check Cash Balance', {}, false, function(source, args) 5 | local Player = QBCore.Functions.GetPlayer(source) 6 | local cashamount = Player.PlayerData.money.cash 7 | TriggerClientEvent('hud:client:ShowAccounts', source, 'cash', cashamount) 8 | end) 9 | 10 | QBCore.Commands.Add('bank', 'Check Bank Balance', {}, false, function(source, args) 11 | local Player = QBCore.Functions.GetPlayer(source) 12 | local bankamount = Player.PlayerData.money.bank 13 | TriggerClientEvent('hud:client:ShowAccounts', source, 'bank', bankamount) 14 | end) 15 | 16 | QBCore.Commands.Add("dev", "Enable/Disable developer Mode", {}, false, function(source, args) 17 | TriggerClientEvent("qb-admin:client:ToggleDevmode", source) 18 | end, 'admin') 19 | 20 | RegisterNetEvent('hud:server:GainStress', function(amount) 21 | local src = source 22 | local Player = QBCore.Functions.GetPlayer(src) 23 | local newStress 24 | if not Player or (Config.DisablePoliceStress and Player.PlayerData.job.name == 'police') then return end 25 | if not ResetStress then 26 | if not Player.PlayerData.metadata['stress'] then 27 | Player.PlayerData.metadata['stress'] = 0 28 | end 29 | newStress = Player.PlayerData.metadata['stress'] + amount 30 | if newStress <= 0 then newStress = 0 end 31 | else 32 | newStress = 0 33 | end 34 | if newStress > 100 then 35 | newStress = 100 36 | end 37 | Player.Functions.SetMetaData('stress', newStress) 38 | TriggerClientEvent('hud:client:UpdateStress', src, newStress) 39 | TriggerClientEvent('QBCore:Notify', src, Lang:t("notify.stress_gain"), 'error', 1500) 40 | end) 41 | 42 | RegisterNetEvent('hud:server:RelieveStress', function(amount) 43 | local src = source 44 | local Player = QBCore.Functions.GetPlayer(src) 45 | local newStress 46 | if not Player then return end 47 | if not ResetStress then 48 | if not Player.PlayerData.metadata['stress'] then 49 | Player.PlayerData.metadata['stress'] = 0 50 | end 51 | newStress = Player.PlayerData.metadata['stress'] - amount 52 | if newStress <= 0 then newStress = 0 end 53 | else 54 | newStress = 0 55 | end 56 | if newStress > 100 then 57 | newStress = 100 58 | end 59 | Player.Functions.SetMetaData('stress', newStress) 60 | TriggerClientEvent('hud:client:UpdateStress', src, newStress) 61 | TriggerClientEvent('QBCore:Notify', src, Lang:t("notify.stress_removed")) 62 | end) 63 | 64 | QBCore.Functions.CreateCallback('hud:server:HasHarness', function(source, cb) 65 | local Ply = QBCore.Functions.GetPlayer(source) 66 | local Harness = Ply.Functions.GetItemByName("harness") 67 | if Harness ~= nil then 68 | cb(true) 69 | else 70 | cb(false) 71 | end 72 | end) 73 | QBCore.Functions.CreateCallback('hud:server:getMenu', function(source, cb) 74 | cb(Config.Menu) 75 | end) 76 | -------------------------------------------------------------------------------- /stream/minimap.gfx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TeamBroCode/z-hud/81b1e7535e69c80a048024dbb1f37bf3d3ce75e5/stream/minimap.gfx -------------------------------------------------------------------------------- /stream/minimap_0_0.ytd: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TeamBroCode/z-hud/81b1e7535e69c80a048024dbb1f37bf3d3ce75e5/stream/minimap_0_0.ytd -------------------------------------------------------------------------------- /stream/minimap_0_1.ytd: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TeamBroCode/z-hud/81b1e7535e69c80a048024dbb1f37bf3d3ce75e5/stream/minimap_0_1.ytd -------------------------------------------------------------------------------- /stream/minimap_0_2.ydd: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TeamBroCode/z-hud/81b1e7535e69c80a048024dbb1f37bf3d3ce75e5/stream/minimap_0_2.ydd -------------------------------------------------------------------------------- /stream/minimap_0_3.ydd: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TeamBroCode/z-hud/81b1e7535e69c80a048024dbb1f37bf3d3ce75e5/stream/minimap_0_3.ydd -------------------------------------------------------------------------------- /stream/minimap_0_4.ydd: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TeamBroCode/z-hud/81b1e7535e69c80a048024dbb1f37bf3d3ce75e5/stream/minimap_0_4.ydd -------------------------------------------------------------------------------- /stream/minimap_0_5.ydd: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TeamBroCode/z-hud/81b1e7535e69c80a048024dbb1f37bf3d3ce75e5/stream/minimap_0_5.ydd -------------------------------------------------------------------------------- /stream/minimap_0_6.ydd: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TeamBroCode/z-hud/81b1e7535e69c80a048024dbb1f37bf3d3ce75e5/stream/minimap_0_6.ydd -------------------------------------------------------------------------------- /stream/minimap_1_0.ytd: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TeamBroCode/z-hud/81b1e7535e69c80a048024dbb1f37bf3d3ce75e5/stream/minimap_1_0.ytd -------------------------------------------------------------------------------- /stream/minimap_1_1.ydd: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TeamBroCode/z-hud/81b1e7535e69c80a048024dbb1f37bf3d3ce75e5/stream/minimap_1_1.ydd -------------------------------------------------------------------------------- /stream/minimap_1_1.ytd: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TeamBroCode/z-hud/81b1e7535e69c80a048024dbb1f37bf3d3ce75e5/stream/minimap_1_1.ytd -------------------------------------------------------------------------------- /stream/minimap_1_2.ydd: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TeamBroCode/z-hud/81b1e7535e69c80a048024dbb1f37bf3d3ce75e5/stream/minimap_1_2.ydd -------------------------------------------------------------------------------- /stream/minimap_1_3.ydd: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TeamBroCode/z-hud/81b1e7535e69c80a048024dbb1f37bf3d3ce75e5/stream/minimap_1_3.ydd -------------------------------------------------------------------------------- /stream/minimap_1_4.ydd: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TeamBroCode/z-hud/81b1e7535e69c80a048024dbb1f37bf3d3ce75e5/stream/minimap_1_4.ydd -------------------------------------------------------------------------------- /stream/minimap_1_5.ydd: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TeamBroCode/z-hud/81b1e7535e69c80a048024dbb1f37bf3d3ce75e5/stream/minimap_1_5.ydd -------------------------------------------------------------------------------- /stream/minimap_1_6.ydd: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TeamBroCode/z-hud/81b1e7535e69c80a048024dbb1f37bf3d3ce75e5/stream/minimap_1_6.ydd -------------------------------------------------------------------------------- /stream/minimap_1_7.ydd: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TeamBroCode/z-hud/81b1e7535e69c80a048024dbb1f37bf3d3ce75e5/stream/minimap_1_7.ydd -------------------------------------------------------------------------------- /stream/minimap_1_8.ydd: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TeamBroCode/z-hud/81b1e7535e69c80a048024dbb1f37bf3d3ce75e5/stream/minimap_1_8.ydd -------------------------------------------------------------------------------- /stream/minimap_2_0.ydd: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TeamBroCode/z-hud/81b1e7535e69c80a048024dbb1f37bf3d3ce75e5/stream/minimap_2_0.ydd -------------------------------------------------------------------------------- /stream/minimap_2_0.ytd: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TeamBroCode/z-hud/81b1e7535e69c80a048024dbb1f37bf3d3ce75e5/stream/minimap_2_0.ytd -------------------------------------------------------------------------------- /stream/minimap_2_1.ydd: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TeamBroCode/z-hud/81b1e7535e69c80a048024dbb1f37bf3d3ce75e5/stream/minimap_2_1.ydd -------------------------------------------------------------------------------- /stream/minimap_2_1.ytd: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TeamBroCode/z-hud/81b1e7535e69c80a048024dbb1f37bf3d3ce75e5/stream/minimap_2_1.ytd -------------------------------------------------------------------------------- /stream/minimap_2_2.ydd: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TeamBroCode/z-hud/81b1e7535e69c80a048024dbb1f37bf3d3ce75e5/stream/minimap_2_2.ydd -------------------------------------------------------------------------------- /stream/minimap_2_3.ydd: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TeamBroCode/z-hud/81b1e7535e69c80a048024dbb1f37bf3d3ce75e5/stream/minimap_2_3.ydd -------------------------------------------------------------------------------- /stream/minimap_2_4.ydd: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TeamBroCode/z-hud/81b1e7535e69c80a048024dbb1f37bf3d3ce75e5/stream/minimap_2_4.ydd -------------------------------------------------------------------------------- /stream/minimap_2_5.ydd: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TeamBroCode/z-hud/81b1e7535e69c80a048024dbb1f37bf3d3ce75e5/stream/minimap_2_5.ydd -------------------------------------------------------------------------------- /stream/minimap_2_6.ydd: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TeamBroCode/z-hud/81b1e7535e69c80a048024dbb1f37bf3d3ce75e5/stream/minimap_2_6.ydd -------------------------------------------------------------------------------- /stream/minimap_2_7.ydd: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TeamBroCode/z-hud/81b1e7535e69c80a048024dbb1f37bf3d3ce75e5/stream/minimap_2_7.ydd -------------------------------------------------------------------------------- /stream/minimap_2_8.ydd: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TeamBroCode/z-hud/81b1e7535e69c80a048024dbb1f37bf3d3ce75e5/stream/minimap_2_8.ydd -------------------------------------------------------------------------------- /stream/minimap_3_0.ydd: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TeamBroCode/z-hud/81b1e7535e69c80a048024dbb1f37bf3d3ce75e5/stream/minimap_3_0.ydd -------------------------------------------------------------------------------- /stream/minimap_3_1.ydd: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TeamBroCode/z-hud/81b1e7535e69c80a048024dbb1f37bf3d3ce75e5/stream/minimap_3_1.ydd -------------------------------------------------------------------------------- /stream/minimap_3_2.ydd: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TeamBroCode/z-hud/81b1e7535e69c80a048024dbb1f37bf3d3ce75e5/stream/minimap_3_2.ydd -------------------------------------------------------------------------------- /stream/minimap_3_3.ydd: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TeamBroCode/z-hud/81b1e7535e69c80a048024dbb1f37bf3d3ce75e5/stream/minimap_3_3.ydd -------------------------------------------------------------------------------- /stream/minimap_3_4.ydd: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TeamBroCode/z-hud/81b1e7535e69c80a048024dbb1f37bf3d3ce75e5/stream/minimap_3_4.ydd -------------------------------------------------------------------------------- /stream/minimap_3_5.ydd: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TeamBroCode/z-hud/81b1e7535e69c80a048024dbb1f37bf3d3ce75e5/stream/minimap_3_5.ydd -------------------------------------------------------------------------------- /stream/minimap_3_6.ydd: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TeamBroCode/z-hud/81b1e7535e69c80a048024dbb1f37bf3d3ce75e5/stream/minimap_3_6.ydd -------------------------------------------------------------------------------- /stream/minimap_3_7.ydd: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TeamBroCode/z-hud/81b1e7535e69c80a048024dbb1f37bf3d3ce75e5/stream/minimap_3_7.ydd -------------------------------------------------------------------------------- /stream/minimap_3_8.ydd: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TeamBroCode/z-hud/81b1e7535e69c80a048024dbb1f37bf3d3ce75e5/stream/minimap_3_8.ydd -------------------------------------------------------------------------------- /stream/minimap_4_0.ydd: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TeamBroCode/z-hud/81b1e7535e69c80a048024dbb1f37bf3d3ce75e5/stream/minimap_4_0.ydd -------------------------------------------------------------------------------- /stream/minimap_4_1.ydd: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TeamBroCode/z-hud/81b1e7535e69c80a048024dbb1f37bf3d3ce75e5/stream/minimap_4_1.ydd -------------------------------------------------------------------------------- /stream/minimap_4_2.ydd: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TeamBroCode/z-hud/81b1e7535e69c80a048024dbb1f37bf3d3ce75e5/stream/minimap_4_2.ydd -------------------------------------------------------------------------------- /stream/minimap_4_3.ydd: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TeamBroCode/z-hud/81b1e7535e69c80a048024dbb1f37bf3d3ce75e5/stream/minimap_4_3.ydd -------------------------------------------------------------------------------- /stream/minimap_4_4.ydd: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TeamBroCode/z-hud/81b1e7535e69c80a048024dbb1f37bf3d3ce75e5/stream/minimap_4_4.ydd -------------------------------------------------------------------------------- /stream/minimap_4_5.ydd: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TeamBroCode/z-hud/81b1e7535e69c80a048024dbb1f37bf3d3ce75e5/stream/minimap_4_5.ydd -------------------------------------------------------------------------------- /stream/minimap_4_6.ydd: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TeamBroCode/z-hud/81b1e7535e69c80a048024dbb1f37bf3d3ce75e5/stream/minimap_4_6.ydd -------------------------------------------------------------------------------- /stream/minimap_4_7.ydd: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TeamBroCode/z-hud/81b1e7535e69c80a048024dbb1f37bf3d3ce75e5/stream/minimap_4_7.ydd -------------------------------------------------------------------------------- /stream/minimap_4_8.ydd: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TeamBroCode/z-hud/81b1e7535e69c80a048024dbb1f37bf3d3ce75e5/stream/minimap_4_8.ydd -------------------------------------------------------------------------------- /stream/minimap_5_0.ydd: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TeamBroCode/z-hud/81b1e7535e69c80a048024dbb1f37bf3d3ce75e5/stream/minimap_5_0.ydd -------------------------------------------------------------------------------- /stream/minimap_5_1.ydd: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TeamBroCode/z-hud/81b1e7535e69c80a048024dbb1f37bf3d3ce75e5/stream/minimap_5_1.ydd -------------------------------------------------------------------------------- /stream/minimap_5_2.ydd: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TeamBroCode/z-hud/81b1e7535e69c80a048024dbb1f37bf3d3ce75e5/stream/minimap_5_2.ydd -------------------------------------------------------------------------------- /stream/minimap_5_3.ydd: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TeamBroCode/z-hud/81b1e7535e69c80a048024dbb1f37bf3d3ce75e5/stream/minimap_5_3.ydd -------------------------------------------------------------------------------- /stream/minimap_5_4.ydd: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TeamBroCode/z-hud/81b1e7535e69c80a048024dbb1f37bf3d3ce75e5/stream/minimap_5_4.ydd -------------------------------------------------------------------------------- /stream/minimap_5_5.ydd: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TeamBroCode/z-hud/81b1e7535e69c80a048024dbb1f37bf3d3ce75e5/stream/minimap_5_5.ydd -------------------------------------------------------------------------------- /stream/minimap_5_6.ydd: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TeamBroCode/z-hud/81b1e7535e69c80a048024dbb1f37bf3d3ce75e5/stream/minimap_5_6.ydd -------------------------------------------------------------------------------- /stream/minimap_5_7.ydd: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TeamBroCode/z-hud/81b1e7535e69c80a048024dbb1f37bf3d3ce75e5/stream/minimap_5_7.ydd -------------------------------------------------------------------------------- /stream/minimap_5_8.ydd: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TeamBroCode/z-hud/81b1e7535e69c80a048024dbb1f37bf3d3ce75e5/stream/minimap_5_8.ydd -------------------------------------------------------------------------------- /stream/minimap_6_0.ydd: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TeamBroCode/z-hud/81b1e7535e69c80a048024dbb1f37bf3d3ce75e5/stream/minimap_6_0.ydd -------------------------------------------------------------------------------- /stream/minimap_6_1.ydd: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TeamBroCode/z-hud/81b1e7535e69c80a048024dbb1f37bf3d3ce75e5/stream/minimap_6_1.ydd -------------------------------------------------------------------------------- /stream/minimap_6_2.ydd: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TeamBroCode/z-hud/81b1e7535e69c80a048024dbb1f37bf3d3ce75e5/stream/minimap_6_2.ydd -------------------------------------------------------------------------------- /stream/minimap_6_3.ydd: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TeamBroCode/z-hud/81b1e7535e69c80a048024dbb1f37bf3d3ce75e5/stream/minimap_6_3.ydd -------------------------------------------------------------------------------- /stream/minimap_6_4.ydd: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TeamBroCode/z-hud/81b1e7535e69c80a048024dbb1f37bf3d3ce75e5/stream/minimap_6_4.ydd -------------------------------------------------------------------------------- /stream/minimap_6_5.ydd: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TeamBroCode/z-hud/81b1e7535e69c80a048024dbb1f37bf3d3ce75e5/stream/minimap_6_5.ydd -------------------------------------------------------------------------------- /stream/minimap_6_6.ydd: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TeamBroCode/z-hud/81b1e7535e69c80a048024dbb1f37bf3d3ce75e5/stream/minimap_6_6.ydd -------------------------------------------------------------------------------- /stream/minimap_6_7.ydd: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TeamBroCode/z-hud/81b1e7535e69c80a048024dbb1f37bf3d3ce75e5/stream/minimap_6_7.ydd -------------------------------------------------------------------------------- /stream/minimap_6_8.ydd: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TeamBroCode/z-hud/81b1e7535e69c80a048024dbb1f37bf3d3ce75e5/stream/minimap_6_8.ydd -------------------------------------------------------------------------------- /stream/minimap_7_0.ydd: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TeamBroCode/z-hud/81b1e7535e69c80a048024dbb1f37bf3d3ce75e5/stream/minimap_7_0.ydd -------------------------------------------------------------------------------- /stream/minimap_7_1.ydd: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TeamBroCode/z-hud/81b1e7535e69c80a048024dbb1f37bf3d3ce75e5/stream/minimap_7_1.ydd -------------------------------------------------------------------------------- /stream/minimap_7_2.ydd: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TeamBroCode/z-hud/81b1e7535e69c80a048024dbb1f37bf3d3ce75e5/stream/minimap_7_2.ydd -------------------------------------------------------------------------------- /stream/minimap_7_3.ydd: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TeamBroCode/z-hud/81b1e7535e69c80a048024dbb1f37bf3d3ce75e5/stream/minimap_7_3.ydd -------------------------------------------------------------------------------- /stream/minimap_7_4.ydd: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TeamBroCode/z-hud/81b1e7535e69c80a048024dbb1f37bf3d3ce75e5/stream/minimap_7_4.ydd -------------------------------------------------------------------------------- /stream/minimap_7_5.ydd: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TeamBroCode/z-hud/81b1e7535e69c80a048024dbb1f37bf3d3ce75e5/stream/minimap_7_5.ydd -------------------------------------------------------------------------------- /stream/minimap_7_6.ydd: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TeamBroCode/z-hud/81b1e7535e69c80a048024dbb1f37bf3d3ce75e5/stream/minimap_7_6.ydd -------------------------------------------------------------------------------- /stream/minimap_lod_128.ytd: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TeamBroCode/z-hud/81b1e7535e69c80a048024dbb1f37bf3d3ce75e5/stream/minimap_lod_128.ytd -------------------------------------------------------------------------------- /stream/minimap_sea_0_0.ytd: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TeamBroCode/z-hud/81b1e7535e69c80a048024dbb1f37bf3d3ce75e5/stream/minimap_sea_0_0.ytd -------------------------------------------------------------------------------- /stream/minimap_sea_0_1.ytd: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TeamBroCode/z-hud/81b1e7535e69c80a048024dbb1f37bf3d3ce75e5/stream/minimap_sea_0_1.ytd -------------------------------------------------------------------------------- /stream/minimap_sea_1_0.ytd: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TeamBroCode/z-hud/81b1e7535e69c80a048024dbb1f37bf3d3ce75e5/stream/minimap_sea_1_0.ytd -------------------------------------------------------------------------------- /stream/minimap_sea_1_1.ytd: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TeamBroCode/z-hud/81b1e7535e69c80a048024dbb1f37bf3d3ce75e5/stream/minimap_sea_1_1.ytd -------------------------------------------------------------------------------- /stream/minimap_sea_2_0.ytd: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TeamBroCode/z-hud/81b1e7535e69c80a048024dbb1f37bf3d3ce75e5/stream/minimap_sea_2_0.ytd -------------------------------------------------------------------------------- /stream/minimap_sea_2_1.ytd: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TeamBroCode/z-hud/81b1e7535e69c80a048024dbb1f37bf3d3ce75e5/stream/minimap_sea_2_1.ytd -------------------------------------------------------------------------------- /stream/squaremap.ytd: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TeamBroCode/z-hud/81b1e7535e69c80a048024dbb1f37bf3d3ce75e5/stream/squaremap.ytd --------------------------------------------------------------------------------