Coder Social home page Coder Social logo

teezy-carrental's Introduction

Logo

Script Screenshot

Visitors

DONATE HERE

Teezy Car Rental QBCore

A Advanced Car Rental for QBCore (Nopixel Inspired) Originally Made by NaorNC. and enhanced by Teezy Core.

Installation

  1. Download the script from the source.
  2. Place the script in the resources folder of your FiveM server.
  3. Add the following line to your server.cfg file: teezy-vpRange
  4. Start your FiveM server and enjoy!

Dependencies

  • qb-target
  • qb-core
  • qb-menu
  • qb-input
  • optional: menu used in the video jixel-menu
  • optional: nh-context

Item Setup

Put this on qb-core > shared > items.lua

["rentalpapers"]				 = {["name"] = "rentalpapers", 					["label"] = "Rental Papers", 			["weight"] = 50, 		["type"] = "item", 		["image"] = "rentalpapers.png", 		["unique"] = true, 		["useable"] = false, 	["shouldClose"] = false, 	["combinable"] = nil, 	["description"] = "This car was taken out through car rental."},

Download the Item Image here: rentalpapers.png

Item

Put it inside your qb-inventory > html > images same if you are using lj-inventory

Inventory JavaScript Setup

Inside your qb-inventory > js > app.js

NOTE: Go between Line 500-600 and add the following code

          } else if (itemData.name == "rentalpapers") {
            $(".item-info-title").html('<p>' + itemData.label + '</p>')
            $(".item-info-description").html('<p><strong>Plate: </strong><span>'+ itemData.info.label + '</span></p>');

If you did follow this correct you will see the info on the rentalpapers item

SS

That's all for the Installations.

Previews

Preview 1 Preview 2 Preview 3 Preview 4

Features

  • Debug Mode Some print thingy for debugging purposes and for Debug Poly
  • Enable/Disable Blips for Rentals
  • Setup menu: currently supported menus (qb-menu, nh-context)
  • Rental Plate Mark a mark on a Vehicle plate which will be the indicator of the vehicle was only for rented.
  • Unlimited Vehicle to rent just follow the instructions inside the config.lua
  • Configurable Rental Time just follow the instructions inside the config.lua
  • Configurable Locations for Rent just follow the instructions inside the config.lua
  • Custom Ped, and Scene for Each Rental Stations just follow the instructions inside the config.lua
  • Configurable Vehicle Spawn just follow the instructions inside
  • Vehicle Nearby Detection wither there is an vehicle near the spawn point of the vehicle it will notice the player
  • Automatic Vehicle Deletion upon the Rental Time Vehicle will be Automatically deleted if Rental Time was already done.

TODOS

  • Add more menus support
  • might be supported with ESX in the future
  • Add Discord Logs
  • Add more info on the rentalpapers item

License

MIT License

Copyright (c) 2023 Lester

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.

Feedback

If you have any feedback, please reach out to me through discord Ternology#6508

teezy-carrental's People

Contributors

lester-leal avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.