Skip to content

JericoFX/qb-garages

Repository files navigation

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/>