Agency Docs
QBESXStandalone

Agency-Lifeinvader V3 Instalación

La agencia de publicidad de la ciudad para FiveM con QBCore, Qbox, ESX o totalmente independiente.

v3.2.1De pago5 Páginas

01Instalación

  1. 1Coloca Agency-LifeinvaderV3 en la carpeta de resources
  2. 2Añade ensure Agency-LifeinvaderV3 a server.cfg, después de tu framework, oxmysql y Agency Phone o Agency Pad
  3. 3Da acceso a tus administradores con add_ace group.admin agency.lifeinvader.admin allow, o usa Config.Admin
  4. 4Con oxmysql, las tablas se crean en el primer inicio. install/agency_lifeinvader.sql es solo para servidores que crean las tablas manualmente
  5. 5Actualizar desde una versión anterior: reemplaza la carpeta y usa el nuevo config.lua. Los anuncios, borradores y ajustes de los jugadores se conservan, las tablas se actualizan en el sitio.

02Dependencias

  • No se requiere ninguna dependencia
  • QBCore, Qbox o ESX (opcional, funciona en modo independiente sin ninguno)
  • oxmysql (opcional, sin él todo se guarda en el almacén de clave y valor del servidor)
  • Agency Phone o Agency Pad 27.0.2 o posterior (opcional, para la aplicación y Agency Pay)
  • Agency Banking (opcional, dinero en servidores independientes)
  • Agency-Notify (opcional, mensajes con el estilo de Agency)

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 Lifeinvader 3.2: database tables (OPTIONAL) -- ----------------------------------------------------------------------------- -- You do not need to run this file. With oxmysql the script creates these -- tables on the first start and upgrades the tables of Lifeinvader V2 and V3 -- in place. Run it only if your server creates tables by hand. -- ============================================================================= CREATE TABLE IF NOT EXISTS `lifeinvader_ads` ( `id` INT NOT NULL AUTO_INCREMENT, `identifier` VARCHAR(100) NOT NULL, `author_name` VARCHAR(100) DEFAULT NULL, `message` TEXT NOT NULL, `category` VARCHAR(50) DEFAULT 'other', `anonymous` TINYINT DEFAULT 0, `boosted` TINYINT DEFAULT 0, `repetitions_total` INT DEFAULT 1, `repetitions_left` INT DEFAULT 1, `interval_seconds` INT DEFAULT 60, `display_duration` INT DEFAULT 8, `status` VARCHAR(16) NULL DEFAULT 'active', `approved` TINYINT DEFAULT 1, `approved_by` VARCHAR(100) DEFAULT NULL, `rejected_reason` TEXT DEFAULT NULL, `next_send_time` DATETIME DEFAULT NULL, `scheduled_for` DATETIME DEFAULT NULL, `review_requested_at` DATETIME DEFAULT NULL, `reviewed_at` DATETIME DEFAULT NULL, `review_decision` VARCHAR(32) DEFAULT NULL, `queue_priority` INT DEFAULT 0, `ai_score` INT DEFAULT 0, `ai_flags` LONGTEXT DEFAULT NULL, `admin_notes` LONGTEXT DEFAULT NULL, `price_paid` INT DEFAULT NULL, `paid_with` VARCHAR(16) DEFAULT NULL, `refunded` INT DEFAULT 0, `reviewer` VARCHAR(100) DEFAULT NULL, `sent_count` INT DEFAULT 0, `last_sent_at` DATETIME DEFAULT NULL, `created_at` DATETIME DEFAULT CURRENT_TIMESTAMP, `updated_at` DATETIME DEFAULT CURRENT_TIMESTAMP, PRIMARY KEY (`id`), KEY `idx_identifier` (`identifier`), KEY `idx_status` (`status`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; CREATE TABLE IF NOT EXISTS `lifeinvader_ad_drafts` ( `id` INT NOT NULL AUTO_INCREMENT, `identifier` VARCHAR(100) NOT NULL, `title` VARCHAR(120) DEFAULT NULL, `message` TEXT NOT NULL, `category` VARCHAR(50) DEFAULT 'other', `anonymous` TINYINT DEFAULT 0, `boosted` TINYINT DEFAULT 0, `repetitions_total` INT DEFAULT 1, `interval_seconds` INT DEFAULT 60, `display_duration` INT DEFAULT 8, `delay` INT DEFAULT 0, `scheduled_for` DATETIME DEFAULT NULL, `created_at` DATETIME DEFAULT CURRENT_TIMESTAMP, `updated_at` DATETIME DEFAULT CURRENT_TIMESTAMP, PRIMARY KEY (`id`), KEY `idx_identifier` (`identifier`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; CREATE TABLE IF NOT EXISTS `lifeinvader_player_settings` ( `id` INT NOT NULL AUTO_INCREMENT, `identifier` VARCHAR(100) NOT NULL, `notification_position` VARCHAR(20) DEFAULT 'middle-left', `notification_enabled` TINYINT DEFAULT 1, `notification_scale` FLOAT DEFAULT 1.0, `ui_transparency` FLOAT DEFAULT 0.55, `accent_color` VARCHAR(20) DEFAULT NULL, `sound_enabled` TINYINT DEFAULT 1, `admin_panel_scale` FLOAT DEFAULT 1.0, `muted_categories` VARCHAR(255) DEFAULT NULL, `created_at` DATETIME DEFAULT CURRENT_TIMESTAMP, `updated_at` DATETIME DEFAULT CURRENT_TIMESTAMP, PRIMARY KEY (`id`), UNIQUE KEY `uniq_identifier` (`identifier`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; CREATE TABLE IF NOT EXISTS `lifeinvader_admin_logs` ( `id` INT NOT NULL AUTO_INCREMENT, `admin_identifier` VARCHAR(100) DEFAULT NULL, `admin_name` VARCHAR(100) DEFAULT NULL, `action` VARCHAR(64) NOT NULL, `ad_id` INT DEFAULT NULL, `metadata` LONGTEXT DEFAULT NULL, `created_at` DATETIME DEFAULT CURRENT_TIMESTAMP, PRIMARY KEY (`id`), KEY `idx_action` (`action`), KEY `idx_ad_id` (`ad_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;

+Conviene saber

Lifeinvader no necesita ningún otro recurso. Instálalo, inícialo después de tu framework y da acceso a tus administradores. Las tablas, la aplicación del dispositivo y los métodos de pago se configuran automáticamente.

Orden de inicio
En server.cfg, asegúrate de que Agency-LifeinvaderV3 se inicie después de tu framework, oxmysql y Agency Phone o Agency Pad, para que el script los encuentre al iniciarse.
Administradores
add_ace group.admin agency.lifeinvader.admin allow da a tus administradores acceso al panel Admin. Config.Admin también admite grupos del framework e identificadores individuales.
El trabajo de Agency
El personal son jugadores con el trabajo lifeinvader de tu framework (Config.Agency.job): desde el grado 0 pueden abrir el panel de personal, y desde el grado 3 pueden retirar dinero. Los servidores independientes usan ACE agency.lifeinvader.staff.
Base de datos
Con oxmysql, las tablas lifeinvader_ads, lifeinvader_ad_drafts, lifeinvader_player_settings y lifeinvader_admin_logs se crean durante el primer inicio y se actualizan en su sitio desde V2 y V3. install/agency_lifeinvader.sql solo se necesita en servidores donde las tablas se crean manualmente.

?Preguntas frecuentes

¿Tengo que importar el archivo SQL?

No. Solo es para servidores que crean tablas manualmente. Con oxmysql, el script crea y actualiza sus tablas automáticamente.

¿Cómo actualizo desde V3?

Detén el servidor, guarda una copia de la carpeta antigua, reemplázala por la nueva y usa el nuevo config.lua, porque se han añadido muchas opciones. Los anuncios, los borradores y la configuración de los jugadores se conservan.

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