PET SHOP SYSTEM PARA GTA RP FIVEM
Tutorial de instalação na aba ao lado
Tutorial do próprio autor
• Baixe o script e coloque-o na pasta [resource].
• Baixe qb-target & qb-input & qb-menu (se você não tiver) e coloque-o na pasta [resource] ou [standalone]. (não importa muito) Adicione o seguinte código ao seu server.cfg/resouces.cfg
ensure qb-target ensure qb-menu ensure qb-input ensure nc-petshop
Dependências:
• qb-input
• qb-menu
SQL - IMPORTANTE
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;
Coloque essas linhas em seu 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" },
Para pegar o mapa que aparece na foto: CLIQUE AQUI