├── .gitignore ├── LICENSE ├── README.md ├── Zombie Ped Images ├── a_f_y_juggalo_01.png ├── a_m_m_beach_01.png ├── a_m_m_eastsa_02.png ├── a_m_m_farmer_01.png ├── a_m_m_fatlatin_01.png ├── a_m_m_hillbilly_01.png ├── a_m_m_malibu_01.png ├── a_m_m_og_boss_01.png ├── a_m_m_polynesian_01.png ├── a_m_m_rurmeth_01.png ├── a_m_m_salton_02.png ├── a_m_m_skater_01.png ├── a_m_m_skidrow_01.png ├── a_m_m_tennis_01.png ├── a_m_o_acult_02.png ├── a_m_y_genstreet_01.png ├── a_m_y_genstreet_02.png ├── a_m_y_methhead_01.png ├── a_m_y_salton_01.png ├── a_m_y_stlat_01.png ├── s_m_m_paramedic_01.png ├── s_m_y_cop_01.png ├── s_m_y_prismuscl_01.png ├── s_m_y_prisoner_01.png └── u_m_m_prolsec_01.png └── tp-advancedzombies ├── client ├── tp-client_functions.lua ├── tp-client_main.lua ├── tp-client_statistics.lua ├── tp-client_trafficadjuster.lua └── tp-client_zones.lua ├── config.lua ├── database └── tp_user_statistics.sql ├── fxmanifest.lua ├── html ├── css │ └── style.css ├── img │ ├── deaths_logo.png │ ├── logo.png │ └── zombie_kills_logo_1.png ├── index.html ├── js │ ├── config.js │ ├── locales │ │ ├── locales-en.js │ │ └── locales-gr.js │ └── script.js └── sounds │ ├── zombie_aggressive_1.mp3 │ ├── zombie_aggressive_2.mp3 │ ├── zombie_aggressive_3.mp3 │ ├── zombie_aggressive_4.mp3 │ ├── zombie_aggressive_5.mp3 │ ├── zombie_growl_1.mp3 │ └── zombie_growl_2.mp3 ├── locales.lua ├── server ├── tp-server_functions.lua ├── tp-server_lootrewards.lua ├── tp-server_main.lua └── tp-server_statistics.lua └── stream ├── a_f_y_juggalo_01 ├── a_f_y_juggalo_01.ydd ├── a_f_y_juggalo_01.yft ├── a_f_y_juggalo_01.ymt └── a_f_y_juggalo_01.ytd ├── a_m_m_beach_01 ├── a_m_m_beach_01.ydd ├── a_m_m_beach_01.yft ├── a_m_m_beach_01.ymt └── a_m_m_beach_01.ytd ├── a_m_m_eastsa_02 ├── a_m_m_eastsa_02.ydd ├── a_m_m_eastsa_02.yft ├── a_m_m_eastsa_02.ymt └── a_m_m_eastsa_02.ytd ├── a_m_m_farmer_01 ├── a_m_m_farmer_01.ydd ├── a_m_m_farmer_01.yft ├── a_m_m_farmer_01.ymt └── a_m_m_farmer_01.ytd ├── a_m_m_fatlatin_01 ├── a_m_m_fatlatin_01.ydd ├── a_m_m_fatlatin_01.yft ├── a_m_m_fatlatin_01.ymt └── a_m_m_fatlatin_01.ytd ├── a_m_m_hillbilly_01 ├── a_m_m_hillbilly_01.ydd ├── a_m_m_hillbilly_01.yft ├── a_m_m_hillbilly_01.ymt ├── a_m_m_hillbilly_01.ytd ├── a_m_m_hillbilly_02.ydd ├── a_m_m_hillbilly_02.yft ├── a_m_m_hillbilly_02.ymt └── a_m_m_hillbilly_02.ytd ├── a_m_m_malibu_01 ├── a_m_m_malibu_01.ydd ├── a_m_m_malibu_01.yft ├── a_m_m_malibu_01.ymt └── a_m_m_malibu_01.ytd ├── a_m_m_mexlabor_01 ├── a_m_m_mexlabor_01.ydd ├── a_m_m_mexlabor_01.yft ├── a_m_m_mexlabor_01.ymt └── a_m_m_mexlabor_01.ytd ├── a_m_m_og_boss_01 ├── a_m_m_og_boss_01.ydd ├── a_m_m_og_boss_01.yft ├── a_m_m_og_boss_01.ymt └── a_m_m_og_boss_01.ytd ├── a_m_m_polynesian_01 ├── a_m_m_polynesian_01.ydd ├── a_m_m_polynesian_01.yft ├── a_m_m_polynesian_01.ymt └── a_m_m_polynesian_01.ytd ├── a_m_m_rurmeth_01 ├── a_m_m_rurmeth_01.ydd ├── a_m_m_rurmeth_01.yft ├── a_m_m_rurmeth_01.ymt └── a_m_m_rurmeth_01.ytd ├── a_m_m_salton_02 ├── a_m_m_salton_02.ydd ├── a_m_m_salton_02.yft ├── a_m_m_salton_02.ymt └── a_m_m_salton_02.ytd ├── a_m_m_skater_01 ├── a_m_m_skater_01.ydd ├── a_m_m_skater_01.yft ├── a_m_m_skater_01.ymt └── a_m_m_skater_01.ytd ├── a_m_m_skidrow_01 ├── a_m_m_skidrow_01.ydd ├── a_m_m_skidrow_01.yft ├── a_m_m_skidrow_01.ymt └── a_m_m_skidrow_01.ytd ├── a_m_m_soucent_04 ├── a_m_m_soucent_04.ydd ├── a_m_m_soucent_04.yft ├── a_m_m_soucent_04.ymt └── a_m_m_soucent_04.ytd ├── a_m_m_tennis_01 ├── a_m_m_tennis_01.ydd ├── a_m_m_tennis_01.yft ├── a_m_m_tennis_01.ymt └── a_m_m_tennis_01.ytd ├── a_m_o_acult_02 ├── a_m_o_acult_02.ydd ├── a_m_o_acult_02.yft ├── a_m_o_acult_02.ymt └── a_m_o_acult_02.ytd ├── a_m_y_genstreet_01 ├── a_m_y_genstreet_01.ydd ├── a_m_y_genstreet_01.yft ├── a_m_y_genstreet_01.ymt └── a_m_y_genstreet_01.ytd ├── a_m_y_genstreet_02 ├── a_m_y_genstreet_02.ydd ├── a_m_y_genstreet_02.yft ├── a_m_y_genstreet_02.ymt └── a_m_y_genstreet_02.ytd ├── a_m_y_methhead_01 ├── a_m_y_methhead_01.ydd ├── a_m_y_methhead_01.yft ├── a_m_y_methhead_01.ymt └── a_m_y_methhead_01.ytd ├── a_m_y_salton_01 ├── a_m_y_salton_01.ydd ├── a_m_y_salton_01.yft ├── a_m_y_salton_01.ymt └── a_m_y_salton_01.ytd ├── a_m_y_stlat_01 ├── a_m_y_stlat_01.ydd ├── a_m_y_stlat_01.yft ├── a_m_y_stlat_01.ymt └── a_m_y_stlat_01.ytd ├── csb_agent ├── csb_agent.ydd ├── csb_agent.yft ├── csb_agent.ymt └── csb_agent.ytd ├── s_m_y_cop_01 ├── s_m_y_cop_01.ydd ├── s_m_y_cop_01.yft ├── s_m_y_cop_01.ymt └── s_m_y_cop_01.ytd ├── s_m_y_prismuscl_01 ├── s_m_y_prismuscl_01.ydd ├── s_m_y_prismuscl_01.yft ├── s_m_y_prismuscl_01.ymt └── s_m_y_prismuscl_01.ytd └── s_m_y_prisoner_01 ├── s_m_y_prisoner_01.ydd ├── s_m_y_prisoner_01.yft ├── s_m_y_prisoner_01.ymt └── s_m_y_prisoner_01.ytd /.gitignore: -------------------------------------------------------------------------------- 1 | # Compiled Lua sources 2 | luac.out 3 | 4 | # luarocks build files 5 | *.src.rock 6 | *.zip 7 | *.tar.gz 8 | 9 | # Object files 10 | *.o 11 | *.os 12 | *.ko 13 | *.obj 14 | *.elf 15 | 16 | # Precompiled Headers 17 | *.gch 18 | *.pch 19 | 20 | # Libraries 21 | *.lib 22 | *.a 23 | *.la 24 | *.lo 25 | *.def 26 | *.exp 27 | 28 | # Shared objects (inc. Windows DLLs) 29 | *.dll 30 | *.so 31 | *.so.* 32 | *.dylib 33 | 34 | # Executables 35 | *.exe 36 | *.out 37 | *.app 38 | *.i*86 39 | *.x86_64 40 | *.hex 41 | 42 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | Apache License 2 | Version 2.0, January 2004 3 | http://www.apache.org/licenses/ 4 | 5 | TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION 6 | 7 | 1. Definitions. 8 | 9 | "License" shall mean the terms and conditions for use, reproduction, 10 | and distribution as defined by Sections 1 through 9 of this document. 11 | 12 | "Licensor" shall mean the copyright owner or entity authorized by 13 | the copyright owner that is granting the License. 14 | 15 | "Legal Entity" shall mean the union of the acting entity and all 16 | other entities that control, are controlled by, or are under common 17 | control with that entity. For the purposes of this definition, 18 | "control" means (i) the power, direct or indirect, to cause the 19 | direction or management of such entity, whether by contract or 20 | otherwise, or (ii) ownership of fifty percent (50%) or more of the 21 | outstanding shares, or (iii) beneficial ownership of such entity. 22 | 23 | "You" (or "Your") shall mean an individual or Legal Entity 24 | exercising permissions granted by this License. 25 | 26 | "Source" form shall mean the preferred form for making modifications, 27 | including but not limited to software source code, documentation 28 | source, and configuration files. 29 | 30 | "Object" form shall mean any form resulting from mechanical 31 | transformation or translation of a Source form, including but 32 | not limited to compiled object code, generated documentation, 33 | and conversions to other media types. 34 | 35 | "Work" shall mean the work of authorship, whether in Source or 36 | Object form, made available under the License, as indicated by a 37 | copyright notice that is included in or attached to the work 38 | (an example is provided in the Appendix below). 39 | 40 | "Derivative Works" shall mean any work, whether in Source or Object 41 | form, that is based on (or derived from) the Work and for which the 42 | editorial revisions, annotations, elaborations, or other modifications 43 | represent, as a whole, an original work of authorship. For the purposes 44 | of this License, Derivative Works shall not include works that remain 45 | separable from, or merely link (or bind by name) to the interfaces of, 46 | the Work and Derivative Works thereof. 47 | 48 | "Contribution" shall mean any work of authorship, including 49 | the original version of the Work and any modifications or additions 50 | to that Work or Derivative Works thereof, that is intentionally 51 | submitted to Licensor for inclusion in the Work by the copyright owner 52 | or by an individual or Legal Entity authorized to submit on behalf of 53 | the copyright owner. For the purposes of this definition, "submitted" 54 | means any form of electronic, verbal, or written communication sent 55 | to the Licensor or its representatives, including but not limited to 56 | communication on electronic mailing lists, source code control systems, 57 | and issue tracking systems that are managed by, or on behalf of, the 58 | Licensor for the purpose of discussing and improving the Work, but 59 | excluding communication that is conspicuously marked or otherwise 60 | designated in writing by the copyright owner as "Not a Contribution." 61 | 62 | "Contributor" shall mean Licensor and any individual or Legal Entity 63 | on behalf of whom a Contribution has been received by Licensor and 64 | subsequently incorporated within the Work. 65 | 66 | 2. Grant of Copyright License. Subject to the terms and conditions of 67 | this License, each Contributor hereby grants to You a perpetual, 68 | worldwide, non-exclusive, no-charge, royalty-free, irrevocable 69 | copyright license to reproduce, prepare Derivative Works of, 70 | publicly display, publicly perform, sublicense, and distribute the 71 | Work and such Derivative Works in Source or Object form. 72 | 73 | 3. Grant of Patent License. Subject to the terms and conditions of 74 | this License, each Contributor hereby grants to You a perpetual, 75 | worldwide, non-exclusive, no-charge, royalty-free, irrevocable 76 | (except as stated in this section) patent license to make, have made, 77 | use, offer to sell, sell, import, and otherwise transfer the Work, 78 | where such license applies only to those patent claims licensable 79 | by such Contributor that are necessarily infringed by their 80 | Contribution(s) alone or by combination of their Contribution(s) 81 | with the Work to which such Contribution(s) was submitted. If You 82 | institute patent litigation against any entity (including a 83 | cross-claim or counterclaim in a lawsuit) alleging that the Work 84 | or a Contribution incorporated within the Work constitutes direct 85 | or contributory patent infringement, then any patent licenses 86 | granted to You under this License for that Work shall terminate 87 | as of the date such litigation is filed. 88 | 89 | 4. Redistribution. You may reproduce and distribute copies of the 90 | Work or Derivative Works thereof in any medium, with or without 91 | modifications, and in Source or Object form, provided that You 92 | meet the following conditions: 93 | 94 | (a) You must give any other recipients of the Work or 95 | Derivative Works a copy of this License; and 96 | 97 | (b) You must cause any modified files to carry prominent notices 98 | stating that You changed the files; and 99 | 100 | (c) You must retain, in the Source form of any Derivative Works 101 | that You distribute, all copyright, patent, trademark, and 102 | attribution notices from the Source form of the Work, 103 | excluding those notices that do not pertain to any part of 104 | the Derivative Works; and 105 | 106 | (d) If the Work includes a "NOTICE" text file as part of its 107 | distribution, then any Derivative Works that You distribute must 108 | include a readable copy of the attribution notices contained 109 | within such NOTICE file, excluding those notices that do not 110 | pertain to any part of the Derivative Works, in at least one 111 | of the following places: within a NOTICE text file distributed 112 | as part of the Derivative Works; within the Source form or 113 | documentation, if provided along with the Derivative Works; or, 114 | within a display generated by the Derivative Works, if and 115 | wherever such third-party notices normally appear. The contents 116 | of the NOTICE file are for informational purposes only and 117 | do not modify the License. You may add Your own attribution 118 | notices within Derivative Works that You distribute, alongside 119 | or as an addendum to the NOTICE text from the Work, provided 120 | that such additional attribution notices cannot be construed 121 | as modifying the License. 122 | 123 | You may add Your own copyright statement to Your modifications and 124 | may provide additional or different license terms and conditions 125 | for use, reproduction, or distribution of Your modifications, or 126 | for any such Derivative Works as a whole, provided Your use, 127 | reproduction, and distribution of the Work otherwise complies with 128 | the conditions stated in this License. 129 | 130 | 5. Submission of Contributions. Unless You explicitly state otherwise, 131 | any Contribution intentionally submitted for inclusion in the Work 132 | by You to the Licensor shall be under the terms and conditions of 133 | this License, without any additional terms or conditions. 134 | Notwithstanding the above, nothing herein shall supersede or modify 135 | the terms of any separate license agreement you may have executed 136 | with Licensor regarding such Contributions. 137 | 138 | 6. Trademarks. This License does not grant permission to use the trade 139 | names, trademarks, service marks, or product names of the Licensor, 140 | except as required for reasonable and customary use in describing the 141 | origin of the Work and reproducing the content of the NOTICE file. 142 | 143 | 7. Disclaimer of Warranty. Unless required by applicable law or 144 | agreed to in writing, Licensor provides the Work (and each 145 | Contributor provides its Contributions) on an "AS IS" BASIS, 146 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or 147 | implied, including, without limitation, any warranties or conditions 148 | of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A 149 | PARTICULAR PURPOSE. You are solely responsible for determining the 150 | appropriateness of using or redistributing the Work and assume any 151 | risks associated with Your exercise of permissions under this License. 152 | 153 | 8. Limitation of Liability. In no event and under no legal theory, 154 | whether in tort (including negligence), contract, or otherwise, 155 | unless required by applicable law (such as deliberate and grossly 156 | negligent acts) or agreed to in writing, shall any Contributor be 157 | liable to You for damages, including any direct, indirect, special, 158 | incidental, or consequential damages of any character arising as a 159 | result of this License or out of the use or inability to use the 160 | Work (including but not limited to damages for loss of goodwill, 161 | work stoppage, computer failure or malfunction, or any and all 162 | other commercial damages or losses), even if such Contributor 163 | has been advised of the possibility of such damages. 164 | 165 | 9. Accepting Warranty or Additional Liability. While redistributing 166 | the Work or Derivative Works thereof, You may choose to offer, 167 | and charge a fee for, acceptance of support, warranty, indemnity, 168 | or other liability obligations and/or rights consistent with this 169 | License. However, in accepting such obligations, You may act only 170 | on Your own behalf and on Your sole responsibility, not on behalf 171 | of any other Contributor, and only if You agree to indemnify, 172 | defend, and hold each Contributor harmless for any liability 173 | incurred by, or claims asserted against, such Contributor by reason 174 | of your accepting any such warranty or additional liability. 175 | 176 | END OF TERMS AND CONDITIONS 177 | 178 | APPENDIX: How to apply the Apache License to your work. 179 | 180 | To apply the Apache License to your work, attach the following 181 | boilerplate notice, with the fields enclosed by brackets "[]" 182 | replaced with your own identifying information. (Don't include 183 | the brackets!) The text should be enclosed in the appropriate 184 | comment syntax for the file format. We also recommend that a 185 | file or class name and description of purpose be included on the 186 | same "printed page" as the copyright notice for easier 187 | identification within third-party archives. 188 | 189 | Copyright [yyyy] [name of copyright owner] 190 | 191 | Licensed under the Apache License, Version 2.0 (the "License"); 192 | you may not use this file except in compliance with the License. 193 | You may obtain a copy of the License at 194 | 195 | http://www.apache.org/licenses/LICENSE-2.0 196 | 197 | Unless required by applicable law or agreed to in writing, software 198 | distributed under the License is distributed on an "AS IS" BASIS, 199 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 200 | See the License for the specific language governing permissions and 201 | limitations under the License. 202 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # THE FOLLOWING SCRIPT IS NO LONGER SUPPORTED. 2 | 3 | # TP-Advanced-Zombies (ESX, QBCORE & STANDALONE SUPPORT) 4 | An advanced FiveM zombies script which provides you many features in purpose to enjoy and create a realistic zombie apocalypse server. 5 | 6 | What will happen if society collapses? What would you do if there's no one to help you or your family? Disaster preparedness is more than worries, it's also about being practical, preparing for scenarios and being ready for the unpredictable. The world is on the doorstep of a zombie apocalypse. The only way to survive is to find a group of people who are ready to respond to the most difficult moments of survival. A virus who will not stop and will continue to create terror in the lives of people. You have to gather sufficient supplies, obtain and stockpile basic survival(the most important) items, store supplies for just getting by, prepare an emergency kit, become a good shot and always come up with an escape plan. 7 | -------------------------------------------------------------------------------- /Zombie Ped Images/a_f_y_juggalo_01.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TitansProductions/TP-Advanced-Zombies/2a0c4e4af6237271e0a6d7da2ff59e12c37404b3/Zombie Ped Images/a_f_y_juggalo_01.png -------------------------------------------------------------------------------- /Zombie Ped Images/a_m_m_beach_01.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TitansProductions/TP-Advanced-Zombies/2a0c4e4af6237271e0a6d7da2ff59e12c37404b3/Zombie Ped Images/a_m_m_beach_01.png -------------------------------------------------------------------------------- /Zombie Ped Images/a_m_m_eastsa_02.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TitansProductions/TP-Advanced-Zombies/2a0c4e4af6237271e0a6d7da2ff59e12c37404b3/Zombie Ped Images/a_m_m_eastsa_02.png -------------------------------------------------------------------------------- /Zombie Ped Images/a_m_m_farmer_01.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TitansProductions/TP-Advanced-Zombies/2a0c4e4af6237271e0a6d7da2ff59e12c37404b3/Zombie Ped Images/a_m_m_farmer_01.png -------------------------------------------------------------------------------- /Zombie Ped Images/a_m_m_fatlatin_01.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TitansProductions/TP-Advanced-Zombies/2a0c4e4af6237271e0a6d7da2ff59e12c37404b3/Zombie Ped Images/a_m_m_fatlatin_01.png -------------------------------------------------------------------------------- /Zombie Ped Images/a_m_m_hillbilly_01.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TitansProductions/TP-Advanced-Zombies/2a0c4e4af6237271e0a6d7da2ff59e12c37404b3/Zombie Ped Images/a_m_m_hillbilly_01.png -------------------------------------------------------------------------------- /Zombie Ped Images/a_m_m_malibu_01.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TitansProductions/TP-Advanced-Zombies/2a0c4e4af6237271e0a6d7da2ff59e12c37404b3/Zombie Ped Images/a_m_m_malibu_01.png -------------------------------------------------------------------------------- /Zombie Ped Images/a_m_m_og_boss_01.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TitansProductions/TP-Advanced-Zombies/2a0c4e4af6237271e0a6d7da2ff59e12c37404b3/Zombie Ped Images/a_m_m_og_boss_01.png -------------------------------------------------------------------------------- /Zombie Ped Images/a_m_m_polynesian_01.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TitansProductions/TP-Advanced-Zombies/2a0c4e4af6237271e0a6d7da2ff59e12c37404b3/Zombie Ped Images/a_m_m_polynesian_01.png -------------------------------------------------------------------------------- /Zombie Ped Images/a_m_m_rurmeth_01.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TitansProductions/TP-Advanced-Zombies/2a0c4e4af6237271e0a6d7da2ff59e12c37404b3/Zombie Ped Images/a_m_m_rurmeth_01.png -------------------------------------------------------------------------------- /Zombie Ped Images/a_m_m_salton_02.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TitansProductions/TP-Advanced-Zombies/2a0c4e4af6237271e0a6d7da2ff59e12c37404b3/Zombie Ped Images/a_m_m_salton_02.png -------------------------------------------------------------------------------- /Zombie Ped Images/a_m_m_skater_01.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TitansProductions/TP-Advanced-Zombies/2a0c4e4af6237271e0a6d7da2ff59e12c37404b3/Zombie Ped Images/a_m_m_skater_01.png -------------------------------------------------------------------------------- /Zombie Ped Images/a_m_m_skidrow_01.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TitansProductions/TP-Advanced-Zombies/2a0c4e4af6237271e0a6d7da2ff59e12c37404b3/Zombie Ped Images/a_m_m_skidrow_01.png -------------------------------------------------------------------------------- /Zombie Ped Images/a_m_m_tennis_01.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TitansProductions/TP-Advanced-Zombies/2a0c4e4af6237271e0a6d7da2ff59e12c37404b3/Zombie Ped Images/a_m_m_tennis_01.png -------------------------------------------------------------------------------- /Zombie Ped Images/a_m_o_acult_02.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TitansProductions/TP-Advanced-Zombies/2a0c4e4af6237271e0a6d7da2ff59e12c37404b3/Zombie Ped Images/a_m_o_acult_02.png -------------------------------------------------------------------------------- /Zombie Ped Images/a_m_y_genstreet_01.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TitansProductions/TP-Advanced-Zombies/2a0c4e4af6237271e0a6d7da2ff59e12c37404b3/Zombie Ped Images/a_m_y_genstreet_01.png -------------------------------------------------------------------------------- /Zombie Ped Images/a_m_y_genstreet_02.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TitansProductions/TP-Advanced-Zombies/2a0c4e4af6237271e0a6d7da2ff59e12c37404b3/Zombie Ped Images/a_m_y_genstreet_02.png -------------------------------------------------------------------------------- /Zombie Ped Images/a_m_y_methhead_01.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TitansProductions/TP-Advanced-Zombies/2a0c4e4af6237271e0a6d7da2ff59e12c37404b3/Zombie Ped Images/a_m_y_methhead_01.png -------------------------------------------------------------------------------- /Zombie Ped Images/a_m_y_salton_01.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TitansProductions/TP-Advanced-Zombies/2a0c4e4af6237271e0a6d7da2ff59e12c37404b3/Zombie Ped Images/a_m_y_salton_01.png -------------------------------------------------------------------------------- /Zombie Ped Images/a_m_y_stlat_01.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TitansProductions/TP-Advanced-Zombies/2a0c4e4af6237271e0a6d7da2ff59e12c37404b3/Zombie Ped Images/a_m_y_stlat_01.png -------------------------------------------------------------------------------- /Zombie Ped Images/s_m_m_paramedic_01.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TitansProductions/TP-Advanced-Zombies/2a0c4e4af6237271e0a6d7da2ff59e12c37404b3/Zombie Ped Images/s_m_m_paramedic_01.png -------------------------------------------------------------------------------- /Zombie Ped Images/s_m_y_cop_01.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TitansProductions/TP-Advanced-Zombies/2a0c4e4af6237271e0a6d7da2ff59e12c37404b3/Zombie Ped Images/s_m_y_cop_01.png -------------------------------------------------------------------------------- /Zombie Ped Images/s_m_y_prismuscl_01.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TitansProductions/TP-Advanced-Zombies/2a0c4e4af6237271e0a6d7da2ff59e12c37404b3/Zombie Ped Images/s_m_y_prismuscl_01.png -------------------------------------------------------------------------------- /Zombie Ped Images/s_m_y_prisoner_01.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TitansProductions/TP-Advanced-Zombies/2a0c4e4af6237271e0a6d7da2ff59e12c37404b3/Zombie Ped Images/s_m_y_prisoner_01.png -------------------------------------------------------------------------------- /Zombie Ped Images/u_m_m_prolsec_01.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TitansProductions/TP-Advanced-Zombies/2a0c4e4af6237271e0a6d7da2ff59e12c37404b3/Zombie Ped Images/u_m_m_prolsec_01.png -------------------------------------------------------------------------------- /tp-advancedzombies/client/tp-client_functions.lua: -------------------------------------------------------------------------------- 1 | 2 | function isPedInAVehicle() 3 | local ped = PlayerPedId() 4 | vehicle = GetVehiclePedIsIn(ped, false) 5 | if IsPedInAnyVehicle(ped, false) then 6 | -- We dont need to check if ped is in driver seat 7 | --if GetPedInVehicleSeat(vehicle, -1) == ped then 8 | local class = GetVehicleClass(vehicle) 9 | 10 | -- We don't want planes, helicopters and trains 11 | if class ~= 15 and class ~= 16 and class ~=21 then 12 | return true 13 | end 14 | --end 15 | end 16 | return false 17 | end 18 | 19 | function round(number, decimals) 20 | local power = 10^decimals 21 | return math.floor(number * power) / power 22 | end 23 | 24 | function Split(s, delimiter) 25 | result = {}; 26 | for match in (s..delimiter):gmatch("(.-)"..delimiter) do 27 | table.insert(result, match); 28 | end 29 | return result; 30 | end 31 | 32 | -- Play animation 33 | function animsAction(ped, animObj) 34 | Citizen.CreateThread(function() -- animObj 35 | if not playAnim then 36 | local playerPed = ped 37 | if DoesEntityExist(playerPed) then -- Check if ped exist 38 | dataAnim = animObj 39 | 40 | -- Play Animation 41 | RequestAnimDict(dataAnim.lib) 42 | while not HasAnimDictLoaded(dataAnim.lib) do 43 | Citizen.Wait(0) 44 | end 45 | if HasAnimDictLoaded(dataAnim.lib) then 46 | local flag = 0 47 | if dataAnim.loop ~= nil and dataAnim.loop then 48 | flag = 1 49 | elseif dataAnim.move ~= nil and dataAnim.move then 50 | flag = 49 51 | end 52 | 53 | TaskPlayAnim(playerPed, dataAnim.lib, dataAnim.anim, 8.0, -8.0, -1, flag, 0, 0, 0, 0) 54 | playAnimation = true 55 | end 56 | 57 | -- Wait end animation 58 | while true do 59 | Citizen.Wait(0) 60 | if not IsEntityPlayingAnim(playerPed, dataAnim.lib, dataAnim.anim, 3) then 61 | playAnim = false 62 | break 63 | end 64 | end 65 | end -- end ped exist 66 | end 67 | end) 68 | end 69 | 70 | function DrawText3Ds(x,y,z, text) 71 | local onScreen,_x,_y=World3dToScreen2d(x,y,z) 72 | local px,py,pz=table.unpack(GetGameplayCamCoords()) 73 | 74 | SetTextScale(0.35, 0.35) 75 | SetTextFont(4) 76 | SetTextProportional(1) 77 | SetTextColour(255, 255, 255, 215) 78 | SetTextEntry("STRING") 79 | SetTextCentre(1) 80 | AddTextComponentString(text) 81 | DrawText(_x,_y) 82 | local factor = (string.len(text)) / 370 83 | DrawRect(_x,_y+0.0125, 0.005+ factor, 0.03, 0, 0, 0, 100) 84 | end -------------------------------------------------------------------------------- /tp-advancedzombies/client/tp-client_main.lua: -------------------------------------------------------------------------------- 1 | -- tp-advancedzombies:onPlayerZombieKill client event in order to send in server side. 2 | 3 | zombiesList = {} 4 | entitys = {} 5 | 6 | local loadedPlayerData = true 7 | local isDead = false 8 | 9 | local playerIsInSafezone = false 10 | local isPlayerCrouching = false 11 | 12 | local playerCurrentZone = nil 13 | 14 | TriggerServerEvent("tp-advancedzombies:onZombieSpawningStart") 15 | 16 | AddEventHandler('esx:onPlayerDeath', function(data) 17 | isDead = true 18 | 19 | closeAdvancedZombiesUI() 20 | end) 21 | 22 | AddEventHandler('playerSpawned', function() 23 | isDead = false 24 | end) 25 | 26 | AddEventHandler('disc-death:onPlayerRevive', function(data) 27 | isDead = false 28 | end) 29 | 30 | 31 | RegisterNetEvent("tp-advancedzombies:setCrouchingStatus") 32 | AddEventHandler("tp-advancedzombies:setCrouchingStatus", function(cb) 33 | isPlayerCrouching = cb 34 | end) 35 | 36 | 37 | if Config.NotHealthRecharge then 38 | SetPlayerHealthRechargeMultiplier(PlayerId(), 0.0) 39 | end 40 | 41 | if Config.MuteAmbience then 42 | StartAudioScene('CHARACTER_CHANGE_IN_SKY_SCENE') 43 | end 44 | 45 | -- Getting the player if is dead or not based on QBCore and Standalone. 46 | if Config.Framework == "QBCore" or Config.Framework == "Standalone" then 47 | 48 | Citizen.CreateThread(function() 49 | while true do 50 | Citizen.Wait(1000) 51 | 52 | if NetworkIsPlayerActive(PlayerId()) then 53 | 54 | isDead = IsEntityDead(PlayerPedId()) 55 | 56 | end 57 | end 58 | 59 | end) 60 | end 61 | 62 | function isPlayerDead() 63 | return isDead 64 | end 65 | 66 | 67 | if Config.Zombies.AttackPlayersOnShooting then 68 | 69 | Citizen.CreateThread(function() 70 | while true do 71 | Citizen.Wait(0) 72 | 73 | if IsPedShooting(PlayerPedId()) then 74 | 75 | for i, v in pairs(entitys) do 76 | TaskGoToEntity(v.entity, PlayerPedId(), -1, 0.0, 500.0, 1073741824, 0) 77 | end 78 | 79 | end 80 | end 81 | end) 82 | 83 | end 84 | 85 | if Config.Zombies.AttackPlayersBasedInDistance then 86 | 87 | Citizen.CreateThread(function() 88 | while true do 89 | Citizen.Wait(Config.Zombies.DistanceAttackData.SleepTime) 90 | 91 | StartHuntingPlayerOnDistance() 92 | end 93 | end) 94 | 95 | StartHuntingPlayerOnDistance = function() 96 | 97 | for i, v in pairs(entitys) do 98 | 99 | local distance = GetDistanceBetweenCoords(GetEntityCoords(PlayerPedId()), GetEntityCoords(v.entity), true) 100 | 101 | -- Playing zombie sounds when close to the player. 102 | local requiredDistance = 0 103 | 104 | if isPlayerCrouching then 105 | requiredDistance = Config.Zombies.DistanceAttackData.Crouching 106 | 107 | elseif not isPlayerCrouching and IsPedSprinting(PlayerPedId()) then 108 | requiredDistance = Config.Zombies.DistanceAttackData.Sprinting 109 | 110 | else 111 | requiredDistance = Config.Zombies.DistanceAttackData.Walking 112 | end 113 | 114 | if distance <= requiredDistance and not isDead then 115 | TaskGoToEntity(v.entity, PlayerPedId(), -1, 0.0, 500.0, 1073741824, 0) 116 | end 117 | 118 | 119 | end 120 | end 121 | end 122 | 123 | if Config.Zombies.PlayCustomSpeakingSounds then 124 | 125 | Citizen.CreateThread(function() 126 | while true do 127 | Citizen.Wait(3000) 128 | 129 | for i, v in pairs(entitys) do 130 | 131 | local distance = GetDistanceBetweenCoords(GetEntityCoords(PlayerPedId()), GetEntityCoords(v.entity), true) 132 | local entityCoords = GetEntityCoords(v.entity) 133 | 134 | -- Playing zombie sounds when close to the player. 135 | if distance <= 30.1 and GetEntityCoords(v.entity) ~= nil then 136 | 137 | local randomChance = math.random(1, 99) 138 | 139 | --Creating a 50% chance of a zombie to do a sound in order to prevent all zombies doing sounds at the same time. 140 | if math.random(1, 99) >= 50 then 141 | local lCoords = entityCoords 142 | local eCoords = GetEntityCoords(PlayerPedId()) 143 | local distIs = Vdist(lCoords.x, lCoords.y, lCoords.z, eCoords.x, eCoords.y, eCoords.z) 144 | 145 | local number, sounds = 0, {} 146 | 147 | if (distIs > 10.0 and distIs <= 30.01) then 148 | number = distIs / 30.0 149 | sounds = Config.Zombies.SpeakingSounds.DistanceSounds.far 150 | 151 | elseif (distIs <= 10.0) then 152 | number = distIs / 10.0 153 | sounds = Config.Zombies.SpeakingSounds.DistanceSounds.close 154 | end 155 | 156 | local volume = round(1-number, 2) 157 | 158 | if sounds ~= nil and next(sounds) ~= nil then 159 | local _sound = sounds[ math.random( #sounds ) ] 160 | 161 | SendNUIMessage({ 162 | action = "playSound", 163 | 164 | sound = _sound, 165 | soundVolume = volume 166 | }) 167 | 168 | end 169 | end 170 | 171 | --TriggerServerEvent('tp-advancedzombies:SyncSpeakingSoundsOnServer', GetEntityCoords(v.entity)) 172 | end 173 | 174 | end 175 | end 176 | end) 177 | 178 | end 179 | 180 | if Config.Zombies.HumanEatingAndAttackingAnimation then 181 | local animationSleepTime = 2000 182 | 183 | Citizen.CreateThread(function() 184 | while true do 185 | Citizen.Wait(animationSleepTime) 186 | 187 | StartHumanEatingAndAttackingAnimation() 188 | end 189 | end) 190 | 191 | StartHumanEatingAndAttackingAnimation = function() 192 | 193 | for i, v in pairs(entitys) do 194 | 195 | local distance = GetDistanceBetweenCoords(GetEntityCoords(PlayerPedId()), GetEntityCoords(v.entity), true) 196 | 197 | if not isPedInAVehicle() then 198 | 199 | -- Playing zombies animation when a player is dead. 200 | if distance <= 1.2 and isDead then 201 | animsAction(v.entity, {lib = "amb@world_human_gardener_plant@female@idle_a", anim = "idle_a_female"}) 202 | end 203 | 204 | -- Playing zombies & players animation on attack. 205 | if distance <= 1.2 and not isDead then 206 | 207 | RequestAnimDict("misscarsteal4@actor") 208 | TaskPlayAnim(v.entity,"misscarsteal4@actor","stumble",1.0, 1.0, 500, 9, 1.0, 0, 0, 0) 209 | 210 | RequestAnimDict("misscarsteal4@actor") 211 | TaskPlayAnim(PlayerPedId(),"misscarsteal4@actor","stumble",1.0, 1.0, 500, 9, 1.0, 0, 0, 0) 212 | 213 | TaskGoToEntity(v.entity, PlayerPedId(), -1, 0.0, 500.0, 1073741824, 0) 214 | end 215 | 216 | else 217 | if distance <= 2.2 and not isDead then 218 | 219 | RequestAnimDict("misscarsteal4@actor") 220 | TaskPlayAnim(v.entity,"misscarsteal4@actor","stumble",1.0, 1.0, 500, 9, 1.0, 0, 0, 0) 221 | 222 | local vehicle = GetVehiclePedIsIn(PlayerPedId(), false) 223 | TaskGoToEntity(v.entity, PlayerPedId(), -1, 0.0, 500.0, 1073741824, 0) 224 | end 225 | end 226 | 227 | end 228 | end 229 | 230 | end 231 | 232 | 233 | -- On Zombie Peds Looting 234 | if Config.Zombies.DropLoot and Config.Framework ~= "Standalone" then 235 | 236 | local markerType = Config.Zombies.Loot.LootMarker.Type 237 | local scales = {x = Config.Zombies.Loot.LootMarker.ScaleX, y = Config.Zombies.Loot.LootMarker.ScaleY, z = Config.Zombies.Loot.LootMarker.ScaleZ} 238 | local rgba = {r = Config.Zombies.Loot.LootMarker.R, g = Config.Zombies.Loot.LootMarker.G, b = Config.Zombies.Loot.LootMarker.B, a = Config.Zombies.Loot.LootMarker.A} 239 | 240 | local markerDistance = Config.Zombies.Loot.LootMarker.MarkerDistance 241 | local markerSleepTime = Config.Zombies.Loot.LootMarker.SleepTime 242 | 243 | Citizen.CreateThread(function() 244 | while true do 245 | Citizen.Wait(0) 246 | 247 | local coords = GetEntityCoords(PlayerPedId()) 248 | local letSleep = true 249 | 250 | if zombiesList then 251 | for k, v in pairs(zombiesList) do 252 | 253 | local distance = GetDistanceBetweenCoords(coords, v.x, v.y, v.z, true) 254 | 255 | if distance < markerDistance then 256 | 257 | letSleep = false 258 | DrawMarker(markerType, v.x, v.y, v.z, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, scales.x, scales.y, scales.z, rgba.r, rgba.g, rgba.b, rgba.a, false, false, 2, true, nil, nil, false) 259 | end 260 | 261 | end 262 | 263 | end 264 | 265 | if letSleep then 266 | Citizen.Wait(markerSleepTime) 267 | end 268 | end 269 | end) 270 | 271 | local droppedLootSleepTime = Config.Zombies.Loot.DropData.SleepTime 272 | local droppedLootDistanceToPickup = Config.Zombies.Loot.DropData.DistanceToPickup 273 | local droppedLootPickupKey = Config.Zombies.Loot.PickupKey 274 | 275 | Citizen.CreateThread(function() 276 | while true do 277 | Citizen.Wait(0) 278 | 279 | local sleep = true 280 | 281 | local playerCoords = GetEntityCoords(PlayerPedId(), true) 282 | playerX, playerY, playerZ = table.unpack(playerCoords) 283 | 284 | if not IsPedInAnyVehicle(PlayerPedId(), false) then 285 | if zombiesList then 286 | for k, v in pairs(zombiesList) do 287 | 288 | local distance = GetDistanceBetweenCoords(playerCoords, v.x, v.y, v.z, true) 289 | 290 | if distance <= droppedLootDistanceToPickup then 291 | 292 | sleep = false 293 | 294 | if Config.Zombies.Loot.LootMarker.DrawText3Ds then 295 | DrawText3Ds( v.x, v.y, v.z + 0.5, Locales['press_to_search']) 296 | end 297 | 298 | if IsControlJustReleased(1, droppedLootPickupKey) then 299 | if DoesEntityExist(GetPlayerPed(-1)) then 300 | 301 | RequestAnimDict("random@domestic") 302 | while not HasAnimDictLoaded("random@domestic") do 303 | Citizen.Wait(1) 304 | end 305 | TaskPlayAnim(PlayerPedId(), "random@domestic", "pickup_low", 8.0, -8, 2000, 2, 0, 0, 0, 0) 306 | 307 | TriggerServerEvent("tp-advancedzombies:onZombiesLootReward", v.entityName) 308 | 309 | Wait(100) 310 | table.remove(zombiesList, k) 311 | 312 | end 313 | end 314 | end 315 | 316 | end 317 | end 318 | end 319 | 320 | if sleep then 321 | Citizen.Wait(droppedLootSleepTime) 322 | end 323 | end 324 | end) 325 | 326 | RegisterNetEvent("tp-advancedzombies:getZombieEntityOnClient") 327 | AddEventHandler("tp-advancedzombies:getZombieEntityOnClient", function(data) 328 | 329 | Wait(60000 * Config.Zombies.Loot.RemoveLootSleepTime) 330 | 331 | if zombiesList then 332 | for k, v in pairs(zombiesList) do 333 | 334 | if v.entity == data.entity then 335 | table.remove(zombiesList, k) 336 | end 337 | end 338 | end 339 | 340 | end) 341 | end 342 | 343 | --if Config.Zombies.DropLoot and Config.Framework ~= "Standalone" then 344 | -- On Zombie Killing counter and dropped loot system. 345 | Citizen.CreateThread(function() 346 | while true do 347 | Citizen.Wait(0) 348 | 349 | StartCheckingZombiePedKills() 350 | end 351 | end) 352 | 353 | StartCheckingZombiePedKills = function() 354 | local dropLootChance = Config.Zombies.Loot.DropLootChance 355 | 356 | for i, v in pairs(entitys) do 357 | playerX, playerY, playerZ = table.unpack(GetEntityCoords(GetPlayerPed(-1), true)) 358 | 359 | pedX, pedY, pedZ = table.unpack(GetEntityCoords(v.entity, true)) 360 | 361 | if not DoesEntityExist(v.entity) then 362 | table.remove(entitys, i) 363 | end 364 | 365 | if IsPedDeadOrDying(v.entity, 1) == 1 then 366 | if GetPedSourceOfDeath(v.entity) == PlayerPedId() then 367 | 368 | local deadZombieLocation = GetEntityCoords(v.entity, true) 369 | 370 | TriggerEvent("tp-advancedzombies:onPlayerZombieKill") 371 | 372 | updatePlayerStatistics("zombie_kills", 1) 373 | 374 | if Config.Zombies.DropLoot and Config.Framework ~= "Standalone" then 375 | local randomChance = math.random(0, 100) 376 | 377 | if Config.Debug then 378 | print("Killed a {".. v.name .."} zombie ped model with a random chance of dropping loot {" .. randomChance .. " <= " .. dropLootChance .. "}.") 379 | end 380 | 381 | if randomChance <= dropLootChance then 382 | 383 | table.insert(zombiesList,{ 384 | entity = v.entity, 385 | entityName = v.name, 386 | 387 | x = deadZombieLocation.x, 388 | y = deadZombieLocation.y, 389 | z = deadZombieLocation.z, 390 | }) 391 | 392 | TriggerServerEvent("tp-advancedzombies:getZombieEntityOnServer", {entity = v.entity, entityName = v.name, x = deadZombieLocation.x, y = deadZombieLocation.y, z = deadZombieLocation.z,} ) 393 | 394 | end 395 | end 396 | 397 | local model = GetEntityModel(v.entity) 398 | SetEntityAsNoLongerNeeded(v.entity) 399 | SetModelAsNoLongerNeeded(model) 400 | table.remove(entitys, i) 401 | 402 | Wait(2000) 403 | 404 | DeleteEntity(v.entity) 405 | end 406 | end 407 | end 408 | end 409 | 410 | 411 | 412 | AddEventHandler('tp-advancedzombies:hasEnteredZone', function(zone, type, blockPlayerAggressiveActions, blockZombiePedSpawning) 413 | playerCurrentZone = zone 414 | 415 | if blockZombiePedSpawning then 416 | playerIsInSafezone = true 417 | end 418 | end) 419 | 420 | AddEventHandler('tp-advancedzombies:hasExitedZone', function(zone) 421 | playerIsInSafezone = false 422 | playerCurrentZone = nil 423 | end) 424 | 425 | RegisterNetEvent("tp-advancedzombies:onZombieSync") 426 | AddEventHandler("tp-advancedzombies:onZombieSync", function() 427 | 428 | AddRelationshipGroup("zombie") 429 | SetRelationshipBetweenGroups(0, GetHashKey("zombie"), GetHashKey("PLAYER")) 430 | SetRelationshipBetweenGroups(2, GetHashKey("PLAYER"), GetHashKey("zombie")) 431 | 432 | 433 | local spawnZombies = 0 434 | local maxSpawnDistance = Config.Zombies.MaxSpawnDistance 435 | local minSpawnDistance = Config.Zombies.MinSpawnDistance 436 | local despawnDistance = Config.Zombies.DespawnDistance 437 | local spawnZombieDelay = Config.Zombies.SpawnDelay 438 | 439 | while true do 440 | Citizen.Wait(spawnZombieDelay) 441 | local coords = GetEntityCoords(PlayerPedId()) 442 | 443 | if loadedPlayerData and playerIsInSafezone then 444 | for i, v in pairs(entitys) do 445 | pedX, pedY, pedZ = table.unpack(GetEntityCoords(v.entity, true)) 446 | 447 | --Citizen.Trace("Zombie Eliminated from refuge\n") 448 | SetEntityHealth(v.entity, 0) 449 | 450 | SetEntityAsNoLongerNeeded(v.entity) 451 | SetModelAsNoLongerNeeded(GetEntityModel(v.entity)) 452 | 453 | DeleteEntity(v.entity) 454 | table.remove(entitys,i) 455 | end 456 | 457 | end 458 | 459 | if loadedPlayerData and not playerIsInSafezone then 460 | 461 | local canSpawnZombies = false 462 | 463 | -- if Config.Zombies.SpawnZombiesOnlyInZones is enabled, it checks if the zone player is inside allows zombie spawning. 464 | if Config.Zombies.SpawnZombiesOnlyInZones then 465 | if Config.Zones[playerCurrentZone] and not Config.Zones[playerCurrentZone].BlockZombiePedSpawning then 466 | canSpawnZombies = true 467 | end 468 | else 469 | canSpawnZombies = true 470 | end 471 | 472 | Wait(500) 473 | 474 | if canSpawnZombies then 475 | 476 | local TimeOfDay = GetClockHours() 477 | 478 | if TimeOfDay >= 18 or TimeOfDay <= 6 then 479 | spawnZombies = Config.Zombies.SpawnZombieAtNight 480 | else 481 | spawnZombies = Config.Zombies.SpawnZombieAtDaylight 482 | end 483 | 484 | Wait(100) 485 | 486 | -- Adding external zombie spawning if the zone allows to do that. 487 | if Config.Zones[playerCurrentZone] and Config.Zones[playerCurrentZone].ExtendedSpawnedZombies then 488 | if Config.Zones[playerCurrentZone].ExtendedSpawnedZombies > 0 then 489 | spawnZombies = spawnZombies + Config.Zones[playerCurrentZone].ExtendedSpawnedZombies 490 | end 491 | end 492 | 493 | if #entitys < spawnZombies then 494 | 495 | x, y, z = table.unpack(GetEntityCoords(GetPlayerPed(-1), true)) 496 | 497 | local pedModelsList = {} 498 | 499 | for _k1, _v1 in pairs (Config.ZombiePedModels) do 500 | table.insert(pedModelsList, _v1) 501 | end 502 | 503 | -- Adding external zombie types if the zone allows to do that. 504 | if Config.Zones[playerCurrentZone] and Config.Zones[playerCurrentZone].ExtendedZombiePedModels then 505 | for _k2, _v2 in pairs (Config.Zones[playerCurrentZone].ExtendedZombiePedModels) do 506 | 507 | table.insert(pedModelsList, _v2) 508 | end 509 | end 510 | 511 | Wait(500) 512 | 513 | local EntityModel = pedModelsList[math.random(1, #pedModelsList)] 514 | 515 | EntityModel = string.upper(EntityModel) 516 | RequestModel(GetHashKey(EntityModel)) 517 | while not HasModelLoaded(GetHashKey(EntityModel)) or not HasCollisionForModelLoaded(GetHashKey(EntityModel)) do 518 | Wait(1) 519 | end 520 | 521 | local posX = x 522 | local posY = y 523 | local posZ = z + 999.0 524 | 525 | repeat 526 | Wait(1) 527 | 528 | posX = x + math.random(-maxSpawnDistance, maxSpawnDistance) 529 | posY = y + math.random(-maxSpawnDistance, maxSpawnDistance) 530 | 531 | _,posZ = GetGroundZFor_3dCoord(posX+.0,posY+.0,z,1) 532 | 533 | Wait(1) 534 | playerX, playerY = table.unpack(GetEntityCoords(PlayerPedId(), true)) 535 | if posX > playerX - minSpawnDistance and posX < playerX + minSpawnDistance or posY > playerY - minSpawnDistance and posY < playerY + minSpawnDistance then 536 | canSpawn = false 537 | break 538 | else 539 | canSpawn = true 540 | end 541 | 542 | until canSpawn 543 | 544 | local entity = CreatePed(4, GetHashKey(EntityModel), posX, posY, posZ, 0.0, false, false) 545 | local entityMaxHealth = Config.ZombiePedModelsData[string.lower(EntityModel)].data.health 546 | 547 | SetEntityHealth(entity, entityMaxHealth) 548 | 549 | local walk = Config.ZombiePedModelWalks[math.random(1, #Config.ZombiePedModelWalks)] 550 | 551 | RequestAnimSet(walk) 552 | while not HasAnimSetLoaded(walk) do 553 | Citizen.Wait(1) 554 | end 555 | 556 | 557 | --TaskGoToEntity(entity, GetPlayerPed(-1), -1, 0.0, 1.0, 1073741824, 0) 558 | SetPedMovementClipset(entity, walk, 1.5) 559 | TaskWanderStandard(entity, 10.0, 10) 560 | SetCanAttackFriendly(entity, true, true) 561 | SetPedCanEvasiveDive(entity, false) 562 | SetPedRelationshipGroupHash(entity, GetHashKey("zombie")) 563 | SetPedCombatAbility(entity, 0) 564 | SetPedMoveRateOverride(entity,10.0) 565 | SetRunSprintMultiplierForPlayer(entity, 1.49) 566 | SetPedCombatRange(entity,0) 567 | 568 | SetPedCombatMovement(entity, 0) 569 | SetPedAlertness(entity,0) 570 | --SetPedIsDrunk(entity, true) 571 | SetPedConfigFlag(entity,100,1) 572 | 573 | ApplyPedDamagePack(entity,"BigHitByVehicle", 1.0, 9.0) 574 | ApplyPedDamagePack(entity,"SCR_Dumpster", 1.0, 9.0) 575 | ApplyPedDamagePack(entity,"SCR_Torture", 1.0, 9.0) 576 | ApplyPedDamagePack(entity,"Splashback_Face_0", 1.0, 9.0) 577 | ApplyPedDamagePack(entity,"SCR_Cougar", 1.0, 9.0) 578 | ApplyPedDamagePack(entity,"SCR_Shark", 1.0, 9.0) 579 | 580 | DisablePedPainAudio(entity, true) 581 | StopPedSpeaking(entity,true) 582 | SetEntityAsMissionEntity(entity, true, true) 583 | 584 | TaskSetBlockingOfNonTemporaryEvents(entity, true) 585 | 586 | --if not NetworkGetEntityIsNetworked(entity) then 587 | -- NetworkRegisterEntityAsNetworked(entity) 588 | --end 589 | 590 | table.insert(entitys, {entity = entity, name = EntityModel}) 591 | 592 | local playerX, playerY, playerZ = table.unpack(GetEntityCoords(GetPlayerPed(-1), true)) 593 | local distance = GetDistanceBetweenCoords(GetEntityCoords(GetPlayerPed(-1)), GetEntityCoords(entity), true) 594 | 595 | if not Config.Zombies.AttackPlayersBasedInDistance then 596 | TaskGoToEntity(entity, GetPlayerPed(-1), -1, 0.0, 500.0, 1073741824, 0) 597 | end 598 | 599 | if Config.Debug then 600 | print("Spawned " .. EntityModel .. " zombie ped model with Max Health: {" .. entityMaxHealth .. "}.") 601 | end 602 | end 603 | 604 | end 605 | 606 | for i, v in pairs(entitys) do 607 | if not DoesEntityExist(v.entity) then 608 | SetEntityAsNoLongerNeeded(v.entity) 609 | table.remove(entitys, i) 610 | else 611 | local playerX, playerY, playerZ = table.unpack(GetEntityCoords(GetPlayerPed(-1), true)) 612 | local pedX, pedY, pedZ = table.unpack(GetEntityCoords(v.entity, true)) 613 | 614 | if pedX < playerX - despawnDistance or pedX > playerX + despawnDistance or pedY < playerY -despawnDistance or pedY > playerY + despawnDistance then 615 | local model = GetEntityModel(v.entity) 616 | SetEntityAsNoLongerNeeded(v.entity) 617 | SetModelAsNoLongerNeeded(model) 618 | --Citizen.Trace("Zombie Eliminated\n") 619 | table.remove(entitys, i) 620 | end 621 | end 622 | 623 | if IsEntityInWater(v.entity) then 624 | local model = GetEntityModel(v.entity) 625 | SetEntityAsNoLongerNeeded(v.entity) 626 | SetModelAsNoLongerNeeded(model) 627 | DeleteEntity(v.entity) 628 | table.remove(entitys,i) 629 | --Citizen.Trace("Zombie Eliminated from Water\n") 630 | end 631 | end 632 | end 633 | end 634 | end) 635 | 636 | -- On Zombie Headshot Modifier System 637 | Citizen.CreateThread(function() 638 | while true do 639 | Wait(0) 640 | 641 | for i, v in pairs(entitys) do 642 | SetPedSuffersCriticalHits(v.entity, Config.ZombiePedModelsData[string.lower(v.name)].data.headshot_instakill) 643 | end 644 | end 645 | 646 | end) 647 | 648 | Citizen.CreateThread(function() 649 | 650 | while true do 651 | Citizen.Wait(0) 652 | for i, v in pairs(entitys) do 653 | playerX, playerY, playerZ = table.unpack(GetEntityCoords(GetPlayerPed(-1), true)) 654 | pedX, pedY, pedZ = table.unpack(GetEntityCoords(v.entity, true)) 655 | if IsPedDeadOrDying(v.entity, 1) == 1 then 656 | --none :v 657 | else 658 | if(Vdist(playerX, playerY, playerZ, pedX, pedY, pedZ) < 0.6)then 659 | if IsPedRagdoll(v.entity, 1) ~= 1 then 660 | if not IsPedGettingUp(v.entity) then 661 | 662 | RequestAnimDict("misscarsteal4@actor") 663 | TaskPlayAnim(v.entity,"misscarsteal4@actor","stumble",1.0, 1.0, 500, 9, 1.0, 0, 0, 0) 664 | 665 | local playerPed = PlayerPedId() 666 | local isPlayerInvincible = GetPlayerInvincible(PlayerId()) 667 | 668 | if not isPlayerInvincible and isPlayerInvincible ~= 1 and isPlayerInvincible ~= "1" then 669 | local entityName = string.lower(v.name) 670 | 671 | local withoutArmorDamage = Config.ZombiePedModelsData[entityName].data.damage_without_armor 672 | local armorDamage = Config.ZombiePedModelsData[entityName].data.damage_with_armor 673 | 674 | local armor = GetPedArmour(playerPed) 675 | 676 | if armor > 0 then 677 | 678 | if armorDamage == nil or armorDamage == 0 then 679 | armorDamage = 10 680 | end 681 | 682 | SetPedArmour(playerPed, armor - armorDamage) 683 | 684 | else 685 | ApplyDamageToPed(playerPed, withoutArmorDamage, false) 686 | end 687 | end 688 | 689 | 690 | Wait(1000) 691 | 692 | -- Allowing entities to go to the player after any attack in order to keep them in track and not get bugged (Staying Frozen). 693 | TaskGoToEntity(v.entity, playerPed, -1, 0.0, 500.0, 1073741824, 0) 694 | end 695 | end 696 | end 697 | end 698 | end 699 | end 700 | end) 701 | 702 | RegisterNetEvent('tp-advancedzombies:clearZombies') 703 | AddEventHandler('tp-advancedzombies:clearZombies', function() 704 | 705 | for i, v in pairs(entitys) do 706 | 707 | if not DoesEntityExist(v.entity) then 708 | table.remove(entitys, i) 709 | end 710 | 711 | local model = GetEntityModel(v.entity) 712 | SetEntityAsNoLongerNeeded(v.entity) 713 | SetModelAsNoLongerNeeded(model) 714 | DeleteEntity(v.entity) 715 | end 716 | end) 717 | 718 | 719 | AddEventHandler("onResourceStop", function(resourceName) 720 | if (GetCurrentResourceName() ~= resourceName) then 721 | return 722 | end 723 | 724 | TriggerEvent('tp-advancedzombies:clearZombies') 725 | end) 726 | -------------------------------------------------------------------------------- /tp-advancedzombies/client/tp-client_statistics.lua: -------------------------------------------------------------------------------- 1 | ESX, QBCore = nil, nil 2 | 3 | local loadedPlayerData = false 4 | 5 | local hasUserStatisticsRankingUIOpen = false 6 | 7 | local userStatistics = {} 8 | 9 | Citizen.CreateThread(function() 10 | 11 | if Config.Framework == "ESX" then 12 | 13 | while ESX == nil do 14 | TriggerEvent('esx:getSharedObject', function(obj) ESX = obj end) 15 | Citizen.Wait(100) 16 | end 17 | 18 | elseif Config.Framework == "QBCore" then 19 | while QBCore == nil do 20 | 21 | QBCore = exports['qb-core']:GetCoreObject() 22 | Citizen.Wait(100) 23 | end 24 | end 25 | 26 | end) 27 | 28 | 29 | if Config.UserStatisticsRanking then 30 | TriggerServerEvent('tp-advancedzombies:onPlayerStatisticsLoad') 31 | end 32 | 33 | RegisterNetEvent("tp-advancedzombies:updatePlayerStatisticsOnClient") 34 | AddEventHandler("tp-advancedzombies:updatePlayerStatisticsOnClient", function(data) 35 | userStatistics = data 36 | end) 37 | 38 | RegisterNetEvent("tp-advancedzombies:loadedPlayerData") 39 | AddEventHandler("tp-advancedzombies:loadedPlayerData", function(cb) 40 | loadedPlayerData = cb 41 | end) 42 | 43 | -- Supporting QBCore Hospital in order to update player deaths. 44 | AddEventHandler('hospital:client:RespawnAtHospital', function() 45 | if Config.UserStatisticsRanking then 46 | TriggerServerEvent("tp-advancedzombies:updatePlayerStatistics", "deaths", 1) 47 | end 48 | end) 49 | 50 | function updatePlayerStatistics(type, count) 51 | if Config.UserStatisticsRanking then 52 | TriggerServerEvent("tp-advancedzombies:updatePlayerStatistics", type, count) 53 | end 54 | end 55 | 56 | 57 | ----------------------------------------------------- 58 | -- User Statistic & UI Functions. 59 | ----------------------------------------------------- 60 | 61 | function openUserStatisticsRankingUI() 62 | 63 | while not loadedPlayerData do 64 | Citizen.Wait(100) 65 | end 66 | 67 | if loadedPlayerData then 68 | 69 | SendNUIMessage({ 70 | action = 'addPersonalStatistics', 71 | stats = {identifier = userStatistics.id, name = userStatistics.name, deaths = userStatistics.deaths, zombie_kills = userStatistics.zombie_kills} 72 | }) 73 | 74 | if Config.Framework == "ESX" then 75 | 76 | ESX.TriggerServerCallback('tp-advancedzombies:getAllPlayerStatistics', function(players) 77 | 78 | for k,v in pairs(players) do 79 | 80 | SendNUIMessage({ 81 | action = 'addPlayerStatistics', 82 | player_det = v, 83 | clientIdentifier = userStatistics.id, 84 | }) 85 | 86 | end 87 | 88 | end) 89 | 90 | elseif Config.Framework == "QBCore" then 91 | 92 | QBCore.Functions.TriggerCallback('tp-advancedzombies:getAllPlayerStatistics', function(players) 93 | for k,v in pairs(players) do 94 | 95 | SendNUIMessage({ 96 | action = 'addPlayerStatistics', 97 | player_det = v, 98 | clientIdentifier = userStatistics.id, 99 | }) 100 | 101 | end 102 | end) 103 | 104 | end 105 | 106 | toggleUI(true) 107 | end 108 | 109 | end 110 | 111 | function toggleUI(display) 112 | SetNuiFocus(display,display) 113 | 114 | hasUserStatisticsRankingUIOpen = display 115 | 116 | SendNUIMessage({ 117 | action = 'toggle', 118 | toggle = display 119 | }) 120 | 121 | end 122 | 123 | function closeAdvancedZombiesUI() 124 | if hasUserStatisticsRankingUIOpen then 125 | SendNUIMessage({action = 'closeUI'}) 126 | end 127 | end 128 | 129 | 130 | function getIdentifier() 131 | return userStatistics.id 132 | end 133 | 134 | function getZombieKills() 135 | return userStatistics.zombie_kills 136 | end 137 | 138 | ----------------------------------------------------- 139 | -- User Statistic & UI NUI Callbacks. 140 | ----------------------------------------------------- 141 | 142 | RegisterNUICallback('closeUI', function() 143 | toggleUI(false) 144 | end) 145 | 146 | ----------------------------------------------------- 147 | -- User Statistic & UI Commands & Key Mapping. 148 | ----------------------------------------------------- 149 | if Config.UserStatisticsRanking then 150 | RegisterCommand(Config.UserStatistics.OpenCommand, function() 151 | 152 | if not isPlayerDead() then 153 | openUserStatisticsRankingUI() 154 | end 155 | 156 | end, false) 157 | 158 | RegisterKeyMapping(Config.UserStatistics.OpenCommand, 'Open User Statistics (Zombies Ranking UI)', 'keyboard', Config.UserStatistics.OpenKey) 159 | end -------------------------------------------------------------------------------- /tp-advancedzombies/client/tp-client_trafficadjuster.lua: -------------------------------------------------------------------------------- 1 | 2 | if Config.DisableTrafficAdjuster then 3 | 4 | SetRandomEventFlag(false) 5 | 6 | local scenarios = { 7 | 'WORLD_VEHICLE_ATTRACTOR', 8 | 'WORLD_VEHICLE_AMBULANCE', 9 | 'WORLD_VEHICLE_BICYCLE_BMX', 10 | 'WORLD_VEHICLE_BICYCLE_BMX_BALLAS', 11 | 'WORLD_VEHICLE_BICYCLE_BMX_FAMILY', 12 | 'WORLD_VEHICLE_BICYCLE_BMX_HARMONY', 13 | 'WORLD_VEHICLE_BICYCLE_BMX_VAGOS', 14 | 'WORLD_VEHICLE_BICYCLE_MOUNTAIN', 15 | 'WORLD_VEHICLE_BICYCLE_ROAD', 16 | 'WORLD_VEHICLE_BIKE_OFF_ROAD_RACE', 17 | 'WORLD_VEHICLE_BIKER', 18 | 'WORLD_VEHICLE_BOAT_IDLE', 19 | 'WORLD_VEHICLE_BOAT_IDLE_ALAMO', 20 | 'WORLD_VEHICLE_BOAT_IDLE_MARQUIS', 21 | 'WORLD_VEHICLE_BOAT_IDLE_MARQUIS', 22 | 'WORLD_VEHICLE_BROKEN_DOWN', 23 | 'WORLD_VEHICLE_BUSINESSMEN', 24 | 'WORLD_VEHICLE_HELI_LIFEGUARD', 25 | 'WORLD_VEHICLE_CLUCKIN_BELL_TRAILER', 26 | 'WORLD_VEHICLE_CONSTRUCTION_SOLO', 27 | 'WORLD_VEHICLE_CONSTRUCTION_PASSENGERS', 28 | 'WORLD_VEHICLE_DRIVE_PASSENGERS', 29 | 'WORLD_VEHICLE_DRIVE_PASSENGERS_LIMITED', 30 | 'WORLD_VEHICLE_DRIVE_SOLO', 31 | 'WORLD_VEHICLE_FIRE_TRUCK', 32 | 'WORLD_VEHICLE_EMPTY', 33 | 'WORLD_VEHICLE_MARIACHI', 34 | 'WORLD_VEHICLE_MECHANIC', 35 | 'WORLD_VEHICLE_MILITARY_PLANES_BIG', 36 | 'WORLD_VEHICLE_MILITARY_PLANES_SMALL', 37 | 'WORLD_VEHICLE_PARK_PARALLEL', 38 | 'WORLD_VEHICLE_PARK_PERPENDICULAR_NOSE_IN', 39 | 'WORLD_VEHICLE_PASSENGER_EXIT', 40 | 'WORLD_VEHICLE_POLICE_BIKE', 41 | 'WORLD_VEHICLE_POLICE_CAR', 42 | 'WORLD_VEHICLE_POLICE', 43 | 'WORLD_VEHICLE_POLICE_NEXT_TO_CAR', 44 | 'WORLD_VEHICLE_QUARRY', 45 | 'WORLD_VEHICLE_SALTON', 46 | 'WORLD_VEHICLE_SALTON_DIRT_BIKE', 47 | 'WORLD_VEHICLE_SECURITY_CAR', 48 | 'WORLD_VEHICLE_STREETRACE', 49 | 'WORLD_VEHICLE_TOURBUS', 50 | 'WORLD_VEHICLE_TOURIST', 51 | 'WORLD_VEHICLE_TANDL', 52 | 'WORLD_VEHICLE_TRACTOR', 53 | 'WORLD_VEHICLE_TRACTOR_BEACH', 54 | 'WORLD_VEHICLE_TRUCK_LOGS', 55 | 'WORLD_VEHICLE_TRUCKS_TRAILERS', 56 | 'WORLD_VEHICLE_DISTANT_EMPTY_GROUND' 57 | } 58 | 59 | CreateThread(function() 60 | for i, v in ipairs(scenarios) do SetScenarioTypeEnabled(v, false) end 61 | for i = 1, 15 do EnableDispatchService(i, false) end 62 | 63 | SetRandomBoats(false) 64 | SetGarbageTrucks(false) 65 | SetRandomTrains(false) 66 | SetCreateRandomCops(false) 67 | SetCreateRandomCopsOnScenarios(false) 68 | SetCreateRandomCopsNotOnScenarios(false) 69 | SetDispatchCopsForPlayer(PlayerId(), false) 70 | SetPedPopulationBudget(0.0) 71 | SetNumberOfParkedVehicles(0.0) 72 | SetVehiclePopulationBudget(0.0) 73 | DistantCopCarSirens(false) 74 | DisableVehicleDistantlights(true) -- fixes distant ghost cars from appearing 75 | end) 76 | 77 | end 78 | -------------------------------------------------------------------------------- /tp-advancedzombies/client/tp-client_zones.lua: -------------------------------------------------------------------------------- 1 | local currentZoneType = "UNKNOWN" 2 | 3 | -- Enter / Exit marker events 4 | Citizen.CreateThread(function() 5 | while true do 6 | Citizen.Wait(Config.EnteringZoneDelay) 7 | 8 | local coords = GetEntityCoords(PlayerPedId()) 9 | local isInZone = false 10 | local zone = nil 11 | local zoneType = nil 12 | local canBlockPlayerAggressiveActions = false 13 | local blockZombiePedSpawning = false 14 | 15 | for k,v in pairs(Config.Zones) do 16 | 17 | if(GetDistanceBetweenCoords(coords, v.Pos.x, v.Pos.y, v.Pos.z, true) < v.ZoneDistance) then 18 | isInZone = true 19 | zone = k 20 | zoneType = v.ZoneType 21 | canBlockPlayerAggressiveActions = v.BlockPlayerAggressiveActions 22 | blockZombiePedSpawning = v.BlockZombiePedSpawning 23 | end 24 | end 25 | 26 | if isInZone then 27 | HasAlreadyEnteredMarker = true 28 | LastSafezone = zone 29 | TriggerEvent('tp-advancedzombies:hasEnteredZone', zone, zoneType, canBlockPlayerAggressiveActions, blockZombiePedSpawning) 30 | end 31 | 32 | if not isInZone then 33 | HasAlreadyEnteredMarker = false 34 | TriggerEvent('tp-advancedzombies:hasExitedZone', LastSafezone) 35 | end 36 | 37 | end 38 | end) 39 | 40 | Citizen.CreateThread(function() 41 | 42 | for _,v in pairs(Config.Zones) do 43 | 44 | if v.EnableZoneBlipData then 45 | 46 | v.blip = AddBlipForRadius(v.Pos.x, v.Pos.y, v.Pos.z, v.ZoneDistance) 47 | 48 | SetBlipHighDetail(v.blip, true) 49 | SetBlipDisplay(v.blip, v.BlipData.Display) 50 | SetBlipColour(v.blip, v.BlipData.CircleColor) 51 | SetBlipAlpha (v.blip, 128) 52 | 53 | 54 | v.blip = AddBlipForCoord(v.Pos.x, v.Pos.y, v.Pos.z) 55 | SetBlipSprite(v.blip, v.BlipData.Id) 56 | SetBlipDisplay(v.blip, 3) 57 | SetBlipScale(v.blip, v.BlipData.Scale) 58 | SetBlipColour(v.blip, v.BlipData.IdColour) 59 | SetBlipAsShortRange(v.blip, true) 60 | BeginTextCommandSetBlipName("STRING") 61 | AddTextComponentString(v.BlipData.Title) 62 | EndTextCommandSetBlipName(v.blip) 63 | 64 | end 65 | end 66 | end) 67 | 68 | AddEventHandler('tp-advancedzombies:hasEnteredZone', function(zone, type, blockPlayerAggressiveActions, blockZombiePedSpawning) 69 | currentZoneType = type 70 | 71 | if blockPlayerAggressiveActions then 72 | BlockPlayerAggressiveActions() 73 | end 74 | 75 | if Config.Debug then 76 | print("Entered " .. currentZoneType) 77 | end 78 | end) 79 | 80 | AddEventHandler('tp-advancedzombies:hasExitedZone', function(zone) 81 | currentZoneType = "UNKNOWN" 82 | 83 | if Config.Debug then 84 | print("Not inside any zone, current zone type is unknown.") 85 | end 86 | end) 87 | 88 | function getPlayerZoneType() 89 | return currentZoneType 90 | end 91 | 92 | function BlockPlayerAggressiveActions() 93 | 94 | local playerPedId = PlayerPedId() 95 | 96 | SetPlayerCanDoDriveBy(playerPedId, false) 97 | DisablePlayerFiring(playerPedId, true) 98 | SetPlayerInvincible(playerPedId, true) 99 | DisableControlAction(0,24) -- INPUT_ATTACK 100 | DisableControlAction(0,69) -- INPUT_VEH_ATTACK 101 | DisableControlAction(0,70) -- INPUT_VEH_ATTACK2 102 | DisableControlAction(0,92) -- INPUT_VEH_PASSENGER_ATTACK 103 | DisableControlAction(0,114) -- INPUT_VEH_FLY_ATTACK 104 | DisableControlAction(0,257) -- INPUT_ATTACK2 105 | DisableControlAction(0,331) -- INPUT_VEH_FLY_ATTACK2 106 | 107 | end 108 | -------------------------------------------------------------------------------- /tp-advancedzombies/config.lua: -------------------------------------------------------------------------------- 1 | Config = {} 2 | Config.Debug = false 3 | 4 | -- [FRAMEWORKS SUPPORTED]: ESX, QBCore, Standalone 5 | Config.Framework = "ESX" 6 | 7 | -- When set to true, all the default fivem vehicles and peds (npcs) will not be spawned. 8 | Config.DisableTrafficAdjuster = true 9 | 10 | -- If you set it to true, make sure tp_user_statistics sql file exists in your database. 11 | Config.UserStatisticsRanking = true 12 | 13 | Config.UserStatistics = { 14 | OpenCommand = "ranking", 15 | OpenKey = "F7", 16 | } 17 | 18 | ------------------------------------------------------------------------------------------------------------------ 19 | -- Developers Mode. 20 | ------------------------------------------------------------------------------------------------------------------ 21 | 22 | -- This is for developers, do not enable it if you are not going to use it. 23 | -- "tp-advancedzombies:onPlayerZombieKill" (Client Event) 24 | -- This event will trigger when a player kills a zombie in order to send any kind of rewards you want (manually). 25 | 26 | ------------------------------------------------------------------------------------------------------------------ 27 | ------------------------------------------------------------------------------------------------------------------ 28 | -- Zombie Peds System Configuration. 29 | ------------------------------------------------------------------------------------------------------------------ 30 | 31 | -- Default whitelisted zombie peds to be spawned in the game. 32 | Config.ZombiePedModels = { 33 | "u_m_m_prolsec_01", 34 | "a_m_m_hillbilly_01", 35 | "a_m_m_polynesian_01", 36 | "a_m_m_skidrow_01", 37 | "a_m_m_salton_02", 38 | "a_m_m_fatlatin_01", 39 | "a_m_m_beach_01", 40 | "a_m_m_farmer_01", 41 | "a_m_m_malibu_01", 42 | "a_m_m_rurmeth_01", 43 | "a_m_y_salton_01", 44 | "a_m_m_skater_01", 45 | "a_m_m_tennis_01", 46 | "a_m_o_acult_02", 47 | "a_m_y_genstreet_01", 48 | "a_m_y_genstreet_02", 49 | "a_m_y_methhead_01", 50 | "a_m_y_stlat_01", 51 | "s_m_m_paramedic_01", 52 | "s_m_y_cop_01", 53 | "s_m_y_prismuscl_01", 54 | "s_m_y_prisoner_01", 55 | "a_m_m_og_boss_01", 56 | "a_m_m_eastsa_02", 57 | "a_f_y_juggalo_01", 58 | } 59 | 60 | Config.ZombiePedModelsData = { 61 | ["u_m_m_prolsec_01"] = { data = { health = 200, damage_without_armor = 15, damage_with_armor = 10, headshot_instakill = true }, loot = "level_1" }, 62 | ["a_m_m_hillbilly_01"] = { data = { health = 200, damage_without_armor = 15, damage_with_armor = 10, headshot_instakill = true }, loot = "level_1" }, 63 | ["a_m_m_polynesian_01"] = { data = { health = 200, damage_without_armor = 15, damage_with_armor = 10, headshot_instakill = true }, loot = "level_1" }, 64 | ["a_m_m_skidrow_01"] = { data = { health = 200, damage_without_armor = 15, damage_with_armor = 10, headshot_instakill = true }, loot = "level_1" }, 65 | ["a_m_m_salton_02"] = { data = { health = 200, damage_without_armor = 15, damage_with_armor = 10, headshot_instakill = true }, loot = "level_1" }, 66 | ["a_m_m_fatlatin_01"] = { data = { health = 200, damage_without_armor = 15, damage_with_armor = 10, headshot_instakill = true }, loot = "level_1" }, 67 | ["a_m_m_beach_01"] = { data = { health = 200, damage_without_armor = 15, damage_with_armor = 10, headshot_instakill = true }, loot = "level_1" }, 68 | ["a_m_m_farmer_01"] = { data = { health = 200, damage_without_armor = 15, damage_with_armor = 10, headshot_instakill = true }, loot = "level_1" }, 69 | ["a_m_m_malibu_01"] = { data = { health = 200, damage_without_armor = 15, damage_with_armor = 10, headshot_instakill = true }, loot = "level_1" }, 70 | ["a_m_m_rurmeth_01"] = { data = { health = 200, damage_without_armor = 15, damage_with_armor = 10, headshot_instakill = true }, loot = "level_1" }, 71 | ["a_m_y_salton_01"] = { data = { health = 200, damage_without_armor = 15, damage_with_armor = 10, headshot_instakill = true }, loot = "level_1" }, 72 | ["a_m_m_skater_01"] = { data = { health = 200, damage_without_armor = 15, damage_with_armor = 10, headshot_instakill = true }, loot = "level_1" }, 73 | ["a_m_m_tennis_01"] = { data = { health = 200, damage_without_armor = 15, damage_with_armor = 10, headshot_instakill = true }, loot = "level_1" }, 74 | ["a_m_o_acult_02"] = { data = { health = 200, damage_without_armor = 15, damage_with_armor = 10, headshot_instakill = true }, loot = "level_1" }, 75 | ["a_m_y_genstreet_01"] = { data = { health = 200, damage_without_armor = 15, damage_with_armor = 10, headshot_instakill = true }, loot = "level_1" }, 76 | ["a_m_y_genstreet_02"] = { data = { health = 200, damage_without_armor = 15, damage_with_armor = 10, headshot_instakill = true }, loot = "level_1" }, 77 | ["a_m_y_methhead_01"] = { data = { health = 200, damage_without_armor = 15, damage_with_armor = 10, headshot_instakill = true }, loot = "level_1" }, 78 | ["a_m_y_stlat_01"] = { data = { health = 200, damage_without_armor = 15, damage_with_armor = 10, headshot_instakill = true }, loot = "level_1" }, 79 | ["s_m_m_paramedic_01"] = { data = { health = 200, damage_without_armor = 15, damage_with_armor = 10, headshot_instakill = true }, loot = "level_1" }, 80 | ["s_m_y_cop_01"] = { data = { health = 200, damage_without_armor = 15, damage_with_armor = 10, headshot_instakill = true }, loot = "level_1" }, 81 | ["s_m_y_prismuscl_01"] = { data = { health = 200, damage_without_armor = 15, damage_with_armor = 10, headshot_instakill = true }, loot = "level_1" }, 82 | ["s_m_y_prisoner_01"] = { data = { health = 200, damage_without_armor = 15, damage_with_armor = 10, headshot_instakill = true }, loot = "level_1" }, 83 | ["a_m_m_og_boss_01"] = { data = { health = 200, damage_without_armor = 15, damage_with_armor = 10, headshot_instakill = true }, loot = "level_1" }, 84 | ["a_m_m_eastsa_02"] = { data = { health = 200, damage_without_armor = 15, damage_with_armor = 10, headshot_instakill = true }, loot = "level_1" }, 85 | ["a_f_y_juggalo_01"] = { data = { health = 200, damage_without_armor = 15, damage_with_armor = 10, headshot_instakill = true }, loot = "level_1" }, 86 | } 87 | 88 | Config.ZombiePedModelWalks = { 89 | "move_m@drunk@verydrunk", 90 | "move_m@drunk@moderatedrunk", 91 | "move_m@drunk@a", 92 | "anim_group_move_ballistic", 93 | "move_lester_CaneUp", 94 | } 95 | 96 | Config.MuteAmbience = true 97 | Config.NotHealthRecharge = true 98 | 99 | 100 | Config.Zombies = { 101 | SpawnDelay = 1000, -- The time is in milliseconds, 1000 = 1 second. 102 | 103 | -- If you set this to true, zombies will only spawn in zones where you allow. 104 | SpawnZombiesOnlyInZones = false, 105 | 106 | SpawnZombieAtDaylight = 5, 107 | SpawnZombieAtNight = 10, 108 | 109 | MinSpawnDistance = 30, 110 | MaxSpawnDistance = 45, 111 | DespawnDistance = 50, 112 | 113 | AttackPlayersOnShooting = true, 114 | AttackPlayersBasedInDistance = true, 115 | 116 | DistanceAttackData = { 117 | SleepTime = 1000, 118 | 119 | Crouching = 10, 120 | Walking = 35, 121 | Sprinting = 45, 122 | }, 123 | 124 | PlayCustomSpeakingSounds = true, 125 | 126 | SpeakingSounds = { 127 | 128 | DistanceSounds = { 129 | 130 | far = { 131 | 'zombie_growl_1.mp3', 132 | 'zombie_growl_2.mp3', 133 | }, 134 | 135 | close = { 136 | 'zombie_aggressive_1.mp3', 137 | 'zombie_aggressive_2.mp3', 138 | 'zombie_aggressive_3.mp3', 139 | 'zombie_aggressive_4.mp3', 140 | 'zombie_aggressive_5.mp3', 141 | }, 142 | }, 143 | }, 144 | 145 | HumanEatingAndAttackingAnimation = true, 146 | 147 | DropLoot = true, 148 | 149 | Loot = { 150 | 151 | PickupKey = 51, 152 | 153 | DropLootChance = 70, 154 | 155 | -- RemoveLootSleepTime is in minutes to remove the loot after an amount of time if the player is not picking it up. 156 | RemoveLootSleepTime = 2, 157 | 158 | LootMarker = { 159 | 160 | MarkerDistance = 50, 161 | SleepTime = 1000, 162 | 163 | Type = 0, 164 | 165 | ScaleX = 0.2, 166 | ScaleY = 0.5, 167 | ScaleZ = 0.2, 168 | 169 | R = 255, 170 | G = 0, 171 | B = 0, 172 | A = 100, 173 | 174 | DrawText3Ds = true, 175 | }, 176 | 177 | DropData = { 178 | SleepTime = 1000, 179 | DistanceToPickup = 1.5, 180 | }, 181 | 182 | -- If you dont want to add any items or any weapons, just set it to nil, for example, it should be `items = nil`, same for weapons(`weapons = nil`). 183 | -- If you want to give a random amount, set the random to true, and set the min, max. 184 | -- If you dont want to give a random amount, set the random to false and set the max to any amount you want. 185 | -- The Loot Reward Packages are for Config.ZombiePedModelsData, in order to use a specific loot package dropping for every custom zombie ped. 186 | LootRewardPackages = { 187 | ['level_1'] = { 188 | 189 | account = { cash = 0, black_money = 0 }, 190 | 191 | items = { -- start of items 192 | 193 | water = { 194 | randomAmount = true, 195 | min = 0, 196 | max = 1, 197 | 198 | chance = 70, 199 | }, 200 | 201 | disc_ammo_rifle = { 202 | randomAmount = true, 203 | min = 0, 204 | max = 2, 205 | 206 | chance = 30, 207 | }, 208 | 209 | }, -- end of items 210 | 211 | weapons = nil, 212 | 213 | 214 | }, 215 | 216 | ['level_2'] = { 217 | 218 | account = { cash = 0, black_money = 0 }, 219 | 220 | items = nil, 221 | 222 | weapons = { -- start of weapons 223 | 224 | WEAPON_PISTOL = { 225 | randomAmount = true, -- randomAmount is the ammunition for weapons. 226 | min = 1, 227 | max = 7, 228 | 229 | chance = 5, 230 | }, 231 | }, -- end of weapons 232 | 233 | }, 234 | 235 | 236 | }, 237 | }, 238 | 239 | } 240 | 241 | 242 | -- The time is in milliseconds, 1250 as default, equals to 1,25 seconds. 243 | -- Default is preffered in order to have the lowest ms usage. 244 | Config.EnteringZoneDelay = 1250 245 | 246 | Config.Zones = { 247 | 248 | VineWoodHills = { 249 | ZoneType = "SAFEZONE", 250 | Pos = {x = -418.36, y = 1151.68, z = 326.0}, 251 | ZoneDistance = 300.0, 252 | BlockPlayerAggressiveActions = true, 253 | BlockZombiePedSpawning = true, 254 | 255 | EnableZoneBlipData = true, 256 | 257 | BlipData = { 258 | 259 | Title = "Vinewood Hills", 260 | CircleColor = 2, 261 | IdColour = 2, 262 | Scale = 1.0, 263 | Display = 4, 264 | Id = 557, 265 | }, 266 | }, 267 | 268 | Palmer = { 269 | ZoneType = "DARKZONE", 270 | Pos = {x = 2744.16, y = 1553.64, z = 35.12}, 271 | ZoneDistance = 400.0, 272 | BlockPlayerAggressiveActions = false, 273 | BlockZombiePedSpawning = false, 274 | 275 | EnableZoneBlipData = true, 276 | 277 | BlipData = { 278 | 279 | Title = "Palmer T. Power Station", 280 | CircleColor = 40, 281 | IdColour = 40, 282 | Scale = 1.0, 283 | Display = 4, 284 | Id = 310, 285 | }, 286 | 287 | -- if you add external zombie ped models, make sure to add them in the Config.ZombiePedModelsData. 288 | ExtendedSpawnedZombies = 5, 289 | ExtendedZombiePedModels = {"zombie_ped_example1", "zombie_ped_example2"}, 290 | }, 291 | 292 | HumaneLabs = { 293 | ZoneType = "DARKZONE", 294 | Pos = {x = 3527.24, y = 3712.64, z = 36.64}, 295 | ZoneDistance = 400.0, 296 | BlockPlayerAggressiveActions = false, 297 | BlockZombiePedSpawning = false, 298 | 299 | EnableZoneBlipData = true, 300 | 301 | BlipData = { 302 | 303 | Title = "Humane Labs & Research", 304 | CircleColor = 40, 305 | IdColour = 40, 306 | Scale = 1.0, 307 | Display = 4, 308 | Id = 310, 309 | }, 310 | 311 | ExtendedSpawnedZombies = 0, 312 | ExtendedZombiePedModels = nil, 313 | }, 314 | 315 | Cayo = { 316 | ZoneType = "DARKZONE", 317 | Pos = {x = 4995.08, y = -5094.12, z = 4.96}, 318 | ZoneDistance = 1300.0, 319 | BlockPlayerAggressiveActions = false, 320 | BlockZombiePedSpawning = false, 321 | 322 | EnableZoneBlipData = true, 323 | 324 | BlipData = { 325 | 326 | Title = "Cayo", 327 | CircleColor = 40, 328 | IdColour = 40, 329 | Scale = 1.0, 330 | Display = 4, 331 | Id = 310, 332 | }, 333 | 334 | ExtendedSpawnedZombies = 0, 335 | ExtendedZombiePedModels = nil, 336 | }, 337 | 338 | MountChiliad = { 339 | ZoneType = "REDZONE", 340 | Pos = {x = -526.4, y = 5313.24, z = 94.0}, 341 | ZoneDistance = 400.0, 342 | BlockPlayerAggressiveActions = false, 343 | BlockZombiePedSpawning = false, 344 | 345 | EnableZoneBlipData = true, 346 | 347 | BlipData = { 348 | 349 | Title = "Mount Chiliad Lumber Mill", 350 | CircleColor = 6, 351 | IdColour = 6, 352 | Scale = 1.0, 353 | Display = 4, 354 | Id = 429, 355 | }, 356 | 357 | ExtendedSpawnedZombies = 0, 358 | ExtendedZombiePedModels = nil, 359 | }, 360 | 361 | StabCity = { 362 | ZoneType = "REDZONE", 363 | Pos = {x = 57.2, y = 3703.28, z = 39.76}, 364 | ZoneDistance = 400.0, 365 | BlockPlayerAggressiveActions = false, 366 | BlockZombiePedSpawning = false, 367 | 368 | EnableZoneBlipData = true, 369 | 370 | BlipData = { 371 | 372 | Title = "Stab City", 373 | CircleColor = 6, 374 | IdColour = 6, 375 | Scale = 1.0, 376 | Display = 4, 377 | Id = 429, 378 | }, 379 | 380 | ExtendedSpawnedZombies = 0, 381 | ExtendedZombiePedModels = nil, 382 | }, 383 | 384 | } 385 | -------------------------------------------------------------------------------- /tp-advancedzombies/database/tp_user_statistics.sql: -------------------------------------------------------------------------------- 1 | CREATE TABLE IF NOT EXISTS `tp_user_statistics` ( 2 | `identifier` varchar(46) COLLATE utf8mb4_unicode_ci NOT NULL, 3 | `name` longtext COLLATE utf8mb4_unicode_ci DEFAULT NULL, 4 | `deaths` int(11) DEFAULT 0, 5 | `zombie_kills` int(11) DEFAULT 0, 6 | PRIMARY KEY (`identifier`) USING BTREE 7 | ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci ROW_FORMAT=DYNAMIC; -------------------------------------------------------------------------------- /tp-advancedzombies/fxmanifest.lua: -------------------------------------------------------------------------------- 1 | fx_version 'adamant' 2 | game 'gta5' 3 | 4 | author 'Nosmakos' 5 | description 'Titans Productions Advanced Zombies System (Supporting ESX & QBCore)' 6 | version '1.7.1' 7 | 8 | ui_page 'html/index.html' 9 | 10 | shared_scripts { 11 | 'config.lua', 12 | 'locales.lua' 13 | } 14 | 15 | server_scripts { 16 | "@mysql-async/lib/MySQL.lua", 17 | 'server/*.lua', 18 | } 19 | 20 | client_scripts { 21 | 'client/*.lua', 22 | } 23 | 24 | files { 25 | 'html/index.html', 26 | 27 | 'html/css/*.css', 28 | 29 | 'html/js/locales/*.js', 30 | 'html/js/*.js', 31 | 32 | 'html/img/*.jpg', 33 | 'html/img/*.png', 34 | 35 | 'html/sounds/*.ogg', 36 | 'html/sounds/*.mp3' 37 | } 38 | -------------------------------------------------------------------------------- /tp-advancedzombies/html/css/style.css: -------------------------------------------------------------------------------- 1 | body { 2 | width: 100%; 3 | height: 100%; 4 | padding: 0; 5 | margin: 0; 6 | overflow: hidden; 7 | 8 | text-align: center; 9 | justify-content: center; 10 | align-items: center; 11 | } 12 | *{ 13 | font-family: Cambria, Cochin, Georgia, Times, 'Times New Roman', serif; 14 | } 15 | 16 | #advancedzombies{ 17 | display: inline-block; 18 | margin-left: auto; 19 | margin-right: auto; 20 | text-align: left; 21 | 22 | 23 | background-size: cover; 24 | background-color: rgba(1, 1, 5, 0.863); 25 | 26 | background-repeat: no-repeat; 27 | background-size: 100% 100%; 28 | box-shadow: 1px 1px 10px rgba(0, 0, 0, 0.4); 29 | 30 | 31 | overflow: hidden; 32 | width: 100%; 33 | height: 100%; 34 | 35 | justify-content: center; 36 | 37 | -webkit-touch-callout: none; /* iOS Safari */ 38 | -webkit-user-select: none; /* Safari */ 39 | -khtml-user-select: none; /* Konqueror HTML */ 40 | -moz-user-select: none; /* Old versions of Firefox */ 41 | -ms-user-select: none; /* Internet Explorer/Edge */ 42 | user-select: none; /* Non-prefixed version, currently */ 43 | } 44 | 45 | /* LEFT SIDE */ 46 | #center-side{ 47 | border-radius: 5%; 48 | width: 70%; 49 | height: 80%; 50 | margin: 0% 0% 5% 15%; 51 | } 52 | 53 | #server_logo { 54 | position: absolute; 55 | width: 12.0%; 56 | height: 20%; 57 | 58 | margin-top: -48.5vw; 59 | margin-left: -4.0vw; 60 | 61 | background-image: url(../img/logo.png); 62 | background-repeat: no-repeat; 63 | background-size: 100; 64 | 65 | background-size: cover; 66 | 67 | opacity: 0.3; 68 | } 69 | 70 | #header_character_stats_titles_background { 71 | position: absolute; 72 | 73 | background-color: rgba(1, 1, 5, 0.835); 74 | box-shadow: 0px 1px 10px rgba(143, 143, 143, 0.253); 75 | width: 60vw; 76 | height: 2vw; 77 | 78 | margin-top: -47.1vw; 79 | margin-left: 18.7vw; 80 | 81 | overflow: hidden; 82 | } 83 | 84 | .header_character_stats_option { 85 | position: absolute; 86 | background-color: rgb(7, 7, 7); 87 | color:rgb(67, 100, 190); 88 | 89 | border: 2px rgba(143, 143, 143, 0.171) solid; 90 | border-radius: 5%; 91 | overflow: hidden; 92 | 93 | font-size: 0.9vw; 94 | text-align: center; 95 | 96 | margin-top: -15.7vw; 97 | 98 | width: 10vw; 99 | height: fit-content; 100 | 101 | } 102 | 103 | #header_character_stats_name_title { 104 | position: absolute; 105 | 106 | margin-top: -46.3vw; 107 | margin-left: 28.7vw; 108 | } 109 | 110 | #header_character_stats_zombiekills_title { 111 | position: absolute; 112 | 113 | margin-top: -46.3vw; 114 | margin-left: 43.7vw; 115 | } 116 | 117 | #header_character_stats_deaths_title { 118 | position: absolute; 119 | 120 | margin-top: -46.3vw; 121 | margin-left: 58.7vw; 122 | } 123 | 124 | #centerinfo{ 125 | 126 | margin-top: 70%; 127 | margin-left: 1%; 128 | 129 | } 130 | 131 | #centerinfo div{ 132 | text-align: center; 133 | 134 | } 135 | 136 | 137 | #userslist{ 138 | width: 60vw; 139 | height: 48vw; 140 | 141 | float: left; 142 | 143 | margin-left: 18vw; 144 | margin-top: -45vw; 145 | 146 | overflow-y: scroll; 147 | border-radius: 1px; 148 | 149 | background-color: rgba(1, 1, 5, 0.527); 150 | box-shadow: 0px 1px 10px rgba(143, 143, 143, 0.253); 151 | } 152 | 153 | #userslist_main{ 154 | color: white; 155 | 156 | width: 89%; 157 | height: 2.8%; 158 | 159 | flex: 0 0 auto; 160 | 161 | max-height: 100%; 162 | 163 | margin: 1.8%; 164 | margin-left: 3.0vw; 165 | 166 | /* background-size: 100%; */ 167 | 168 | background: rgba(17, 17, 17, 0.527); 169 | 170 | border: 1px solid rgba(129, 129, 129, 0.253); 171 | box-shadow: 0px 4px 10px rgba(129, 129, 129, 0.253); 172 | } 173 | 174 | 175 | #userlist_rank_display { 176 | position: absolute; 177 | width: 12vw; 178 | margin-left: -37.2vw; 179 | 180 | text-align: right; 181 | } 182 | 183 | 184 | #userlist_username_display{ 185 | position: absolute; 186 | width: 12vw; 187 | margin-left: -20.5vw; 188 | } 189 | 190 | #userlist_zombiekills_display{ 191 | position: absolute; 192 | width: 12vw; 193 | margin-left: -5.5vw; 194 | } 195 | 196 | #userlist_deaths_display{ 197 | position: absolute; 198 | width: 12vw; 199 | margin-left: 9.6vw; 200 | } 201 | 202 | 203 | .userlist_displays { 204 | 205 | color: rgba(228, 228, 228, 0.712); 206 | text-align: center; 207 | 208 | font-size: 0.80vw; 209 | } 210 | 211 | 212 | #personal_statistics_background { 213 | position: absolute; 214 | 215 | background-color: rgba(1, 1, 5, 0.527); 216 | box-shadow: 0px 4px 10px rgba(143, 143, 143, 0.253); 217 | width: 25vw; 218 | height: 33vw; 219 | margin-top: -35vw; 220 | margin-left: -10.5vw; 221 | 222 | overflow: hidden; 223 | } 224 | 225 | #zombie_kills_logo { 226 | position: absolute; 227 | width: 12.0%; 228 | height: 20%; 229 | 230 | margin-top: -35.5vw; 231 | margin-left: -4.0vw; 232 | 233 | background-image: url(../img/zombie_kills_logo_1.png); 234 | background-repeat: no-repeat; 235 | background-size: 100; 236 | 237 | background-size: cover; 238 | 239 | opacity: 0.7; 240 | } 241 | 242 | #deaths_logo { 243 | position: absolute; 244 | width: 12.0%; 245 | height: 20%; 246 | 247 | margin-top: -22.5vw; 248 | margin-left: -4.0vw; 249 | 250 | background-image: url(../img/deaths_logo.png); 251 | background-repeat: no-repeat; 252 | background-size: 100; 253 | 254 | background-size: cover; 255 | 256 | opacity: 0.7; 257 | } 258 | 259 | 260 | #header_character_personal_zombiekills_title { 261 | 262 | position: absolute; 263 | color:rgba(200, 200, 200, 0.616); 264 | 265 | font-size: 2vw; 266 | font-weight: 900; 267 | text-align: center; 268 | 269 | width: 25vw; 270 | height: fit-content; 271 | 272 | margin-top: -24.3vw; 273 | margin-left: -10.5vw; 274 | 275 | background-color: rgba(77, 77, 77, 0.246); 276 | text-shadow: 0 0 5px rgb(177, 177, 177); 277 | 278 | } 279 | 280 | #header_character_personal_deaths_title { 281 | 282 | position: absolute; 283 | color:rgba(200, 200, 200, 0.616); 284 | 285 | font-size: 2vw; 286 | font-weight: 900; 287 | text-align: center; 288 | 289 | width: 25vw; 290 | height: fit-content; 291 | 292 | margin-top: -11.3vw; 293 | margin-left: -10.5vw; 294 | 295 | background-color: rgba(77, 77, 77, 0.246); 296 | text-shadow: 0 0 5px rgb(177, 177, 177); 297 | } 298 | 299 | 300 | #header_character_personal_rank_title { 301 | position: absolute; 302 | 303 | color: rgb(155, 155, 155); 304 | 305 | 306 | font-size: 0.9vw; 307 | 308 | text-align: left; 309 | 310 | width: 24.0vw; 311 | height: fit-content; 312 | 313 | margin-top: -4.0vw; 314 | margin-left: -10vw; 315 | 316 | border-radius: 1px; 317 | 318 | background-color: rgba(77, 77, 77, 0.527); 319 | box-shadow: 0px 1px 10px rgba(143, 143, 143, 0.253); 320 | } 321 | 322 | #close_personal_statistics { 323 | position: absolute; 324 | 325 | font-size: 0.9vw; 326 | 327 | color: rgba(255, 255, 255, 0.719); 328 | text-align: center; 329 | padding: 0.1vw; 330 | 331 | width: 24.5vw; 332 | height: 1.5vw; 333 | 334 | margin-top: -0.5vw; 335 | margin-left: -10.25vw; 336 | 337 | background-color: #5f1f1fb9; 338 | 339 | border-style: none; 340 | box-sizing: border-box; 341 | } 342 | 343 | #close_personal_statistics:hover{ 344 | cursor: pointer; 345 | background-color: #5f1f1f; 346 | box-shadow: 0px 0px 15px rgb(61, 61, 61); 347 | } 348 | 349 | /* width */ 350 | ::-webkit-scrollbar { 351 | width: 10px; 352 | border-radius: 5px; 353 | scroll-behavior: smooth; 354 | 355 | } 356 | /* Track */ 357 | ::-webkit-scrollbar-track { 358 | border: 0.0px solid grey; 359 | border-radius: 5px; 360 | } 361 | /* Handle */ 362 | ::-webkit-scrollbar-thumb { 363 | background: rgba(49, 49, 49, 0.8); 364 | border-radius: 5px; 365 | } 366 | 367 | input[type=text] { 368 | font-family: "Prototype", serif; 369 | font-size: 15px; 370 | width: 25%; 371 | color: rgba(255, 255, 255, 0.719); 372 | height: 40px; 373 | text-align: center; 374 | background-color: rgb(27, 27, 27, 0.719); 375 | border-color: rgb(58, 58, 58, 0.719); 376 | margin-left: 5%; 377 | margin-right: 5%; 378 | } 379 | -------------------------------------------------------------------------------- /tp-advancedzombies/html/img/deaths_logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TitansProductions/TP-Advanced-Zombies/2a0c4e4af6237271e0a6d7da2ff59e12c37404b3/tp-advancedzombies/html/img/deaths_logo.png -------------------------------------------------------------------------------- /tp-advancedzombies/html/img/logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TitansProductions/TP-Advanced-Zombies/2a0c4e4af6237271e0a6d7da2ff59e12c37404b3/tp-advancedzombies/html/img/logo.png -------------------------------------------------------------------------------- /tp-advancedzombies/html/img/zombie_kills_logo_1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TitansProductions/TP-Advanced-Zombies/2a0c4e4af6237271e0a6d7da2ff59e12c37404b3/tp-advancedzombies/html/img/zombie_kills_logo_1.png -------------------------------------------------------------------------------- /tp-advancedzombies/html/index.html: -------------------------------------------------------------------------------- 1 | 2 |
3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 |