Agency Docs
QBESXStandalone

Agency-Gangs Instalación

El sistema de bandas completo para FiveM en un solo script.

v1.0.0De pago5 Páginas

01Instalación

  1. 1Extrae Agency-Gangs en tu carpeta resources
  2. 2Añade ensure Agency-Gangs a server.cfg, después de tu framework, tu inventario y oxmysql
  3. 3Inicia el servidor: las tablas de la base de datos se crean en el primer inicio (sql/install.sql solo se necesita si tu usuario de base de datos no puede crear tablas)
  4. 4Copia las cinco imágenes de ítems de install/images en la carpeta de imágenes de tu inventario
  5. 5ox_inventory: añade los cinco ítems del README a ox_inventory/data/items.lua. Los inventarios de QBCore y QBox reciben los ítems en tiempo de ejecución, ESX ejecuta el INSERT al final de sql/install.sql
  6. 6Da acceso al panel a los admins con add_ace group.admin agency.gangs allow
  7. 7Abre /agangs en el juego, crea una banda y coloca los puntos de su guarida en el editor de bandas, o importa tus bandas existentes en la página Import

02Dependencias

  • oxmysql (requerido)
  • OneSync (obligatorio)
  • QBCore, QBox o ESX (opcional, sin ninguno funciona en modo standalone)
  • Un inventario (opcional: ox_inventory, qb-inventory, ps-inventory, lj-inventory, jpr-inventory, qs-inventory o codem-inventory, detectado automáticamente)
  • Agency Phone y Agency Pad (opcional, añade la app Gangs)
  • Agency Housing (opcional, casa de banda)
  • Agency Blackmarket (opcional, descuento de banda y pago con banco de banda)
  • Agency-Garage o jg-advancedgarages (opcional, coches propios de los miembros en el garaje de la banda)
  • ox_target o qb-target (opcional, de lo contrario se usa la tecla de interacción)
  • Agency-Notify (opcional, de lo contrario se usan las notificaciones de tu framework)
  • Agency-Companion (opcional, gratis: vincula el script con la app Agency Companion mediante /app)

03Archivo SQL

Opcional: el recurso crea estas tablas por sí mismo al iniciarse. Importa este archivo solo si preparas la base de datos a mano:

-- 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);

¿Sigues atascado después de esta página? Nuestro soporte se encarga.