From b48f78c00dfe46211c4a2a23b03c9913d2f942bc Mon Sep 17 00:00:00 2001 From: Alpha <102520294+Nithish-core@users.noreply.github.com> Date: Thu, 2 Oct 2025 08:35:56 +0530 Subject: [PATCH] Add files via upload Signed-off-by: Alpha <102520294+Nithish-core@users.noreply.github.com> --- esx_taxijob/IMPROVEMENTS.md | 223 +++++ esx_taxijob/LICENSE | 674 +++++++++++++++ esx_taxijob/README.md | 31 + esx_taxijob/client/main.lua | 907 ++++++++++++++++++++ esx_taxijob/config.lua | 189 ++++ esx_taxijob/esx_taxijob.sql | 23 + esx_taxijob/fxmanifest.lua | 26 + esx_taxijob/locales/de.lua | 60 ++ esx_taxijob/locales/en.lua | 60 ++ esx_taxijob/locales/es.lua | 60 ++ esx_taxijob/locales/fi.lua | 60 ++ esx_taxijob/locales/fr.lua | 60 ++ esx_taxijob/locales/hu.lua | 59 ++ esx_taxijob/locales/it.lua | 64 ++ esx_taxijob/locales/nl.lua | 60 ++ esx_taxijob/locales/pl.lua | 60 ++ esx_taxijob/locales/sr.lua | 60 ++ esx_taxijob/locales/zh-cn.lua | 60 ++ esx_taxijob/localization/de_esx_taxijob.sql | 23 + esx_taxijob/localization/en_esx_taxijob.sql | 23 + esx_taxijob/localization/fi_esx_taxijob.sql | 23 + esx_taxijob/localization/fr_esx_taxijob.sql | 23 + esx_taxijob/localization/hu_esx_taxijob.sql | 23 + esx_taxijob/localization/it_esx_taxijob.sql | 23 + esx_taxijob/localization/nl_esx_taxijob.sql | 23 + esx_taxijob/localization/pl_esx_taxijob.sql | 23 + esx_taxijob/localization/sr_esx_taxijob.sql | 23 + esx_taxijob/server/main.lua | 243 ++++++ 28 files changed, 3186 insertions(+) create mode 100644 esx_taxijob/IMPROVEMENTS.md create mode 100644 esx_taxijob/LICENSE create mode 100644 esx_taxijob/README.md create mode 100644 esx_taxijob/client/main.lua create mode 100644 esx_taxijob/config.lua create mode 100644 esx_taxijob/esx_taxijob.sql create mode 100644 esx_taxijob/fxmanifest.lua create mode 100644 esx_taxijob/locales/de.lua create mode 100644 esx_taxijob/locales/en.lua create mode 100644 esx_taxijob/locales/es.lua create mode 100644 esx_taxijob/locales/fi.lua create mode 100644 esx_taxijob/locales/fr.lua create mode 100644 esx_taxijob/locales/hu.lua create mode 100644 esx_taxijob/locales/it.lua create mode 100644 esx_taxijob/locales/nl.lua create mode 100644 esx_taxijob/locales/pl.lua create mode 100644 esx_taxijob/locales/sr.lua create mode 100644 esx_taxijob/locales/zh-cn.lua create mode 100644 esx_taxijob/localization/de_esx_taxijob.sql create mode 100644 esx_taxijob/localization/en_esx_taxijob.sql create mode 100644 esx_taxijob/localization/fi_esx_taxijob.sql create mode 100644 esx_taxijob/localization/fr_esx_taxijob.sql create mode 100644 esx_taxijob/localization/hu_esx_taxijob.sql create mode 100644 esx_taxijob/localization/it_esx_taxijob.sql create mode 100644 esx_taxijob/localization/nl_esx_taxijob.sql create mode 100644 esx_taxijob/localization/pl_esx_taxijob.sql create mode 100644 esx_taxijob/localization/sr_esx_taxijob.sql create mode 100644 esx_taxijob/server/main.lua diff --git a/esx_taxijob/IMPROVEMENTS.md b/esx_taxijob/IMPROVEMENTS.md new file mode 100644 index 00000000..c2856f57 --- /dev/null +++ b/esx_taxijob/IMPROVEMENTS.md @@ -0,0 +1,223 @@ +# ESX Taxi Job - Enhanced Features + +## 🎉 Major Improvements Overview + +This taxi job has been significantly enhanced with multiple new features to create a more engaging, realistic, and rewarding experience for players. + +--- + +## ✨ New Features + +### 1. **Dynamic Pricing System** +- **Distance-based earnings**: Players earn money based on actual distance traveled (0.15 per meter) +- **Time-based compensation**: Earnings for waiting time (2.0 per second) +- **Base fare**: Random base fare between $300-$600 per trip +- **Smart calculation**: Total = Base + Distance Bonus + Time Bonus + Multipliers + +### 2. **Tip System** 🎁 +- **60% chance** customers will give a tip ($50-$200) +- **Perfect Drive Bonus**: 1.5x tip multiplier for smooth, crash-free rides +- **Enhanced notifications**: Tips are displayed separately in earnings notifications +- **Driver incentive**: Encourages careful, professional driving + +### 3. **Reputation System** ⭐ +- **Start at 50/100 reputation** +- **Gain +2 reputation** per successful, perfect drive +- **Lose -5 reputation** for crashes or poor service +- **Reputation bonus**: At 75+ reputation, earn **25% more** on all fares +- **Visible in menu**: Check your current reputation in the taxi menu + +### 4. **Multiple Vehicle Types** +Choose from different taxi types with earning multipliers: +- **Economy Taxi** (standard taxi): 1.0x multiplier +- **Standard Taxi** (taxi2): 1.2x multiplier +- **Luxury Limo** (stretch): 1.8x multiplier (requires grade 2+) + +Each vehicle shows its earning potential in the spawn menu! + +### 5. **Special Mission Types** 🎯 + +#### VIP Clients +- **15% spawn chance** +- **+$750 bonus** +- Yellow notification: "~y~VIP CLIENT~s~" + +#### Airport Runs +- **~5% spawn chance** +- **+$500 bonus** +- Blue notification: "~b~AIRPORT RUN~s~" + +#### Long Distance Trips +- **Triggered on 5000+ meter trips** +- **+$400 bonus** +- Green notification: "~g~LONG DISTANCE~s~" + +### 6. **Rush Hour System** 🚦 +- **Morning rush**: 7:00 AM - 9:00 AM +- **Evening rush**: 5:00 PM - 7:00 PM +- **1.5x earnings multiplier** during rush hours +- Encourages playing during peak times + +### 7. **Weather Bonuses** 🌧️ +- **1.3x multiplier** during: + - Rain + - Thunderstorms + - Clearing weather +- Rewards drivers who work in difficult conditions + +### 8. **Perfect Drive Tracking** 🚗 +- Monitors vehicle damage throughout the trip +- Triggers bonuses for crash-free deliveries +- Affects tip amounts and reputation +- Visual "Perfect Drive!" notification on completion + +### 9. **Enhanced UI & Notifications** 💬 +Improved notifications show: +- Base fare breakdown +- Tips received +- Perfect drive status +- Mission type indicators +- Reputation changes + +Example: `"Company: $420 | You: $180 ~g~+$150 tip! ~b~Perfect Drive!"` + +--- + +## 📊 Earnings Calculation Example + +**Scenario**: Long distance VIP client during rush hour in luxury limo, perfect drive + +``` +Base Fare: $450 +Distance (4500m × $0.15): $675 +Time Bonus (120s × $2.0): $240 +Subtotal: $1,365 + +Vehicle Multiplier (Luxury): ×1.8 = $2,457 +Rush Hour Bonus: ×1.5 = $3,685.50 +VIP Bonus: +$750 = $4,435.50 +Reputation Bonus (75+ rep): ×1.25 = $5,544.38 + +Tip (perfect drive): $150 × 1.5 = $225 + +TOTAL EARNINGS: $5,769.38 +(Player keeps ~30% + tip = $1,888.31) +``` + +--- + +## 🎮 How to Play + +### Starting Out +1. Go to taxi depot (marked on map) +2. Change into work clothes at cloakroom +3. Spawn your preferred taxi type +4. Press **F6** or use the menu to start taking fares + +### Maximizing Earnings +- **Drive carefully** to maintain reputation and earn perfect drive bonuses +- **Use luxury vehicles** when available for higher multipliers +- **Work during rush hours** for 1.5x earnings +- **Don't refuse bad weather** - it pays more! +- **Build your reputation** to unlock the 25% permanent bonus + +### Vehicle Selection +- Early drivers: Use economy taxi to learn the ropes +- Experienced drivers: Upgrade to standard taxi (20% more earnings) +- Senior drivers (Grade 2+): Use luxury limo for 80% more earnings! + +--- + +## ⚙️ Configuration + +All features can be toggled in `config.lua`: + +```lua +Config.EnableTips = true -- Enable/disable tip system +Config.EnableReputation = true -- Enable/disable reputation +Config.EnableRushHour = true -- Enable/disable rush hours +Config.EnableWeatherBonus = true -- Enable/disable weather bonuses +Config.EnableSpecialMissions = true -- Enable/disable special missions + +-- Adjust multipliers, bonuses, and percentages to your liking +Config.TipChance = 60 -- % chance of receiving a tip +Config.ReputationBonusThreshold = 75 -- Rep level for bonus +Config.RushHourMultiplier = 1.5 -- Rush hour multiplier +``` + +--- + +## 🔧 Technical Improvements + +### Performance Optimizations +- Efficient thread management with dynamic sleep times +- Vehicle damage tracking only runs during active trips +- Reduced unnecessary calculations + +### Anti-Exploit Protection +- Server-side validation of all earnings +- Cooldown system prevents rapid-fire completions +- Job verification on every transaction + +### Code Quality +- Modular helper functions +- Comprehensive mission data tracking +- Enhanced server-side reward calculation +- Backwards compatible with existing saves + +--- + +## 📈 Progression System + +### Reputation Levels +- **0-24**: Rookie (no bonuses, need improvement) +- **25-49**: Adequate (basic service) +- **50-74**: Professional (good standing) +- **75-100**: Expert (25% bonus earnings!) + +### Tips for Success +1. **Avoid crashes** - Costs you reputation and tip bonuses +2. **Complete trips quickly** but safely +3. **Build up to luxury vehicles** for maximum earnings +4. **Check the weather** - Rain = More money! +5. **Watch the clock** - Plan around rush hours + +--- + +## 🎯 Future Enhancement Ideas + +Consider adding: +- Player taxi leaderboards +- Daily/weekly challenges +- Custom taxi liveries based on reputation +- Radio/GPS improvements +- Taxi company upgrades (society fund usage) +- NPC personality variations +- Multi-stop routes + +--- + +## 📝 Credits + +**Enhanced by**: AI Assistant +**Original Resource**: ESX Framework Team +**Version**: 2.0 Enhanced +**Compatibility**: ESX Legacy + +--- + +## 🐛 Known Issues + + - None currently reported + +## 💬 Support + +If you encounter issues: +1. Check `config.lua` settings +2. Verify ESX version compatibility +3. Check server console for errors +4. Ensure all dependencies are installed + +--- + +**Enjoy the improved taxi experience! Drive safe and stack that cash! 🚕💰** diff --git a/esx_taxijob/LICENSE b/esx_taxijob/LICENSE new file mode 100644 index 00000000..02f76c6e --- /dev/null +++ b/esx_taxijob/LICENSE @@ -0,0 +1,674 @@ + GNU GENERAL PUBLIC LICENSE + Version 3, 29 June 2007 + + Copyright (C) 2007 Free Software Foundation, Inc. + Everyone is permitted to copy and distribute verbatim copies + of this license document, but changing it is not allowed. + + Preamble + + The GNU General Public License is a free, copyleft license for +software and other kinds of works. + + The licenses for most software and other practical works are designed +to take away your freedom to share and change the works. By contrast, +the GNU General Public License is intended to guarantee your freedom to +share and change all versions of a program--to make sure it remains free +software for all its users. We, the Free Software Foundation, use the +GNU General Public License for most of our software; it applies also to +any other work released this way by its authors. You can apply it to +your programs, too. + + When we speak of free software, we are referring to freedom, not +price. Our General Public Licenses are designed to make sure that you +have the freedom to distribute copies of free software (and charge for +them if you wish), that you receive source code or can get it if you +want it, that you can change the software or use pieces of it in new +free programs, and that you know you can do these things. + + To protect your rights, we need to prevent others from denying you +these rights or asking you to surrender the rights. Therefore, you have +certain responsibilities if you distribute copies of the software, or if +you modify it: responsibilities to respect the freedom of others. + + For example, if you distribute copies of such a program, whether +gratis or for a fee, you must pass on to the recipients the same +freedoms that you received. You must make sure that they, too, receive +or can get the source code. And you must show them these terms so they +know their rights. + + Developers that use the GNU GPL protect your rights with two steps: +(1) assert copyright on the software, and (2) offer you this License +giving you legal permission to copy, distribute and/or modify it. + + For the developers' and authors' protection, the GPL clearly explains +that there is no warranty for this free software. For both users' and +authors' sake, the GPL requires that modified versions be marked as +changed, so that their problems will not be attributed erroneously to +authors of previous versions. + + Some devices are designed to deny users access to install or run +modified versions of the software inside them, although the manufacturer +can do so. This is fundamentally incompatible with the aim of +protecting users' freedom to change the software. The systematic +pattern of such abuse occurs in the area of products for individuals to +use, which is precisely where it is most unacceptable. Therefore, we +have designed this version of the GPL to prohibit the practice for those +products. If such problems arise substantially in other domains, we +stand ready to extend this provision to those domains in future versions +of the GPL, as needed to protect the freedom of users. + + Finally, every program is threatened constantly by software patents. +States should not allow patents to restrict development and use of +software on general-purpose computers, but in those that do, we wish to +avoid the special danger that patents applied to a free program could +make it effectively proprietary. To prevent this, the GPL assures that +patents cannot be used to render the program non-free. + + The precise terms and conditions for copying, distribution and +modification follow. + + TERMS AND CONDITIONS + + 0. Definitions. + + "This License" refers to version 3 of the GNU General Public License. + + "Copyright" also means copyright-like laws that apply to other kinds of +works, such as semiconductor masks. + + "The Program" refers to any copyrightable work licensed under this +License. Each licensee is addressed as "you". "Licensees" and +"recipients" may be individuals or organizations. + + To "modify" a work means to copy from or adapt all or part of the work +in a fashion requiring copyright permission, other than the making of an +exact copy. The resulting work is called a "modified version" of the +earlier work or a work "based on" the earlier work. + + A "covered work" means either the unmodified Program or a work based +on the Program. + + To "propagate" a work means to do anything with it that, without +permission, would make you directly or secondarily liable for +infringement under applicable copyright law, except executing it on a +computer or modifying a private copy. Propagation includes copying, +distribution (with or without modification), making available to the +public, and in some countries other activities as well. + + To "convey" a work means any kind of propagation that enables other +parties to make or receive copies. Mere interaction with a user through +a computer network, with no transfer of a copy, is not conveying. + + An interactive user interface displays "Appropriate Legal Notices" +to the extent that it includes a convenient and prominently visible +feature that (1) displays an appropriate copyright notice, and (2) +tells the user that there is no warranty for the work (except to the +extent that warranties are provided), that licensees may convey the +work under this License, and how to view a copy of this License. If +the interface presents a list of user commands or options, such as a +menu, a prominent item in the list meets this criterion. + + 1. Source Code. + + The "source code" for a work means the preferred form of the work +for making modifications to it. "Object code" means any non-source +form of a work. + + A "Standard Interface" means an interface that either is an official +standard defined by a recognized standards body, or, in the case of +interfaces specified for a particular programming language, one that +is widely used among developers working in that language. + + The "System Libraries" of an executable work include anything, other +than the work as a whole, that (a) is included in the normal form of +packaging a Major Component, but which is not part of that Major +Component, and (b) serves only to enable use of the work with that +Major Component, or to implement a Standard Interface for which an +implementation is available to the public in source code form. A +"Major Component", in this context, means a major essential component +(kernel, window system, and so on) of the specific operating system +(if any) on which the executable work runs, or a compiler used to +produce the work, or an object code interpreter used to run it. + + The "Corresponding Source" for a work in object code form means all +the source code needed to generate, install, and (for an executable +work) run the object code and to modify the work, including scripts to +control those activities. However, it does not include the work's +System Libraries, or general-purpose tools or generally available free +programs which are used unmodified in performing those activities but +which are not part of the work. For example, Corresponding Source +includes interface definition files associated with source files for +the work, and the source code for shared libraries and dynamically +linked subprograms that the work is specifically designed to require, +such as by intimate data communication or control flow between those +subprograms and other parts of the work. + + The Corresponding Source need not include anything that users +can regenerate automatically from other parts of the Corresponding +Source. + + The Corresponding Source for a work in source code form is that +same work. + + 2. Basic Permissions. + + All rights granted under this License are granted for the term of +copyright on the Program, and are irrevocable provided the stated +conditions are met. This License explicitly affirms your unlimited +permission to run the unmodified Program. The output from running a +covered work is covered by this License only if the output, given its +content, constitutes a covered work. This License acknowledges your +rights of fair use or other equivalent, as provided by copyright law. + + You may make, run and propagate covered works that you do not +convey, without conditions so long as your license otherwise remains +in force. You may convey covered works to others for the sole purpose +of having them make modifications exclusively for you, or provide you +with facilities for running those works, provided that you comply with +the terms of this License in conveying all material for which you do +not control copyright. Those thus making or running the covered works +for you must do so exclusively on your behalf, under your direction +and control, on terms that prohibit them from making any copies of +your copyrighted material outside their relationship with you. + + Conveying under any other circumstances is permitted solely under +the conditions stated below. Sublicensing is not allowed; section 10 +makes it unnecessary. + + 3. Protecting Users' Legal Rights From Anti-Circumvention Law. + + No covered work shall be deemed part of an effective technological +measure under any applicable law fulfilling obligations under article +11 of the WIPO copyright treaty adopted on 20 December 1996, or +similar laws prohibiting or restricting circumvention of such +measures. + + When you convey a covered work, you waive any legal power to forbid +circumvention of technological measures to the extent such circumvention +is effected by exercising rights under this License with respect to +the covered work, and you disclaim any intention to limit operation or +modification of the work as a means of enforcing, against the work's +users, your or third parties' legal rights to forbid circumvention of +technological measures. + + 4. Conveying Verbatim Copies. + + You may convey verbatim copies of the Program's source code as you +receive it, in any medium, provided that you conspicuously and +appropriately publish on each copy an appropriate copyright notice; +keep intact all notices stating that this License and any +non-permissive terms added in accord with section 7 apply to the code; +keep intact all notices of the absence of any warranty; and give all +recipients a copy of this License along with the Program. + + You may charge any price or no price for each copy that you convey, +and you may offer support or warranty protection for a fee. + + 5. Conveying Modified Source Versions. + + You may convey a work based on the Program, or the modifications to +produce it from the Program, in the form of source code under the +terms of section 4, provided that you also meet all of these conditions: + + a) The work must carry prominent notices stating that you modified + it, and giving a relevant date. + + b) The work must carry prominent notices stating that it is + released under this License and any conditions added under section + 7. This requirement modifies the requirement in section 4 to + "keep intact all notices". + + c) You must license the entire work, as a whole, under this + License to anyone who comes into possession of a copy. This + License will therefore apply, along with any applicable section 7 + additional terms, to the whole of the work, and all its parts, + regardless of how they are packaged. This License gives no + permission to license the work in any other way, but it does not + invalidate such permission if you have separately received it. + + d) If the work has interactive user interfaces, each must display + Appropriate Legal Notices; however, if the Program has interactive + interfaces that do not display Appropriate Legal Notices, your + work need not make them do so. + + A compilation of a covered work with other separate and independent +works, which are not by their nature extensions of the covered work, +and which are not combined with it such as to form a larger program, +in or on a volume of a storage or distribution medium, is called an +"aggregate" if the compilation and its resulting copyright are not +used to limit the access or legal rights of the compilation's users +beyond what the individual works permit. Inclusion of a covered work +in an aggregate does not cause this License to apply to the other +parts of the aggregate. + + 6. Conveying Non-Source Forms. + + You may convey a covered work in object code form under the terms +of sections 4 and 5, provided that you also convey the +machine-readable Corresponding Source under the terms of this License, +in one of these ways: + + a) Convey the object code in, or embodied in, a physical product + (including a physical distribution medium), accompanied by the + Corresponding Source fixed on a durable physical medium + customarily used for software interchange. + + b) Convey the object code in, or embodied in, a physical product + (including a physical distribution medium), accompanied by a + written offer, valid for at least three years and valid for as + long as you offer spare parts or customer support for that product + model, to give anyone who possesses the object code either (1) a + copy of the Corresponding Source for all the software in the + product that is covered by this License, on a durable physical + medium customarily used for software interchange, for a price no + more than your reasonable cost of physically performing this + conveying of source, or (2) access to copy the + Corresponding Source from a network server at no charge. + + c) Convey individual copies of the object code with a copy of the + written offer to provide the Corresponding Source. This + alternative is allowed only occasionally and noncommercially, and + only if you received the object code with such an offer, in accord + with subsection 6b. + + d) Convey the object code by offering access from a designated + place (gratis or for a charge), and offer equivalent access to the + Corresponding Source in the same way through the same place at no + further charge. You need not require recipients to copy the + Corresponding Source along with the object code. If the place to + copy the object code is a network server, the Corresponding Source + may be on a different server (operated by you or a third party) + that supports equivalent copying facilities, provided you maintain + clear directions next to the object code saying where to find the + Corresponding Source. Regardless of what server hosts the + Corresponding Source, you remain obligated to ensure that it is + available for as long as needed to satisfy these requirements. + + e) Convey the object code using peer-to-peer transmission, provided + you inform other peers where the object code and Corresponding + Source of the work are being offered to the general public at no + charge under subsection 6d. + + A separable portion of the object code, whose source code is excluded +from the Corresponding Source as a System Library, need not be +included in conveying the object code work. + + A "User Product" is either (1) a "consumer product", which means any +tangible personal property which is normally used for personal, family, +or household purposes, or (2) anything designed or sold for incorporation +into a dwelling. In determining whether a product is a consumer product, +doubtful cases shall be resolved in favor of coverage. For a particular +product received by a particular user, "normally used" refers to a +typical or common use of that class of product, regardless of the status +of the particular user or of the way in which the particular user +actually uses, or expects or is expected to use, the product. A product +is a consumer product regardless of whether the product has substantial +commercial, industrial or non-consumer uses, unless such uses represent +the only significant mode of use of the product. + + "Installation Information" for a User Product means any methods, +procedures, authorization keys, or other information required to install +and execute modified versions of a covered work in that User Product from +a modified version of its Corresponding Source. The information must +suffice to ensure that the continued functioning of the modified object +code is in no case prevented or interfered with solely because +modification has been made. + + If you convey an object code work under this section in, or with, or +specifically for use in, a User Product, and the conveying occurs as +part of a transaction in which the right of possession and use of the +User Product is transferred to the recipient in perpetuity or for a +fixed term (regardless of how the transaction is characterized), the +Corresponding Source conveyed under this section must be accompanied +by the Installation Information. But this requirement does not apply +if neither you nor any third party retains the ability to install +modified object code on the User Product (for example, the work has +been installed in ROM). + + The requirement to provide Installation Information does not include a +requirement to continue to provide support service, warranty, or updates +for a work that has been modified or installed by the recipient, or for +the User Product in which it has been modified or installed. Access to a +network may be denied when the modification itself materially and +adversely affects the operation of the network or violates the rules and +protocols for communication across the network. + + Corresponding Source conveyed, and Installation Information provided, +in accord with this section must be in a format that is publicly +documented (and with an implementation available to the public in +source code form), and must require no special password or key for +unpacking, reading or copying. + + 7. Additional Terms. + + "Additional permissions" are terms that supplement the terms of this +License by making exceptions from one or more of its conditions. +Additional permissions that are applicable to the entire Program shall +be treated as though they were included in this License, to the extent +that they are valid under applicable law. If additional permissions +apply only to part of the Program, that part may be used separately +under those permissions, but the entire Program remains governed by +this License without regard to the additional permissions. + + When you convey a copy of a covered work, you may at your option +remove any additional permissions from that copy, or from any part of +it. (Additional permissions may be written to require their own +removal in certain cases when you modify the work.) You may place +additional permissions on material, added by you to a covered work, +for which you have or can give appropriate copyright permission. + + Notwithstanding any other provision of this License, for material you +add to a covered work, you may (if authorized by the copyright holders of +that material) supplement the terms of this License with terms: + + a) Disclaiming warranty or limiting liability differently from the + terms of sections 15 and 16 of this License; or + + b) Requiring preservation of specified reasonable legal notices or + author attributions in that material or in the Appropriate Legal + Notices displayed by works containing it; or + + c) Prohibiting misrepresentation of the origin of that material, or + requiring that modified versions of such material be marked in + reasonable ways as different from the original version; or + + d) Limiting the use for publicity purposes of names of licensors or + authors of the material; or + + e) Declining to grant rights under trademark law for use of some + trade names, trademarks, or service marks; or + + f) Requiring indemnification of licensors and authors of that + material by anyone who conveys the material (or modified versions of + it) with contractual assumptions of liability to the recipient, for + any liability that these contractual assumptions directly impose on + those licensors and authors. + + All other non-permissive additional terms are considered "further +restrictions" within the meaning of section 10. If the Program as you +received it, or any part of it, contains a notice stating that it is +governed by this License along with a term that is a further +restriction, you may remove that term. If a license document contains +a further restriction but permits relicensing or conveying under this +License, you may add to a covered work material governed by the terms +of that license document, provided that the further restriction does +not survive such relicensing or conveying. + + If you add terms to a covered work in accord with this section, you +must place, in the relevant source files, a statement of the +additional terms that apply to those files, or a notice indicating +where to find the applicable terms. + + Additional terms, permissive or non-permissive, may be stated in the +form of a separately written license, or stated as exceptions; +the above requirements apply either way. + + 8. Termination. + + You may not propagate or modify a covered work except as expressly +provided under this License. Any attempt otherwise to propagate or +modify it is void, and will automatically terminate your rights under +this License (including any patent licenses granted under the third +paragraph of section 11). + + However, if you cease all violation of this License, then your +license from a particular copyright holder is reinstated (a) +provisionally, unless and until the copyright holder explicitly and +finally terminates your license, and (b) permanently, if the copyright +holder fails to notify you of the violation by some reasonable means +prior to 60 days after the cessation. + + Moreover, your license from a particular copyright holder is +reinstated permanently if the copyright holder notifies you of the +violation by some reasonable means, this is the first time you have +received notice of violation of this License (for any work) from that +copyright holder, and you cure the violation prior to 30 days after +your receipt of the notice. + + Termination of your rights under this section does not terminate the +licenses of parties who have received copies or rights from you under +this License. If your rights have been terminated and not permanently +reinstated, you do not qualify to receive new licenses for the same +material under section 10. + + 9. Acceptance Not Required for Having Copies. + + You are not required to accept this License in order to receive or +run a copy of the Program. Ancillary propagation of a covered work +occurring solely as a consequence of using peer-to-peer transmission +to receive a copy likewise does not require acceptance. However, +nothing other than this License grants you permission to propagate or +modify any covered work. These actions infringe copyright if you do +not accept this License. Therefore, by modifying or propagating a +covered work, you indicate your acceptance of this License to do so. + + 10. Automatic Licensing of Downstream Recipients. + + Each time you convey a covered work, the recipient automatically +receives a license from the original licensors, to run, modify and +propagate that work, subject to this License. You are not responsible +for enforcing compliance by third parties with this License. + + An "entity transaction" is a transaction transferring control of an +organization, or substantially all assets of one, or subdividing an +organization, or merging organizations. If propagation of a covered +work results from an entity transaction, each party to that +transaction who receives a copy of the work also receives whatever +licenses to the work the party's predecessor in interest had or could +give under the previous paragraph, plus a right to possession of the +Corresponding Source of the work from the predecessor in interest, if +the predecessor has it or can get it with reasonable efforts. + + You may not impose any further restrictions on the exercise of the +rights granted or affirmed under this License. For example, you may +not impose a license fee, royalty, or other charge for exercise of +rights granted under this License, and you may not initiate litigation +(including a cross-claim or counterclaim in a lawsuit) alleging that +any patent claim is infringed by making, using, selling, offering for +sale, or importing the Program or any portion of it. + + 11. Patents. + + A "contributor" is a copyright holder who authorizes use under this +License of the Program or a work on which the Program is based. The +work thus licensed is called the contributor's "contributor version". + + A contributor's "essential patent claims" are all patent claims +owned or controlled by the contributor, whether already acquired or +hereafter acquired, that would be infringed by some manner, permitted +by this License, of making, using, or selling its contributor version, +but do not include claims that would be infringed only as a +consequence of further modification of the contributor version. For +purposes of this definition, "control" includes the right to grant +patent sublicenses in a manner consistent with the requirements of +this License. + + Each contributor grants you a non-exclusive, worldwide, royalty-free +patent license under the contributor's essential patent claims, to +make, use, sell, offer for sale, import and otherwise run, modify and +propagate the contents of its contributor version. + + In the following three paragraphs, a "patent license" is any express +agreement or commitment, however denominated, not to enforce a patent +(such as an express permission to practice a patent or covenant not to +sue for patent infringement). To "grant" such a patent license to a +party means to make such an agreement or commitment not to enforce a +patent against the party. + + If you convey a covered work, knowingly relying on a patent license, +and the Corresponding Source of the work is not available for anyone +to copy, free of charge and under the terms of this License, through a +publicly available network server or other readily accessible means, +then you must either (1) cause the Corresponding Source to be so +available, or (2) arrange to deprive yourself of the benefit of the +patent license for this particular work, or (3) arrange, in a manner +consistent with the requirements of this License, to extend the patent +license to downstream recipients. "Knowingly relying" means you have +actual knowledge that, but for the patent license, your conveying the +covered work in a country, or your recipient's use of the covered work +in a country, would infringe one or more identifiable patents in that +country that you have reason to believe are valid. + + If, pursuant to or in connection with a single transaction or +arrangement, you convey, or propagate by procuring conveyance of, a +covered work, and grant a patent license to some of the parties +receiving the covered work authorizing them to use, propagate, modify +or convey a specific copy of the covered work, then the patent license +you grant is automatically extended to all recipients of the covered +work and works based on it. + + A patent license is "discriminatory" if it does not include within +the scope of its coverage, prohibits the exercise of, or is +conditioned on the non-exercise of one or more of the rights that are +specifically granted under this License. You may not convey a covered +work if you are a party to an arrangement with a third party that is +in the business of distributing software, under which you make payment +to the third party based on the extent of your activity of conveying +the work, and under which the third party grants, to any of the +parties who would receive the covered work from you, a discriminatory +patent license (a) in connection with copies of the covered work +conveyed by you (or copies made from those copies), or (b) primarily +for and in connection with specific products or compilations that +contain the covered work, unless you entered into that arrangement, +or that patent license was granted, prior to 28 March 2007. + + Nothing in this License shall be construed as excluding or limiting +any implied license or other defenses to infringement that may +otherwise be available to you under applicable patent law. + + 12. No Surrender of Others' Freedom. + + If conditions are imposed on you (whether by court order, agreement or +otherwise) that contradict the conditions of this License, they do not +excuse you from the conditions of this License. If you cannot convey a +covered work so as to satisfy simultaneously your obligations under this +License and any other pertinent obligations, then as a consequence you may +not convey it at all. For example, if you agree to terms that obligate you +to collect a royalty for further conveying from those to whom you convey +the Program, the only way you could satisfy both those terms and this +License would be to refrain entirely from conveying the Program. + + 13. Use with the GNU Affero General Public License. + + Notwithstanding any other provision of this License, you have +permission to link or combine any covered work with a work licensed +under version 3 of the GNU Affero General Public License into a single +combined work, and to convey the resulting work. The terms of this +License will continue to apply to the part which is the covered work, +but the special requirements of the GNU Affero General Public License, +section 13, concerning interaction through a network will apply to the +combination as such. + + 14. Revised Versions of this License. + + The Free Software Foundation may publish revised and/or new versions of +the GNU General Public License from time to time. Such new versions will +be similar in spirit to the present version, but may differ in detail to +address new problems or concerns. + + Each version is given a distinguishing version number. If the +Program specifies that a certain numbered version of the GNU General +Public License "or any later version" applies to it, you have the +option of following the terms and conditions either of that numbered +version or of any later version published by the Free Software +Foundation. If the Program does not specify a version number of the +GNU General Public License, you may choose any version ever published +by the Free Software Foundation. + + If the Program specifies that a proxy can decide which future +versions of the GNU General Public License can be used, that proxy's +public statement of acceptance of a version permanently authorizes you +to choose that version for the Program. + + Later license versions may give you additional or different +permissions. However, no additional obligations are imposed on any +author or copyright holder as a result of your choosing to follow a +later version. + + 15. Disclaimer of Warranty. + + THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY +APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT +HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY +OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, +THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR +PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM +IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF +ALL NECESSARY SERVICING, REPAIR OR CORRECTION. + + 16. Limitation of Liability. + + IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING +WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS +THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY +GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE +USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF +DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD +PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), +EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF +SUCH DAMAGES. + + 17. Interpretation of Sections 15 and 16. + + If the disclaimer of warranty and limitation of liability provided +above cannot be given local legal effect according to their terms, +reviewing courts shall apply local law that most closely approximates +an absolute waiver of all civil liability in connection with the +Program, unless a warranty or assumption of liability accompanies a +copy of the Program in return for a fee. + + END OF TERMS AND CONDITIONS + + How to Apply These Terms to Your New Programs + + If you develop a new program, and you want it to be of the greatest +possible use to the public, the best way to achieve this is to make it +free software which everyone can redistribute and change under these terms. + + To do so, attach the following notices to the program. It is safest +to attach them to the start of each source file to most effectively +state the exclusion of warranty; and each file should have at least +the "copyright" line and a pointer to where the full notice is found. + + esx_taxijob + Copyright (C) 2015-2025 Jérémie N'gadi + + This program is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation, either version 3 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program. If not, see . + +Also add information on how to contact you by electronic and paper mail. + + If the program does terminal interaction, make it output a short +notice like this when it starts in an interactive mode: + + esx_taxijob Copyright (C) 2015-2025 Jérémie N'gadi + This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'. + This is free software, and you are welcome to redistribute it + under certain conditions; type `show c' for details. + +The hypothetical commands `show w' and `show c' should show the appropriate +parts of the General Public License. Of course, your program's commands +might be different; for a GUI interface, you would use an "about box". + + You should also get your employer (if you work as a programmer) or school, +if any, to sign a "copyright disclaimer" for the program, if necessary. +For more information on this, and how to apply and follow the GNU GPL, see +. + + The GNU General Public License does not permit incorporating your program +into proprietary programs. If your program is a subroutine library, you +may consider it more useful to permit linking proprietary applications with +the library. If this is what you want to do, use the GNU Lesser General +Public License instead of this License. But first, please read +. \ No newline at end of file diff --git a/esx_taxijob/README.md b/esx_taxijob/README.md new file mode 100644 index 00000000..64a019f5 --- /dev/null +++ b/esx_taxijob/README.md @@ -0,0 +1,31 @@ +

