Agency Docs
QBESX

Agency-Vending Instalação

Script de máquinas de venda com 4 tipos de máquinas, deteção automática de props do GTA V, interface de teclado.

v1.1.0Pago4 Páginas

01Instalação

  1. 1Copiar agency-vending para a pasta resources
  2. 2Adicionar ensure agency-vending ao server.cfg
  3. 3Executar installation/database.sql na base de dados
  4. 4Registar itens por framework (ESX/QBCore/ox_inventory)
  5. 5Copiar imagens de inventário de installation/inventory-images/
  6. 6Configurar config.lua

02Dependências

  • oxmysql (obrigatório)
  • ESX ou QBCore (opcional, suporta standalone)
  • ox_target / qb-target (opcional)
  • agency-phone (opcional (para o AgencyPay))

03Arquivo SQL

Importe este arquivo SQL no seu banco de dados antes de iniciar o recurso:

-- ============================================= -- Agency Vending - Database Setup -- ============================================= -- Execute this SQL in your database -- The tables are required for the player-owned machines system -- -- NOTE: The tables are also created automatically on first -- resource start. This SQL is optional for manual setup. -- ============================================= CREATE TABLE IF NOT EXISTS `agency_vending_machines` ( `id` INT AUTO_INCREMENT PRIMARY KEY, `owner` VARCHAR(50) NOT NULL, `type` VARCHAR(50) NOT NULL, `coords` TEXT NOT NULL, `heading` FLOAT NOT NULL DEFAULT 0, `earnings` FLOAT NOT NULL DEFAULT 0 ); CREATE TABLE IF NOT EXISTS `agency_vending_stock` ( `machine_id` INT NOT NULL, `slot` VARCHAR(10) NOT NULL, `stock` INT NOT NULL DEFAULT 0, `price` FLOAT NOT NULL DEFAULT 0, PRIMARY KEY (`machine_id`, `slot`) ); CREATE TABLE IF NOT EXISTS `agency_vending_spawned` ( `id` INT AUTO_INCREMENT PRIMARY KEY, `type` VARCHAR(50) NOT NULL, `model` VARCHAR(100) NOT NULL, `coords` TEXT NOT NULL, `heading` FLOAT NOT NULL DEFAULT 0, `spawned_by` VARCHAR(50) NOT NULL, `created_at` TIMESTAMP DEFAULT CURRENT_TIMESTAMP );

Continuas sem avançar depois desta página? O nosso suporte assume daqui.