Skip to content

NaorNC/nc-petshop

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

#Image

Screenshot_1

Briefly about the system

The system comes with basic and interesting options. Other than that, there is an option of K9 (/petattack & /petsearch) that basically your dog can attack and search for the suspect if he has drugs on him (of course you will define the items in shared.lua). More advanced updates will be released to the petshop system in the future.

Installation

  • Download the script and put it in the [resource] folder.
  • Download qb-target & qb-input & qb-menu (if you don't have) and put it in the [resource] or [standalone] folder. (it doesn't really matter) Add the following code to your server.cfg/resouces.cfg
ensure qb-target
ensure qb-menu
ensure qb-input
ensure nc-petshop

Dependencies

SQL (important!)

CREATE TABLE IF NOT EXISTS `pets` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `owner` varchar(60) DEFAULT NULL,
  `modelname` varchar(250) DEFAULT NULL,
  `health` tinyint(4) NOT NULL DEFAULT 100,
  `illnesses` varchar(60) NOT NULL DEFAULT 'none',
  `name` varchar(255) DEFAULT 'Pet',
  PRIMARY KEY (`id`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=218 DEFAULT CHARSET=latin1 ROW_FORMAT=DYNAMIC;

Put this lines on in your core -> shared -> items.lua

["petfood"] 						= {["name"] = "petfood",					["label"] = "Pet Food",				["weight"] = 500,		["type"] = "item",		["image"] = "petfood.png",		["unique"] = false, 	["useable"] = false,	["shouldClose"] = false,	["combinable"] = nil,	["description"] = "Food" },
["tennisball"] 						= {["name"] = "tennisball",					["label"] = "Tennis Ball",				["weight"] = 500,		["type"] = "item",		["image"] = "tennisball.png",		["unique"] = false, 	["useable"] = true,	["shouldClose"] = false,	["combinable"] = nil,	["description"] = "Food" },

Inventory image

tennisball petfood

  • Add the petfood.png & tennisball.png to your inventory -> html -> images

Map

To get the map that appears in the photo (of the store): https://github.com/BaziForYou/petshop_map-fivem

About

Advanced PetShop System for QBCore

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages