Agency Docs
QBESXStandalone

Agency-Gangs Instalação

O sistema completo de gangues para FiveM em um único script.

v1.0.0Pago5 Páginas

01Instalação

  1. 1Extraia o Agency-Gangs na sua pasta resources
  2. 2Adicione ensure Agency-Gangs ao server.cfg, depois do seu framework, do seu inventário e do oxmysql
  3. 3Inicie o servidor: as tabelas do banco de dados são criadas na primeira inicialização (sql/install.sql só é necessário se o seu usuário do banco de dados não tiver permissão para criar tabelas)
  4. 4Copie as cinco imagens de itens de install/images para a pasta de imagens do seu inventário
  5. 5ox_inventory: adicione os cinco itens do README em ox_inventory/data/items.lua. Inventários de QBCore e QBox recebem os itens em tempo de execução, o ESX executa o INSERT no final de sql/install.sql
  6. 6Dê o painel aos admins com add_ace group.admin agency.gangs allow
  7. 7Abra /agangs no jogo, crie uma gangue e posicione os pontos do esconderijo no editor de gangue, ou importe suas gangues existentes na página Import

02Dependências

  • oxmysql (obrigatório)
  • OneSync (obrigatório)
  • QBCore, QBox ou ESX (opcional, sem nenhum funciona em modo standalone)
  • Um inventário (opcional: ox_inventory, qb-inventory, ps-inventory, lj-inventory, jpr-inventory, qs-inventory ou codem-inventory, detectado automaticamente)
  • Agency Phone e Agency Pad (opcional, adiciona o app Gangs)
  • Agency Housing (opcional, casa da gangue)
  • Agency Blackmarket (opcional, desconto de gangue e pagamento com o banco da gangue)
  • Agency-Garage ou jg-advancedgarages (opcional, carros próprios dos membros na garagem da gangue)
  • ox_target ou qb-target (opcional, caso contrário o aviso de tecla é usado)
  • Agency-Notify (opcional, caso contrário as notificações do seu framework são usadas)
  • Agency-Companion (opcional, gratuito: associa o script à app Agency Companion através de /app)

03Arquivo SQL

Opcional: o recurso cria estas tabelas sozinho ao iniciar. Importe este arquivo só se você preparar o banco de dados manualmente:

-- Agency Gangs: the script creates these tables by itself on the first start. -- Run this file only if your database user may not create tables. CREATE TABLE IF NOT EXISTS `agency_gangs` ( `id` INT NOT NULL AUTO_INCREMENT, `name` VARCHAR(50) NOT NULL, `label` VARCHAR(64) NOT NULL, `leader` VARCHAR(64) NULL, `bank` BIGINT NOT NULL DEFAULT 0, `dirty` BIGINT NOT NULL DEFAULT 0, `xp` INT NOT NULL DEFAULT 0, `data` LONGTEXT NULL, `created_at` TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP, PRIMARY KEY (`id`), UNIQUE KEY `name` (`name`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; CREATE TABLE IF NOT EXISTS `agency_gang_members` ( `identifier` VARCHAR(64) NOT NULL, `gang_id` INT NOT NULL, `grade` INT NOT NULL DEFAULT 0, `name` VARCHAR(100) NULL, `joined_at` TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP, `last_seen` TIMESTAMP NULL DEFAULT NULL, PRIMARY KEY (`identifier`), KEY `gang_id` (`gang_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; CREATE TABLE IF NOT EXISTS `agency_gang_logs` ( `id` BIGINT NOT NULL AUTO_INCREMENT, `gang_id` INT NOT NULL, `category` VARCHAR(20) NOT NULL, `actor` VARCHAR(100) NULL, `message` VARCHAR(255) NOT NULL, `amount` BIGINT NULL, `created_at` TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP, PRIMARY KEY (`id`), KEY `gang_id` (`gang_id`, `id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; CREATE TABLE IF NOT EXISTS `agency_gang_territories` ( `id` INT NOT NULL AUTO_INCREMENT, `name` VARCHAR(50) NOT NULL, `label` VARCHAR(64) NOT NULL, `x` DOUBLE NOT NULL, `y` DOUBLE NOT NULL, `z` DOUBLE NOT NULL, `radius` DOUBLE NOT NULL DEFAULT 150, `income` INT NOT NULL DEFAULT 0, `owner` INT NULL DEFAULT NULL, `captured_at` INT NULL DEFAULT NULL, `data` LONGTEXT NULL, PRIMARY KEY (`id`), UNIQUE KEY `name` (`name`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; CREATE TABLE IF NOT EXISTS `agency_gang_graffiti` ( `id` INT NOT NULL AUTO_INCREMENT, `gang_id` INT NOT NULL, `x` DOUBLE NOT NULL, `y` DOUBLE NOT NULL, `z` DOUBLE NOT NULL, `nx` DOUBLE NOT NULL, `ny` DOUBLE NOT NULL, `nz` DOUBLE NOT NULL, `territory` INT NULL DEFAULT NULL, `created_at` INT NOT NULL, `text` VARCHAR(24) NULL, `style` VARCHAR(12) NULL, `size` VARCHAR(2) NULL, PRIMARY KEY (`id`), KEY `gang_id` (`gang_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; CREATE TABLE IF NOT EXISTS `agency_gang_wars` ( `id` INT NOT NULL AUTO_INCREMENT, `kind` VARCHAR(10) NOT NULL, `attacker` INT NULL, `defender` INT NULL, `wager` BIGINT NOT NULL DEFAULT 0, `status` VARCHAR(12) NOT NULL, `started` INT NULL, `ends` INT NULL, `winner` INT NULL, `data` LONGTEXT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; -- ESX only: the new items (QBCore / QBox get them automatically, ox_inventory see README). -- INSERT IGNORE INTO `items` (`name`, `label`, `weight`) VALUES -- ('spraycan', 'Spray Can', 1), ('spray_remover', 'Spray Remover', 1), ('zipties', 'Zip Ties', 1), -- ('head_bag', 'Head Bag', 1), ('gang_contract', 'Gang Contract', 1);

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