Giter Club home page Giter Club logo

qb-garages's Introduction

RE-WRITE IN COMING!

QB-GARAGES

qb-garages is a work in progress re-imagination of qb-garages made in Vue 3 + Quasar + Vuex

Installation

Download the script, put the script on you'r resource's folder, dont rename it or if you want to rename it just change all the links on Vue's side, Start the resource on server.cfg

ensure qb-garages

Usage

Go to any garage and press E.

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

Please make sure to update tests as appropriate.

Features

  • NUI Garages with Fuel,Engine,Body %

  • Added the damage for wheels, windows, and tires

  • Impound Feature with ammount to pay and Note system ( https://github.com/JericoFX/qb-impound )

  • Simplify the States , 0 is Out, 1 is in Garage and 2 is Impounded

  • Lang System (only english and spanish at the moment)

  • Dark and Light Mode

IMAGES

Hi Hi Hi Hi

SQL

CREATE TABLE `player_vehicles` (
	`id` INT(11) NOT NULL AUTO_INCREMENT,
	`license` VARCHAR(50) NULL DEFAULT NULL COLLATE 'utf8_general_ci',
	`citizenid` VARCHAR(50) NULL DEFAULT NULL COLLATE 'utf8_general_ci',
	`vehicle` VARCHAR(50) NULL DEFAULT NULL COLLATE 'utf8_general_ci',
	`hash` VARCHAR(50) NULL DEFAULT NULL COLLATE 'utf8_general_ci',
	`mods` LONGTEXT NULL DEFAULT NULL COLLATE 'utf8mb4_bin',
	`plate` VARCHAR(50) NOT NULL COLLATE 'utf8_general_ci',
	`fakeplate` VARCHAR(50) NULL DEFAULT NULL COLLATE 'utf8_general_ci',
	`garage` VARCHAR(50) NULL DEFAULT NULL COLLATE 'utf8_general_ci',
	`fuel` INT(11) NULL DEFAULT '100',
	`engine` FLOAT NULL DEFAULT '1000',
	`body` FLOAT NULL DEFAULT '1000',
	`state` INT(11) NULL DEFAULT '1',
	`depotprice` INT(11) NOT NULL DEFAULT '0',
	`drivingdistance` INT(50) NULL DEFAULT NULL,
	`status` TEXT NULL DEFAULT NULL COLLATE 'utf8_general_ci',
	`notes` LONGTEXT NULL DEFAULT 'No Message' COLLATE 'utf8_general_ci',
	`pics` TEXT NULL DEFAULT NULL COLLATE 'utf8_general_ci',
	PRIMARY KEY (`id`) USING BTREE,
	INDEX `plate` (`plate`) USING BTREE,
	INDEX `citizenid` (`citizenid`) USING BTREE,
	INDEX `license` (`license`) USING BTREE
)
COLLATE='utf8_general_ci'
ENGINE=InnoDB
AUTO_INCREMENT=11
;

ALTER TABLE `player_vehicles`
	CHANGE COLUMN `damages` `damages` LONGTEXT NULL DEFAULT '{"vehicle_window":[false,false,false,false,false,false,false,false],"wheel_tires":[false,false,false,false,false,false,false],"vehicle_doors":[false,false,false,false,false,false]}' COLLATE 'utf8_general_ci' AFTER `pics`;

Bugs or TO-DO

* The impound doest take money //FIXED
* some JSON errors //NO MORE
* Clear the Lua code
* Gangs doesn't work yet  //DONE
* Save Damage
* At resource restart the vehicles doesnt go to Impound //FIXED

License

QBCore Framework
Copyright (C) 2021 Joshua Eger Modify by JericoFX

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 <https://www.gnu.org/licenses/>

qb-garages's People

Contributors

jericofx avatar

Stargazers

 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.