[ESX] Taxi Job - Enhanced Edition

Discord - Documentation + +## 🎉 Enhanced Features + +This Resource allows you to drive a fancy Taxi to pickup players, charge them per mile or do Life-Like NPC missions to earn money! + +### ✨ New in Enhanced Edition: +- 💰 **Dynamic Pricing**: Distance + Time-based earnings +- 🎁 **Tip System**: 60% chance for tips, perfect drive bonus +- ⭐ **Reputation System**: Build your rep for 25% earnings boost +- 🚗 **Multiple Vehicle Types**: Economy, Standard, Luxury (with multipliers) +- 🎯 **Special Missions**: VIP clients, Airport runs, Long distance trips +- 🚦 **Rush Hour Bonuses**: 1.5x earnings during peak hours (7-9 AM, 5-7 PM) +- 🌧️ **Weather Bonuses**: 1.3x earnings in rain/storms +- 📊 **Perfect Drive Tracking**: Crash-free trips earn more! + +**See [IMPROVEMENTS.md](IMPROVEMENTS.md) for detailed feature documentation.** + +--- + +# Legal + +esx_taxijob: Taxi Service - Anyone Need a Taxi?! + +Copyright (C) 2015-2025 Jérémie N'gadi + +This program Is free software: you can redistribute it And/Or modify it under the terms Of the GNU General Public License As published by the Free Software Foundation, either version 3 Of the License, Or (at your option) any later version. + +This program Is distributed In the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty Of MERCHANTABILITY Or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License For more details. + +You should have received a copy Of the GNU General Public License along with this program. If Not, see http://www.gnu.org/licenses/. diff --git a/esx_taxijob/client/main.lua b/esx_taxijob/client/main.lua new file mode 100644 index 00000000..2acd94f5 --- /dev/null +++ b/esx_taxijob/client/main.lua @@ -0,0 +1,907 @@ +local HasAlreadyEnteredMarker, OnJob, IsNearCustomer, CustomerIsEnteringVehicle, CustomerEnteredVehicle, + CurrentActionData = false, false, false, false, false, {} +local CurrentCustomer, CurrentCustomerBlip, DestinationBlip, targetCoords, LastZone, CurrentAction, CurrentActionMsg, lastSelectedNPC +local PlayerReputation = 0 +local JobStartTime, PickupTime, DropoffDistance = 0, 0, 0 +local VehicleDamageAtStart, CrashedDuringTrip = 0, false +local CurrentMissionType = 'normal' -- normal, vip, airport, longdistance + +RegisterNetEvent('esx:playerLoaded') +AddEventHandler('esx:playerLoaded', function(xPlayer) + ESX.PlayerData = xPlayer + ESX.PlayerLoaded = true +end) + +RegisterNetEvent('esx:onPlayerLogout') +AddEventHandler('esx:onPlayerLogout', function() + ESX.PlayerLoaded = false + ESX.PlayerData = {} +end) + +RegisterNetEvent('esx:setJob') +AddEventHandler('esx:setJob', function(job) + ESX.PlayerData.job = job +end) + +RegisterNetEvent('esx_taxijob:updateReputation') +AddEventHandler('esx_taxijob:updateReputation', function(newReputation) + PlayerReputation = newReputation +end) + +function DrawSub(msg, time) + ClearPrints() + BeginTextCommandPrint('STRING') + AddTextComponentSubstringPlayerName(msg) + EndTextCommandPrint(time, 1) +end + +function ShowLoadingPromt(msg, time, type) + CreateThread(function() + Wait(0) + + BeginTextCommandBusyspinnerOn('STRING') + AddTextComponentSubstringPlayerName(msg) + EndTextCommandBusyspinnerOn(type) + Wait(time) + + BusyspinnerOff() + end) +end + +function GetRandomWalkingNPC() + local search = {} + local peds = GetGamePool("CPed") + + for i = 1, #peds, 1 do + if IsPedHuman(peds[i]) and IsPedWalking(peds[i]) and not IsPedAPlayer(peds[i]) then + if peds[i] ~= lastSelectedNPC then + search[#search+1] = peds[i] + end + end + end + + if #search > 0 then + local selectedNPC = search[math.random(#search)] + lastSelectedNPC = selectedNPC + return selectedNPC + else + return nil + end +end + +function ClearCurrentMission() + if DoesBlipExist(CurrentCustomerBlip) then + RemoveBlip(CurrentCustomerBlip) + end + + if DoesBlipExist(DestinationBlip) then + RemoveBlip(DestinationBlip) + end + + CurrentCustomer = nil + CurrentCustomerBlip = nil + DestinationBlip = nil + IsNearCustomer = false + CustomerIsEnteringVehicle = false + CustomerEnteredVehicle = false + targetCoords = nil + JobStartTime = 0 + PickupTime = 0 + DropoffDistance = 0 + VehicleDamageAtStart = 0 + CrashedDuringTrip = false + CurrentMissionType = 'normal' +end + +function StartTaxiJob() + ShowLoadingPromt(TranslateCap('taking_service'), 5000, 3) + ClearCurrentMission() + + OnJob = true + + -- Load player reputation from server + ESX.TriggerServerCallback('esx_taxijob:getReputation', function(reputation) + PlayerReputation = reputation or 0 + end) +end + +function StopTaxiJob() + local playerPed = PlayerPedId() + + if IsPedInAnyVehicle(playerPed, false) and CurrentCustomer ~= nil then + local vehicle = GetVehiclePedIsIn(playerPed, false) + TaskLeaveVehicle(CurrentCustomer, vehicle, 0) + + if CustomerEnteredVehicle then + TaskGoStraightToCoord(CurrentCustomer, targetCoords.x, targetCoords.y, targetCoords.z, 1.0, -1, 0.0, 0.0) + end + end + + ClearCurrentMission() + OnJob = false + DrawSub(TranslateCap('mission_complete'), 5000) +end + +function OpenCloakroom() + local elements = { + {unselectable = true, icon = "fas fa-shirt", title = TranslateCap('cloakroom_menu')}, + {icon = "fas fa-shirt", title = TranslateCap('wear_citizen'), value = "wear_citizen"}, + {icon = "fas fa-shirt", title = TranslateCap('wear_work'), value = "wear_work"}, + } + + ESX.OpenContext("right", elements, function(menu,element) + if element.value == "wear_citizen" then + ESX.TriggerServerCallback('esx_skin:getPlayerSkin', function(skin) + TriggerEvent('skinchanger:loadSkin', skin) + end) + elseif element.value == "wear_work" then + ESX.TriggerServerCallback('esx_skin:getPlayerSkin', function(skin, jobSkin) + if skin.sex == 0 then + TriggerEvent('skinchanger:loadClothes', skin, jobSkin.skin_male) + else + TriggerEvent('skinchanger:loadClothes', skin, jobSkin.skin_female) + end + end) + end + end, function(menu) + CurrentAction = 'cloakroom' + CurrentActionMsg = TranslateCap('cloakroom_prompt') + CurrentActionData = {} + end) +end + +function OpenVehicleSpawnerMenu() + local elements = { + {unselectable = true, icon = "fas fa-car", title = TranslateCap('spawn_veh')} + } + + if Config.EnableSocietyOwnedVehicles then + ESX.TriggerServerCallback('esx_society:getVehiclesInGarage', function(vehicles) + + for i = 1, #vehicles, 1 do + elements[#elements+1] = { + icon = "fas fa-car", + title = GetDisplayNameFromVehicleModel(vehicles[i].model) .. ' [' .. vehicles[i].plate .. ']', + value = vehicles[i] + } + end + + ESX.OpenContext("right", elements, function(menu,element) + if not ESX.Game.IsSpawnPointClear(Config.Zones.VehicleSpawnPoint.Pos, 5.0) then + ESX.ShowNotification(TranslateCap('spawnpoint_blocked')) + return + end + + local vehicleProps = element.value + ESX.TriggerServerCallback("esx_taxijob:SpawnVehicle", function() + return + end, vehicleProps.model, vehicleProps) + TriggerServerEvent('esx_society:removeVehicleFromGarage', 'taxi', vehicleProps) + ESX.CloseContext() + end, function(menu) + CurrentAction = 'vehicle_spawner' + CurrentActionMsg = TranslateCap('spawner_prompt') + CurrentActionData = {} + end) + end, 'taxi') + else -- not society vehicles + if #Config.AuthorizedVehicles == 0 then + ESX.ShowNotification(TranslateCap('empty_authorized_vehicles_table'), "error") + return + end + + -- Build menu with grade restrictions and multiplier info + local playerGrade = ESX.PlayerData.job.grade + local menuElements = {{unselectable = true, icon = "fas fa-car", title = TranslateCap('spawn_veh')}} + + for i = 1, #Config.AuthorizedVehicles, 1 do + local veh = Config.AuthorizedVehicles[i] + local canUse = not veh.minGrade or playerGrade >= veh.minGrade + + if canUse then + menuElements[#menuElements+1] = { + icon = veh.icon or "fas fa-car", + title = veh.title .. ' [' .. (veh.type or 'standard') .. '] ~g~' .. (veh.multiplier * 100) .. '%', + model = veh.model, + value = veh + } + end + end + + ESX.OpenContext("right", menuElements, function(menu,element) + if not element.model or string.len(element.model) == 0 then + ESX.ShowNotification(TranslateCap('unknow_model'), "error") + return + end + if not ESX.Game.IsSpawnPointClear(Config.Zones.VehicleSpawnPoint.Pos, 5.0) then + ESX.ShowNotification(TranslateCap('spawnpoint_blocked')) + return + end + ESX.TriggerServerCallback("esx_taxijob:SpawnVehicle", function() + ESX.ShowNotification(TranslateCap('vehicle_spawned', element.value.title), "success") + end, element.model, {plate = "TAXI JOB"}) + ESX.CloseContext() + end, function(menu) + CurrentAction = 'vehicle_spawner' + CurrentActionMsg = TranslateCap('spawner_prompt') + CurrentActionData = {} + end) + end +end + +function DeleteJobVehicle() + local playerPed = PlayerPedId() + + if Config.EnableSocietyOwnedVehicles then + local vehicleProps = ESX.Game.GetVehicleProperties(CurrentActionData.vehicle) + TriggerServerEvent('esx_society:putVehicleInGarage', 'taxi', vehicleProps) + ESX.Game.DeleteVehicle(CurrentActionData.vehicle) + else + if IsInAuthorizedVehicle() then + ESX.Game.DeleteVehicle(CurrentActionData.vehicle) + + if Config.MaxInService ~= -1 then + TriggerServerEvent('esx_service:disableService', 'taxi') + end + else + ESX.ShowNotification(TranslateCap('only_taxi')) + end + end +end + +function OpenTaxiActionsMenu() + local elements = { + {unselectable = true, icon = "fas fa-taxi", title = TranslateCap('taxi')}, + {icon = "fas fa-box",title = TranslateCap('deposit_stock'),value = 'put_stock'}, + {icon = "fas fa-box", title = TranslateCap('take_stock'), value = 'get_stock'} + } + + if Config.EnablePlayerManagement and ESX.PlayerData.job ~= nil and ESX.PlayerData.job.grade_name == 'boss' then + elements[#elements+1] = { + icon = "fas fa-wallet", + title = TranslateCap('boss_actions'), + value = "boss_actions" + } + end + + ESX.OpenContext("right", elements, function(menu,element) + if Config.OxInventory and (element.value == 'put_stock' or element.value == 'get_stock') then + exports.ox_inventory:openInventory('stash', 'society_taxi') + return ESX.CloseContext() + elseif element.value == 'put_stock' then + OpenPutStocksMenu() + elseif element.value == 'get_stock' then + OpenGetStocksMenu() + elseif element.value == 'boss_actions' then + TriggerEvent('esx_society:openBossMenu', 'taxi', function(data, menu) + menu.close() + end) + end + end, function(menu) + CurrentAction = 'taxi_actions_menu' + CurrentActionMsg = TranslateCap('press_to_open') + CurrentActionData = {} + end) +end + +function OpenMobileTaxiActionsMenu() + local reputationText = '' + if Config.EnableReputation then + reputationText = ' ~y~[Rep: ' .. PlayerReputation .. '/' .. Config.MaxReputation .. ']' + end + + local elements = { + {unselectable = true, icon = "fas fa-taxi", title = TranslateCap('taxi') .. reputationText}, + {icon = "fas fa-scroll", title = TranslateCap('billing'), value = "billing"}, + {icon = "fas fa-taxi", title = TranslateCap('start_job'), value = "start_job"}, + } + + if Config.EnableReputation then + elements[#elements+1] = {icon = "fas fa-star", title = 'View Reputation: ' .. PlayerReputation .. '/' .. Config.MaxReputation, value = "reputation"} + end + + ESX.OpenContext("right", elements, function(menu,element) + if element.value == "billing" then + local elements2 = { + {unselectable = true, icon = "fas fa-taxi", title = element.title}, + {title = TranslateCap('amount'), input = true, inputType = "number", inputMin = 1, inputMax = 250000, inputPlaceholder = TranslateCap('bill_amount')}, + {icon = "fas fa-check-double", title = TranslateCap('confirm'), value = "confirm"} + } + + ESX.OpenContext("right", elements2, function(menu2,element2) + local amount = tonumber(menu2.eles[2].inputValue) + if amount == nil then + ESX.ShowNotification(TranslateCap('amount_invalid')) + else + ESX.CloseContext() + local closestPlayer, closestDistance = ESX.Game.GetClosestPlayer() + if closestPlayer == -1 or closestDistance > 3.0 then + ESX.ShowNotification(TranslateCap('no_players_near')) + else + TriggerServerEvent('esx_billing:sendBill', GetPlayerServerId(closestPlayer), 'society_taxi', + 'Taxi', amount) + ESX.ShowNotification(TranslateCap('billing_sent')) + end + end + end) + elseif element.value == "start_job" then + if OnJob then + ESX.CloseContext() + StopTaxiJob() + else + if ESX.PlayerData.job ~= nil and ESX.PlayerData.job.name == 'taxi' then + local playerPed = PlayerPedId() + local vehicle = GetVehiclePedIsIn(playerPed, false) + + if IsPedInAnyVehicle(playerPed, false) and GetPedInVehicleSeat(vehicle, -1) == playerPed then + if tonumber(ESX.PlayerData.job.grade) >= 3 then + ESX.CloseContext() + StartTaxiJob() + else + if IsInAuthorizedVehicle() then + ESX.CloseContext() + StartTaxiJob() + else + ESX.ShowNotification(TranslateCap('must_in_taxi')) + end + end + else + if tonumber(ESX.PlayerData.job.grade) >= 3 then + ESX.ShowNotification(TranslateCap('must_in_vehicle')) + else + ESX.ShowNotification(TranslateCap('must_in_taxi')) + end + end + end + end + end + end) +end + +function IsInAuthorizedVehicle() + local playerPed = PlayerPedId() + local vehModel = GetEntityModel(GetVehiclePedIsIn(playerPed, false)) + + for i = 1, #Config.AuthorizedVehicles, 1 do + if Config.AuthorizedVehicles[i].model and vehModel == joaat(Config.AuthorizedVehicles[i].model) then + return true + end + end + + return false +end + +-- Get current vehicle multiplier +function GetVehicleMultiplier() + local playerPed = PlayerPedId() + if not IsPedInAnyVehicle(playerPed, false) then + return 1.0 + end + + local vehModel = GetEntityModel(GetVehiclePedIsIn(playerPed, false)) + + for i = 1, #Config.AuthorizedVehicles, 1 do + if Config.AuthorizedVehicles[i].model and vehModel == joaat(Config.AuthorizedVehicles[i].model) then + return Config.AuthorizedVehicles[i].multiplier or 1.0 + end + end + + return 1.0 +end + +-- Check if it's rush hour +function IsRushHour() + if not Config.EnableRushHour then return false end + + local hour = GetClockHours() + for _, rushPeriod in ipairs(Config.RushHours) do + if hour >= rushPeriod.start and hour < rushPeriod.finish then + return true + end + end + return false +end + +-- Check weather bonus +function GetWeatherMultiplier() + if not Config.EnableWeatherBonus then return 1.0 end + + local weather = GetPrevWeatherTypeHashName() + -- Rain, Thunder, Clearing + if weather == joaat('RAIN') or weather == joaat('THUNDER') or weather == joaat('CLEARING') then + return Config.BadWeatherMultiplier + end + return 1.0 +end + +-- Determine special mission type +function DetermineSpecialMission(distance) + if not Config.EnableSpecialMissions then + return 'normal' + end + + local chance = math.random(100) + + -- Long distance missions + if distance >= Config.LongDistance.minDistance and Config.LongDistance.enabled then + if chance <= Config.SpecialMissionChance then + return 'longdistance' + end + end + + -- VIP clients + if Config.VIPClients.enabled and chance <= (Config.SpecialMissionChance / 2) then + return 'vip' + end + + -- Airport runs + if Config.AirportRuns.enabled and chance <= (Config.SpecialMissionChance / 3) then + return 'airport' + end + + return 'normal' +end + +-- Track vehicle damage for perfect drive bonus +function TrackVehicleDamage() + CreateThread(function() + while OnJob and CustomerEnteredVehicle do + Wait(1000) + + local playerPed = PlayerPedId() + if IsPedInAnyVehicle(playerPed, false) then + local vehicle = GetVehiclePedIsIn(playerPed, false) + local currentDamage = GetVehicleBodyHealth(vehicle) + + if VehicleDamageAtStart == 0 then + VehicleDamageAtStart = currentDamage + elseif currentDamage < VehicleDamageAtStart - 50 then + CrashedDuringTrip = true + end + end + end + end) +end + +function OpenGetStocksMenu() + ESX.TriggerServerCallback('esx_taxijob:getStockItems', function(items) + local elements = { + {unselectable = true, icon = "fas fa-box", title = TranslateCap('taxi_stock')} + } + + for i = 1, #items, 1 do + elements[#elements+1] = { + icon = "fas fa-box", + title = 'x' .. items[i].count .. ' ' .. items[i].label, + value = items[i].name + } + end + + ESX.OpenContext("right", elements, function(menu,element) + local itemName = element.value + local elements2 = { + {unselectable = true, icon = "fas fa-box", title = element.title}, + {title = TranslateCap('amount'), input = true, inputType = "number", inputMin = 1, inputMax = 100, inputPlaceholder = TranslateCap('withdraw_amount')}, + {icon = "fas fa-check-double", title = TranslateCap('confirm'), value = "confirm"} + } + + ESX.OpenContext("right", elements2, function(menu2,element2) + local count = tonumber(menu2.eles[2].inputValue) + + if count == nil then + ESX.ShowNotification(TranslateCap('quantity_invalid')) + else + ESX.CloseContext() + TriggerServerEvent('esx_taxijob:getStockItem', itemName, count) + + Wait(1000) + OpenGetStocksMenu() + end + end) + end) + end, function(menu) + CurrentAction = 'taxi_actions_menu' + CurrentActionMsg = TranslateCap('press_to_open') + CurrentActionData = {} + end) +end + +function OpenPutStocksMenu() + ESX.TriggerServerCallback('esx_taxijob:getPlayerInventory', function(inventory) + local elements = { + {unselectable = true, icon = "fas fa-box", title = TranslateCap('inventory')} + } + + for i = 1, #inventory.items, 1 do + local item = inventory.items[i] + if item.count > 0 then + elements[#elements+1] = { + icon = "fas fa-box", + title = item.label .. ' x' .. item.count, + type = 'item_standard', + value = item.name + } + end + end + + ESX.OpenContext("right", elements, function(menu,element) + local itemName = element.value + + local elements2 = { + {unselectable = true, icon = "fas fa-box", title = element.title}, + {title = TranslateCap('amount'), input = true, inputType = "number", inputMin = 1, inputMax = 100, inputPlaceholder = TranslateCap('deposit_amount')}, + {icon = "fas fa-check-double", title = "Confirm", value = "confirm"} + } + + ESX.OpenContext("right", elements2, function(menu2,element2) + local count = tonumber(menu2.eles[2].inputValue) + + if count == nil then + ESX.ShowNotification(TranslateCap('quantity_invalid')) + else + ESX.CloseContext() + -- todo: refresh on callback + TriggerServerEvent('esx_taxijob:putStockItems', itemName, count) + Wait(1000) + OpenPutStocksMenu() + end + end) + end) + end, function(menu) + CurrentAction = 'taxi_actions_menu' + CurrentActionMsg = TranslateCap('press_to_open') + CurrentActionData = {} + end) +end + +AddEventHandler('esx_taxijob:hasEnteredMarker', function(zone) + if zone == 'VehicleSpawner' then + CurrentAction = 'vehicle_spawner' + CurrentActionMsg = TranslateCap('spawner_prompt') + CurrentActionData = {} + elseif zone == 'VehicleDeleter' then + local playerPed = PlayerPedId() + local vehicle = GetVehiclePedIsIn(playerPed, false) + + if IsPedInAnyVehicle(playerPed, false) and GetPedInVehicleSeat(vehicle, -1) == playerPed then + CurrentAction = 'delete_vehicle' + CurrentActionMsg = TranslateCap('store_veh') + CurrentActionData = { + vehicle = vehicle + } + end + elseif zone == 'TaxiActions' then + CurrentAction = 'taxi_actions_menu' + CurrentActionMsg = TranslateCap('press_to_open') + CurrentActionData = {} + + elseif zone == 'Cloakroom' then + CurrentAction = 'cloakroom' + CurrentActionMsg = TranslateCap('cloakroom_prompt') + CurrentActionData = {} + end +end) + +AddEventHandler('esx_taxijob:hasExitedMarker', function(zone) + ESX.CloseContext() + CurrentAction = nil +end) + +RegisterNetEvent('esx_phone:loaded') +AddEventHandler('esx_phone:loaded', function(phoneNumber, contacts) + local specialContact = { + name = TranslateCap('phone_taxi'), + number = 'taxi', + base64Icon = 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAGGElEQVR4XsWWW2gd1xWGv7Vn5pyRj47ut8iOYlmyWxw1KSZN4riOW6eFuCYldaBtIL1Ag4NNmt5ICORCaNKXlF6oCy0hpSoJKW4bp7Sk6YNb01RuLq4d0pQ0kWQrshVJ1uX46HJ0zpy5rCKfQYgjCUs4kA+GtTd786+ftW8jqsqHibB6TLZn2zeq09ZTWAIWCxACoTI1E+6v+eSpXwHRqkVZPcmqlBzCApLQ8dk3IWVKMQlYcHG81OODNmD6D7d9VQrTSbwsH73lFKePtvOxXSfn48U+Xpb58fl5gPmgl6DiR19PZN4+G7iODY4liIAACqiCHyp+AFvb7ML3uot1QP5yDUim292RtIqfU6Lr8wFVDVV8AsPKRDAxzYkKm2kj5sSFuUT3+v2FXkDXakD6f+7c1NGS7Ml0Pkah6jq8mhvwUy7Cyijg5Aoks6/hTp+k7vRjDJ73dmw8WHxlJRM2y5Nsb3GPDuzsZURbGMsUmRkoUPByCMrKCG7SobJiO01X7OKq6utoe3XX34BaoLDaCljj3faTcu3j3z3T+iADwzNYEmKIWcGAIAtqqkKAxZa2Sja/tY+59/7y48aveQ8A4Woq4Fa3bj7Q1/EgwWRAZ52NMTYCWAZEwIhBUEQgUiVQ8IpKvqj4kVJCyGRCRrb+hvap+gPAo0DuUhWQfx2q29u+t/vPmarbCLwII7qQTEQRLbUtBJ2PAkZARBADqkLBV/I+BGrhpoSN577FWz3P3XbTvRMvAlpuwC4crv5jwtK9RAFSu46+G8cRwESxQ+K2gESAgCiIASHuA8YCBdSUohdCKGCF0H6iGc3MgrEphvKi+6Wp24HABioSjuxFARGobyJ5OMXEiGHW6iLR0EmifhPJDddj3CoqtuwEZSkCc73/RAvTeEOvU5w8gz/Zj2TfoLFFibZvQrI5EOFiPqgAZmzApTINKKgPiW20ffkXtPXfA9Ysmf5/kHn/T0z8e5rpCS5JVQNUN1ayfn2a+qvT2JWboOOXMPg0ms6C2IAAWTc2ACPeupdbm5yb8XNQczOM90DOB0uoa01Ttz5FZ6IL3Ctg9DUIg7Lto2DZ0HIDFEbAz4AaiBRyxZJe9U7kQg84KYbH/JeJESANXPXwXdWffvzu1p+x5VE4/ST4EyAOoEAI6WsAhdx/AYulhJDqAgRm/hPPEVAfnAboeAB6v88jTw/f98SzU8eAwbgC5IGRg3vsW3E7YewYzJwF4wAhikJURGqvBO8ouAFIxBI0gqgPEp9B86+ASSAIEEHhbEnX7eTgnrFbn3iW5+K82EAA+M2V+d2EeRj9K/izIBYgJZGwCO4Gzm/uRQOwDEsI41PSfPZ+xJsBKwFo6dOwpJvezMU84Md5sSmRCM51uacGbUKvHWEjAKIelXaGJqePyopjzFTdx6Ef/gDbjo3FKEoQKN+8/yEqRt8jf67IaNDBnF9FZFwERRGspMM20+XC64nym9AMhSE1G7fjbb0bCQsISi6vFCdPMPzuUwR9AcmOKQ7cew+WZcq3IGEYMZeb4p13sjjmU4TX7Cfdtp0oDAFBbZfk/37N0MALAKbcAKaY4yPeuwy3t2J8MAKDIxDVd1Lz8Ts599vb8Wameen532GspRWIQmXPHV8k0BquvPP3TOSgsRmiCFRAHWh9420Gi7nl34JaBen7O7UWRMD740AQ7yEf8nW78TIeN+7+PCIsOYaqMJHxqKtpJ++D+DA5ARsawEmASqzv1Cz7FjRpbt951tUAOcAHdNEUC7C5NAJo7Dws03CAFMxlkdSRZmCMxaq8ejKuVwSqIJfzA61LmyIgBoxZfgmYmQazKLGumHitRso0ZVkD0aE/FI7UrYv2WUYXjo0ihNhEatA1GBEUIxEWAcKCHhHCVMG8AETlda0ENn3hrm+/6Zh47RBCtXn+mZ/sAXzWjnPHV77zkiXBgl6gFkee+em1wBlgdnEF8sCF5moLI7KwlSIMwABwgbVT21htMNjleheAfPkShEBh/PzQccexdxBT9IPjQAYYZ+3o2OjQ8cQiPb+kVwBCliENXA3sAm6Zj3E/zaq4fD07HmwEmuKYXsUFcDl6Hz7/B1RGfEbPim/bAAAAAElFTkSuQmCC' + } + + TriggerEvent('esx_phone:addSpecialContact', specialContact.name, specialContact.number, specialContact.base64Icon) +end) + +-- Create Blips +CreateThread(function() + local blip = AddBlipForCoord(Config.Zones.TaxiActions.Pos.x, Config.Zones.TaxiActions.Pos.y, + Config.Zones.TaxiActions.Pos.z) + + SetBlipSprite(blip, 198) + SetBlipDisplay(blip, 4) + SetBlipScale(blip, 1.0) + SetBlipColour(blip, 5) + SetBlipAsShortRange(blip, true) + + BeginTextCommandSetBlipName('STRING') + AddTextComponentSubstringPlayerName(TranslateCap('blip_taxi')) + EndTextCommandSetBlipName(blip) +end) + +-- Enter / Exit marker events, and draw markers +CreateThread(function() + while true do + local sleep = 1500 + if ESX.PlayerData.job and ESX.PlayerData.job.name == 'taxi' then + + local coords = GetEntityCoords(PlayerPedId()) + local isInMarker, currentZone = false + + for k, v in pairs(Config.Zones) do + local zonePos = vector3(v.Pos.x, v.Pos.y, v.Pos.z) + local distance = #(coords - zonePos) + + if v.Type ~= -1 and distance < Config.DrawDistance then + sleep = 0 + DrawMarker(v.Type, v.Pos.x, v.Pos.y, v.Pos.z, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, v.Size.x, v.Size.y, + v.Size.z, v.Color.r, v.Color.g, v.Color.b, 100, false, false, 2, v.Rotate, nil, nil, false) + end + + if distance < v.Size.x then + isInMarker, currentZone = true, k + end + end + + if (isInMarker and not HasAlreadyEnteredMarker) or (isInMarker and LastZone ~= currentZone) then + HasAlreadyEnteredMarker, LastZone = true, currentZone + TriggerEvent('esx_taxijob:hasEnteredMarker', currentZone) + end + + if not isInMarker and HasAlreadyEnteredMarker then + HasAlreadyEnteredMarker = false + TriggerEvent('esx_taxijob:hasExitedMarker', LastZone) + end + end + Wait(sleep) + end +end) + +-- Taxi Job +CreateThread(function() + while true do + local Sleep = 1500 + + if OnJob then + Sleep = 0 + local playerPed = PlayerPedId() + if CurrentCustomer == nil then + DrawSub(TranslateCap('drive_search_pass'), 5000) + + if IsPedInAnyVehicle(playerPed, false) and OnJob then + Wait(5000) + CurrentCustomer = GetRandomWalkingNPC() + + if CurrentCustomer ~= nil then + CurrentCustomerBlip = AddBlipForEntity(CurrentCustomer) + + SetBlipAsFriendly(CurrentCustomerBlip, true) + SetBlipColour(CurrentCustomerBlip, 2) + SetBlipCategory(CurrentCustomerBlip, 3) + SetBlipRoute(CurrentCustomerBlip, true) + + SetEntityAsMissionEntity(CurrentCustomer, true, false) + ClearPedTasksImmediately(CurrentCustomer) + SetBlockingOfNonTemporaryEvents(CurrentCustomer, true) + + local standTime = GetRandomIntInRange(60000, 180000) + TaskStandStill(CurrentCustomer, standTime) + + ESX.ShowNotification(TranslateCap('customer_found')) + end + end + else + if IsPedFatallyInjured(CurrentCustomer) then + ESX.ShowNotification(TranslateCap('client_unconcious')) + + if DoesBlipExist(CurrentCustomerBlip) then + RemoveBlip(CurrentCustomerBlip) + end + + if DoesBlipExist(DestinationBlip) then + RemoveBlip(DestinationBlip) + end + + SetEntityAsMissionEntity(CurrentCustomer, false, true) + + CurrentCustomer, CurrentCustomerBlip, DestinationBlip, IsNearCustomer, CustomerIsEnteringVehicle, CustomerEnteredVehicle, targetCoords = + nil, nil, nil, false, false, false, nil + end + + if IsPedInAnyVehicle(playerPed, false) then + local vehicle = GetVehiclePedIsIn(playerPed, false) + local playerCoords = GetEntityCoords(playerPed) + local customerCoords = GetEntityCoords(CurrentCustomer) + local customerDistance = #(playerCoords - customerCoords) + + if IsPedSittingInVehicle(CurrentCustomer, vehicle) then + if CustomerEnteredVehicle then + local targetDistance = #(playerCoords - targetCoords) + + if targetDistance <= 10.0 then + TaskLeaveVehicle(CurrentCustomer, vehicle, 0) + + ESX.ShowNotification(TranslateCap('arrive_dest')) + + TaskGoStraightToCoord(CurrentCustomer, targetCoords.x, targetCoords.y, targetCoords.z, + 1.0, -1, 0.0, 0.0) + SetEntityAsMissionEntity(CurrentCustomer, false, true) + + -- Calculate trip data + local tripTime = (GetGameTimer() - PickupTime) / 1000 -- seconds + local perfectDrive = not CrashedDuringTrip + local vehicleMultiplier = GetVehicleMultiplier() + local rushHourActive = IsRushHour() + local weatherMultiplier = GetWeatherMultiplier() + + -- Send enhanced mission data to server + TriggerServerEvent('esx_taxijob:success', { + distance = DropoffDistance, + time = tripTime, + perfectDrive = perfectDrive, + vehicleMultiplier = vehicleMultiplier, + rushHour = rushHourActive, + weatherMultiplier = weatherMultiplier, + missionType = CurrentMissionType, + reputation = PlayerReputation + }) + + RemoveBlip(DestinationBlip) + + local function scope(customer) + ESX.SetTimeout(60000, function() + DeletePed(customer) + end) + end + + scope(CurrentCustomer) + + CurrentCustomer, CurrentCustomerBlip, DestinationBlip, IsNearCustomer, CustomerIsEnteringVehicle, CustomerEnteredVehicle, targetCoords = + nil, nil, nil, false, false, false, nil + end + + if targetCoords then + DrawMarker(36, targetCoords.x, targetCoords.y, targetCoords.z + 1.1, 0.0, 0.0, 0.0, 0.0, + 0.0, 0.0, 1.0, 1.0, 1.0, 234, 223, 72, 155, false, false, 2, true, nil, nil, false) + end + else + RemoveBlip(CurrentCustomerBlip) + CurrentCustomerBlip = nil + targetCoords = Config.JobLocations[GetRandomIntInRange(1, #Config.JobLocations)] + local distance = #(playerCoords - targetCoords) + while distance < Config.MinimumDistance do + Wait(0) + + targetCoords = Config.JobLocations[GetRandomIntInRange(1, #Config.JobLocations)] + distance = #(playerCoords - targetCoords) + end + + -- Store trip data + PickupTime = GetGameTimer() + DropoffDistance = distance + CurrentMissionType = DetermineSpecialMission(distance) + + -- Get vehicle health at start + VehicleDamageAtStart = GetVehicleBodyHealth(vehicle) + CrashedDuringTrip = false + TrackVehicleDamage() + + local street = table.pack(GetStreetNameAtCoord(targetCoords.x, targetCoords.y, + targetCoords.z)) + local msg = nil + + -- Special mission notifications + if CurrentMissionType == 'vip' then + msg = '~y~VIP CLIENT~s~: ' + elseif CurrentMissionType == 'airport' then + msg = '~b~AIRPORT RUN~s~: ' + elseif CurrentMissionType == 'longdistance' then + msg = '~g~LONG DISTANCE~s~: ' + else + msg = '' + end + + if street[2] ~= 0 and street[2] ~= nil then + msg = msg .. string.format(TranslateCap('take_me_to_near', GetStreetNameFromHashKey(street[1]), + GetStreetNameFromHashKey(street[2]))) + else + msg = msg .. string.format(TranslateCap('take_me_to', GetStreetNameFromHashKey(street[1]))) + end + + ESX.ShowNotification(msg) + + DestinationBlip = AddBlipForCoord(targetCoords.x, targetCoords.y, targetCoords.z) + + BeginTextCommandSetBlipName('STRING') + AddTextComponentSubstringPlayerName('Destination') + EndTextCommandSetBlipName(DestinationBlip) + SetBlipRoute(DestinationBlip, true) + + CustomerEnteredVehicle = true + end + else + DrawMarker(36, customerCoords.x, customerCoords.y, customerCoords.z + 1.1, 0.0, 0.0, 0.0, 0.0, + 0.0, 0.0, 1.0, 1.0, 1.0, 234, 223, 72, 155, false, false, 2, true, nil, nil, false) + + if not CustomerEnteredVehicle then + if customerDistance <= 40.0 then + + if not IsNearCustomer then + ESX.ShowNotification(TranslateCap('close_to_client')) + IsNearCustomer = true + end + + end + + if customerDistance <= 20.0 then + if not CustomerIsEnteringVehicle then + ClearPedTasksImmediately(CurrentCustomer) + + local maxSeats, freeSeat = GetVehicleMaxNumberOfPassengers(vehicle) + + for i = maxSeats - 1, 0, -1 do + if IsVehicleSeatFree(vehicle, i) then + freeSeat = i + break + end + end + + if freeSeat then + TaskEnterVehicle(CurrentCustomer, vehicle, -1, freeSeat, 2.0, 0) + CustomerIsEnteringVehicle = true + end + end + end + end + end + else + DrawSub(TranslateCap('return_to_veh'), 5000) + end + end + end + Wait(Sleep) + end +end) + +CreateThread(function() + while OnJob do + Wait(10000) + if ESX.PlayerData.job ~= nil and ESX.PlayerData.job.grade < 3 then + if not IsInAuthorizedVehicle() then + ClearCurrentMission() + OnJob = false + ESX.ShowNotification(TranslateCap('not_in_taxi')) + end + end + end +end) + +-- Key Controls +CreateThread(function() + while true do + local sleep = 1500 + if CurrentAction and not ESX.PlayerData.dead then + sleep = 0 + ESX.ShowHelpNotification(CurrentActionMsg) + + if IsControlJustReleased(0, 38) and ESX.PlayerData.job and ESX.PlayerData.job.name == 'taxi' then + if CurrentAction == 'taxi_actions_menu' then + OpenTaxiActionsMenu() + elseif CurrentAction == 'cloakroom' then + OpenCloakroom() + elseif CurrentAction == 'vehicle_spawner' then + OpenVehicleSpawnerMenu() + elseif CurrentAction == 'delete_vehicle' then + DeleteJobVehicle() + end + + CurrentAction = nil + end + end + Wait(sleep) + end +end) + +RegisterCommand('taximenu', function() + if not ESX.PlayerData.dead and Config.EnablePlayerManagement and ESX.PlayerData.job and ESX.PlayerData.job.name == + 'taxi' then + OpenMobileTaxiActionsMenu() + end +end, false) + +RegisterKeyMapping('taximenu', 'Open Taxi Menu', 'keyboard', 'f6') diff --git a/esx_taxijob/config.lua b/esx_taxijob/config.lua new file mode 100644 index 00000000..4f4c6d15 --- /dev/null +++ b/esx_taxijob/config.lua @@ -0,0 +1,189 @@ +Config = {} + +Config.DrawDistance = 10.0 -- How close do you need to be for the markers to be drawn (in GTA units). + +-- Enhanced Earnings System +Config.NPCJobEarnings = {min = 300, max = 600} +Config.MinimumDistance = 3000 -- Minimum NPC job destination distance from the pickup in GTA units, a higher number prevents nearby destionations. +Config.DistanceMultiplier = 0.15 -- Earnings per meter traveled +Config.TimeMultiplier = 2.0 -- Earnings per second (for waiting time) + +-- Tip System +Config.EnableTips = true +Config.TipChance = 60 -- % chance customer gives a tip +Config.TipAmount = {min = 50, max = 200} +Config.PerfectDriveTipBonus = 1.5 -- Multiplier for perfect driving (no crashes, smooth) + +-- Reputation System +Config.EnableReputation = true +Config.MaxReputation = 100 +Config.ReputationGainPerJob = 2 +Config.ReputationLossPerBadJob = 5 +Config.ReputationBonusThreshold = 75 -- Above this, get bonus earnings +Config.ReputationBonus = 1.25 -- 25% bonus + +-- Rush Hour System +Config.EnableRushHour = true +Config.RushHours = { + {start = 7, finish = 9}, -- Morning rush + {start = 17, finish = 19} -- Evening rush +} +Config.RushHourMultiplier = 1.5 + +-- Weather Bonus +Config.EnableWeatherBonus = true +Config.BadWeatherMultiplier = 1.3 -- Rain/Thunder bonus + +-- Special Missions +Config.EnableSpecialMissions = true +Config.SpecialMissionChance = 15 -- % chance +Config.AirportRuns = {enabled = true, bonus = 500} +Config.VIPClients = {enabled = true, bonus = 750} +Config.LongDistance = {enabled = true, minDistance = 5000, bonus = 400} + +Config.MaxInService = -1 -- How much people can be in service at once? +Config.EnablePlayerManagement = true -- Enable society managing. +Config.EnableSocietyOwnedVehicles = false + +Config.Locale = GetConvar('esx:locale', 'en') + +Config.OxInventory = ESX.GetConfig().OxInventory + +Config.AuthorizedVehicles = { + {model = 'taxi', title ='Economy Taxi', icon = 'fas fa-car', type = 'economy', multiplier = 1.0}, + {model = 'taxi2', title ='Standard Taxi', icon = 'fas fa-car', type = 'standard', multiplier = 1.2}, + {model = 'stretch', title ='Luxury Limo', icon = 'fas fa-car-side', type = 'luxury', multiplier = 1.8, minGrade = 2} +} + +Config.Zones = { + + VehicleSpawner = { + Pos = {x = 915.039, y = -162.187, z = 74.5}, + Size = {x = 1.0, y = 1.0, z = 1.0}, + Color = {r = 204, g = 204, b = 0}, + Type = 36, Rotate = true + }, + + VehicleSpawnPoint = { + Pos = {x = 911.108, y = -177.867, z = 74.283}, + Size = {x = 1.5, y = 1.5, z = 1.0}, + Type = -1, Rotate = false, + Heading = 225.0 + }, + + VehicleDeleter = { + Pos = {x = 908.317, y = -183.070, z = 73.201}, + Size = {x = 3.0, y = 3.0, z = 0.25}, + Color = {r = 255, g = 0, b = 0}, + Type = 1, Rotate = false + }, + + TaxiActions = { + Pos = {x = 903.32, y = -170.55, z = 74.0}, + Size = {x = 1.0, y = 1.0, z = 1.0}, + Color = {r = 204, g = 204, b = 0}, + Type = 20, Rotate = true + }, + + Cloakroom = { + Pos = {x = 894.88, y = -180.23, z = 74.5}, + Size = {x = 1.0, y = 1.0, z = 1.0}, + Color = {r = 204, g = 204, b = 0}, + Type = 21, Rotate = true + } +} + +Config.JobLocations = { + vector3(293.5, -590.2, 42.7), + vector3(253.4, -375.9, 44.1), + vector3(120.8, -300.4, 45.1), + vector3(-38.4, -381.6, 38.3), + vector3(-107.4, -614.4, 35.7), + vector3(-252.3, -856.5, 30.6), + vector3(-236.1, -988.4, 28.8), + vector3(-277.0, -1061.2, 25.7), + vector3(-576.5, -999.0, 21.8), + vector3(-602.8, -952.6, 21.6), + vector3(-790.7, -961.9, 14.9), + vector3(-912.6, -864.8, 15.0), + vector3(-1069.8, -792.5, 18.8), + vector3(-1306.9, -854.1, 15.1), + vector3(-1468.5, -681.4, 26.2), + vector3(-1380.9, -452.7, 34.1), + vector3(-1326.3, -394.8, 36.1), + vector3(-1383.7, -270.0, 42.5), + vector3(-1679.6, -457.3, 39.4), + vector3(-1812.5, -416.9, 43.7), + vector3(-2043.6, -268.3, 23.0), + vector3(-2186.4, -421.6, 12.7), + vector3(-1862.1, -586.5, 11.2), + vector3(-1859.5, -617.6, 10.9), + vector3(-1635.0, -988.3, 12.6), + vector3(-1284.0, -1154.2, 5.3), + vector3(-1126.5, -1338.1, 4.6), + vector3(-867.9, -1159.7, 5.0), + vector3(-847.5, -1141.4, 6.3), + vector3(-722.6, -1144.6, 10.2), + vector3(-575.5, -318.4, 34.5), + vector3(-592.3, -224.9, 36.1), + vector3(-559.6, -162.9, 37.8), + vector3(-535.0, -65.7, 40.6), + vector3(-758.2, -36.7, 37.3), + vector3(-1375.9, 21.0, 53.2), + vector3(-1320.3, -128.0, 48.1), + vector3(-1285.7, 294.3, 64.5), + vector3(-1245.7, 386.5, 75.1), + vector3(-760.4, 285.0, 85.1), + vector3(-626.8, 254.1, 81.1), + vector3(-563.6, 268.0, 82.5), + vector3(-486.8, 272.0, 82.8), + vector3(88.3, 250.9, 108.2), + vector3(234.1, 344.7, 105.0), + vector3(435.0, 96.7, 99.2), + vector3(482.6, -142.5, 58.2), + vector3(762.7, -786.5, 25.9), + vector3(809.1, -1290.8, 25.8), + vector3(490.8, -1751.4, 28.1), + vector3(432.4, -1856.1, 27.0), + vector3(164.3, -1734.5, 28.9), + vector3(-57.7, -1501.4, 31.1), + vector3(52.2, -1566.7, 29.0), + vector3(310.2, -1376.8, 31.4), + vector3(182.0, -1332.8, 28.9), + vector3(-74.6, -1100.6, 25.7), + vector3(-887.0, -2187.5, 8.1), + vector3(-749.6, -2296.6, 12.5), + vector3(-1064.8, -2560.7, 19.7), + vector3(-1033.4, -2730.2, 19.7), + vector3(-1018.7, -2732.0, 13.3), + vector3(797.4, -174.4, 72.7), + vector3(508.2, -117.9, 60.8), + vector3(159.5, -27.6, 67.4), + vector3(-36.4, -106.9, 57.0), + vector3(-355.8, -270.4, 33.0), + vector3(-831.2, -76.9, 37.3), + vector3(-1038.7, -214.6, 37.0), + vector3(1918.4, 3691.4, 32.3), + vector3(1820.2, 3697.1, 33.5), + vector3(1619.3, 3827.2, 34.5), + vector3(1418.6, 3602.2, 34.5), + vector3(1944.9, 3856.3, 31.7), + vector3(2285.3, 3839.4, 34.0), + vector3(2760.9, 3387.8, 55.7), + vector3(1952.8, 2627.7, 45.4), + vector3(1051.4, 474.8, 93.7), + vector3(866.4, 17.6, 78.7), + vector3(319.0, 167.4, 103.3), + vector3(88.8, 254.1, 108.2), + vector3(-44.9, 70.4, 72.4), + vector3(-115.5, 84.3, 70.8), + vector3(-384.8, 226.9, 83.5), + vector3(-578.7, 139.1, 61.3), + vector3(-651.3, -584.9, 34.1), + vector3(-571.8, -1195.6, 17.9), + vector3(-1513.3, -670.0, 28.4), + vector3(-1297.5, -654.9, 26.1), + vector3(-1645.5, 144.6, 61.7), + vector3(-1160.6, 744.4, 154.6), + vector3(-798.1, 831.7, 204.4) +} diff --git a/esx_taxijob/esx_taxijob.sql b/esx_taxijob/esx_taxijob.sql new file mode 100644 index 00000000..927bbf32 --- /dev/null +++ b/esx_taxijob/esx_taxijob.sql @@ -0,0 +1,23 @@ +INSERT INTO `addon_account` (name, label, shared) VALUES + ('society_taxi', 'Taxi', 1) +; + +INSERT INTO `datastore` (name, label, shared) VALUES + ('society_taxi', 'Taxi', 1) +; + +INSERT INTO `addon_inventory` (name, label, shared) VALUES + ('society_taxi', 'Taxi', 1) +; + +INSERT INTO `jobs` (name, label) VALUES + ('taxi', 'Taxi') +; + +INSERT INTO `job_grades` (job_name, grade, name, label, salary, skin_male, skin_female) VALUES + ('taxi',0,'recrue','Recrue',12,'{"hair_2":0,"hair_color_2":0,"torso_1":32,"bags_1":0,"helmet_2":0,"chain_2":0,"eyebrows_3":0,"makeup_3":0,"makeup_2":0,"tshirt_1":31,"makeup_1":0,"bags_2":0,"makeup_4":0,"eyebrows_4":0,"chain_1":0,"lipstick_4":0,"bproof_2":0,"hair_color_1":0,"decals_2":0,"pants_2":0,"age_2":0,"glasses_2":0,"ears_2":0,"arms":27,"lipstick_1":0,"ears_1":-1,"mask_2":0,"sex":0,"lipstick_3":0,"helmet_1":-1,"shoes_2":0,"beard_2":0,"beard_1":0,"lipstick_2":0,"beard_4":0,"glasses_1":0,"bproof_1":0,"mask_1":0,"decals_1":1,"hair_1":0,"eyebrows_2":0,"beard_3":0,"age_1":0,"tshirt_2":0,"skin":0,"torso_2":0,"eyebrows_1":0,"face":0,"shoes_1":10,"pants_1":24}', '{"hair_2":0,"hair_color_2":0,"torso_1":57,"bags_1":0,"helmet_2":0,"chain_2":0,"eyebrows_3":0,"makeup_3":0,"makeup_2":0,"tshirt_1":38,"makeup_1":0,"bags_2":0,"makeup_4":0,"eyebrows_4":0,"chain_1":0,"lipstick_4":0,"bproof_2":0,"hair_color_1":0,"decals_2":0,"pants_2":1,"age_2":0,"glasses_2":0,"ears_2":0,"arms":21,"lipstick_1":0,"ears_1":-1,"mask_2":0,"sex":1,"lipstick_3":0,"helmet_1":-1,"shoes_2":0,"beard_2":0,"beard_1":0,"lipstick_2":0,"beard_4":0,"glasses_1":5,"bproof_1":0,"mask_1":0,"decals_1":1,"hair_1":0,"eyebrows_2":0,"beard_3":0,"age_1":0,"tshirt_2":0,"skin":0,"torso_2":0,"eyebrows_1":0,"face":0,"shoes_1":49,"pants_1":11}'), + ('taxi',1,'novice','Novice',24,'{"hair_2":0,"hair_color_2":0,"torso_1":32,"bags_1":0,"helmet_2":0,"chain_2":0,"eyebrows_3":0,"makeup_3":0,"makeup_2":0,"tshirt_1":31,"makeup_1":0,"bags_2":0,"makeup_4":0,"eyebrows_4":0,"chain_1":0,"lipstick_4":0,"bproof_2":0,"hair_color_1":0,"decals_2":0,"pants_2":0,"age_2":0,"glasses_2":0,"ears_2":0,"arms":27,"lipstick_1":0,"ears_1":-1,"mask_2":0,"sex":0,"lipstick_3":0,"helmet_1":-1,"shoes_2":0,"beard_2":0,"beard_1":0,"lipstick_2":0,"beard_4":0,"glasses_1":0,"bproof_1":0,"mask_1":0,"decals_1":1,"hair_1":0,"eyebrows_2":0,"beard_3":0,"age_1":0,"tshirt_2":0,"skin":0,"torso_2":0,"eyebrows_1":0,"face":0,"shoes_1":10,"pants_1":24}', '{"hair_2":0,"hair_color_2":0,"torso_1":57,"bags_1":0,"helmet_2":0,"chain_2":0,"eyebrows_3":0,"makeup_3":0,"makeup_2":0,"tshirt_1":38,"makeup_1":0,"bags_2":0,"makeup_4":0,"eyebrows_4":0,"chain_1":0,"lipstick_4":0,"bproof_2":0,"hair_color_1":0,"decals_2":0,"pants_2":1,"age_2":0,"glasses_2":0,"ears_2":0,"arms":21,"lipstick_1":0,"ears_1":-1,"mask_2":0,"sex":1,"lipstick_3":0,"helmet_1":-1,"shoes_2":0,"beard_2":0,"beard_1":0,"lipstick_2":0,"beard_4":0,"glasses_1":5,"bproof_1":0,"mask_1":0,"decals_1":1,"hair_1":0,"eyebrows_2":0,"beard_3":0,"age_1":0,"tshirt_2":0,"skin":0,"torso_2":0,"eyebrows_1":0,"face":0,"shoes_1":49,"pants_1":11}'), + ('taxi',2,'experimente','Experimente',36,'{"hair_2":0,"hair_color_2":0,"torso_1":26,"bags_1":0,"helmet_2":0,"chain_2":0,"eyebrows_3":0,"makeup_3":0,"makeup_2":0,"tshirt_1":57,"makeup_1":0,"bags_2":0,"makeup_4":0,"eyebrows_4":0,"chain_1":0,"lipstick_4":0,"bproof_2":0,"hair_color_1":0,"decals_2":0,"pants_2":4,"age_2":0,"glasses_2":0,"ears_2":0,"arms":11,"lipstick_1":0,"ears_1":-1,"mask_2":0,"sex":0,"lipstick_3":0,"helmet_1":-1,"shoes_2":0,"beard_2":0,"beard_1":0,"lipstick_2":0,"beard_4":0,"glasses_1":0,"bproof_1":0,"mask_1":0,"decals_1":0,"hair_1":0,"eyebrows_2":0,"beard_3":0,"age_1":0,"tshirt_2":0,"skin":0,"torso_2":0,"eyebrows_1":0,"face":0,"shoes_1":10,"pants_1":24}', '{"hair_2":0,"hair_color_2":0,"torso_1":57,"bags_1":0,"helmet_2":0,"chain_2":0,"eyebrows_3":0,"makeup_3":0,"makeup_2":0,"tshirt_1":38,"makeup_1":0,"bags_2":0,"makeup_4":0,"eyebrows_4":0,"chain_1":0,"lipstick_4":0,"bproof_2":0,"hair_color_1":0,"decals_2":0,"pants_2":1,"age_2":0,"glasses_2":0,"ears_2":0,"arms":21,"lipstick_1":0,"ears_1":-1,"mask_2":0,"sex":1,"lipstick_3":0,"helmet_1":-1,"shoes_2":0,"beard_2":0,"beard_1":0,"lipstick_2":0,"beard_4":0,"glasses_1":5,"bproof_1":0,"mask_1":0,"decals_1":1,"hair_1":0,"eyebrows_2":0,"beard_3":0,"age_1":0,"tshirt_2":0,"skin":0,"torso_2":0,"eyebrows_1":0,"face":0,"shoes_1":49,"pants_1":11}'), + ('taxi',3,'uber','Uber',48,'{"hair_2":0,"hair_color_2":0,"torso_1":26,"bags_1":0,"helmet_2":0,"chain_2":0,"eyebrows_3":0,"makeup_3":0,"makeup_2":0,"tshirt_1":57,"makeup_1":0,"bags_2":0,"makeup_4":0,"eyebrows_4":0,"chain_1":0,"lipstick_4":0,"bproof_2":0,"hair_color_1":0,"decals_2":0,"pants_2":4,"age_2":0,"glasses_2":0,"ears_2":0,"arms":11,"lipstick_1":0,"ears_1":-1,"mask_2":0,"sex":0,"lipstick_3":0,"helmet_1":-1,"shoes_2":0,"beard_2":0,"beard_1":0,"lipstick_2":0,"beard_4":0,"glasses_1":0,"bproof_1":0,"mask_1":0,"decals_1":0,"hair_1":0,"eyebrows_2":0,"beard_3":0,"age_1":0,"tshirt_2":0,"skin":0,"torso_2":0,"eyebrows_1":0,"face":0,"shoes_1":10,"pants_1":24}', '{"hair_2":0,"hair_color_2":0,"torso_1":57,"bags_1":0,"helmet_2":0,"chain_2":0,"eyebrows_3":0,"makeup_3":0,"makeup_2":0,"tshirt_1":38,"makeup_1":0,"bags_2":0,"makeup_4":0,"eyebrows_4":0,"chain_1":0,"lipstick_4":0,"bproof_2":0,"hair_color_1":0,"decals_2":0,"pants_2":1,"age_2":0,"glasses_2":0,"ears_2":0,"arms":21,"lipstick_1":0,"ears_1":-1,"mask_2":0,"sex":1,"lipstick_3":0,"helmet_1":-1,"shoes_2":0,"beard_2":0,"beard_1":0,"lipstick_2":0,"beard_4":0,"glasses_1":5,"bproof_1":0,"mask_1":0,"decals_1":1,"hair_1":0,"eyebrows_2":0,"beard_3":0,"age_1":0,"tshirt_2":0,"skin":0,"torso_2":0,"eyebrows_1":0,"face":0,"shoes_1":49,"pants_1":11}'), + ('taxi',4,'boss','Patron',0,'{"hair_2":0,"hair_color_2":0,"torso_1":29,"bags_1":0,"helmet_2":0,"chain_2":0,"eyebrows_3":0,"makeup_3":0,"makeup_2":0,"tshirt_1":31,"makeup_1":0,"bags_2":0,"makeup_4":0,"eyebrows_4":0,"chain_1":0,"lipstick_4":0,"bproof_2":0,"hair_color_1":0,"decals_2":0,"pants_2":4,"age_2":0,"glasses_2":0,"ears_2":0,"arms":1,"lipstick_1":0,"ears_1":-1,"mask_2":0,"sex":0,"lipstick_3":0,"helmet_1":-1,"shoes_2":0,"beard_2":0,"beard_1":0,"lipstick_2":0,"beard_4":0,"glasses_1":0,"bproof_1":0,"mask_1":0,"decals_1":0,"hair_1":0,"eyebrows_2":0,"beard_3":0,"age_1":0,"tshirt_2":0,"skin":0,"torso_2":4,"eyebrows_1":0,"face":0,"shoes_1":10,"pants_1":24}', '{"hair_2":0,"hair_color_2":0,"torso_1":57,"bags_1":0,"helmet_2":0,"chain_2":0,"eyebrows_3":0,"makeup_3":0,"makeup_2":0,"tshirt_1":38,"makeup_1":0,"bags_2":0,"makeup_4":0,"eyebrows_4":0,"chain_1":0,"lipstick_4":0,"bproof_2":0,"hair_color_1":0,"decals_2":0,"pants_2":1,"age_2":0,"glasses_2":0,"ears_2":0,"arms":21,"lipstick_1":0,"ears_1":-1,"mask_2":0,"sex":1,"lipstick_3":0,"helmet_1":-1,"shoes_2":0,"beard_2":0,"beard_1":0,"lipstick_2":0,"beard_4":0,"glasses_1":5,"bproof_1":0,"mask_1":0,"decals_1":1,"hair_1":0,"eyebrows_2":0,"beard_3":0,"age_1":0,"tshirt_2":0,"skin":0,"torso_2":0,"eyebrows_1":0,"face":0,"shoes_1":49,"pants_1":11}') +; diff --git a/esx_taxijob/fxmanifest.lua b/esx_taxijob/fxmanifest.lua new file mode 100644 index 00000000..dd31755f --- /dev/null +++ b/esx_taxijob/fxmanifest.lua @@ -0,0 +1,26 @@ +fx_version 'adamant' + +game 'gta5' + +description 'Allows players to be a taxi driver (Pickup and drop-off NPCs)' +lua54 'yes' +version '1.0' +legacyversion '1.13.4' + +shared_script '@es_extended/imports.lua' + +client_scripts { + '@es_extended/locale.lua', + 'locales/*.lua', + 'config.lua', + 'client/*.lua' +} + +server_scripts { + '@es_extended/locale.lua', + 'locales/*.lua', + 'config.lua', + 'server/*.lua' +} + +dependency 'es_extended' diff --git a/esx_taxijob/locales/de.lua b/esx_taxijob/locales/de.lua new file mode 100644 index 00000000..b258f55e --- /dev/null +++ b/esx_taxijob/locales/de.lua @@ -0,0 +1,60 @@ +Locales['de'] = { + -- cloakroom + ['cloakroom_menu'] = 'Kleidungsmenu', + ['cloakroom_prompt'] = 'Drücke ~INPUT_CONTEXT~ um das ~y~Kleidungsmenü~s~ zu öffnen.', + ['wear_citizen'] = 'Zivilisten Kleidung', + ['wear_work'] = 'Arbeitskleidung', + + -- garage + ['spawner_prompt'] = 'Drücke ~INPUT_CONTEXT~ um die ~y~garage~s~ zu öffnen!.', + ["vehicle_spawned"] = "%s erfolgreich geparkt !", + ['store_veh'] = 'Drücke ~INPUT_CONTEXT~ um das Fahrzeug zu parken', + ['spawn_veh'] = 'Fahrzeug ausparken', + ['spawnpoint_blocked'] = 'Ein Fahrzeug blockiert den Ausparkpunkt!', + ['only_taxi'] = 'Du kannst nur Dienstfahrzeuge Parken!.', + ['empty_authorized_vehicles_table'] = "Authorized vehicles table is empty in config.lua", + ['unknow_model'] = "Can't spawn this model because unknow", + + ['taking_service'] = 'Service annehmen: Taxi/Uber', + ['full_service'] = 'Voller Service: ', + ['amount_invalid'] = 'Betrag ungültig', + ['press_to_open'] = 'Drücke ~INPUT_CONTEXT~ um das Menü zu öffnen', + ['billing'] = 'Rechnung', + ['billing_sent'] = 'Die rechnung wurde registriert!!', + ['invoice_amount'] = 'Rechnugsbetrag', + ['no_players_near'] = 'Kein Spieler in der Nähe', + ['start_job'] = 'Starten / Stoppen Aufträge', + ['drive_search_pass'] = 'Auf der Suche nach ~y~Passagieren', + ['customer_found'] = 'du hast einen Passagier ~g~gefunden~s~ , Fahre in zum Ziel', + ['client_unconcious'] = 'dein Passagier ist ~r~bewusstlos~s~. Suche nach einem anderen.', + ['arrive_dest'] = 'du bist an deinem Ziel ~g~angekommen~s~', + ['take_me_to_near'] = '~s~Bring mich nach~y~ %s~s~, in der Nähe von~y~ %s', + ['take_me_to'] = '~s~Bring mich nach~y~ %s', + ['close_to_client'] = 'Du bist in der Nähe des Passagiers! Du musst jedoch näher an ihn dran damit er einsteigen kann!', + ['return_to_veh'] = 'Bitte kehre zu deinem Fahrzeug zurück um die Mission fortzuführen!', + ['must_in_taxi'] = 'Du musst in einem Taxi sein um die Mission starten zu können', + ['must_in_vehicle'] = 'Du musst in einem Fahrzeug sein um die Mission starten zu können', + ['not_in_taxi'] = 'Du verlässt das Taxi wärend du auf einer Mission warst!!', + ['have_earned'] = 'Du verdienst ~g~%s~s~€', + ['comp_earned'] = '- Die Firma verdient ~g~€\n- Verdient ~g~%s~s~€', + ['deposit_stock'] = 'Gegenstand reinpacken', + ['take_stock'] = 'Gegenstand entnehmen', + ['boss_actions'] = 'Boss Aktionen', + ['mission_complete'] = 'Mission Beendet!', + ['quantity'] = 'Anzahl', + ['quantity_invalid'] = 'Ungültige Anzahl!!', + ['inventory'] = 'Inventar', + ['taxi_client'] = 'Taxi Client', + ['have_withdrawn'] = 'Du zahlst aus ~y~x%s~s~ ~b~%s~s~€', + ['have_deposited'] = 'Du zahlst ein ~y~x%s~s~ ~b~%s~s~€', + ['player_cannot_hold'] = 'Du hast ~r~nicht~s~ genügend ~y~freien platz~s~ in deinem Inventar!', + ['blip_taxi'] = 'Taxi', + ['phone_taxi'] = 'Taxi', + ['taxi'] = 'Taxi', + ['taxi_stock'] = 'Lager', + ['amount'] = "Amount", --not translated + ['bill_amount'] = "Amount to bill..", --not translated + ['deposit_amount'] = "Amount to deposit..", --not translated + ['withdraw_amount'] = "Amount to withdraw..", --not translated + ['confirm'] = "Confirm", --not translated +} diff --git a/esx_taxijob/locales/en.lua b/esx_taxijob/locales/en.lua new file mode 100644 index 00000000..bad2fa1d --- /dev/null +++ b/esx_taxijob/locales/en.lua @@ -0,0 +1,60 @@ +Locales['en'] = { + -- cloakroom + ['cloakroom_menu'] = 'cloakroom', + ['cloakroom_prompt'] = 'press [E] to access the Cloakroom.', + ['wear_citizen'] = 'citizen wear', + ['wear_work'] = 'taxi wear', + + -- garage + ['spawner_prompt'] = 'press [E] to access the Garage.', + ["vehicle_spawned"] = "Successfully Spawned A ~b~%s!", + ['store_veh'] = 'press [E] to store the vehicle', + ['spawn_veh'] = 'spawn vehicle', + ['spawnpoint_blocked'] = 'there is a vehicle blocking the spawnpoint!', + ['only_taxi'] = 'you can only store taxis.', + ['empty_authorized_vehicles_table'] = "Authorized vehicles table is empty in config.lua", + ['unknow_model'] = "Can't spawn this model because unknow", + + ['taking_service'] = 'taking service: Taxi/Uber', + ['full_service'] = 'full service: ', + ['amount_invalid'] = 'amount invalid', + ['press_to_open'] = 'press [E] to access the menu', + ['billing'] = 'billing', + ['billing_sent'] = 'the bill has been registered!', + ['invoice_amount'] = 'invoice amount', + ['no_players_near'] = 'no players nearby', + ['start_job'] = 'start / stop driving NPC jobs', + ['drive_search_pass'] = 'driving in search of passengers', + ['customer_found'] = 'you have found a customer, get closer to them', + ['client_unconcious'] = 'your client is ~r~unconscious, look for another one', + ['arrive_dest'] = 'you have arrived at your destination', + ['take_me_to_near'] = 'Take me to %s, near %s', + ['take_me_to'] = 'Take me to %s', + ['close_to_client'] = 'you are too far from the client, get close to them', + ['return_to_veh'] = 'please return to your vehicle to continue the mission', + ['must_in_taxi'] = 'you must be in a taxi to start the mission', + ['must_in_vehicle'] = 'you must be in a vehicle to begin the mission', + ['not_in_taxi'] = 'You left the taxi while on mission!', + ['have_earned'] = 'you have earned $%s', + ['comp_earned'] = '- your company has earned $%s\n- you have earned $%s', + ['deposit_stock'] = 'deposit Stock', + ['take_stock'] = 'take Stock', + ['boss_actions'] = 'boss Actions', + ['mission_complete'] = 'mission Completed', + ['quantity'] = 'quantity', + ['quantity_invalid'] = 'that is an invalid quantity!', + ['inventory'] = 'inventory', + ['taxi_client'] = 'taxi Client', + ['have_withdrawn'] = 'you have withdrawn x%s %s', + ['have_deposited'] = 'you have deposited x%s %s', + ['player_cannot_hold'] = 'you do ~r~not have enough free space in your inventory!', + ['blip_taxi'] = 'downtown Cab Co.', + ['phone_taxi'] = 'downtown Cab Co.', + ['taxi'] = 'taxi', + ['taxi_stock'] = 'taxi Stock', + ['amount'] = "Amount", + ['bill_amount'] = "Amount to bill..", + ['deposit_amount'] = "Amount to deposit..", + ['withdraw_amount'] = "Amount to withdraw..", + ['confirm'] = "Confirm" +} diff --git a/esx_taxijob/locales/es.lua b/esx_taxijob/locales/es.lua new file mode 100644 index 00000000..41886e5d --- /dev/null +++ b/esx_taxijob/locales/es.lua @@ -0,0 +1,60 @@ +Locales['es'] = { + -- Vestuario + ['cloakroom_menu'] = 'Vestuario', + ['cloakroom_prompt'] = 'Presiona [E] para acceder al armario.', + ['wear_citizen'] = 'Ropa ciudadana', + ['wear_work'] = 'Ropa de trabajo', + + -- Garaje + ['spawner_prompt'] = 'Presiona [E] para acceder al Garaje.', + ['store_veh'] = 'Presiona [E] para almacenar el vehículo', + ['spawn_veh'] = 'Vehículo de generación', + ['spawnpoint_blocked'] = '¡Hay un vehículo bloqueando el punto de generación!', + ['only_taxi'] = 'Solo puede almacenar taxis.', + ["vehicle_spawned"] = "%s aparcado correctamente ", + ['empty_authorized_vehicles_table'] = "Authorized vehicles table is empty in config.lua", + ['unknow_model'] = "Can't spawn this model because unknow", + + -- Trabajo + ['taking_service'] = 'Tomando servicio: Taxi / Uber', + ['full_service'] = 'Servicio completo: ', + ['amount_invalid'] = 'Cantidad inválida', + ['press_to_open'] = 'Presiona [E] para acceder al menú', + ['billing'] = 'Facturación', + ['billing_sent'] = 'La factura ha sido registrada', + ['invoice_amount'] = 'Factura inválida', + ['no_players_near'] = 'No hay jugadores cerca', + ['start_job'] = 'Iniciar / Detener la recogida de NPCs', + ['drive_search_pass'] = 'Conduciendo en busca de pasajeros', + ['customer_found'] = 'Has encontrado un cliente, acércate para que suba', + ['client_unconcious'] = 'Tu cliente está ~r~inconsciente, busca otro', + ['arrive_dest'] = 'Has llegado al destino correctamente', + ['take_me_to_near'] = 'Llévame a %s, cerca de %s', + ['take_me_to'] = 'Llévame a %s', + ['close_to_client'] = 'Estás demasiado lejos del cliente, acércate a él', + ['return_to_veh'] = 'Por favor regrese a su vehículo para continuar el trabajo', + ['must_in_taxi'] = 'Debes estar en un taxi para comenzar el trabajo', + ['must_in_vehicle'] = 'Debes estar en un vehículo para comenzar el trabajo', + ['not_in_taxi'] = 'Has abandonado el taxi mientras estabas en un servicio', + ['have_earned'] = 'Has ganado $%s', + ['comp_earned'] = '- Tu empresa ha ganado $%s\n- tú has ganado $%s', + ['deposit_stock'] = 'Depositar stock', + ['take_stock'] = 'Coger Stock', + ['boss_actions'] = 'Acciones del jefe', + ['mission_complete'] = 'Trabajo completado con éxito', + ['quantity'] = 'Cantidad', + ['quantity_invalid'] = 'Cantidad inválida', + ['inventory'] = 'Inventario', + ['taxi_client'] = 'Cliente', + ['have_withdrawn'] = 'Has retirado x%s %s', + ['have_deposited'] = 'Has depositado x%s %s', + ['player_cannot_hold'] = '~r~No tienes suficiente espacio libre en tu inventario', + ['blip_taxi'] = 'Downtown Cab Co.', + ['phone_taxi'] = 'Downtown Cab Co.', + ['taxi'] = 'Taxi', + ['taxi_stock'] = 'Inventario de Taxistas', + ['amount'] = "Cantidad", + ['deposit_amount'] = "Cantidad a depositar...", + ['withdraw_amount'] = "Cantidad a retirar...", + ['confirm'] = "Confirmar", +} diff --git a/esx_taxijob/locales/fi.lua b/esx_taxijob/locales/fi.lua new file mode 100644 index 00000000..22f722ba --- /dev/null +++ b/esx_taxijob/locales/fi.lua @@ -0,0 +1,60 @@ +Locales['fi'] = { + -- cloakroom + ['cloakroom_menu'] = 'Vaatelokero', + ['cloakroom_prompt'] = 'Paina [E] avataksesi vaatelokero.', + ['wear_citizen'] = 'Siviilivaatteet', + ['wear_work'] = 'Työvaatteet', + + -- garage + ['spawner_prompt'] = 'Paina [E] avataksesi talli.', + ['store_veh'] = 'Paina [E] laittaaksesi ajoneuvo talliin', + ['spawn_veh'] = 'Luo ajoneuvo', + ['spawnpoint_blocked'] = 'Jokin ajoneuvo estää ajoneuvon luomisen!', + ['only_taxi'] = 'Voit vain tallettaa takseja', + ["vehicle_spawned"] = "%s onnistuneesti pysäköity", + ['empty_authorized_vehicles_table'] = "Authorized vehicles table is empty in config.lua", + ['unknow_model'] = "Can't spawn this model because unknow", + + ['taking_service'] = 'Aloitetaan työ: Taxi/Uber', + ['full_service'] = 'Täysi palvelu: ', + ['amount_invalid'] = 'Virheellinen summa', + ['press_to_open'] = 'Paina [E] avataksesi valikko', + ['billing'] = 'Laskutus', + ['billing_sent'] = 'Lasku on rekisteröity!', + ['invoice_amount'] = 'Laskun määrä', + ['no_players_near'] = 'Ei pelaajia lähellä', + ['start_job'] = 'Aloita / Lopeta kansalaisten kuljettaminen', + ['drive_search_pass'] = 'Ajele ympäriinsä etsi uusia asiakkaita', + ['customer_found'] = 'Sinä löysit asiakkaan, aja lähemmäksi', + ['client_unconcious'] = 'Sinun asiakkaasi on ~r~tajuton. Etsi uusi.', + ['arrive_dest'] = 'Sinä saavuit kohteeseen', + ['take_me_to_near'] = 'Vie minut %s, lähellä %s', + ['take_me_to'] = 'Vie minut %s', + ['close_to_client'] = 'Olet asiakkaan lähellä, mene lähemmäksi', + ['return_to_veh'] = 'Mene takaisin ajoneuvoon, jatkaaksesi töitä', + ['must_in_taxi'] = 'Sinun pitää olla taksissa jotta voit aloittaa työn', + ['must_in_vehicle'] = 'Sinun pitää olla ajoneuvossa jotta voit alottaa työn', + ['not_in_taxi'] = 'Jätit taksin kesken tehtävää!', + ['have_earned'] = 'Sinä tienasit €%s', + ['comp_earned'] = '- Yrityksesi tienasi €%s\n- Sinä tienasit €%s', + ['deposit_stock'] = 'Talleta varastoon', + ['take_stock'] = 'Ota varastosta', + ['boss_actions'] = 'Pomo toiminnot', + ['mission_complete'] = 'Tehtävä suoritettu', + ['quantity'] = 'Määrä', + ['quantity_invalid'] = 'Virheellinen määrä', + ['inventory'] = 'Reppu', + ['taxi_client'] = 'Taksi asiakas', + ['have_withdrawn'] = 'Sinä nostit x%s %s', + ['have_deposited'] = 'Sinä talletit x%s %s', + ['player_cannot_hold'] = 'Sinulla ~r~ei ole enempää vapaata tilaa repussasi!', + ['blip_taxi'] = 'Taksi', + ['phone_taxi'] = 'Taksi', + ['taxi'] = 'Taksi', + ['taxi_stock'] = 'Taksi varasto', + ['amount'] = "Amount", --not translated + ['bill_amount'] = "Amount to bill..", --not translated + ['deposit_amount'] = "Amount to deposit..", --not translated + ['withdraw_amount'] = "Amount to withdraw..", --not translated + ['confirm'] = "Confirm", --not translated +} diff --git a/esx_taxijob/locales/fr.lua b/esx_taxijob/locales/fr.lua new file mode 100644 index 00000000..5f4602ac --- /dev/null +++ b/esx_taxijob/locales/fr.lua @@ -0,0 +1,60 @@ +Locales['fr'] = { + -- cloakroom + ['cloakroom_menu'] = 'vestiaire', + ['cloakroom_prompt'] = 'appuyez sur [E] pour ouvrir le vestiaire.', + ['wear_citizen'] = 'tenue civile', + ['wear_work'] = 'tenue de travail', + + -- garage + ['spawner_prompt'] = 'appuyez sur [E] pour ouvrir le garage.', + ['store_veh'] = 'appuyez sur [E] pour ranger le véhicule', + ['spawn_veh'] = 'sortir véhicule', + ['spawnpoint_blocked'] = 'un véhicule bloque la sortie!!', + ['only_taxi'] = 'vous ne pouvez ranger que les taxis', + ["vehicle_spawned"] = "Vous venez de sortir un ~b~%s", + ['empty_authorized_vehicles_table'] = "La table des véhicules autorisés est vide dans config.lua", + ['unknow_model'] = "Impossible de faire apparaître ce modèle, car il est inconnu", + + ['taking_service'] = 'prise de service : Taxi/Uber', + ['full_service'] = 'service complet : ', + ['amount_invalid'] = 'montant invalide', + ['press_to_open'] = 'appuyez sur [E] pour accéder au menu', + ['billing'] = 'facuration', + ['billing_sent'] = 'la facture a bien été enregistrée!', + ['invoice_amount'] = 'montant de la facture', + ['no_players_near'] = 'aucun joueur à proximité', + ['start_job'] = 'activer / désactiver les courses PNJ', + ['drive_search_pass'] = 'conduisez à la recherche de passagers', + ['customer_found'] = 'vous avez trouvé un client, conduisez jusqu\'à ce dernier', + ['client_unconcious'] = 'votre client est ~r~inconscient. Cherchez-en un autre.', + ['arrive_dest'] = 'vous êtes arrivé à destination', + ['take_me_to_near'] = 'Emmenez-moi à %s, près de %s', + ['take_me_to'] = 'Emmenez-moi à %s', + ['close_to_client'] = 'vous êtes à proximité du client, approchez-vous de lui', + ['return_to_veh'] = 'veuillez remonter dans votre véhicule pour continuer la mission', + ['must_in_taxi'] = 'vous devez être dans un taxi pour commencer la mission', + ['must_in_vehicle'] = 'vous devez être dans un véhicule pour commencer la mission', + ['not_in_taxi'] = 'Vous avez quitté le taxi pendant une mission!', + ['have_earned'] = 'vous avez gagné $%s', + ['comp_earned'] = '- Votre société a gagné $%s\n- Vous avez gagné $%s', + ['deposit_stock'] = 'Déposer Stock', + ['take_stock'] = 'Prendre Stock', + ['boss_actions'] = 'action Patron', + ['mission_complete'] = 'Mission terminée', + ['quantity'] = 'Quantité', + ['quantity_invalid'] = 'Quantité invalide', + ['inventory'] = 'Inventaire', + ['taxi_client'] = 'client Taxi', + ['have_withdrawn'] = 'vous avez pris x%s %s', + ['have_deposited'] = 'vous avez déposé x%s %s', + ['player_cannot_hold'] = 'vous n\'avez pas assez de place dans votre inventaire!', + ['blip_taxi'] = 'taxi', + ['phone_taxi'] = 'taxi', + ['taxi'] = 'taxi', + ['taxi_stock'] = 'taxi Stock', + ['amount'] = "Montant", + ['bill_amount'] = "Montant à facturer..", + ['deposit_amount'] = "Montant à déposer..", + ['withdraw_amount'] = "Montant à retirer..", + ['confirm'] = "Confirmer", +} diff --git a/esx_taxijob/locales/hu.lua b/esx_taxijob/locales/hu.lua new file mode 100644 index 00000000..247683f9 --- /dev/null +++ b/esx_taxijob/locales/hu.lua @@ -0,0 +1,59 @@ +Locales['hu'] = { + -- cloakroom + ['cloakroom_menu'] = 'Öltöző', + ['cloakroom_prompt'] = 'nyomd meg a [E] gombot a megnyitáshoz.', + ['wear_citizen'] = 'civil ruha', + ['wear_work'] = 'munkaruha', + + -- garage + ['spawner_prompt'] = 'nyomd meg a [E] gombot a garázshoz.', + ['store_veh'] = 'nyomd meg a [E] gombot az autó tárolásához', + ['spawn_veh'] = 'autó lehívás', + ['spawnpoint_blocked'] = 'egy autó blokkolja a lehívási helyet!', + ['only_taxi'] = 'Csak taxikat tárolhatsz.', + ['empty_authorized_vehicles_table'] = "Authorized vehicles table is empty in config.lua", + ['unknow_model'] = "Can't spawn this model because unknow", + + ['taking_service'] = 'szolgálat vállalás: Taxi/Uber', + ['full_service'] = 'teljes szolgálat: ', + ['amount_invalid'] = 'érvénytelen összeg', + ['press_to_open'] = 'nyomj [E] gombot a menühöz', + ['billing'] = 'számlázás', + ['billing_sent'] = 'a számlát regisztrálták!', + ['invoice_amount'] = 'számla összeg', + ['no_players_near'] = 'nincs a közeledben játékos', + ['start_job'] = 'NPC munkák: indítás / leállítás', + ['drive_search_pass'] = 'vezess és keress utasokat', + ['customer_found'] = 'találtál egy ügyfelet, menj érte', + ['client_unconcious'] = 'az ügyfeled ~r~eszméletlen, keress egy másikat', + ['arrive_dest'] = 'megérkeztél a célállomáshoz.', + ['take_me_to_near'] = 'Vigyél engem %s, közel %s', + ['take_me_to'] = 'Vigyél engem %s', + ['close_to_client'] = 'túl messze vagy az ügyfeledtől, menj közelebb', + ['return_to_veh'] = 'ülj vissza a kocsiba hogy folytatni tudd a munkát', + ['must_in_taxi'] = 'a munka indításához egy taxit kell hogy vezess', + ['must_in_vehicle'] = 'a munka indításához egy járművet kell hogy vezess', + ['have_earned'] = 'kerestél: $%s', + ['comp_earned'] = 'a vállalkozásod keresett: $%s - te kerestél: $%s', + ['deposit_stock'] = 'készlet betétele', + ['take_stock'] = 'készlet kivétel', + ['boss_actions'] = 'főnök müveletek', + ['mission_complete'] = 'sikeres küldetés!', + ['quantity'] = 'Mennyiség', + ['quantity_invalid'] = 'érvénytelen összeg!', + ['inventory'] = 'leltár', + ['taxi_client'] = 'taxi ügyfél', + ['have_withdrawn'] = 'kivettél x%s %s', + ['have_deposited'] = 'betettél x%s %s', + ['player_cannot_hold'] = '~r~nincs elég üres helyed az inventoryban!', + ['blip_taxi'] = 'Taxitársaság', + ['phone_taxi'] = 'Taxi Hívás', + ['taxi'] = 'taxi', + ['taxi_stock'] = 'taxi tároló', + ['vehicle_spawned'] = 'Sikeresen lehívtad: ~b~%s!', + ['amount'] = "Mennyiség", + ['bill_amount'] = "Nyugta értéke..", + ['deposit_amount'] = "mennyiség..", + ['withdraw_amount'] = "mennyiség..", + ['confirm'] = "Megerősítés", +} diff --git a/esx_taxijob/locales/it.lua b/esx_taxijob/locales/it.lua new file mode 100644 index 00000000..72107e18 --- /dev/null +++ b/esx_taxijob/locales/it.lua @@ -0,0 +1,64 @@ +Locales['it'] = { + -- cloakroom + ['cloakroom_menu'] = 'guardaroba', + ['cloakroom_prompt'] = 'premi [E] per accedere al guardaroba.', + ['wear_citizen'] = 'abbigliamento cittadino', + ['wear_work'] = 'abiti da lavoro', + + -- garage + ['spawner_prompt'] = 'premi [E] per accedere al garage.', + ["vehicle_spawned"] = "generato con successo un ~b~%s!", + ['store_veh'] = 'premi [E] per depositare il veicolo', + ['spawn_veh'] = 'genera veicolo', + ['spawnpoint_blocked'] = 'un veicolo blocca lo spawnpoint!', + ['only_taxi'] = 'puoi depositare solo taxi.', + ['empty_garage'] = 'nessun veicolo nel garage!', + ['empty_authorized_vehicles_table'] = "Authorized vehicles table is empty in config.lua", + ['unknow_model'] = "Can't spawn this model because unknow", + + ['taking_service'] = 'prendi servizio: Taxi/Uber', + ['full_service'] = 'servizio completo: ', + ['amount_invalid'] = 'importo non valido', + ['press_to_open'] = 'premi [E] per accedere al menu', + ['billing'] = 'fattura', + ['billing_sent'] = 'la fattura è stata registrata!', + ['invoice_amount'] = 'importo fattura', + ['no_players_near'] = 'nessun giocatore nelle vicinanze', + ['start_job'] = 'inizia / interrompi la guida di lavori NPC', + ['drive_search_pass'] = 'guida alla ricerca di passeggeri', + ['customer_found'] = 'hai trovato un cliente avvicinati a lui', + ['client_unconcious'] = 'il tuo cliente è ~r~incosciente, cercane un altro', + ['arrive_dest'] = 'sei arrivato a destinazione', + ['take_me_to_near'] = 'portami a %s, vicino a %s', + ['take_me_to'] = 'portami a %s', + ['close_to_client'] = 'sei troppo lontano dal cliente, avvicinati a lui', + ['return_to_veh'] = 'torna al tuo veicolo per continuare la missione', + ['must_in_taxi'] = 'devi essere in un taxi per iniziare la missione', + ['must_in_vehicle'] = 'devi essere in un veicolo per iniziare la missione', + ['not_in_taxi'] = 'Hai lasciato il taxi mentre eri in missione!', + ['have_earned'] = 'hai guadagnato $%s', + ['comp_earned'] = '- la tua azienda ha guadagnato $%s \n - hai guadagnato $%s', + ['deposit_stock'] = 'deposito', + ['take_stock' ] = 'prendi', + ['empty_stock'] = 'deposito vuoto!', + ['empty_your_inventory'] = 'Svuota il tuo inventario!' , + ['boss_actions'] = 'Azioni del capo', + ['mission_complete'] = 'missione completata', + ['quantity' ] = 'quantità', + ['quantity_invalid'] = 'questa quantità non è valida!', + ['inventory'] = 'inventario', + ['taxi_client'] = 'cliente taxi', + ['have_withdrawn'] = 'hai prelevato x%s %s', + ['have_deposited'] = 'hai depositato x%s %s', + ['player_cannot_hold'] = '~r~non hai abbastanza spazio libero nel tuo inventario!', + ['blip_taxi'] = 'Downtown Cab Co.', + ['phone_taxi' ] = ' downtown Cab Co.', + ['taxi' ] = 'taxi', + ['taxi_stock'] = 'deposito dei taxi', + ['menu_return'] = 'Indietro', + ['amount'] = "Quantità", + ['bill_amount'] = "Quantità da fatturare..", + ['deposit_amount'] = "Quantità da depositare..", + ['withdraw_amount'] = "Quantità da prelevare..", + ['confirm'] = "Conferma", + } diff --git a/esx_taxijob/locales/nl.lua b/esx_taxijob/locales/nl.lua new file mode 100644 index 00000000..0504b761 --- /dev/null +++ b/esx_taxijob/locales/nl.lua @@ -0,0 +1,60 @@ +Locales['nl'] = { + -- cloakroom + ['cloakroom_menu'] = 'Vestiaire', + ['cloakroom_prompt'] = 'Druk op [E] om de vestiaire te gebruiken.', + ['wear_citizen'] = 'Jouw kleding', + ['wear_work'] = 'Taxi kleding', + + -- garage + ['spawner_prompt'] = 'Druk op [E] om de Garage te gebruiken.', + ["vehicle_spawned"] = "Successfully Spawned A ~b~%s!", + ['store_veh'] = 'Druk op [E] om het voertuig weg te zetten.', + ['spawn_veh'] = 'pak voertuig', + ['spawnpoint_blocked'] = 'Er is een voertuig dat het spawnpoint blokkeerd!', + ['only_taxi'] = 'je kunt alleen taxi voertuigen wegzetten.', + ['empty_authorized_vehicles_table'] = "Authorized vehicles table is empty in config.lua", + ['unknow_model'] = "Can't spawn this model because unknow", + + ['taking_service'] = 'in dienst: Taxi/Uber', + ['full_service'] = 'volledige dienst: ', + ['amount_invalid'] = 'ongeldig bedrag', + ['press_to_open'] = 'Druk op [E] om het menu te gebruiken.', + ['billing'] = 'facturering', + ['billing_sent'] = 'de factuur is geregistreerd!', + ['invoice_amount'] = 'factuurbedrag', + ['no_players_near'] = 'geen spelers in de buurt', + ['start_job'] = 'start / stop het rijden van NPC jobs', + ['drive_search_pass'] = 'rijdend op zoek naar passagiers', + ['customer_found'] = 'je hebt een klant gevonden, ga er naar toe !', + ['client_unconcious'] = 'je klant is ~r~bewusteloos, zoek een andere klant.', + ['arrive_dest'] = 'Je bent aangekomen op je bestemming', + ['take_me_to_near'] = 'Breng me naar %s, in de buurt van %s', + ['take_me_to'] = 'Breng me naar %s', + ['close_to_client'] = 'Je bent te ver weg van je klant, ga er dichter bij in de buurt !', + ['return_to_veh'] = 'ga terug naar je voertuig om de missie voort te zetten', + ['must_in_taxi'] = 'Je moet in een taxi zitten om een missie te starten.', + ['must_in_vehicle'] = 'Je moet in een voertuig zitten om een missie te starten.', + ['not_in_taxi'] = 'Je bent de taxi verlaten tijdens een missie !', + ['have_earned'] = 'Je hebt €%s verdiend !', + ['comp_earned'] = '- je bedrijf heeft €%s verdiend\n- jij hebt €%s verdiend', + ['deposit_stock'] = 'voorraad wegleggen', + ['take_stock'] = 'voorraad pakken', + ['boss_actions'] = 'baas acties', + ['mission_complete'] = 'Missie compleet', + ['quantity'] = 'hoeveelheid', + ['quantity_invalid'] = 'dat is een ongeldige hoeveelheid !', + ['inventory'] = 'inventory', + ['taxi_client'] = 'taxi klant', + ['have_withdrawn'] = 'je hebt x%s %s gepakt', + ['have_deposited'] = 'je hebt x%s %s weggelegd', + ['player_cannot_hold'] = 'Je hebt ~r~niet genoeg vrije ruimte in je inventory!', + ['blip_taxi'] = 'downtown Cab Co.', + ['phone_taxi'] = 'downtown Cab Co.', + ['taxi'] = 'taxi', + ['taxi_stock'] = 'taxi voorraad', + ['amount'] = "Amount", --not translated + ['bill_amount'] = "Amount to bill..", --not translated + ['deposit_amount'] = "Amount to deposit..", --not translated + ['withdraw_amount'] = "Amount to withdraw..", --not translated + ['confirm'] = "Confirm", --not translated +} diff --git a/esx_taxijob/locales/pl.lua b/esx_taxijob/locales/pl.lua new file mode 100644 index 00000000..35fb474d --- /dev/null +++ b/esx_taxijob/locales/pl.lua @@ -0,0 +1,60 @@ +Locales['pl'] = { + -- cloakroom + ['cloakroom_menu'] = 'szatnia', + ['cloakroom_prompt'] = 'naciśnij [E] aby użyć szatni.', + ['wear_citizen'] = 'strój cywilny', + ['wear_work'] = 'strój pracownika taxi', + + -- garage + ['spawner_prompt'] = 'naciśnij [E] aby otworzyć garaż.', + ['store_veh'] = 'naciśnij [E] aby zdać pojazd', + ['spawn_veh'] = 'sprowadź pojazd', + ['spawnpoint_blocked'] = 'jakiś pojazd blokuje wyjazd z garażu!', + ['only_taxi'] = 'możesz przechowywać tylko taksówki.', + ['vehicle_spawned'] = '%s pomyślnie zaparkowany!', + ['empty_authorized_vehicles_table'] = "Authorized vehicles table is empty in config.lua", + ['unknow_model'] = "Can't spawn this model because unknow", + + ['taking_service'] = 'przyjmowanie usługi: Taxi/Uber', + ['full_service'] = 'pełny serwis: ', + ['amount_invalid'] = 'wartość nieprawidłowa', + ['press_to_open'] = 'naciśnij [E] aby wejść do menu', + ['billing'] = 'rachunek', + ['billing_sent'] = 'rachunek został wystawiony!', + ['invoice_amount'] = 'wartość należności', + ['no_players_near'] = 'brak graczy w pobliżu', + ['start_job'] = 'rozpocznij / zakończ wykonywanie zadań NPC', + ['drive_search_pass'] = 'jazda w poszukiwaniu pasażerów', + ['customer_found'] = 'Znajdujesz klienta, jedź do niego', + ['client_unconcious'] = 'klient jest ~r~nieprzytomny. Poszukaj innego.', + ['arrive_dest'] = 'Dojeżdżasz do celu', + ['take_me_to_near'] = 'Zabierz mnie do %s, w pobliżu %s', + ['take_me_to'] = 'Weź mnie do %s', + ['close_to_client'] = 'jesteś blisko klienta, podjedź do niego bliżej', + ['return_to_veh'] = 'proszę wróć do swojego pojazdu aby kontynuować misję', + ['must_in_taxi'] = 'musisz być w taksówce aby rozpocząć misję', + ['must_in_vehicle'] = 'musisz być w pojeździe aby rozpocząć misję', + ['not_in_taxi'] = 'You left the taxi while on mission!', + ['have_earned'] = 'zarabiasz $%s', + ['comp_earned'] = '- Twoja firma zarobiła $%s\n- Zarabiasz $%s', + ['deposit_stock'] = 'depozyt', + ['take_stock'] = 'weź depozyt', + ['boss_actions'] = 'akcje szefa', + ['mission_complete'] = 'misja zakończona', + ['quantity'] = 'ilość', + ['quantity_invalid'] = 'nieprawidłowa ilość', + ['inventory'] = 'ekwipunek', + ['taxi_client'] = 'klient taksówki', + ['have_withdrawn'] = 'wyciągasz x%s %s', + ['have_deposited'] = 'deponujesz x%s %s', + ['player_cannot_hold'] = '~r~Nie masz wystarczająco wolnego miejsca w swoim ekwipunku!', + ['blip_taxi'] = 'taxi', + ['phone_taxi'] = 'taxi', + ['taxi'] = 'taxi', + ['taxi_stock'] = 'taxi Stock', + ['amount'] = "Amount", --not translated + ['bill_amount'] = "Amount to bill..", --not translated + ['deposit_amount'] = "Amount to deposit..", --not translated + ['withdraw_amount'] = "Amount to withdraw..", --not translated + ['confirm'] = "Confirm", --not translated +} diff --git a/esx_taxijob/locales/sr.lua b/esx_taxijob/locales/sr.lua new file mode 100644 index 00000000..0c8b3881 --- /dev/null +++ b/esx_taxijob/locales/sr.lua @@ -0,0 +1,60 @@ +Locales['sr'] = { + -- cloakroom + ['cloakroom_menu'] = 'Svlačionica', + ['cloakroom_prompt'] = 'Pritisni [E] da pristupiš svlačionici.', + ['wear_citizen'] = 'Civilna Odeća', + ['wear_work'] = 'Radna Odeća', + + -- garage + ['spawner_prompt'] = 'Pritisni [E] da pristupiš garaži.', + ["vehicle_spawned"] = "Uspešno uzeto ~b~%s vozilo!", + ['store_veh'] = 'Pritisni [E] da parkiraš vozilo', + ['spawn_veh'] = 'Uzmi Vozilo', + ['spawnpoint_blocked'] = 'Vozilo blokira parking mesto!', + ['only_taxi'] = 'Možete parkirati samo taxi vozilo.', + ['empty_authorized_vehicles_table'] = "Authorized vehicles table is empty in config.lua", + ['unknow_model'] = "Can't spawn this model because unknow", + + ['taking_service'] = 'Uzimanje Posla: Taxi/Uber', + ['full_service'] = 'Posao: ', + ['amount_invalid'] = 'Nevažeći Iznos', + ['press_to_open'] = 'Pritisni [E] da pristupiš meniju', + ['billing'] = 'Računi', + ['billing_sent'] = 'Račun je registrovan!', + ['invoice_amount'] = 'Iznos računa', + ['no_players_near'] = 'Nema nikoga u blizini', + ['start_job'] = 'Započni / Prekini vožnju NPC poslova', + ['drive_search_pass'] = 'Vozite da potražite putnike', + ['customer_found'] = 'Našli ste putnika, priđite mu bliže', + ['client_unconcious'] = 'Vaš klijent je u ~r~nesvesti, potražite drugog', + ['arrive_dest'] = 'Stigli ste na odredište', + ['take_me_to_near'] = 'Odvezite me do %s, blizu %s', + ['take_me_to'] = 'Odvezite me do %s', + ['close_to_client'] = 'Predaleko ste od klijenta, priđite mu bliže', + ['return_to_veh'] = 'Vratite se u vaše vozilo da bi nastavili posao', + ['must_in_taxi'] = 'Morate biti u taxi vozilu da bi započeli posao', + ['must_in_vehicle'] = 'Morate biti u vozilu da bi započeli posao', + ['not_in_taxi'] = 'Izašli ste iz vozila dok ste u poslu!', + ['have_earned'] = 'Zaradili ste $%s', + ['comp_earned'] = '- vaša kompanija je zaradila $%s\n- vi ste zaradili $%s', + ['deposit_stock'] = 'Ostavi', + ['take_stock'] = 'Uzmi', + ['boss_actions'] = 'Boss Akcije', + ['mission_complete'] = 'Posao završen', + ['quantity'] = 'Količina', + ['quantity_invalid'] = 'Ta količina je nevažeća!', + ['inventory'] = 'Inventar', + ['taxi_client'] = 'Taxi Klijent', + ['have_withdrawn'] = 'Podigli ste x%s %s', + ['have_deposited'] = 'Ostavili ste x%s %s', + ['player_cannot_hold'] = 'Nemate prostora u inventaru!', + ['blip_taxi'] = 'downtown Cab Co.', + ['phone_taxi'] = 'downtown Cab Co.', + ['taxi'] = 'Taxi', + ['taxi_stock'] = 'Taxi Ostava', + ['amount'] = "Amount", --not translated + ['bill_amount'] = "Amount to bill..", --not translated + ['deposit_amount'] = "Amount to deposit..", --not translated + ['withdraw_amount'] = "Amount to withdraw..", --not translated + ['confirm'] = "Confirm", --not translated +} diff --git a/esx_taxijob/locales/zh-cn.lua b/esx_taxijob/locales/zh-cn.lua new file mode 100644 index 00000000..77ece2f4 --- /dev/null +++ b/esx_taxijob/locales/zh-cn.lua @@ -0,0 +1,60 @@ +Locales['zh-cn'] = { + -- cloakroom + ['cloakroom_menu'] = '更衣室', + ['cloakroom_prompt'] = '键下 [E] 访问更衣室', + ['wear_citizen'] = '更换便服', + ['wear_work'] = '更换工服', + + -- garage + ['spawner_prompt'] = '键下 [E] 访问车库', + ["vehicle_spawned"] = "%s 车辆已放行!", + ['store_veh'] = '键下 [E] 储存车辆', + ['spawn_veh'] = '生成载具', + ['spawnpoint_blocked'] = '错误!当前一辆车挡住了生成点!', + ['only_taxi'] = '当前车库无法停放除计程车的其他车辆!', + ['empty_authorized_vehicles_table'] = "Authorized vehicles table is empty in config.lua", + ['unknow_model'] = "Can't spawn this model because unknow", + + ['taking_service'] = '公共服务:滴滴司机', + ['full_service'] = '公共服务:', + ['amount_invalid'] = '无效的金额输入!请重新检查', + ['press_to_open'] = '键下 [E] 打开菜单', + ['billing'] = '开具帐单', + ['billing_sent'] = '当前帐单已成功发送至目标市民!', + ['invoice_amount'] = '帐单金额', + ['no_players_near'] = '附近暂无其他市民!无法成功开具账单!', + ['start_job'] = '开始/结束接单工作', + ['drive_search_pass'] = '请自由驾驶载具等待系统派单!', + ['customer_found'] = '接受到一笔订单!请前往乘客附近', + ['client_unconcious'] = '当前乘客临时取消订单!订单自动结束', + ['arrive_dest'] = '已到达目的地', + ['take_me_to_near'] = '当前目的地:%s ,位于%s旁!', + ['take_me_to'] = '请即刻前往目的地:%s', + ['close_to_client'] = '请前往乘客附近!', + ['return_to_veh'] = '请返回车辆继续工作', + ['must_in_taxi'] = '当前必须处于计程车内才可开始工作', + ['must_in_vehicle'] = '当前必须处于车内才能开始工作', + ['not_in_taxi'] = '由于您离开了计程车!工作已自动停止!', + ['have_earned'] = '挣得薪酬:$%s ', + ['comp_earned'] = '- 您为公司赚了 $%s\n- 同时获得分成 $%s', + ['deposit_stock'] = '存入物品', + ['take_stock'] = '取出物品', + ['boss_actions'] = '老板菜单', + ['mission_complete'] = '工作完成', + ['quantity'] = '数量', + ['quantity_invalid'] = '数量无效', + ['inventory'] = '存储柜', + ['taxi_client'] = '计程车客户', + ['have_withdrawn'] = '你取出了 x%s %s ', + ['have_deposited'] = '你存入了 x%s %s ', + ['player_cannot_hold'] = '你的物品库没有足够的空间!', + ['blip_taxi'] = '滴滴司机', + ['phone_taxi'] = '滴滴司机', + ['taxi'] = '滴滴', + ['taxi_stock'] = '滴滴物品', + ['amount'] = "Amount", --not translated + ['bill_amount'] = "Amount to bill..", --not translated + ['deposit_amount'] = "Amount to deposit..", --not translated + ['withdraw_amount'] = "Amount to withdraw..", --not translated + ['confirm'] = "Confirm", --not translated +} diff --git a/esx_taxijob/localization/de_esx_taxijob.sql b/esx_taxijob/localization/de_esx_taxijob.sql new file mode 100644 index 00000000..4f5b11a4 --- /dev/null +++ b/esx_taxijob/localization/de_esx_taxijob.sql @@ -0,0 +1,23 @@ +INSERT INTO `addon_account` (name, label, shared) VALUES + ('society_taxi', 'Taxi', 1) +; + +INSERT INTO `datastore` (name, label, shared) VALUES + ('society_taxi', 'Taxi', 1) +; + +INSERT INTO `addon_inventory` (name, label, shared) VALUES + ('society_taxi', 'Taxi', 1) +; + +INSERT INTO `jobs` (name, label) VALUES + ('taxi', 'Taxi') +; + +INSERT INTO `job_grades` (job_name, grade, name, label, salary, skin_male, skin_female) VALUES + ('taxi',0,'recrue','Rekrut',12,'{"hair_2":0,"hair_color_2":0,"torso_1":32,"bags_1":0,"helmet_2":0,"chain_2":0,"eyebrows_3":0,"makeup_3":0,"makeup_2":0,"tshirt_1":31,"makeup_1":0,"bags_2":0,"makeup_4":0,"eyebrows_4":0,"chain_1":0,"lipstick_4":0,"bproof_2":0,"hair_color_1":0,"decals_2":0,"pants_2":0,"age_2":0,"glasses_2":0,"ears_2":0,"arms":27,"lipstick_1":0,"ears_1":-1,"mask_2":0,"sex":0,"lipstick_3":0,"helmet_1":-1,"shoes_2":0,"beard_2":0,"beard_1":0,"lipstick_2":0,"beard_4":0,"glasses_1":0,"bproof_1":0,"mask_1":0,"decals_1":1,"hair_1":0,"eyebrows_2":0,"beard_3":0,"age_1":0,"tshirt_2":0,"skin":0,"torso_2":0,"eyebrows_1":0,"face":0,"shoes_1":10,"pants_1":24}', '{"hair_2":0,"hair_color_2":0,"torso_1":57,"bags_1":0,"helmet_2":0,"chain_2":0,"eyebrows_3":0,"makeup_3":0,"makeup_2":0,"tshirt_1":38,"makeup_1":0,"bags_2":0,"makeup_4":0,"eyebrows_4":0,"chain_1":0,"lipstick_4":0,"bproof_2":0,"hair_color_1":0,"decals_2":0,"pants_2":1,"age_2":0,"glasses_2":0,"ears_2":0,"arms":21,"lipstick_1":0,"ears_1":-1,"mask_2":0,"sex":1,"lipstick_3":0,"helmet_1":-1,"shoes_2":0,"beard_2":0,"beard_1":0,"lipstick_2":0,"beard_4":0,"glasses_1":5,"bproof_1":0,"mask_1":0,"decals_1":1,"hair_1":0,"eyebrows_2":0,"beard_3":0,"age_1":0,"tshirt_2":0,"skin":0,"torso_2":0,"eyebrows_1":0,"face":0,"shoes_1":49,"pants_1":11}'), + ('taxi',1,'novice','Fahrer',24,'{"hair_2":0,"hair_color_2":0,"torso_1":32,"bags_1":0,"helmet_2":0,"chain_2":0,"eyebrows_3":0,"makeup_3":0,"makeup_2":0,"tshirt_1":31,"makeup_1":0,"bags_2":0,"makeup_4":0,"eyebrows_4":0,"chain_1":0,"lipstick_4":0,"bproof_2":0,"hair_color_1":0,"decals_2":0,"pants_2":0,"age_2":0,"glasses_2":0,"ears_2":0,"arms":27,"lipstick_1":0,"ears_1":-1,"mask_2":0,"sex":0,"lipstick_3":0,"helmet_1":-1,"shoes_2":0,"beard_2":0,"beard_1":0,"lipstick_2":0,"beard_4":0,"glasses_1":0,"bproof_1":0,"mask_1":0,"decals_1":1,"hair_1":0,"eyebrows_2":0,"beard_3":0,"age_1":0,"tshirt_2":0,"skin":0,"torso_2":0,"eyebrows_1":0,"face":0,"shoes_1":10,"pants_1":24}', '{"hair_2":0,"hair_color_2":0,"torso_1":57,"bags_1":0,"helmet_2":0,"chain_2":0,"eyebrows_3":0,"makeup_3":0,"makeup_2":0,"tshirt_1":38,"makeup_1":0,"bags_2":0,"makeup_4":0,"eyebrows_4":0,"chain_1":0,"lipstick_4":0,"bproof_2":0,"hair_color_1":0,"decals_2":0,"pants_2":1,"age_2":0,"glasses_2":0,"ears_2":0,"arms":21,"lipstick_1":0,"ears_1":-1,"mask_2":0,"sex":1,"lipstick_3":0,"helmet_1":-1,"shoes_2":0,"beard_2":0,"beard_1":0,"lipstick_2":0,"beard_4":0,"glasses_1":5,"bproof_1":0,"mask_1":0,"decals_1":1,"hair_1":0,"eyebrows_2":0,"beard_3":0,"age_1":0,"tshirt_2":0,"skin":0,"torso_2":0,"eyebrows_1":0,"face":0,"shoes_1":49,"pants_1":11}'), + ('taxi',2,'experimente','Erfahren',36,'{"hair_2":0,"hair_color_2":0,"torso_1":26,"bags_1":0,"helmet_2":0,"chain_2":0,"eyebrows_3":0,"makeup_3":0,"makeup_2":0,"tshirt_1":57,"makeup_1":0,"bags_2":0,"makeup_4":0,"eyebrows_4":0,"chain_1":0,"lipstick_4":0,"bproof_2":0,"hair_color_1":0,"decals_2":0,"pants_2":4,"age_2":0,"glasses_2":0,"ears_2":0,"arms":11,"lipstick_1":0,"ears_1":-1,"mask_2":0,"sex":0,"lipstick_3":0,"helmet_1":-1,"shoes_2":0,"beard_2":0,"beard_1":0,"lipstick_2":0,"beard_4":0,"glasses_1":0,"bproof_1":0,"mask_1":0,"decals_1":0,"hair_1":0,"eyebrows_2":0,"beard_3":0,"age_1":0,"tshirt_2":0,"skin":0,"torso_2":0,"eyebrows_1":0,"face":0,"shoes_1":10,"pants_1":24}', '{"hair_2":0,"hair_color_2":0,"torso_1":57,"bags_1":0,"helmet_2":0,"chain_2":0,"eyebrows_3":0,"makeup_3":0,"makeup_2":0,"tshirt_1":38,"makeup_1":0,"bags_2":0,"makeup_4":0,"eyebrows_4":0,"chain_1":0,"lipstick_4":0,"bproof_2":0,"hair_color_1":0,"decals_2":0,"pants_2":1,"age_2":0,"glasses_2":0,"ears_2":0,"arms":21,"lipstick_1":0,"ears_1":-1,"mask_2":0,"sex":1,"lipstick_3":0,"helmet_1":-1,"shoes_2":0,"beard_2":0,"beard_1":0,"lipstick_2":0,"beard_4":0,"glasses_1":5,"bproof_1":0,"mask_1":0,"decals_1":1,"hair_1":0,"eyebrows_2":0,"beard_3":0,"age_1":0,"tshirt_2":0,"skin":0,"torso_2":0,"eyebrows_1":0,"face":0,"shoes_1":49,"pants_1":11}'), + ('taxi',3,'uber','Uber Fahrer',48,'{"hair_2":0,"hair_color_2":0,"torso_1":26,"bags_1":0,"helmet_2":0,"chain_2":0,"eyebrows_3":0,"makeup_3":0,"makeup_2":0,"tshirt_1":57,"makeup_1":0,"bags_2":0,"makeup_4":0,"eyebrows_4":0,"chain_1":0,"lipstick_4":0,"bproof_2":0,"hair_color_1":0,"decals_2":0,"pants_2":4,"age_2":0,"glasses_2":0,"ears_2":0,"arms":11,"lipstick_1":0,"ears_1":-1,"mask_2":0,"sex":0,"lipstick_3":0,"helmet_1":-1,"shoes_2":0,"beard_2":0,"beard_1":0,"lipstick_2":0,"beard_4":0,"glasses_1":0,"bproof_1":0,"mask_1":0,"decals_1":0,"hair_1":0,"eyebrows_2":0,"beard_3":0,"age_1":0,"tshirt_2":0,"skin":0,"torso_2":0,"eyebrows_1":0,"face":0,"shoes_1":10,"pants_1":24}', '{"hair_2":0,"hair_color_2":0,"torso_1":57,"bags_1":0,"helmet_2":0,"chain_2":0,"eyebrows_3":0,"makeup_3":0,"makeup_2":0,"tshirt_1":38,"makeup_1":0,"bags_2":0,"makeup_4":0,"eyebrows_4":0,"chain_1":0,"lipstick_4":0,"bproof_2":0,"hair_color_1":0,"decals_2":0,"pants_2":1,"age_2":0,"glasses_2":0,"ears_2":0,"arms":21,"lipstick_1":0,"ears_1":-1,"mask_2":0,"sex":1,"lipstick_3":0,"helmet_1":-1,"shoes_2":0,"beard_2":0,"beard_1":0,"lipstick_2":0,"beard_4":0,"glasses_1":5,"bproof_1":0,"mask_1":0,"decals_1":1,"hair_1":0,"eyebrows_2":0,"beard_3":0,"age_1":0,"tshirt_2":0,"skin":0,"torso_2":0,"eyebrows_1":0,"face":0,"shoes_1":49,"pants_1":11}'), + ('taxi',4,'boss','Leitender Fahrer',0,'{"hair_2":0,"hair_color_2":0,"torso_1":29,"bags_1":0,"helmet_2":0,"chain_2":0,"eyebrows_3":0,"makeup_3":0,"makeup_2":0,"tshirt_1":31,"makeup_1":0,"bags_2":0,"makeup_4":0,"eyebrows_4":0,"chain_1":0,"lipstick_4":0,"bproof_2":0,"hair_color_1":0,"decals_2":0,"pants_2":4,"age_2":0,"glasses_2":0,"ears_2":0,"arms":1,"lipstick_1":0,"ears_1":-1,"mask_2":0,"sex":0,"lipstick_3":0,"helmet_1":-1,"shoes_2":0,"beard_2":0,"beard_1":0,"lipstick_2":0,"beard_4":0,"glasses_1":0,"bproof_1":0,"mask_1":0,"decals_1":0,"hair_1":0,"eyebrows_2":0,"beard_3":0,"age_1":0,"tshirt_2":0,"skin":0,"torso_2":4,"eyebrows_1":0,"face":0,"shoes_1":10,"pants_1":24}', '{"hair_2":0,"hair_color_2":0,"torso_1":57,"bags_1":0,"helmet_2":0,"chain_2":0,"eyebrows_3":0,"makeup_3":0,"makeup_2":0,"tshirt_1":38,"makeup_1":0,"bags_2":0,"makeup_4":0,"eyebrows_4":0,"chain_1":0,"lipstick_4":0,"bproof_2":0,"hair_color_1":0,"decals_2":0,"pants_2":1,"age_2":0,"glasses_2":0,"ears_2":0,"arms":21,"lipstick_1":0,"ears_1":-1,"mask_2":0,"sex":1,"lipstick_3":0,"helmet_1":-1,"shoes_2":0,"beard_2":0,"beard_1":0,"lipstick_2":0,"beard_4":0,"glasses_1":5,"bproof_1":0,"mask_1":0,"decals_1":1,"hair_1":0,"eyebrows_2":0,"beard_3":0,"age_1":0,"tshirt_2":0,"skin":0,"torso_2":0,"eyebrows_1":0,"face":0,"shoes_1":49,"pants_1":11}') +; diff --git a/esx_taxijob/localization/en_esx_taxijob.sql b/esx_taxijob/localization/en_esx_taxijob.sql new file mode 100644 index 00000000..e2e544b6 --- /dev/null +++ b/esx_taxijob/localization/en_esx_taxijob.sql @@ -0,0 +1,23 @@ +INSERT INTO `addon_account` (name, label, shared) VALUES + ('society_taxi', 'Taxi', 1) +; + +INSERT INTO `datastore` (name, label, shared) VALUES + ('society_taxi', 'Taxi', 1) +; + +INSERT INTO `addon_inventory` (name, label, shared) VALUES + ('society_taxi', 'Taxi', 1) +; + +INSERT INTO `jobs` (name, label) VALUES + ('taxi', 'Taxi') +; + +INSERT INTO `job_grades` (job_name, grade, name, label, salary, skin_male, skin_female) VALUES + ('taxi',0,'recrue','Recruit',12,'{"hair_2":0,"hair_color_2":0,"torso_1":32,"bags_1":0,"helmet_2":0,"chain_2":0,"eyebrows_3":0,"makeup_3":0,"makeup_2":0,"tshirt_1":31,"makeup_1":0,"bags_2":0,"makeup_4":0,"eyebrows_4":0,"chain_1":0,"lipstick_4":0,"bproof_2":0,"hair_color_1":0,"decals_2":0,"pants_2":0,"age_2":0,"glasses_2":0,"ears_2":0,"arms":27,"lipstick_1":0,"ears_1":-1,"mask_2":0,"sex":0,"lipstick_3":0,"helmet_1":-1,"shoes_2":0,"beard_2":0,"beard_1":0,"lipstick_2":0,"beard_4":0,"glasses_1":0,"bproof_1":0,"mask_1":0,"decals_1":1,"hair_1":0,"eyebrows_2":0,"beard_3":0,"age_1":0,"tshirt_2":0,"skin":0,"torso_2":0,"eyebrows_1":0,"face":0,"shoes_1":10,"pants_1":24}', '{"hair_2":0,"hair_color_2":0,"torso_1":57,"bags_1":0,"helmet_2":0,"chain_2":0,"eyebrows_3":0,"makeup_3":0,"makeup_2":0,"tshirt_1":38,"makeup_1":0,"bags_2":0,"makeup_4":0,"eyebrows_4":0,"chain_1":0,"lipstick_4":0,"bproof_2":0,"hair_color_1":0,"decals_2":0,"pants_2":1,"age_2":0,"glasses_2":0,"ears_2":0,"arms":21,"lipstick_1":0,"ears_1":-1,"mask_2":0,"sex":1,"lipstick_3":0,"helmet_1":-1,"shoes_2":0,"beard_2":0,"beard_1":0,"lipstick_2":0,"beard_4":0,"glasses_1":5,"bproof_1":0,"mask_1":0,"decals_1":1,"hair_1":0,"eyebrows_2":0,"beard_3":0,"age_1":0,"tshirt_2":0,"skin":0,"torso_2":0,"eyebrows_1":0,"face":0,"shoes_1":49,"pants_1":11}'), + ('taxi',1,'novice','Cabby',24,'{"hair_2":0,"hair_color_2":0,"torso_1":32,"bags_1":0,"helmet_2":0,"chain_2":0,"eyebrows_3":0,"makeup_3":0,"makeup_2":0,"tshirt_1":31,"makeup_1":0,"bags_2":0,"makeup_4":0,"eyebrows_4":0,"chain_1":0,"lipstick_4":0,"bproof_2":0,"hair_color_1":0,"decals_2":0,"pants_2":0,"age_2":0,"glasses_2":0,"ears_2":0,"arms":27,"lipstick_1":0,"ears_1":-1,"mask_2":0,"sex":0,"lipstick_3":0,"helmet_1":-1,"shoes_2":0,"beard_2":0,"beard_1":0,"lipstick_2":0,"beard_4":0,"glasses_1":0,"bproof_1":0,"mask_1":0,"decals_1":1,"hair_1":0,"eyebrows_2":0,"beard_3":0,"age_1":0,"tshirt_2":0,"skin":0,"torso_2":0,"eyebrows_1":0,"face":0,"shoes_1":10,"pants_1":24}', '{"hair_2":0,"hair_color_2":0,"torso_1":57,"bags_1":0,"helmet_2":0,"chain_2":0,"eyebrows_3":0,"makeup_3":0,"makeup_2":0,"tshirt_1":38,"makeup_1":0,"bags_2":0,"makeup_4":0,"eyebrows_4":0,"chain_1":0,"lipstick_4":0,"bproof_2":0,"hair_color_1":0,"decals_2":0,"pants_2":1,"age_2":0,"glasses_2":0,"ears_2":0,"arms":21,"lipstick_1":0,"ears_1":-1,"mask_2":0,"sex":1,"lipstick_3":0,"helmet_1":-1,"shoes_2":0,"beard_2":0,"beard_1":0,"lipstick_2":0,"beard_4":0,"glasses_1":5,"bproof_1":0,"mask_1":0,"decals_1":1,"hair_1":0,"eyebrows_2":0,"beard_3":0,"age_1":0,"tshirt_2":0,"skin":0,"torso_2":0,"eyebrows_1":0,"face":0,"shoes_1":49,"pants_1":11}'), + ('taxi',2,'experimente','Experienced',36,'{"hair_2":0,"hair_color_2":0,"torso_1":26,"bags_1":0,"helmet_2":0,"chain_2":0,"eyebrows_3":0,"makeup_3":0,"makeup_2":0,"tshirt_1":57,"makeup_1":0,"bags_2":0,"makeup_4":0,"eyebrows_4":0,"chain_1":0,"lipstick_4":0,"bproof_2":0,"hair_color_1":0,"decals_2":0,"pants_2":4,"age_2":0,"glasses_2":0,"ears_2":0,"arms":11,"lipstick_1":0,"ears_1":-1,"mask_2":0,"sex":0,"lipstick_3":0,"helmet_1":-1,"shoes_2":0,"beard_2":0,"beard_1":0,"lipstick_2":0,"beard_4":0,"glasses_1":0,"bproof_1":0,"mask_1":0,"decals_1":0,"hair_1":0,"eyebrows_2":0,"beard_3":0,"age_1":0,"tshirt_2":0,"skin":0,"torso_2":0,"eyebrows_1":0,"face":0,"shoes_1":10,"pants_1":24}', '{"hair_2":0,"hair_color_2":0,"torso_1":57,"bags_1":0,"helmet_2":0,"chain_2":0,"eyebrows_3":0,"makeup_3":0,"makeup_2":0,"tshirt_1":38,"makeup_1":0,"bags_2":0,"makeup_4":0,"eyebrows_4":0,"chain_1":0,"lipstick_4":0,"bproof_2":0,"hair_color_1":0,"decals_2":0,"pants_2":1,"age_2":0,"glasses_2":0,"ears_2":0,"arms":21,"lipstick_1":0,"ears_1":-1,"mask_2":0,"sex":1,"lipstick_3":0,"helmet_1":-1,"shoes_2":0,"beard_2":0,"beard_1":0,"lipstick_2":0,"beard_4":0,"glasses_1":5,"bproof_1":0,"mask_1":0,"decals_1":1,"hair_1":0,"eyebrows_2":0,"beard_3":0,"age_1":0,"tshirt_2":0,"skin":0,"torso_2":0,"eyebrows_1":0,"face":0,"shoes_1":49,"pants_1":11}'), + ('taxi',3,'uber','Uber Cabby',48,'{"hair_2":0,"hair_color_2":0,"torso_1":26,"bags_1":0,"helmet_2":0,"chain_2":0,"eyebrows_3":0,"makeup_3":0,"makeup_2":0,"tshirt_1":57,"makeup_1":0,"bags_2":0,"makeup_4":0,"eyebrows_4":0,"chain_1":0,"lipstick_4":0,"bproof_2":0,"hair_color_1":0,"decals_2":0,"pants_2":4,"age_2":0,"glasses_2":0,"ears_2":0,"arms":11,"lipstick_1":0,"ears_1":-1,"mask_2":0,"sex":0,"lipstick_3":0,"helmet_1":-1,"shoes_2":0,"beard_2":0,"beard_1":0,"lipstick_2":0,"beard_4":0,"glasses_1":0,"bproof_1":0,"mask_1":0,"decals_1":0,"hair_1":0,"eyebrows_2":0,"beard_3":0,"age_1":0,"tshirt_2":0,"skin":0,"torso_2":0,"eyebrows_1":0,"face":0,"shoes_1":10,"pants_1":24}', '{"hair_2":0,"hair_color_2":0,"torso_1":57,"bags_1":0,"helmet_2":0,"chain_2":0,"eyebrows_3":0,"makeup_3":0,"makeup_2":0,"tshirt_1":38,"makeup_1":0,"bags_2":0,"makeup_4":0,"eyebrows_4":0,"chain_1":0,"lipstick_4":0,"bproof_2":0,"hair_color_1":0,"decals_2":0,"pants_2":1,"age_2":0,"glasses_2":0,"ears_2":0,"arms":21,"lipstick_1":0,"ears_1":-1,"mask_2":0,"sex":1,"lipstick_3":0,"helmet_1":-1,"shoes_2":0,"beard_2":0,"beard_1":0,"lipstick_2":0,"beard_4":0,"glasses_1":5,"bproof_1":0,"mask_1":0,"decals_1":1,"hair_1":0,"eyebrows_2":0,"beard_3":0,"age_1":0,"tshirt_2":0,"skin":0,"torso_2":0,"eyebrows_1":0,"face":0,"shoes_1":49,"pants_1":11}'), + ('taxi',4,'boss','Lead Cabby',0,'{"hair_2":0,"hair_color_2":0,"torso_1":29,"bags_1":0,"helmet_2":0,"chain_2":0,"eyebrows_3":0,"makeup_3":0,"makeup_2":0,"tshirt_1":31,"makeup_1":0,"bags_2":0,"makeup_4":0,"eyebrows_4":0,"chain_1":0,"lipstick_4":0,"bproof_2":0,"hair_color_1":0,"decals_2":0,"pants_2":4,"age_2":0,"glasses_2":0,"ears_2":0,"arms":1,"lipstick_1":0,"ears_1":-1,"mask_2":0,"sex":0,"lipstick_3":0,"helmet_1":-1,"shoes_2":0,"beard_2":0,"beard_1":0,"lipstick_2":0,"beard_4":0,"glasses_1":0,"bproof_1":0,"mask_1":0,"decals_1":0,"hair_1":0,"eyebrows_2":0,"beard_3":0,"age_1":0,"tshirt_2":0,"skin":0,"torso_2":4,"eyebrows_1":0,"face":0,"shoes_1":10,"pants_1":24}', '{"hair_2":0,"hair_color_2":0,"torso_1":57,"bags_1":0,"helmet_2":0,"chain_2":0,"eyebrows_3":0,"makeup_3":0,"makeup_2":0,"tshirt_1":38,"makeup_1":0,"bags_2":0,"makeup_4":0,"eyebrows_4":0,"chain_1":0,"lipstick_4":0,"bproof_2":0,"hair_color_1":0,"decals_2":0,"pants_2":1,"age_2":0,"glasses_2":0,"ears_2":0,"arms":21,"lipstick_1":0,"ears_1":-1,"mask_2":0,"sex":1,"lipstick_3":0,"helmet_1":-1,"shoes_2":0,"beard_2":0,"beard_1":0,"lipstick_2":0,"beard_4":0,"glasses_1":5,"bproof_1":0,"mask_1":0,"decals_1":1,"hair_1":0,"eyebrows_2":0,"beard_3":0,"age_1":0,"tshirt_2":0,"skin":0,"torso_2":0,"eyebrows_1":0,"face":0,"shoes_1":49,"pants_1":11}') +; diff --git a/esx_taxijob/localization/fi_esx_taxijob.sql b/esx_taxijob/localization/fi_esx_taxijob.sql new file mode 100644 index 00000000..7129a2a6 --- /dev/null +++ b/esx_taxijob/localization/fi_esx_taxijob.sql @@ -0,0 +1,23 @@ +INSERT INTO `addon_account` (name, label, shared) VALUES + ('society_taxi', 'Taxi', 1) +; + +INSERT INTO `datastore` (name, label, shared) VALUES + ('society_taxi', 'Taxi', 1) +; + +INSERT INTO `addon_inventory` (name, label, shared) VALUES + ('society_taxi', 'Taxi', 1) +; + +INSERT INTO `jobs` (name, label) VALUES + ('taxi', 'Taxi') +; + +INSERT INTO `job_grades` (job_name, grade, name, label, salary, skin_male, skin_female) VALUES + ('taxi',0,'recrue','Harjottelija',12,'{"hair_2":0,"hair_color_2":0,"torso_1":32,"bags_1":0,"helmet_2":0,"chain_2":0,"eyebrows_3":0,"makeup_3":0,"makeup_2":0,"tshirt_1":31,"makeup_1":0,"bags_2":0,"makeup_4":0,"eyebrows_4":0,"chain_1":0,"lipstick_4":0,"bproof_2":0,"hair_color_1":0,"decals_2":0,"pants_2":0,"age_2":0,"glasses_2":0,"ears_2":0,"arms":27,"lipstick_1":0,"ears_1":-1,"mask_2":0,"sex":0,"lipstick_3":0,"helmet_1":-1,"shoes_2":0,"beard_2":0,"beard_1":0,"lipstick_2":0,"beard_4":0,"glasses_1":0,"bproof_1":0,"mask_1":0,"decals_1":1,"hair_1":0,"eyebrows_2":0,"beard_3":0,"age_1":0,"tshirt_2":0,"skin":0,"torso_2":0,"eyebrows_1":0,"face":0,"shoes_1":10,"pants_1":24}', '{"hair_2":0,"hair_color_2":0,"torso_1":57,"bags_1":0,"helmet_2":0,"chain_2":0,"eyebrows_3":0,"makeup_3":0,"makeup_2":0,"tshirt_1":38,"makeup_1":0,"bags_2":0,"makeup_4":0,"eyebrows_4":0,"chain_1":0,"lipstick_4":0,"bproof_2":0,"hair_color_1":0,"decals_2":0,"pants_2":1,"age_2":0,"glasses_2":0,"ears_2":0,"arms":21,"lipstick_1":0,"ears_1":-1,"mask_2":0,"sex":1,"lipstick_3":0,"helmet_1":-1,"shoes_2":0,"beard_2":0,"beard_1":0,"lipstick_2":0,"beard_4":0,"glasses_1":5,"bproof_1":0,"mask_1":0,"decals_1":1,"hair_1":0,"eyebrows_2":0,"beard_3":0,"age_1":0,"tshirt_2":0,"skin":0,"torso_2":0,"eyebrows_1":0,"face":0,"shoes_1":49,"pants_1":11}'), + ('taxi',1,'novice','Alottelija',24,'{"hair_2":0,"hair_color_2":0,"torso_1":32,"bags_1":0,"helmet_2":0,"chain_2":0,"eyebrows_3":0,"makeup_3":0,"makeup_2":0,"tshirt_1":31,"makeup_1":0,"bags_2":0,"makeup_4":0,"eyebrows_4":0,"chain_1":0,"lipstick_4":0,"bproof_2":0,"hair_color_1":0,"decals_2":0,"pants_2":0,"age_2":0,"glasses_2":0,"ears_2":0,"arms":27,"lipstick_1":0,"ears_1":-1,"mask_2":0,"sex":0,"lipstick_3":0,"helmet_1":-1,"shoes_2":0,"beard_2":0,"beard_1":0,"lipstick_2":0,"beard_4":0,"glasses_1":0,"bproof_1":0,"mask_1":0,"decals_1":1,"hair_1":0,"eyebrows_2":0,"beard_3":0,"age_1":0,"tshirt_2":0,"skin":0,"torso_2":0,"eyebrows_1":0,"face":0,"shoes_1":10,"pants_1":24}', '{"hair_2":0,"hair_color_2":0,"torso_1":57,"bags_1":0,"helmet_2":0,"chain_2":0,"eyebrows_3":0,"makeup_3":0,"makeup_2":0,"tshirt_1":38,"makeup_1":0,"bags_2":0,"makeup_4":0,"eyebrows_4":0,"chain_1":0,"lipstick_4":0,"bproof_2":0,"hair_color_1":0,"decals_2":0,"pants_2":1,"age_2":0,"glasses_2":0,"ears_2":0,"arms":21,"lipstick_1":0,"ears_1":-1,"mask_2":0,"sex":1,"lipstick_3":0,"helmet_1":-1,"shoes_2":0,"beard_2":0,"beard_1":0,"lipstick_2":0,"beard_4":0,"glasses_1":5,"bproof_1":0,"mask_1":0,"decals_1":1,"hair_1":0,"eyebrows_2":0,"beard_3":0,"age_1":0,"tshirt_2":0,"skin":0,"torso_2":0,"eyebrows_1":0,"face":0,"shoes_1":49,"pants_1":11}'), + ('taxi',2,'experimente','Kokenut',36,'{"hair_2":0,"hair_color_2":0,"torso_1":26,"bags_1":0,"helmet_2":0,"chain_2":0,"eyebrows_3":0,"makeup_3":0,"makeup_2":0,"tshirt_1":57,"makeup_1":0,"bags_2":0,"makeup_4":0,"eyebrows_4":0,"chain_1":0,"lipstick_4":0,"bproof_2":0,"hair_color_1":0,"decals_2":0,"pants_2":4,"age_2":0,"glasses_2":0,"ears_2":0,"arms":11,"lipstick_1":0,"ears_1":-1,"mask_2":0,"sex":0,"lipstick_3":0,"helmet_1":-1,"shoes_2":0,"beard_2":0,"beard_1":0,"lipstick_2":0,"beard_4":0,"glasses_1":0,"bproof_1":0,"mask_1":0,"decals_1":0,"hair_1":0,"eyebrows_2":0,"beard_3":0,"age_1":0,"tshirt_2":0,"skin":0,"torso_2":0,"eyebrows_1":0,"face":0,"shoes_1":10,"pants_1":24}', '{"hair_2":0,"hair_color_2":0,"torso_1":57,"bags_1":0,"helmet_2":0,"chain_2":0,"eyebrows_3":0,"makeup_3":0,"makeup_2":0,"tshirt_1":38,"makeup_1":0,"bags_2":0,"makeup_4":0,"eyebrows_4":0,"chain_1":0,"lipstick_4":0,"bproof_2":0,"hair_color_1":0,"decals_2":0,"pants_2":1,"age_2":0,"glasses_2":0,"ears_2":0,"arms":21,"lipstick_1":0,"ears_1":-1,"mask_2":0,"sex":1,"lipstick_3":0,"helmet_1":-1,"shoes_2":0,"beard_2":0,"beard_1":0,"lipstick_2":0,"beard_4":0,"glasses_1":5,"bproof_1":0,"mask_1":0,"decals_1":1,"hair_1":0,"eyebrows_2":0,"beard_3":0,"age_1":0,"tshirt_2":0,"skin":0,"torso_2":0,"eyebrows_1":0,"face":0,"shoes_1":49,"pants_1":11}'), + ('taxi',3,'uber','Uber',48,'{"hair_2":0,"hair_color_2":0,"torso_1":26,"bags_1":0,"helmet_2":0,"chain_2":0,"eyebrows_3":0,"makeup_3":0,"makeup_2":0,"tshirt_1":57,"makeup_1":0,"bags_2":0,"makeup_4":0,"eyebrows_4":0,"chain_1":0,"lipstick_4":0,"bproof_2":0,"hair_color_1":0,"decals_2":0,"pants_2":4,"age_2":0,"glasses_2":0,"ears_2":0,"arms":11,"lipstick_1":0,"ears_1":-1,"mask_2":0,"sex":0,"lipstick_3":0,"helmet_1":-1,"shoes_2":0,"beard_2":0,"beard_1":0,"lipstick_2":0,"beard_4":0,"glasses_1":0,"bproof_1":0,"mask_1":0,"decals_1":0,"hair_1":0,"eyebrows_2":0,"beard_3":0,"age_1":0,"tshirt_2":0,"skin":0,"torso_2":0,"eyebrows_1":0,"face":0,"shoes_1":10,"pants_1":24}', '{"hair_2":0,"hair_color_2":0,"torso_1":57,"bags_1":0,"helmet_2":0,"chain_2":0,"eyebrows_3":0,"makeup_3":0,"makeup_2":0,"tshirt_1":38,"makeup_1":0,"bags_2":0,"makeup_4":0,"eyebrows_4":0,"chain_1":0,"lipstick_4":0,"bproof_2":0,"hair_color_1":0,"decals_2":0,"pants_2":1,"age_2":0,"glasses_2":0,"ears_2":0,"arms":21,"lipstick_1":0,"ears_1":-1,"mask_2":0,"sex":1,"lipstick_3":0,"helmet_1":-1,"shoes_2":0,"beard_2":0,"beard_1":0,"lipstick_2":0,"beard_4":0,"glasses_1":5,"bproof_1":0,"mask_1":0,"decals_1":1,"hair_1":0,"eyebrows_2":0,"beard_3":0,"age_1":0,"tshirt_2":0,"skin":0,"torso_2":0,"eyebrows_1":0,"face":0,"shoes_1":49,"pants_1":11}'), + ('taxi',4,'boss','Pomo',0,'{"hair_2":0,"hair_color_2":0,"torso_1":29,"bags_1":0,"helmet_2":0,"chain_2":0,"eyebrows_3":0,"makeup_3":0,"makeup_2":0,"tshirt_1":31,"makeup_1":0,"bags_2":0,"makeup_4":0,"eyebrows_4":0,"chain_1":0,"lipstick_4":0,"bproof_2":0,"hair_color_1":0,"decals_2":0,"pants_2":4,"age_2":0,"glasses_2":0,"ears_2":0,"arms":1,"lipstick_1":0,"ears_1":-1,"mask_2":0,"sex":0,"lipstick_3":0,"helmet_1":-1,"shoes_2":0,"beard_2":0,"beard_1":0,"lipstick_2":0,"beard_4":0,"glasses_1":0,"bproof_1":0,"mask_1":0,"decals_1":0,"hair_1":0,"eyebrows_2":0,"beard_3":0,"age_1":0,"tshirt_2":0,"skin":0,"torso_2":4,"eyebrows_1":0,"face":0,"shoes_1":10,"pants_1":24}', '{"hair_2":0,"hair_color_2":0,"torso_1":57,"bags_1":0,"helmet_2":0,"chain_2":0,"eyebrows_3":0,"makeup_3":0,"makeup_2":0,"tshirt_1":38,"makeup_1":0,"bags_2":0,"makeup_4":0,"eyebrows_4":0,"chain_1":0,"lipstick_4":0,"bproof_2":0,"hair_color_1":0,"decals_2":0,"pants_2":1,"age_2":0,"glasses_2":0,"ears_2":0,"arms":21,"lipstick_1":0,"ears_1":-1,"mask_2":0,"sex":1,"lipstick_3":0,"helmet_1":-1,"shoes_2":0,"beard_2":0,"beard_1":0,"lipstick_2":0,"beard_4":0,"glasses_1":5,"bproof_1":0,"mask_1":0,"decals_1":1,"hair_1":0,"eyebrows_2":0,"beard_3":0,"age_1":0,"tshirt_2":0,"skin":0,"torso_2":0,"eyebrows_1":0,"face":0,"shoes_1":49,"pants_1":11}') +; diff --git a/esx_taxijob/localization/fr_esx_taxijob.sql b/esx_taxijob/localization/fr_esx_taxijob.sql new file mode 100644 index 00000000..cefcfd9d --- /dev/null +++ b/esx_taxijob/localization/fr_esx_taxijob.sql @@ -0,0 +1,23 @@ +INSERT INTO `addon_account` (name, label, shared) VALUES + ('society_taxi', 'Taxi', 1) +; + +INSERT INTO `datastore` (name, label, shared) VALUES + ('society_taxi', 'Taxi', 1) +; + +INSERT INTO `addon_inventory` (name, label, shared) VALUES + ('society_taxi', 'Taxi', 1) +; + +INSERT INTO `jobs` (name, label) VALUES + ('taxi', 'Taxi') +; + +INSERT INTO `job_grades` (job_name, grade, name, label, salary, skin_male, skin_female) VALUES + ('taxi',0,'recrue','Recrue',12,'{"hair_2":0,"hair_color_2":0,"torso_1":32,"bags_1":0,"helmet_2":0,"chain_2":0,"eyebrows_3":0,"makeup_3":0,"makeup_2":0,"tshirt_1":31,"makeup_1":0,"bags_2":0,"makeup_4":0,"eyebrows_4":0,"chain_1":0,"lipstick_4":0,"bproof_2":0,"hair_color_1":0,"decals_2":0,"pants_2":0,"age_2":0,"glasses_2":0,"ears_2":0,"arms":27,"lipstick_1":0,"ears_1":-1,"mask_2":0,"sex":0,"lipstick_3":0,"helmet_1":-1,"shoes_2":0,"beard_2":0,"beard_1":0,"lipstick_2":0,"beard_4":0,"glasses_1":0,"bproof_1":0,"mask_1":0,"decals_1":1,"hair_1":0,"eyebrows_2":0,"beard_3":0,"age_1":0,"tshirt_2":0,"skin":0,"torso_2":0,"eyebrows_1":0,"face":0,"shoes_1":10,"pants_1":24}', '{"hair_2":0,"hair_color_2":0,"torso_1":57,"bags_1":0,"helmet_2":0,"chain_2":0,"eyebrows_3":0,"makeup_3":0,"makeup_2":0,"tshirt_1":38,"makeup_1":0,"bags_2":0,"makeup_4":0,"eyebrows_4":0,"chain_1":0,"lipstick_4":0,"bproof_2":0,"hair_color_1":0,"decals_2":0,"pants_2":1,"age_2":0,"glasses_2":0,"ears_2":0,"arms":21,"lipstick_1":0,"ears_1":-1,"mask_2":0,"sex":1,"lipstick_3":0,"helmet_1":-1,"shoes_2":0,"beard_2":0,"beard_1":0,"lipstick_2":0,"beard_4":0,"glasses_1":5,"bproof_1":0,"mask_1":0,"decals_1":1,"hair_1":0,"eyebrows_2":0,"beard_3":0,"age_1":0,"tshirt_2":0,"skin":0,"torso_2":0,"eyebrows_1":0,"face":0,"shoes_1":49,"pants_1":11}'), + ('taxi',1,'novice','Novice',24,'{"hair_2":0,"hair_color_2":0,"torso_1":32,"bags_1":0,"helmet_2":0,"chain_2":0,"eyebrows_3":0,"makeup_3":0,"makeup_2":0,"tshirt_1":31,"makeup_1":0,"bags_2":0,"makeup_4":0,"eyebrows_4":0,"chain_1":0,"lipstick_4":0,"bproof_2":0,"hair_color_1":0,"decals_2":0,"pants_2":0,"age_2":0,"glasses_2":0,"ears_2":0,"arms":27,"lipstick_1":0,"ears_1":-1,"mask_2":0,"sex":0,"lipstick_3":0,"helmet_1":-1,"shoes_2":0,"beard_2":0,"beard_1":0,"lipstick_2":0,"beard_4":0,"glasses_1":0,"bproof_1":0,"mask_1":0,"decals_1":1,"hair_1":0,"eyebrows_2":0,"beard_3":0,"age_1":0,"tshirt_2":0,"skin":0,"torso_2":0,"eyebrows_1":0,"face":0,"shoes_1":10,"pants_1":24}', '{"hair_2":0,"hair_color_2":0,"torso_1":57,"bags_1":0,"helmet_2":0,"chain_2":0,"eyebrows_3":0,"makeup_3":0,"makeup_2":0,"tshirt_1":38,"makeup_1":0,"bags_2":0,"makeup_4":0,"eyebrows_4":0,"chain_1":0,"lipstick_4":0,"bproof_2":0,"hair_color_1":0,"decals_2":0,"pants_2":1,"age_2":0,"glasses_2":0,"ears_2":0,"arms":21,"lipstick_1":0,"ears_1":-1,"mask_2":0,"sex":1,"lipstick_3":0,"helmet_1":-1,"shoes_2":0,"beard_2":0,"beard_1":0,"lipstick_2":0,"beard_4":0,"glasses_1":5,"bproof_1":0,"mask_1":0,"decals_1":1,"hair_1":0,"eyebrows_2":0,"beard_3":0,"age_1":0,"tshirt_2":0,"skin":0,"torso_2":0,"eyebrows_1":0,"face":0,"shoes_1":49,"pants_1":11}'), + ('taxi',2,'experimente','Expérimenté',36,'{"hair_2":0,"hair_color_2":0,"torso_1":26,"bags_1":0,"helmet_2":0,"chain_2":0,"eyebrows_3":0,"makeup_3":0,"makeup_2":0,"tshirt_1":57,"makeup_1":0,"bags_2":0,"makeup_4":0,"eyebrows_4":0,"chain_1":0,"lipstick_4":0,"bproof_2":0,"hair_color_1":0,"decals_2":0,"pants_2":4,"age_2":0,"glasses_2":0,"ears_2":0,"arms":11,"lipstick_1":0,"ears_1":-1,"mask_2":0,"sex":0,"lipstick_3":0,"helmet_1":-1,"shoes_2":0,"beard_2":0,"beard_1":0,"lipstick_2":0,"beard_4":0,"glasses_1":0,"bproof_1":0,"mask_1":0,"decals_1":0,"hair_1":0,"eyebrows_2":0,"beard_3":0,"age_1":0,"tshirt_2":0,"skin":0,"torso_2":0,"eyebrows_1":0,"face":0,"shoes_1":10,"pants_1":24}', '{"hair_2":0,"hair_color_2":0,"torso_1":57,"bags_1":0,"helmet_2":0,"chain_2":0,"eyebrows_3":0,"makeup_3":0,"makeup_2":0,"tshirt_1":38,"makeup_1":0,"bags_2":0,"makeup_4":0,"eyebrows_4":0,"chain_1":0,"lipstick_4":0,"bproof_2":0,"hair_color_1":0,"decals_2":0,"pants_2":1,"age_2":0,"glasses_2":0,"ears_2":0,"arms":21,"lipstick_1":0,"ears_1":-1,"mask_2":0,"sex":1,"lipstick_3":0,"helmet_1":-1,"shoes_2":0,"beard_2":0,"beard_1":0,"lipstick_2":0,"beard_4":0,"glasses_1":5,"bproof_1":0,"mask_1":0,"decals_1":1,"hair_1":0,"eyebrows_2":0,"beard_3":0,"age_1":0,"tshirt_2":0,"skin":0,"torso_2":0,"eyebrows_1":0,"face":0,"shoes_1":49,"pants_1":11}'), + ('taxi',3,'uber','Uber',48,'{"hair_2":0,"hair_color_2":0,"torso_1":26,"bags_1":0,"helmet_2":0,"chain_2":0,"eyebrows_3":0,"makeup_3":0,"makeup_2":0,"tshirt_1":57,"makeup_1":0,"bags_2":0,"makeup_4":0,"eyebrows_4":0,"chain_1":0,"lipstick_4":0,"bproof_2":0,"hair_color_1":0,"decals_2":0,"pants_2":4,"age_2":0,"glasses_2":0,"ears_2":0,"arms":11,"lipstick_1":0,"ears_1":-1,"mask_2":0,"sex":0,"lipstick_3":0,"helmet_1":-1,"shoes_2":0,"beard_2":0,"beard_1":0,"lipstick_2":0,"beard_4":0,"glasses_1":0,"bproof_1":0,"mask_1":0,"decals_1":0,"hair_1":0,"eyebrows_2":0,"beard_3":0,"age_1":0,"tshirt_2":0,"skin":0,"torso_2":0,"eyebrows_1":0,"face":0,"shoes_1":10,"pants_1":24}', '{"hair_2":0,"hair_color_2":0,"torso_1":57,"bags_1":0,"helmet_2":0,"chain_2":0,"eyebrows_3":0,"makeup_3":0,"makeup_2":0,"tshirt_1":38,"makeup_1":0,"bags_2":0,"makeup_4":0,"eyebrows_4":0,"chain_1":0,"lipstick_4":0,"bproof_2":0,"hair_color_1":0,"decals_2":0,"pants_2":1,"age_2":0,"glasses_2":0,"ears_2":0,"arms":21,"lipstick_1":0,"ears_1":-1,"mask_2":0,"sex":1,"lipstick_3":0,"helmet_1":-1,"shoes_2":0,"beard_2":0,"beard_1":0,"lipstick_2":0,"beard_4":0,"glasses_1":5,"bproof_1":0,"mask_1":0,"decals_1":1,"hair_1":0,"eyebrows_2":0,"beard_3":0,"age_1":0,"tshirt_2":0,"skin":0,"torso_2":0,"eyebrows_1":0,"face":0,"shoes_1":49,"pants_1":11}'), + ('taxi',4,'boss','Patron',0,'{"hair_2":0,"hair_color_2":0,"torso_1":29,"bags_1":0,"helmet_2":0,"chain_2":0,"eyebrows_3":0,"makeup_3":0,"makeup_2":0,"tshirt_1":31,"makeup_1":0,"bags_2":0,"makeup_4":0,"eyebrows_4":0,"chain_1":0,"lipstick_4":0,"bproof_2":0,"hair_color_1":0,"decals_2":0,"pants_2":4,"age_2":0,"glasses_2":0,"ears_2":0,"arms":1,"lipstick_1":0,"ears_1":-1,"mask_2":0,"sex":0,"lipstick_3":0,"helmet_1":-1,"shoes_2":0,"beard_2":0,"beard_1":0,"lipstick_2":0,"beard_4":0,"glasses_1":0,"bproof_1":0,"mask_1":0,"decals_1":0,"hair_1":0,"eyebrows_2":0,"beard_3":0,"age_1":0,"tshirt_2":0,"skin":0,"torso_2":4,"eyebrows_1":0,"face":0,"shoes_1":10,"pants_1":24}', '{"hair_2":0,"hair_color_2":0,"torso_1":57,"bags_1":0,"helmet_2":0,"chain_2":0,"eyebrows_3":0,"makeup_3":0,"makeup_2":0,"tshirt_1":38,"makeup_1":0,"bags_2":0,"makeup_4":0,"eyebrows_4":0,"chain_1":0,"lipstick_4":0,"bproof_2":0,"hair_color_1":0,"decals_2":0,"pants_2":1,"age_2":0,"glasses_2":0,"ears_2":0,"arms":21,"lipstick_1":0,"ears_1":-1,"mask_2":0,"sex":1,"lipstick_3":0,"helmet_1":-1,"shoes_2":0,"beard_2":0,"beard_1":0,"lipstick_2":0,"beard_4":0,"glasses_1":5,"bproof_1":0,"mask_1":0,"decals_1":1,"hair_1":0,"eyebrows_2":0,"beard_3":0,"age_1":0,"tshirt_2":0,"skin":0,"torso_2":0,"eyebrows_1":0,"face":0,"shoes_1":49,"pants_1":11}') +; diff --git a/esx_taxijob/localization/hu_esx_taxijob.sql b/esx_taxijob/localization/hu_esx_taxijob.sql new file mode 100644 index 00000000..300b9dee --- /dev/null +++ b/esx_taxijob/localization/hu_esx_taxijob.sql @@ -0,0 +1,23 @@ +INSERT INTO `addon_account` (name, label, shared) VALUES + ('society_taxi', 'Taxi', 1) +; + +INSERT INTO `datastore` (name, label, shared) VALUES + ('society_taxi', 'Taxi', 1) +; + +INSERT INTO `addon_inventory` (name, label, shared) VALUES + ('society_taxi', 'Taxi', 1) +; + +INSERT INTO `jobs` (name, label) VALUES + ('taxi', 'Taxi') +; + +INSERT INTO `job_grades` (job_name, grade, name, label, salary, skin_male, skin_female) VALUES + ('taxi',0,'recrue','Újonc',12,'{"hair_2":0,"hair_color_2":0,"torso_1":32,"bags_1":0,"helmet_2":0,"chain_2":0,"eyebrows_3":0,"makeup_3":0,"makeup_2":0,"tshirt_1":31,"makeup_1":0,"bags_2":0,"makeup_4":0,"eyebrows_4":0,"chain_1":0,"lipstick_4":0,"bproof_2":0,"hair_color_1":0,"decals_2":0,"pants_2":0,"age_2":0,"glasses_2":0,"ears_2":0,"arms":27,"lipstick_1":0,"ears_1":-1,"mask_2":0,"sex":0,"lipstick_3":0,"helmet_1":-1,"shoes_2":0,"beard_2":0,"beard_1":0,"lipstick_2":0,"beard_4":0,"glasses_1":0,"bproof_1":0,"mask_1":0,"decals_1":1,"hair_1":0,"eyebrows_2":0,"beard_3":0,"age_1":0,"tshirt_2":0,"skin":0,"torso_2":0,"eyebrows_1":0,"face":0,"shoes_1":10,"pants_1":24}', '{"hair_2":0,"hair_color_2":0,"torso_1":57,"bags_1":0,"helmet_2":0,"chain_2":0,"eyebrows_3":0,"makeup_3":0,"makeup_2":0,"tshirt_1":38,"makeup_1":0,"bags_2":0,"makeup_4":0,"eyebrows_4":0,"chain_1":0,"lipstick_4":0,"bproof_2":0,"hair_color_1":0,"decals_2":0,"pants_2":1,"age_2":0,"glasses_2":0,"ears_2":0,"arms":21,"lipstick_1":0,"ears_1":-1,"mask_2":0,"sex":1,"lipstick_3":0,"helmet_1":-1,"shoes_2":0,"beard_2":0,"beard_1":0,"lipstick_2":0,"beard_4":0,"glasses_1":5,"bproof_1":0,"mask_1":0,"decals_1":1,"hair_1":0,"eyebrows_2":0,"beard_3":0,"age_1":0,"tshirt_2":0,"skin":0,"torso_2":0,"eyebrows_1":0,"face":0,"shoes_1":49,"pants_1":11}'), + ('taxi',1,'novice','Taxisofőr',24,'{"hair_2":0,"hair_color_2":0,"torso_1":32,"bags_1":0,"helmet_2":0,"chain_2":0,"eyebrows_3":0,"makeup_3":0,"makeup_2":0,"tshirt_1":31,"makeup_1":0,"bags_2":0,"makeup_4":0,"eyebrows_4":0,"chain_1":0,"lipstick_4":0,"bproof_2":0,"hair_color_1":0,"decals_2":0,"pants_2":0,"age_2":0,"glasses_2":0,"ears_2":0,"arms":27,"lipstick_1":0,"ears_1":-1,"mask_2":0,"sex":0,"lipstick_3":0,"helmet_1":-1,"shoes_2":0,"beard_2":0,"beard_1":0,"lipstick_2":0,"beard_4":0,"glasses_1":0,"bproof_1":0,"mask_1":0,"decals_1":1,"hair_1":0,"eyebrows_2":0,"beard_3":0,"age_1":0,"tshirt_2":0,"skin":0,"torso_2":0,"eyebrows_1":0,"face":0,"shoes_1":10,"pants_1":24}', '{"hair_2":0,"hair_color_2":0,"torso_1":57,"bags_1":0,"helmet_2":0,"chain_2":0,"eyebrows_3":0,"makeup_3":0,"makeup_2":0,"tshirt_1":38,"makeup_1":0,"bags_2":0,"makeup_4":0,"eyebrows_4":0,"chain_1":0,"lipstick_4":0,"bproof_2":0,"hair_color_1":0,"decals_2":0,"pants_2":1,"age_2":0,"glasses_2":0,"ears_2":0,"arms":21,"lipstick_1":0,"ears_1":-1,"mask_2":0,"sex":1,"lipstick_3":0,"helmet_1":-1,"shoes_2":0,"beard_2":0,"beard_1":0,"lipstick_2":0,"beard_4":0,"glasses_1":5,"bproof_1":0,"mask_1":0,"decals_1":1,"hair_1":0,"eyebrows_2":0,"beard_3":0,"age_1":0,"tshirt_2":0,"skin":0,"torso_2":0,"eyebrows_1":0,"face":0,"shoes_1":49,"pants_1":11}'), + ('taxi',2,'experimente','Tapasztalt',36,'{"hair_2":0,"hair_color_2":0,"torso_1":26,"bags_1":0,"helmet_2":0,"chain_2":0,"eyebrows_3":0,"makeup_3":0,"makeup_2":0,"tshirt_1":57,"makeup_1":0,"bags_2":0,"makeup_4":0,"eyebrows_4":0,"chain_1":0,"lipstick_4":0,"bproof_2":0,"hair_color_1":0,"decals_2":0,"pants_2":4,"age_2":0,"glasses_2":0,"ears_2":0,"arms":11,"lipstick_1":0,"ears_1":-1,"mask_2":0,"sex":0,"lipstick_3":0,"helmet_1":-1,"shoes_2":0,"beard_2":0,"beard_1":0,"lipstick_2":0,"beard_4":0,"glasses_1":0,"bproof_1":0,"mask_1":0,"decals_1":0,"hair_1":0,"eyebrows_2":0,"beard_3":0,"age_1":0,"tshirt_2":0,"skin":0,"torso_2":0,"eyebrows_1":0,"face":0,"shoes_1":10,"pants_1":24}', '{"hair_2":0,"hair_color_2":0,"torso_1":57,"bags_1":0,"helmet_2":0,"chain_2":0,"eyebrows_3":0,"makeup_3":0,"makeup_2":0,"tshirt_1":38,"makeup_1":0,"bags_2":0,"makeup_4":0,"eyebrows_4":0,"chain_1":0,"lipstick_4":0,"bproof_2":0,"hair_color_1":0,"decals_2":0,"pants_2":1,"age_2":0,"glasses_2":0,"ears_2":0,"arms":21,"lipstick_1":0,"ears_1":-1,"mask_2":0,"sex":1,"lipstick_3":0,"helmet_1":-1,"shoes_2":0,"beard_2":0,"beard_1":0,"lipstick_2":0,"beard_4":0,"glasses_1":5,"bproof_1":0,"mask_1":0,"decals_1":1,"hair_1":0,"eyebrows_2":0,"beard_3":0,"age_1":0,"tshirt_2":0,"skin":0,"torso_2":0,"eyebrows_1":0,"face":0,"shoes_1":49,"pants_1":11}'), + ('taxi',3,'uber','Uber Sofőr',48,'{"hair_2":0,"hair_color_2":0,"torso_1":26,"bags_1":0,"helmet_2":0,"chain_2":0,"eyebrows_3":0,"makeup_3":0,"makeup_2":0,"tshirt_1":57,"makeup_1":0,"bags_2":0,"makeup_4":0,"eyebrows_4":0,"chain_1":0,"lipstick_4":0,"bproof_2":0,"hair_color_1":0,"decals_2":0,"pants_2":4,"age_2":0,"glasses_2":0,"ears_2":0,"arms":11,"lipstick_1":0,"ears_1":-1,"mask_2":0,"sex":0,"lipstick_3":0,"helmet_1":-1,"shoes_2":0,"beard_2":0,"beard_1":0,"lipstick_2":0,"beard_4":0,"glasses_1":0,"bproof_1":0,"mask_1":0,"decals_1":0,"hair_1":0,"eyebrows_2":0,"beard_3":0,"age_1":0,"tshirt_2":0,"skin":0,"torso_2":0,"eyebrows_1":0,"face":0,"shoes_1":10,"pants_1":24}', '{"hair_2":0,"hair_color_2":0,"torso_1":57,"bags_1":0,"helmet_2":0,"chain_2":0,"eyebrows_3":0,"makeup_3":0,"makeup_2":0,"tshirt_1":38,"makeup_1":0,"bags_2":0,"makeup_4":0,"eyebrows_4":0,"chain_1":0,"lipstick_4":0,"bproof_2":0,"hair_color_1":0,"decals_2":0,"pants_2":1,"age_2":0,"glasses_2":0,"ears_2":0,"arms":21,"lipstick_1":0,"ears_1":-1,"mask_2":0,"sex":1,"lipstick_3":0,"helmet_1":-1,"shoes_2":0,"beard_2":0,"beard_1":0,"lipstick_2":0,"beard_4":0,"glasses_1":5,"bproof_1":0,"mask_1":0,"decals_1":1,"hair_1":0,"eyebrows_2":0,"beard_3":0,"age_1":0,"tshirt_2":0,"skin":0,"torso_2":0,"eyebrows_1":0,"face":0,"shoes_1":49,"pants_1":11}'), + ('taxi',4,'boss','Vezető Sofőr',0,'{"hair_2":0,"hair_color_2":0,"torso_1":29,"bags_1":0,"helmet_2":0,"chain_2":0,"eyebrows_3":0,"makeup_3":0,"makeup_2":0,"tshirt_1":31,"makeup_1":0,"bags_2":0,"makeup_4":0,"eyebrows_4":0,"chain_1":0,"lipstick_4":0,"bproof_2":0,"hair_color_1":0,"decals_2":0,"pants_2":4,"age_2":0,"glasses_2":0,"ears_2":0,"arms":1,"lipstick_1":0,"ears_1":-1,"mask_2":0,"sex":0,"lipstick_3":0,"helmet_1":-1,"shoes_2":0,"beard_2":0,"beard_1":0,"lipstick_2":0,"beard_4":0,"glasses_1":0,"bproof_1":0,"mask_1":0,"decals_1":0,"hair_1":0,"eyebrows_2":0,"beard_3":0,"age_1":0,"tshirt_2":0,"skin":0,"torso_2":4,"eyebrows_1":0,"face":0,"shoes_1":10,"pants_1":24}', '{"hair_2":0,"hair_color_2":0,"torso_1":57,"bags_1":0,"helmet_2":0,"chain_2":0,"eyebrows_3":0,"makeup_3":0,"makeup_2":0,"tshirt_1":38,"makeup_1":0,"bags_2":0,"makeup_4":0,"eyebrows_4":0,"chain_1":0,"lipstick_4":0,"bproof_2":0,"hair_color_1":0,"decals_2":0,"pants_2":1,"age_2":0,"glasses_2":0,"ears_2":0,"arms":21,"lipstick_1":0,"ears_1":-1,"mask_2":0,"sex":1,"lipstick_3":0,"helmet_1":-1,"shoes_2":0,"beard_2":0,"beard_1":0,"lipstick_2":0,"beard_4":0,"glasses_1":5,"bproof_1":0,"mask_1":0,"decals_1":1,"hair_1":0,"eyebrows_2":0,"beard_3":0,"age_1":0,"tshirt_2":0,"skin":0,"torso_2":0,"eyebrows_1":0,"face":0,"shoes_1":49,"pants_1":11}') +; diff --git a/esx_taxijob/localization/it_esx_taxijob.sql b/esx_taxijob/localization/it_esx_taxijob.sql new file mode 100644 index 00000000..66959ac0 --- /dev/null +++ b/esx_taxijob/localization/it_esx_taxijob.sql @@ -0,0 +1,23 @@ +INSERT INTO `addon_account` (name, label, shared) VALUES + ('society_taxi', 'Taxi', 1) +; + +INSERT INTO `datastore` (name, label, shared) VALUES + ('society_taxi', 'Taxi', 1) +; + +INSERT INTO `addon_inventory` (name, label, shared) VALUES + ('society_taxi', 'Taxi', 1) +; + +INSERT INTO `jobs` (name, label) VALUES + ('taxi', 'Taxi') +; + +INSERT INTO `job_grades` (job_name, grade, name, label, salary, skin_male, skin_female) VALUES + ('taxi',0,'recrue','Recluta',12,'{"hair_2":0,"hair_color_2":0,"torso_1":32,"bags_1":0,"helmet_2":0,"chain_2":0,"eyebrows_3":0,"makeup_3":0,"makeup_2":0,"tshirt_1":31,"makeup_1":0,"bags_2":0,"makeup_4":0,"eyebrows_4":0,"chain_1":0,"lipstick_4":0,"bproof_2":0,"hair_color_1":0,"decals_2":0,"pants_2":0,"age_2":0,"glasses_2":0,"ears_2":0,"arms":27,"lipstick_1":0,"ears_1":-1,"mask_2":0,"sex":0,"lipstick_3":0,"helmet_1":-1,"shoes_2":0,"beard_2":0,"beard_1":0,"lipstick_2":0,"beard_4":0,"glasses_1":0,"bproof_1":0,"mask_1":0,"decals_1":1,"hair_1":0,"eyebrows_2":0,"beard_3":0,"age_1":0,"tshirt_2":0,"skin":0,"torso_2":0,"eyebrows_1":0,"face":0,"shoes_1":10,"pants_1":24}', '{"hair_2":0,"hair_color_2":0,"torso_1":57,"bags_1":0,"helmet_2":0,"chain_2":0,"eyebrows_3":0,"makeup_3":0,"makeup_2":0,"tshirt_1":38,"makeup_1":0,"bags_2":0,"makeup_4":0,"eyebrows_4":0,"chain_1":0,"lipstick_4":0,"bproof_2":0,"hair_color_1":0,"decals_2":0,"pants_2":1,"age_2":0,"glasses_2":0,"ears_2":0,"arms":21,"lipstick_1":0,"ears_1":-1,"mask_2":0,"sex":1,"lipstick_3":0,"helmet_1":-1,"shoes_2":0,"beard_2":0,"beard_1":0,"lipstick_2":0,"beard_4":0,"glasses_1":5,"bproof_1":0,"mask_1":0,"decals_1":1,"hair_1":0,"eyebrows_2":0,"beard_3":0,"age_1":0,"tshirt_2":0,"skin":0,"torso_2":0,"eyebrows_1":0,"face":0,"shoes_1":49,"pants_1":11}'), + ('taxi',1,'novice','Tassista',24,'{"hair_2":0,"hair_color_2":0,"torso_1":32,"bags_1":0,"helmet_2":0,"chain_2":0,"eyebrows_3":0,"makeup_3":0,"makeup_2":0,"tshirt_1":31,"makeup_1":0,"bags_2":0,"makeup_4":0,"eyebrows_4":0,"chain_1":0,"lipstick_4":0,"bproof_2":0,"hair_color_1":0,"decals_2":0,"pants_2":0,"age_2":0,"glasses_2":0,"ears_2":0,"arms":27,"lipstick_1":0,"ears_1":-1,"mask_2":0,"sex":0,"lipstick_3":0,"helmet_1":-1,"shoes_2":0,"beard_2":0,"beard_1":0,"lipstick_2":0,"beard_4":0,"glasses_1":0,"bproof_1":0,"mask_1":0,"decals_1":1,"hair_1":0,"eyebrows_2":0,"beard_3":0,"age_1":0,"tshirt_2":0,"skin":0,"torso_2":0,"eyebrows_1":0,"face":0,"shoes_1":10,"pants_1":24}', '{"hair_2":0,"hair_color_2":0,"torso_1":57,"bags_1":0,"helmet_2":0,"chain_2":0,"eyebrows_3":0,"makeup_3":0,"makeup_2":0,"tshirt_1":38,"makeup_1":0,"bags_2":0,"makeup_4":0,"eyebrows_4":0,"chain_1":0,"lipstick_4":0,"bproof_2":0,"hair_color_1":0,"decals_2":0,"pants_2":1,"age_2":0,"glasses_2":0,"ears_2":0,"arms":21,"lipstick_1":0,"ears_1":-1,"mask_2":0,"sex":1,"lipstick_3":0,"helmet_1":-1,"shoes_2":0,"beard_2":0,"beard_1":0,"lipstick_2":0,"beard_4":0,"glasses_1":5,"bproof_1":0,"mask_1":0,"decals_1":1,"hair_1":0,"eyebrows_2":0,"beard_3":0,"age_1":0,"tshirt_2":0,"skin":0,"torso_2":0,"eyebrows_1":0,"face":0,"shoes_1":49,"pants_1":11}'), + ('taxi',2,'experimente','Tassista Anziano',36,'{"hair_2":0,"hair_color_2":0,"torso_1":26,"bags_1":0,"helmet_2":0,"chain_2":0,"eyebrows_3":0,"makeup_3":0,"makeup_2":0,"tshirt_1":57,"makeup_1":0,"bags_2":0,"makeup_4":0,"eyebrows_4":0,"chain_1":0,"lipstick_4":0,"bproof_2":0,"hair_color_1":0,"decals_2":0,"pants_2":4,"age_2":0,"glasses_2":0,"ears_2":0,"arms":11,"lipstick_1":0,"ears_1":-1,"mask_2":0,"sex":0,"lipstick_3":0,"helmet_1":-1,"shoes_2":0,"beard_2":0,"beard_1":0,"lipstick_2":0,"beard_4":0,"glasses_1":0,"bproof_1":0,"mask_1":0,"decals_1":0,"hair_1":0,"eyebrows_2":0,"beard_3":0,"age_1":0,"tshirt_2":0,"skin":0,"torso_2":0,"eyebrows_1":0,"face":0,"shoes_1":10,"pants_1":24}', '{"hair_2":0,"hair_color_2":0,"torso_1":57,"bags_1":0,"helmet_2":0,"chain_2":0,"eyebrows_3":0,"makeup_3":0,"makeup_2":0,"tshirt_1":38,"makeup_1":0,"bags_2":0,"makeup_4":0,"eyebrows_4":0,"chain_1":0,"lipstick_4":0,"bproof_2":0,"hair_color_1":0,"decals_2":0,"pants_2":1,"age_2":0,"glasses_2":0,"ears_2":0,"arms":21,"lipstick_1":0,"ears_1":-1,"mask_2":0,"sex":1,"lipstick_3":0,"helmet_1":-1,"shoes_2":0,"beard_2":0,"beard_1":0,"lipstick_2":0,"beard_4":0,"glasses_1":5,"bproof_1":0,"mask_1":0,"decals_1":1,"hair_1":0,"eyebrows_2":0,"beard_3":0,"age_1":0,"tshirt_2":0,"skin":0,"torso_2":0,"eyebrows_1":0,"face":0,"shoes_1":49,"pants_1":11}'), + ('taxi',3,'uber','Responsabile',48,'{"hair_2":0,"hair_color_2":0,"torso_1":26,"bags_1":0,"helmet_2":0,"chain_2":0,"eyebrows_3":0,"makeup_3":0,"makeup_2":0,"tshirt_1":57,"makeup_1":0,"bags_2":0,"makeup_4":0,"eyebrows_4":0,"chain_1":0,"lipstick_4":0,"bproof_2":0,"hair_color_1":0,"decals_2":0,"pants_2":4,"age_2":0,"glasses_2":0,"ears_2":0,"arms":11,"lipstick_1":0,"ears_1":-1,"mask_2":0,"sex":0,"lipstick_3":0,"helmet_1":-1,"shoes_2":0,"beard_2":0,"beard_1":0,"lipstick_2":0,"beard_4":0,"glasses_1":0,"bproof_1":0,"mask_1":0,"decals_1":0,"hair_1":0,"eyebrows_2":0,"beard_3":0,"age_1":0,"tshirt_2":0,"skin":0,"torso_2":0,"eyebrows_1":0,"face":0,"shoes_1":10,"pants_1":24}', '{"hair_2":0,"hair_color_2":0,"torso_1":57,"bags_1":0,"helmet_2":0,"chain_2":0,"eyebrows_3":0,"makeup_3":0,"makeup_2":0,"tshirt_1":38,"makeup_1":0,"bags_2":0,"makeup_4":0,"eyebrows_4":0,"chain_1":0,"lipstick_4":0,"bproof_2":0,"hair_color_1":0,"decals_2":0,"pants_2":1,"age_2":0,"glasses_2":0,"ears_2":0,"arms":21,"lipstick_1":0,"ears_1":-1,"mask_2":0,"sex":1,"lipstick_3":0,"helmet_1":-1,"shoes_2":0,"beard_2":0,"beard_1":0,"lipstick_2":0,"beard_4":0,"glasses_1":5,"bproof_1":0,"mask_1":0,"decals_1":1,"hair_1":0,"eyebrows_2":0,"beard_3":0,"age_1":0,"tshirt_2":0,"skin":0,"torso_2":0,"eyebrows_1":0,"face":0,"shoes_1":49,"pants_1":11}'), + ('taxi',4,'boss','Direttore',0,'{"hair_2":0,"hair_color_2":0,"torso_1":29,"bags_1":0,"helmet_2":0,"chain_2":0,"eyebrows_3":0,"makeup_3":0,"makeup_2":0,"tshirt_1":31,"makeup_1":0,"bags_2":0,"makeup_4":0,"eyebrows_4":0,"chain_1":0,"lipstick_4":0,"bproof_2":0,"hair_color_1":0,"decals_2":0,"pants_2":4,"age_2":0,"glasses_2":0,"ears_2":0,"arms":1,"lipstick_1":0,"ears_1":-1,"mask_2":0,"sex":0,"lipstick_3":0,"helmet_1":-1,"shoes_2":0,"beard_2":0,"beard_1":0,"lipstick_2":0,"beard_4":0,"glasses_1":0,"bproof_1":0,"mask_1":0,"decals_1":0,"hair_1":0,"eyebrows_2":0,"beard_3":0,"age_1":0,"tshirt_2":0,"skin":0,"torso_2":4,"eyebrows_1":0,"face":0,"shoes_1":10,"pants_1":24}', '{"hair_2":0,"hair_color_2":0,"torso_1":57,"bags_1":0,"helmet_2":0,"chain_2":0,"eyebrows_3":0,"makeup_3":0,"makeup_2":0,"tshirt_1":38,"makeup_1":0,"bags_2":0,"makeup_4":0,"eyebrows_4":0,"chain_1":0,"lipstick_4":0,"bproof_2":0,"hair_color_1":0,"decals_2":0,"pants_2":1,"age_2":0,"glasses_2":0,"ears_2":0,"arms":21,"lipstick_1":0,"ears_1":-1,"mask_2":0,"sex":1,"lipstick_3":0,"helmet_1":-1,"shoes_2":0,"beard_2":0,"beard_1":0,"lipstick_2":0,"beard_4":0,"glasses_1":5,"bproof_1":0,"mask_1":0,"decals_1":1,"hair_1":0,"eyebrows_2":0,"beard_3":0,"age_1":0,"tshirt_2":0,"skin":0,"torso_2":0,"eyebrows_1":0,"face":0,"shoes_1":49,"pants_1":11}') +; diff --git a/esx_taxijob/localization/nl_esx_taxijob.sql b/esx_taxijob/localization/nl_esx_taxijob.sql new file mode 100644 index 00000000..d62821b2 --- /dev/null +++ b/esx_taxijob/localization/nl_esx_taxijob.sql @@ -0,0 +1,23 @@ +INSERT INTO `addon_account` (name, label, shared) VALUES + ('society_taxi', 'Taxi', 1) +; + +INSERT INTO `datastore` (name, label, shared) VALUES + ('society_taxi', 'Taxi', 1) +; + +INSERT INTO `addon_inventory` (name, label, shared) VALUES + ('society_taxi', 'Taxi', 1) +; + +INSERT INTO `jobs` (name, label) VALUES + ('taxi', 'Taxi') +; + +INSERT INTO `job_grades` (job_name, grade, name, label, salary, skin_male, skin_female) VALUES + ('taxi',0,'recrue','Werknemer',12,'{"hair_2":0,"hair_color_2":0,"torso_1":32,"bags_1":0,"helmet_2":0,"chain_2":0,"eyebrows_3":0,"makeup_3":0,"makeup_2":0,"tshirt_1":31,"makeup_1":0,"bags_2":0,"makeup_4":0,"eyebrows_4":0,"chain_1":0,"lipstick_4":0,"bproof_2":0,"hair_color_1":0,"decals_2":0,"pants_2":0,"age_2":0,"glasses_2":0,"ears_2":0,"arms":27,"lipstick_1":0,"ears_1":-1,"mask_2":0,"sex":0,"lipstick_3":0,"helmet_1":-1,"shoes_2":0,"beard_2":0,"beard_1":0,"lipstick_2":0,"beard_4":0,"glasses_1":0,"bproof_1":0,"mask_1":0,"decals_1":1,"hair_1":0,"eyebrows_2":0,"beard_3":0,"age_1":0,"tshirt_2":0,"skin":0,"torso_2":0,"eyebrows_1":0,"face":0,"shoes_1":10,"pants_1":24}', '{"hair_2":0,"hair_color_2":0,"torso_1":57,"bags_1":0,"helmet_2":0,"chain_2":0,"eyebrows_3":0,"makeup_3":0,"makeup_2":0,"tshirt_1":38,"makeup_1":0,"bags_2":0,"makeup_4":0,"eyebrows_4":0,"chain_1":0,"lipstick_4":0,"bproof_2":0,"hair_color_1":0,"decals_2":0,"pants_2":1,"age_2":0,"glasses_2":0,"ears_2":0,"arms":21,"lipstick_1":0,"ears_1":-1,"mask_2":0,"sex":1,"lipstick_3":0,"helmet_1":-1,"shoes_2":0,"beard_2":0,"beard_1":0,"lipstick_2":0,"beard_4":0,"glasses_1":5,"bproof_1":0,"mask_1":0,"decals_1":1,"hair_1":0,"eyebrows_2":0,"beard_3":0,"age_1":0,"tshirt_2":0,"skin":0,"torso_2":0,"eyebrows_1":0,"face":0,"shoes_1":49,"pants_1":11}'), + ('taxi',1,'novice','Chauffeur',24,'{"hair_2":0,"hair_color_2":0,"torso_1":32,"bags_1":0,"helmet_2":0,"chain_2":0,"eyebrows_3":0,"makeup_3":0,"makeup_2":0,"tshirt_1":31,"makeup_1":0,"bags_2":0,"makeup_4":0,"eyebrows_4":0,"chain_1":0,"lipstick_4":0,"bproof_2":0,"hair_color_1":0,"decals_2":0,"pants_2":0,"age_2":0,"glasses_2":0,"ears_2":0,"arms":27,"lipstick_1":0,"ears_1":-1,"mask_2":0,"sex":0,"lipstick_3":0,"helmet_1":-1,"shoes_2":0,"beard_2":0,"beard_1":0,"lipstick_2":0,"beard_4":0,"glasses_1":0,"bproof_1":0,"mask_1":0,"decals_1":1,"hair_1":0,"eyebrows_2":0,"beard_3":0,"age_1":0,"tshirt_2":0,"skin":0,"torso_2":0,"eyebrows_1":0,"face":0,"shoes_1":10,"pants_1":24}', '{"hair_2":0,"hair_color_2":0,"torso_1":57,"bags_1":0,"helmet_2":0,"chain_2":0,"eyebrows_3":0,"makeup_3":0,"makeup_2":0,"tshirt_1":38,"makeup_1":0,"bags_2":0,"makeup_4":0,"eyebrows_4":0,"chain_1":0,"lipstick_4":0,"bproof_2":0,"hair_color_1":0,"decals_2":0,"pants_2":1,"age_2":0,"glasses_2":0,"ears_2":0,"arms":21,"lipstick_1":0,"ears_1":-1,"mask_2":0,"sex":1,"lipstick_3":0,"helmet_1":-1,"shoes_2":0,"beard_2":0,"beard_1":0,"lipstick_2":0,"beard_4":0,"glasses_1":5,"bproof_1":0,"mask_1":0,"decals_1":1,"hair_1":0,"eyebrows_2":0,"beard_3":0,"age_1":0,"tshirt_2":0,"skin":0,"torso_2":0,"eyebrows_1":0,"face":0,"shoes_1":49,"pants_1":11}'), + ('taxi',2,'experimente','Ervaren Chauffeur',36,'{"hair_2":0,"hair_color_2":0,"torso_1":26,"bags_1":0,"helmet_2":0,"chain_2":0,"eyebrows_3":0,"makeup_3":0,"makeup_2":0,"tshirt_1":57,"makeup_1":0,"bags_2":0,"makeup_4":0,"eyebrows_4":0,"chain_1":0,"lipstick_4":0,"bproof_2":0,"hair_color_1":0,"decals_2":0,"pants_2":4,"age_2":0,"glasses_2":0,"ears_2":0,"arms":11,"lipstick_1":0,"ears_1":-1,"mask_2":0,"sex":0,"lipstick_3":0,"helmet_1":-1,"shoes_2":0,"beard_2":0,"beard_1":0,"lipstick_2":0,"beard_4":0,"glasses_1":0,"bproof_1":0,"mask_1":0,"decals_1":0,"hair_1":0,"eyebrows_2":0,"beard_3":0,"age_1":0,"tshirt_2":0,"skin":0,"torso_2":0,"eyebrows_1":0,"face":0,"shoes_1":10,"pants_1":24}', '{"hair_2":0,"hair_color_2":0,"torso_1":57,"bags_1":0,"helmet_2":0,"chain_2":0,"eyebrows_3":0,"makeup_3":0,"makeup_2":0,"tshirt_1":38,"makeup_1":0,"bags_2":0,"makeup_4":0,"eyebrows_4":0,"chain_1":0,"lipstick_4":0,"bproof_2":0,"hair_color_1":0,"decals_2":0,"pants_2":1,"age_2":0,"glasses_2":0,"ears_2":0,"arms":21,"lipstick_1":0,"ears_1":-1,"mask_2":0,"sex":1,"lipstick_3":0,"helmet_1":-1,"shoes_2":0,"beard_2":0,"beard_1":0,"lipstick_2":0,"beard_4":0,"glasses_1":5,"bproof_1":0,"mask_1":0,"decals_1":1,"hair_1":0,"eyebrows_2":0,"beard_3":0,"age_1":0,"tshirt_2":0,"skin":0,"torso_2":0,"eyebrows_1":0,"face":0,"shoes_1":49,"pants_1":11}'), + ('taxi',3,'uber','Uber',48,'{"hair_2":0,"hair_color_2":0,"torso_1":26,"bags_1":0,"helmet_2":0,"chain_2":0,"eyebrows_3":0,"makeup_3":0,"makeup_2":0,"tshirt_1":57,"makeup_1":0,"bags_2":0,"makeup_4":0,"eyebrows_4":0,"chain_1":0,"lipstick_4":0,"bproof_2":0,"hair_color_1":0,"decals_2":0,"pants_2":4,"age_2":0,"glasses_2":0,"ears_2":0,"arms":11,"lipstick_1":0,"ears_1":-1,"mask_2":0,"sex":0,"lipstick_3":0,"helmet_1":-1,"shoes_2":0,"beard_2":0,"beard_1":0,"lipstick_2":0,"beard_4":0,"glasses_1":0,"bproof_1":0,"mask_1":0,"decals_1":0,"hair_1":0,"eyebrows_2":0,"beard_3":0,"age_1":0,"tshirt_2":0,"skin":0,"torso_2":0,"eyebrows_1":0,"face":0,"shoes_1":10,"pants_1":24}', '{"hair_2":0,"hair_color_2":0,"torso_1":57,"bags_1":0,"helmet_2":0,"chain_2":0,"eyebrows_3":0,"makeup_3":0,"makeup_2":0,"tshirt_1":38,"makeup_1":0,"bags_2":0,"makeup_4":0,"eyebrows_4":0,"chain_1":0,"lipstick_4":0,"bproof_2":0,"hair_color_1":0,"decals_2":0,"pants_2":1,"age_2":0,"glasses_2":0,"ears_2":0,"arms":21,"lipstick_1":0,"ears_1":-1,"mask_2":0,"sex":1,"lipstick_3":0,"helmet_1":-1,"shoes_2":0,"beard_2":0,"beard_1":0,"lipstick_2":0,"beard_4":0,"glasses_1":5,"bproof_1":0,"mask_1":0,"decals_1":1,"hair_1":0,"eyebrows_2":0,"beard_3":0,"age_1":0,"tshirt_2":0,"skin":0,"torso_2":0,"eyebrows_1":0,"face":0,"shoes_1":49,"pants_1":11}'), + ('taxi',4,'boss','Baas',0,'{"hair_2":0,"hair_color_2":0,"torso_1":29,"bags_1":0,"helmet_2":0,"chain_2":0,"eyebrows_3":0,"makeup_3":0,"makeup_2":0,"tshirt_1":31,"makeup_1":0,"bags_2":0,"makeup_4":0,"eyebrows_4":0,"chain_1":0,"lipstick_4":0,"bproof_2":0,"hair_color_1":0,"decals_2":0,"pants_2":4,"age_2":0,"glasses_2":0,"ears_2":0,"arms":1,"lipstick_1":0,"ears_1":-1,"mask_2":0,"sex":0,"lipstick_3":0,"helmet_1":-1,"shoes_2":0,"beard_2":0,"beard_1":0,"lipstick_2":0,"beard_4":0,"glasses_1":0,"bproof_1":0,"mask_1":0,"decals_1":0,"hair_1":0,"eyebrows_2":0,"beard_3":0,"age_1":0,"tshirt_2":0,"skin":0,"torso_2":4,"eyebrows_1":0,"face":0,"shoes_1":10,"pants_1":24}', '{"hair_2":0,"hair_color_2":0,"torso_1":57,"bags_1":0,"helmet_2":0,"chain_2":0,"eyebrows_3":0,"makeup_3":0,"makeup_2":0,"tshirt_1":38,"makeup_1":0,"bags_2":0,"makeup_4":0,"eyebrows_4":0,"chain_1":0,"lipstick_4":0,"bproof_2":0,"hair_color_1":0,"decals_2":0,"pants_2":1,"age_2":0,"glasses_2":0,"ears_2":0,"arms":21,"lipstick_1":0,"ears_1":-1,"mask_2":0,"sex":1,"lipstick_3":0,"helmet_1":-1,"shoes_2":0,"beard_2":0,"beard_1":0,"lipstick_2":0,"beard_4":0,"glasses_1":5,"bproof_1":0,"mask_1":0,"decals_1":1,"hair_1":0,"eyebrows_2":0,"beard_3":0,"age_1":0,"tshirt_2":0,"skin":0,"torso_2":0,"eyebrows_1":0,"face":0,"shoes_1":49,"pants_1":11}') +; diff --git a/esx_taxijob/localization/pl_esx_taxijob.sql b/esx_taxijob/localization/pl_esx_taxijob.sql new file mode 100644 index 00000000..207f9474 --- /dev/null +++ b/esx_taxijob/localization/pl_esx_taxijob.sql @@ -0,0 +1,23 @@ +INSERT INTO `addon_account` (name, label, shared) VALUES + ('society_taxi', 'Taxi', 1) +; + +INSERT INTO `datastore` (name, label, shared) VALUES + ('society_taxi', 'Taxi', 1) +; + +INSERT INTO `addon_inventory` (name, label, shared) VALUES + ('society_taxi', 'Taxi', 1) +; + +INSERT INTO `jobs` (name, label) VALUES + ('taxi', 'Taxi') +; + +INSERT INTO `job_grades` (job_name, grade, name, label, salary, skin_male, skin_female) VALUES + ('taxi',0,'recrue','Tymczasowy',12,'{"hair_2":0,"hair_color_2":0,"torso_1":32,"bags_1":0,"helmet_2":0,"chain_2":0,"eyebrows_3":0,"makeup_3":0,"makeup_2":0,"tshirt_1":31,"makeup_1":0,"bags_2":0,"makeup_4":0,"eyebrows_4":0,"chain_1":0,"lipstick_4":0,"bproof_2":0,"hair_color_1":0,"decals_2":0,"pants_2":0,"age_2":0,"glasses_2":0,"ears_2":0,"arms":27,"lipstick_1":0,"ears_1":-1,"mask_2":0,"sex":0,"lipstick_3":0,"helmet_1":-1,"shoes_2":0,"beard_2":0,"beard_1":0,"lipstick_2":0,"beard_4":0,"glasses_1":0,"bproof_1":0,"mask_1":0,"decals_1":1,"hair_1":0,"eyebrows_2":0,"beard_3":0,"age_1":0,"tshirt_2":0,"skin":0,"torso_2":0,"eyebrows_1":0,"face":0,"shoes_1":10,"pants_1":24}', '{"hair_2":0,"hair_color_2":0,"torso_1":57,"bags_1":0,"helmet_2":0,"chain_2":0,"eyebrows_3":0,"makeup_3":0,"makeup_2":0,"tshirt_1":38,"makeup_1":0,"bags_2":0,"makeup_4":0,"eyebrows_4":0,"chain_1":0,"lipstick_4":0,"bproof_2":0,"hair_color_1":0,"decals_2":0,"pants_2":1,"age_2":0,"glasses_2":0,"ears_2":0,"arms":21,"lipstick_1":0,"ears_1":-1,"mask_2":0,"sex":1,"lipstick_3":0,"helmet_1":-1,"shoes_2":0,"beard_2":0,"beard_1":0,"lipstick_2":0,"beard_4":0,"glasses_1":5,"bproof_1":0,"mask_1":0,"decals_1":1,"hair_1":0,"eyebrows_2":0,"beard_3":0,"age_1":0,"tshirt_2":0,"skin":0,"torso_2":0,"eyebrows_1":0,"face":0,"shoes_1":49,"pants_1":11}'), + ('taxi',1,'novice','Nowy',24,'{"hair_2":0,"hair_color_2":0,"torso_1":32,"bags_1":0,"helmet_2":0,"chain_2":0,"eyebrows_3":0,"makeup_3":0,"makeup_2":0,"tshirt_1":31,"makeup_1":0,"bags_2":0,"makeup_4":0,"eyebrows_4":0,"chain_1":0,"lipstick_4":0,"bproof_2":0,"hair_color_1":0,"decals_2":0,"pants_2":0,"age_2":0,"glasses_2":0,"ears_2":0,"arms":27,"lipstick_1":0,"ears_1":-1,"mask_2":0,"sex":0,"lipstick_3":0,"helmet_1":-1,"shoes_2":0,"beard_2":0,"beard_1":0,"lipstick_2":0,"beard_4":0,"glasses_1":0,"bproof_1":0,"mask_1":0,"decals_1":1,"hair_1":0,"eyebrows_2":0,"beard_3":0,"age_1":0,"tshirt_2":0,"skin":0,"torso_2":0,"eyebrows_1":0,"face":0,"shoes_1":10,"pants_1":24}', '{"hair_2":0,"hair_color_2":0,"torso_1":57,"bags_1":0,"helmet_2":0,"chain_2":0,"eyebrows_3":0,"makeup_3":0,"makeup_2":0,"tshirt_1":38,"makeup_1":0,"bags_2":0,"makeup_4":0,"eyebrows_4":0,"chain_1":0,"lipstick_4":0,"bproof_2":0,"hair_color_1":0,"decals_2":0,"pants_2":1,"age_2":0,"glasses_2":0,"ears_2":0,"arms":21,"lipstick_1":0,"ears_1":-1,"mask_2":0,"sex":1,"lipstick_3":0,"helmet_1":-1,"shoes_2":0,"beard_2":0,"beard_1":0,"lipstick_2":0,"beard_4":0,"glasses_1":5,"bproof_1":0,"mask_1":0,"decals_1":1,"hair_1":0,"eyebrows_2":0,"beard_3":0,"age_1":0,"tshirt_2":0,"skin":0,"torso_2":0,"eyebrows_1":0,"face":0,"shoes_1":49,"pants_1":11}'), + ('taxi',2,'experimente','Etatowy',36,'{"hair_2":0,"hair_color_2":0,"torso_1":26,"bags_1":0,"helmet_2":0,"chain_2":0,"eyebrows_3":0,"makeup_3":0,"makeup_2":0,"tshirt_1":57,"makeup_1":0,"bags_2":0,"makeup_4":0,"eyebrows_4":0,"chain_1":0,"lipstick_4":0,"bproof_2":0,"hair_color_1":0,"decals_2":0,"pants_2":4,"age_2":0,"glasses_2":0,"ears_2":0,"arms":11,"lipstick_1":0,"ears_1":-1,"mask_2":0,"sex":0,"lipstick_3":0,"helmet_1":-1,"shoes_2":0,"beard_2":0,"beard_1":0,"lipstick_2":0,"beard_4":0,"glasses_1":0,"bproof_1":0,"mask_1":0,"decals_1":0,"hair_1":0,"eyebrows_2":0,"beard_3":0,"age_1":0,"tshirt_2":0,"skin":0,"torso_2":0,"eyebrows_1":0,"face":0,"shoes_1":10,"pants_1":24}', '{"hair_2":0,"hair_color_2":0,"torso_1":57,"bags_1":0,"helmet_2":0,"chain_2":0,"eyebrows_3":0,"makeup_3":0,"makeup_2":0,"tshirt_1":38,"makeup_1":0,"bags_2":0,"makeup_4":0,"eyebrows_4":0,"chain_1":0,"lipstick_4":0,"bproof_2":0,"hair_color_1":0,"decals_2":0,"pants_2":1,"age_2":0,"glasses_2":0,"ears_2":0,"arms":21,"lipstick_1":0,"ears_1":-1,"mask_2":0,"sex":1,"lipstick_3":0,"helmet_1":-1,"shoes_2":0,"beard_2":0,"beard_1":0,"lipstick_2":0,"beard_4":0,"glasses_1":5,"bproof_1":0,"mask_1":0,"decals_1":1,"hair_1":0,"eyebrows_2":0,"beard_3":0,"age_1":0,"tshirt_2":0,"skin":0,"torso_2":0,"eyebrows_1":0,"face":0,"shoes_1":49,"pants_1":11}'), + ('taxi',3,'uber','Uber',48,'{"hair_2":0,"hair_color_2":0,"torso_1":26,"bags_1":0,"helmet_2":0,"chain_2":0,"eyebrows_3":0,"makeup_3":0,"makeup_2":0,"tshirt_1":57,"makeup_1":0,"bags_2":0,"makeup_4":0,"eyebrows_4":0,"chain_1":0,"lipstick_4":0,"bproof_2":0,"hair_color_1":0,"decals_2":0,"pants_2":4,"age_2":0,"glasses_2":0,"ears_2":0,"arms":11,"lipstick_1":0,"ears_1":-1,"mask_2":0,"sex":0,"lipstick_3":0,"helmet_1":-1,"shoes_2":0,"beard_2":0,"beard_1":0,"lipstick_2":0,"beard_4":0,"glasses_1":0,"bproof_1":0,"mask_1":0,"decals_1":0,"hair_1":0,"eyebrows_2":0,"beard_3":0,"age_1":0,"tshirt_2":0,"skin":0,"torso_2":0,"eyebrows_1":0,"face":0,"shoes_1":10,"pants_1":24}', '{"hair_2":0,"hair_color_2":0,"torso_1":57,"bags_1":0,"helmet_2":0,"chain_2":0,"eyebrows_3":0,"makeup_3":0,"makeup_2":0,"tshirt_1":38,"makeup_1":0,"bags_2":0,"makeup_4":0,"eyebrows_4":0,"chain_1":0,"lipstick_4":0,"bproof_2":0,"hair_color_1":0,"decals_2":0,"pants_2":1,"age_2":0,"glasses_2":0,"ears_2":0,"arms":21,"lipstick_1":0,"ears_1":-1,"mask_2":0,"sex":1,"lipstick_3":0,"helmet_1":-1,"shoes_2":0,"beard_2":0,"beard_1":0,"lipstick_2":0,"beard_4":0,"glasses_1":5,"bproof_1":0,"mask_1":0,"decals_1":1,"hair_1":0,"eyebrows_2":0,"beard_3":0,"age_1":0,"tshirt_2":0,"skin":0,"torso_2":0,"eyebrows_1":0,"face":0,"shoes_1":49,"pants_1":11}'), + ('taxi',4,'boss','Właściciel',0,'{"hair_2":0,"hair_color_2":0,"torso_1":29,"bags_1":0,"helmet_2":0,"chain_2":0,"eyebrows_3":0,"makeup_3":0,"makeup_2":0,"tshirt_1":31,"makeup_1":0,"bags_2":0,"makeup_4":0,"eyebrows_4":0,"chain_1":0,"lipstick_4":0,"bproof_2":0,"hair_color_1":0,"decals_2":0,"pants_2":4,"age_2":0,"glasses_2":0,"ears_2":0,"arms":1,"lipstick_1":0,"ears_1":-1,"mask_2":0,"sex":0,"lipstick_3":0,"helmet_1":-1,"shoes_2":0,"beard_2":0,"beard_1":0,"lipstick_2":0,"beard_4":0,"glasses_1":0,"bproof_1":0,"mask_1":0,"decals_1":0,"hair_1":0,"eyebrows_2":0,"beard_3":0,"age_1":0,"tshirt_2":0,"skin":0,"torso_2":4,"eyebrows_1":0,"face":0,"shoes_1":10,"pants_1":24}', '{"hair_2":0,"hair_color_2":0,"torso_1":57,"bags_1":0,"helmet_2":0,"chain_2":0,"eyebrows_3":0,"makeup_3":0,"makeup_2":0,"tshirt_1":38,"makeup_1":0,"bags_2":0,"makeup_4":0,"eyebrows_4":0,"chain_1":0,"lipstick_4":0,"bproof_2":0,"hair_color_1":0,"decals_2":0,"pants_2":1,"age_2":0,"glasses_2":0,"ears_2":0,"arms":21,"lipstick_1":0,"ears_1":-1,"mask_2":0,"sex":1,"lipstick_3":0,"helmet_1":-1,"shoes_2":0,"beard_2":0,"beard_1":0,"lipstick_2":0,"beard_4":0,"glasses_1":5,"bproof_1":0,"mask_1":0,"decals_1":1,"hair_1":0,"eyebrows_2":0,"beard_3":0,"age_1":0,"tshirt_2":0,"skin":0,"torso_2":0,"eyebrows_1":0,"face":0,"shoes_1":49,"pants_1":11}') +; diff --git a/esx_taxijob/localization/sr_esx_taxijob.sql b/esx_taxijob/localization/sr_esx_taxijob.sql new file mode 100644 index 00000000..7bb1ffc4 --- /dev/null +++ b/esx_taxijob/localization/sr_esx_taxijob.sql @@ -0,0 +1,23 @@ +INSERT INTO `addon_account` (name, label, shared) VALUES + ('society_taxi', 'Taxi', 1) +; + +INSERT INTO `datastore` (name, label, shared) VALUES + ('society_taxi', 'Taxi', 1) +; + +INSERT INTO `addon_inventory` (name, label, shared) VALUES + ('society_taxi', 'Taxi', 1) +; + +INSERT INTO `jobs` (name, label) VALUES + ('taxi', 'Taxi') +; + +INSERT INTO `job_grades` (job_name, grade, name, label, salary, skin_male, skin_female) VALUES + ('taxi',0,'recrue','Početnik',12,'{"hair_2":0,"hair_color_2":0,"torso_1":32,"bags_1":0,"helmet_2":0,"chain_2":0,"eyebrows_3":0,"makeup_3":0,"makeup_2":0,"tshirt_1":31,"makeup_1":0,"bags_2":0,"makeup_4":0,"eyebrows_4":0,"chain_1":0,"lipstick_4":0,"bproof_2":0,"hair_color_1":0,"decals_2":0,"pants_2":0,"age_2":0,"glasses_2":0,"ears_2":0,"arms":27,"lipstick_1":0,"ears_1":-1,"mask_2":0,"sex":0,"lipstick_3":0,"helmet_1":-1,"shoes_2":0,"beard_2":0,"beard_1":0,"lipstick_2":0,"beard_4":0,"glasses_1":0,"bproof_1":0,"mask_1":0,"decals_1":1,"hair_1":0,"eyebrows_2":0,"beard_3":0,"age_1":0,"tshirt_2":0,"skin":0,"torso_2":0,"eyebrows_1":0,"face":0,"shoes_1":10,"pants_1":24}', '{"hair_2":0,"hair_color_2":0,"torso_1":57,"bags_1":0,"helmet_2":0,"chain_2":0,"eyebrows_3":0,"makeup_3":0,"makeup_2":0,"tshirt_1":38,"makeup_1":0,"bags_2":0,"makeup_4":0,"eyebrows_4":0,"chain_1":0,"lipstick_4":0,"bproof_2":0,"hair_color_1":0,"decals_2":0,"pants_2":1,"age_2":0,"glasses_2":0,"ears_2":0,"arms":21,"lipstick_1":0,"ears_1":-1,"mask_2":0,"sex":1,"lipstick_3":0,"helmet_1":-1,"shoes_2":0,"beard_2":0,"beard_1":0,"lipstick_2":0,"beard_4":0,"glasses_1":5,"bproof_1":0,"mask_1":0,"decals_1":1,"hair_1":0,"eyebrows_2":0,"beard_3":0,"age_1":0,"tshirt_2":0,"skin":0,"torso_2":0,"eyebrows_1":0,"face":0,"shoes_1":49,"pants_1":11}'), + ('taxi',1,'novice','Vozač',24,'{"hair_2":0,"hair_color_2":0,"torso_1":32,"bags_1":0,"helmet_2":0,"chain_2":0,"eyebrows_3":0,"makeup_3":0,"makeup_2":0,"tshirt_1":31,"makeup_1":0,"bags_2":0,"makeup_4":0,"eyebrows_4":0,"chain_1":0,"lipstick_4":0,"bproof_2":0,"hair_color_1":0,"decals_2":0,"pants_2":0,"age_2":0,"glasses_2":0,"ears_2":0,"arms":27,"lipstick_1":0,"ears_1":-1,"mask_2":0,"sex":0,"lipstick_3":0,"helmet_1":-1,"shoes_2":0,"beard_2":0,"beard_1":0,"lipstick_2":0,"beard_4":0,"glasses_1":0,"bproof_1":0,"mask_1":0,"decals_1":1,"hair_1":0,"eyebrows_2":0,"beard_3":0,"age_1":0,"tshirt_2":0,"skin":0,"torso_2":0,"eyebrows_1":0,"face":0,"shoes_1":10,"pants_1":24}', '{"hair_2":0,"hair_color_2":0,"torso_1":57,"bags_1":0,"helmet_2":0,"chain_2":0,"eyebrows_3":0,"makeup_3":0,"makeup_2":0,"tshirt_1":38,"makeup_1":0,"bags_2":0,"makeup_4":0,"eyebrows_4":0,"chain_1":0,"lipstick_4":0,"bproof_2":0,"hair_color_1":0,"decals_2":0,"pants_2":1,"age_2":0,"glasses_2":0,"ears_2":0,"arms":21,"lipstick_1":0,"ears_1":-1,"mask_2":0,"sex":1,"lipstick_3":0,"helmet_1":-1,"shoes_2":0,"beard_2":0,"beard_1":0,"lipstick_2":0,"beard_4":0,"glasses_1":5,"bproof_1":0,"mask_1":0,"decals_1":1,"hair_1":0,"eyebrows_2":0,"beard_3":0,"age_1":0,"tshirt_2":0,"skin":0,"torso_2":0,"eyebrows_1":0,"face":0,"shoes_1":49,"pants_1":11}'), + ('taxi',2,'experimente','Iskusni Vozač',36,'{"hair_2":0,"hair_color_2":0,"torso_1":26,"bags_1":0,"helmet_2":0,"chain_2":0,"eyebrows_3":0,"makeup_3":0,"makeup_2":0,"tshirt_1":57,"makeup_1":0,"bags_2":0,"makeup_4":0,"eyebrows_4":0,"chain_1":0,"lipstick_4":0,"bproof_2":0,"hair_color_1":0,"decals_2":0,"pants_2":4,"age_2":0,"glasses_2":0,"ears_2":0,"arms":11,"lipstick_1":0,"ears_1":-1,"mask_2":0,"sex":0,"lipstick_3":0,"helmet_1":-1,"shoes_2":0,"beard_2":0,"beard_1":0,"lipstick_2":0,"beard_4":0,"glasses_1":0,"bproof_1":0,"mask_1":0,"decals_1":0,"hair_1":0,"eyebrows_2":0,"beard_3":0,"age_1":0,"tshirt_2":0,"skin":0,"torso_2":0,"eyebrows_1":0,"face":0,"shoes_1":10,"pants_1":24}', '{"hair_2":0,"hair_color_2":0,"torso_1":57,"bags_1":0,"helmet_2":0,"chain_2":0,"eyebrows_3":0,"makeup_3":0,"makeup_2":0,"tshirt_1":38,"makeup_1":0,"bags_2":0,"makeup_4":0,"eyebrows_4":0,"chain_1":0,"lipstick_4":0,"bproof_2":0,"hair_color_1":0,"decals_2":0,"pants_2":1,"age_2":0,"glasses_2":0,"ears_2":0,"arms":21,"lipstick_1":0,"ears_1":-1,"mask_2":0,"sex":1,"lipstick_3":0,"helmet_1":-1,"shoes_2":0,"beard_2":0,"beard_1":0,"lipstick_2":0,"beard_4":0,"glasses_1":5,"bproof_1":0,"mask_1":0,"decals_1":1,"hair_1":0,"eyebrows_2":0,"beard_3":0,"age_1":0,"tshirt_2":0,"skin":0,"torso_2":0,"eyebrows_1":0,"face":0,"shoes_1":49,"pants_1":11}'), + ('taxi',3,'uber','Menadžer',48,'{"hair_2":0,"hair_color_2":0,"torso_1":26,"bags_1":0,"helmet_2":0,"chain_2":0,"eyebrows_3":0,"makeup_3":0,"makeup_2":0,"tshirt_1":57,"makeup_1":0,"bags_2":0,"makeup_4":0,"eyebrows_4":0,"chain_1":0,"lipstick_4":0,"bproof_2":0,"hair_color_1":0,"decals_2":0,"pants_2":4,"age_2":0,"glasses_2":0,"ears_2":0,"arms":11,"lipstick_1":0,"ears_1":-1,"mask_2":0,"sex":0,"lipstick_3":0,"helmet_1":-1,"shoes_2":0,"beard_2":0,"beard_1":0,"lipstick_2":0,"beard_4":0,"glasses_1":0,"bproof_1":0,"mask_1":0,"decals_1":0,"hair_1":0,"eyebrows_2":0,"beard_3":0,"age_1":0,"tshirt_2":0,"skin":0,"torso_2":0,"eyebrows_1":0,"face":0,"shoes_1":10,"pants_1":24}', '{"hair_2":0,"hair_color_2":0,"torso_1":57,"bags_1":0,"helmet_2":0,"chain_2":0,"eyebrows_3":0,"makeup_3":0,"makeup_2":0,"tshirt_1":38,"makeup_1":0,"bags_2":0,"makeup_4":0,"eyebrows_4":0,"chain_1":0,"lipstick_4":0,"bproof_2":0,"hair_color_1":0,"decals_2":0,"pants_2":1,"age_2":0,"glasses_2":0,"ears_2":0,"arms":21,"lipstick_1":0,"ears_1":-1,"mask_2":0,"sex":1,"lipstick_3":0,"helmet_1":-1,"shoes_2":0,"beard_2":0,"beard_1":0,"lipstick_2":0,"beard_4":0,"glasses_1":5,"bproof_1":0,"mask_1":0,"decals_1":1,"hair_1":0,"eyebrows_2":0,"beard_3":0,"age_1":0,"tshirt_2":0,"skin":0,"torso_2":0,"eyebrows_1":0,"face":0,"shoes_1":49,"pants_1":11}'), + ('taxi',4,'boss','Šef',0,'{"hair_2":0,"hair_color_2":0,"torso_1":29,"bags_1":0,"helmet_2":0,"chain_2":0,"eyebrows_3":0,"makeup_3":0,"makeup_2":0,"tshirt_1":31,"makeup_1":0,"bags_2":0,"makeup_4":0,"eyebrows_4":0,"chain_1":0,"lipstick_4":0,"bproof_2":0,"hair_color_1":0,"decals_2":0,"pants_2":4,"age_2":0,"glasses_2":0,"ears_2":0,"arms":1,"lipstick_1":0,"ears_1":-1,"mask_2":0,"sex":0,"lipstick_3":0,"helmet_1":-1,"shoes_2":0,"beard_2":0,"beard_1":0,"lipstick_2":0,"beard_4":0,"glasses_1":0,"bproof_1":0,"mask_1":0,"decals_1":0,"hair_1":0,"eyebrows_2":0,"beard_3":0,"age_1":0,"tshirt_2":0,"skin":0,"torso_2":4,"eyebrows_1":0,"face":0,"shoes_1":10,"pants_1":24}', '{"hair_2":0,"hair_color_2":0,"torso_1":57,"bags_1":0,"helmet_2":0,"chain_2":0,"eyebrows_3":0,"makeup_3":0,"makeup_2":0,"tshirt_1":38,"makeup_1":0,"bags_2":0,"makeup_4":0,"eyebrows_4":0,"chain_1":0,"lipstick_4":0,"bproof_2":0,"hair_color_1":0,"decals_2":0,"pants_2":1,"age_2":0,"glasses_2":0,"ears_2":0,"arms":21,"lipstick_1":0,"ears_1":-1,"mask_2":0,"sex":1,"lipstick_3":0,"helmet_1":-1,"shoes_2":0,"beard_2":0,"beard_1":0,"lipstick_2":0,"beard_4":0,"glasses_1":5,"bproof_1":0,"mask_1":0,"decals_1":1,"hair_1":0,"eyebrows_2":0,"beard_3":0,"age_1":0,"tshirt_2":0,"skin":0,"torso_2":0,"eyebrows_1":0,"face":0,"shoes_1":49,"pants_1":11}') +; diff --git a/esx_taxijob/server/main.lua b/esx_taxijob/server/main.lua new file mode 100644 index 00000000..ec2b5656 --- /dev/null +++ b/esx_taxijob/server/main.lua @@ -0,0 +1,243 @@ +local lastPlayerSuccess = {} + +if Config.MaxInService ~= -1 then + TriggerEvent('esx_service:activateService', 'taxi', Config.MaxInService) +end + +TriggerEvent('esx_phone:registerNumber', 'taxi', TranslateCap('taxi_client'), true, true) +TriggerEvent('esx_society:registerSociety', 'taxi', 'Taxi', 'society_taxi', 'society_taxi', 'society_taxi', { + type = 'public' +}) + +-- Reputation storage +local PlayerReputation = {} + +RegisterNetEvent('esx_taxijob:success', function(tripData) + local xPlayer = ESX.Player(source) + local timeNow = os.clock() + local job = xPlayer.getJob() + if job.name ~= 'taxi' then + print(('[^3WARNING^7] Player ^5%s^7 attempted to ^5esx_taxijob:success^7 (cheating)'):format(source)) + return + end + + if not lastPlayerSuccess[source] or timeNow - lastPlayerSuccess[source] > 3 then + lastPlayerSuccess[source] = timeNow + + -- Default trip data if not provided (backwards compatibility) + tripData = tripData or {} + local distance = tripData.distance or 3000 + local time = tripData.time or 60 + local perfectDrive = tripData.perfectDrive ~= false + local vehicleMultiplier = tripData.vehicleMultiplier or 1.0 + local rushHour = tripData.rushHour or false + local weatherMultiplier = tripData.weatherMultiplier or 1.0 + local missionType = tripData.missionType or 'normal' + + -- Initialize reputation if needed + if not PlayerReputation[source] then + PlayerReputation[source] = 50 + end + + -- Base earnings calculation + local baseEarning = math.random(Config.NPCJobEarnings.min, Config.NPCJobEarnings.max) + + -- Distance-based earnings + local distanceBonus = (distance * Config.DistanceMultiplier) + + -- Time-based earnings (for waiting) + local timeBonus = (time * Config.TimeMultiplier) + + -- Calculate total before multipliers + local total = baseEarning + distanceBonus + timeBonus + + -- Apply vehicle multiplier + total = total * vehicleMultiplier + + -- Apply rush hour multiplier + if rushHour and Config.EnableRushHour then + total = total * Config.RushHourMultiplier + end + + -- Apply weather multiplier + if Config.EnableWeatherBonus then + total = total * weatherMultiplier + end + + -- Special mission bonuses + if Config.EnableSpecialMissions then + if missionType == 'vip' and Config.VIPClients.enabled then + total = total + Config.VIPClients.bonus + elseif missionType == 'airport' and Config.AirportRuns.enabled then + total = total + Config.AirportRuns.bonus + elseif missionType == 'longdistance' and Config.LongDistance.enabled then + total = total + Config.LongDistance.bonus + end + end + + -- Reputation bonus + if Config.EnableReputation and PlayerReputation[source] >= Config.ReputationBonusThreshold then + total = total * Config.ReputationBonus + end + + -- Grade bonus + if job.grade >= 3 then + total = total * 1.5 + end + + -- Round total + total = ESX.Math.Round(total) + + -- Calculate tip + local tip = 0 + if Config.EnableTips then + local tipChance = math.random(100) + if tipChance <= Config.TipChance then + tip = math.random(Config.TipAmount.min, Config.TipAmount.max) + + -- Perfect drive tip bonus + if perfectDrive then + tip = ESX.Math.Round(tip * Config.PerfectDriveTipBonus) + end + end + end + + -- Update reputation + if Config.EnableReputation then + if perfectDrive then + PlayerReputation[source] = math.min(Config.MaxReputation, PlayerReputation[source] + Config.ReputationGainPerJob) + else + PlayerReputation[source] = math.max(0, PlayerReputation[source] - Config.ReputationLossPerBadJob) + end + + -- Send updated reputation to client + TriggerClientEvent('esx_taxijob:updateReputation', source, PlayerReputation[source]) + end + + -- Distribute money + TriggerEvent('esx_addonaccount:getSharedAccount', 'society_taxi', function(account) + if account then + local playerMoney = ESX.Math.Round(total / 100 * 30) + local societyMoney = ESX.Math.Round(total / 100 * 70) + + xPlayer.addMoney(playerMoney + tip, "Taxi Fare") + account.addMoney(societyMoney) + + -- Enhanced notification + local msg = TranslateCap('comp_earned', societyMoney, playerMoney) + if tip > 0 then + msg = msg .. ' ~g~+$' .. tip .. ' tip!' + end + if perfectDrive then + msg = msg .. ' ~b~Perfect Drive!' + end + xPlayer.showNotification(msg) + else + xPlayer.addMoney(total + tip, "Taxi Fare") + local msg = TranslateCap('have_earned', total) + if tip > 0 then + msg = msg .. ' ~g~+$' .. tip .. ' tip!' + end + xPlayer.showNotification(msg) + end + end) + end +end) + +ESX.RegisterServerCallback("esx_taxijob:SpawnVehicle", function(source, cb, model , props) + local xPlayer = ESX.Player(source) + + if xPlayer.getJob().name ~= "taxi" then + print(('[^3WARNING^7] Player ^5%s^7 attempted to Exploit Vehicle Spawing!!'):format(source)) + return + end + + local SpawnPoint = vector3(Config.Zones.VehicleSpawnPoint.Pos.x, Config.Zones.VehicleSpawnPoint.Pos.y, Config.Zones.VehicleSpawnPoint.Pos.z) + ESX.OneSync.SpawnVehicle(joaat(model), SpawnPoint, Config.Zones.VehicleSpawnPoint.Heading, props, function(vehicle) + local vehicle = NetworkGetEntityFromNetworkId(vehicle) + while GetVehicleNumberPlateText(vehicle) ~= props.plate do + Wait(0) + end + TaskWarpPedIntoVehicle(GetPlayerPed(source), vehicle, -1) + end) + cb() +end) + +RegisterNetEvent('esx_taxijob:getStockItem', function(itemName, count) + local xPlayer = ESX.Player(source) + + if xPlayer.getJob().name ~= 'taxi' then + print(('[^3WARNING^7] Player ^5%s^7 attempted ^5esx_taxijob:getStockItem^7 (cheating)'):format(source)) + return + end + + TriggerEvent('esx_addoninventory:getSharedInventory', 'society_taxi', function(inventory) + local item = inventory.getItem(itemName) + + if not xPlayer.canCarryItem(itemName, count) then + xPlayer.showNotification(TranslateCap('player_cannot_hold')) + return + end + + if count < 0 and item.count <= count then + xPlayer.showNotification(TranslateCap('quantity_invalid')) + return + end + + inventory.removeItem(itemName, count) + xPlayer.addInventoryItem(itemName, count) + xPlayer.showNotification(TranslateCap('have_withdrawn', count, item.label)) + end) +end) + +ESX.RegisterServerCallback('esx_taxijob:getStockItems', function(source, cb) + TriggerEvent('esx_addoninventory:getSharedInventory', 'society_taxi', function(inventory) + cb(inventory.items) + end) +end) + +RegisterNetEvent('esx_taxijob:putStockItems', function(itemName, count) + local xPlayer = ESX.Player(source) + local sourceItem = xPlayer.getInventoryItem(itemName) + + if xPlayer.getJob().name ~= 'taxi' then + print(('[^3WARNING^7] Player ^5%s^7 attempted ^5esx_taxijob:putStockItems^7 (cheating)'):format(source)) + return + end + + TriggerEvent('esx_addoninventory:getSharedInventory', 'society_taxi', function(inventory) + local item = inventory.getItem(itemName) + + if sourceItem.count < count or count < 0 then + return xPlayer.showNotification(TranslateCap('quantity_invalid')) + end + + xPlayer.removeInventoryItem(itemName, count) + inventory.addItem(itemName, count) + xPlayer.showNotification(TranslateCap('have_deposited', count, item.label)) + end) +end) + +ESX.RegisterServerCallback('esx_taxijob:getPlayerInventory', function(source, cb) + local xPlayer = ESX.Player(source) + local items = xPlayer.getInventory(false) + cb({ + items = items + }) +end) + +-- Get player reputation +ESX.RegisterServerCallback('esx_taxijob:getReputation', function(source, cb) + if not PlayerReputation[source] then + PlayerReputation[source] = 50 -- Default starting reputation + end + cb(PlayerReputation[source]) +end) + +-- Clean up reputation on player drop +AddEventHandler('playerDropped', function() + local _source = source + if PlayerReputation[_source] then + PlayerReputation[_source] = nil + end +end)