Agency Docs
Standalone

Agency-Elevator الإعدادات

نظام مصاعد بتصميم Agency (مثل Agency-Housing)، مع إمكانية اختيار مظهر الزجاج السائل الكلاسيكي.

v1.6.0مجاني3 صفحات

01الإعدادات

تثبيت سريع · config.lua · Agency-Elevator

تنزيل config.lua

--[[ ╔══════════════════════════════════════════════════════════════════════╗ ║ AGENCY ELEVATOR - CONFIGURATION ║ ║ (c) Agency Scripts ║ ╚══════════════════════════════════════════════════════════════════════╝ CONTENTS 1. Agency Companion The free app for your players, accent colour 2. Core Language, framework, design 3. Integrations Agency-Notify, text UI 4. Interaction Key, distances, marker 5. Travel Travel time, screen effect, sound 6. Configurator In-game editor for admins Elevators themselves are created in game with the configurator (/aelevator) and stored in the database. Ad-free and re-brandable: Agency-Essentials (Elevator + Notify + Progressbar + Reports in one resource) https://agency-script.tebex.io/package/essentials Discord: https://discord.gg/RTax3aBMUs · Shop: https://shop.agencyg.de ]] Config = {} --============================================================================== -- 1 · AGENCY COMPANION --============================================================================== -- Agency-Companion (free): https://shop.agencyg.de/en/companion -- One resource for every Agency script: your players link them with the free -- Agency Companion app (iPhone, Android, web), see every building and set a GPS -- route from the phone, and your admins pick one accent colour for all Agency -- scripts in game (/app, admin page). Drop it into your resources, done. Config.Companion = { Enabled = true, -- connect with Agency-Companion (app + accent colour) } -- ── Accent colour ──────────────────────────────────────────────────────────── -- false = the colour from Agency-Companion, gold without it -- { r,g,b } = a fixed colour for this script only, e.g. { 0, 190, 255 } -- Admins can still pick another colour in the configurator (Settings). Config.AccentColor = false --============================================================================== -- 2 · CORE --============================================================================== -- ── Language ───────────────────────────────────────────────────────────────── -- en bg cs da de el es fi fr hr hu it ja ko nb nl pl pt ro ru sk sv tr uk zh-Hans Config.Locale = 'en' -- ── Framework ──────────────────────────────────────────────────────────────── -- 'auto' (recommended) detects QBox (qbx_core), QBCore, ESX or ox_core. -- 'qb' | 'qbx' | 'esx' | 'ox' | 'standalone' to force one. -- Job locks and grades work on QBCore, QBox and ESX. On ox_core job-locked -- floors stay open (its group jobs are not enforced). Config.Framework = 'auto' -- ── Design ─────────────────────────────────────────────────────────────────── -- 'agency' = the Agency design (like Agency-Housing), fits every screen by itself -- 'classic' = the liquid glass look from 1.3 -- Admins can switch it in game too (configurator > Settings). Config.Design = 'agency' --============================================================================== -- 3 · INTEGRATIONS --============================================================================== -- ── Notifications ──────────────────────────────────────────────────────────── -- Agency-Notify (free): https://agency-script.tebex.io/package/6937769 -- 'agency-notify' = Agency-Notify when it runs, the framework notification otherwise -- 'framework' = always the QBCore / ESX notification Config.NotifySystem = 'agency-notify' -- ── Text UI ────────────────────────────────────────────────────────────────── -- 'default' = built-in 3D text -- 'jg-textui' = https://github.com/jgscripts/jg-textui Config.TextUISystem = 'default' --============================================================================== -- 4 · INTERACTION --============================================================================== Config.InteractKey = 38 -- control id, 38 = E Config.MarkerDistance = 15.0 -- the marker shows within this distance Config.InteractDistance = 2.0 -- the panel opens within this distance Config.Marker = { type = 20, scale = vec3(0.5, 0.5, 0.3), color = false, -- false = accent colour, or { r = 0, g = 190, b = 255, a = 180 } bobUpAndDown = true, rotate = true, } --============================================================================== -- 5 · TRAVEL --============================================================================== Config.TravelTime = 1000 -- simulated travel time in ms Config.ScreenEffect = true -- fade and elevator animation while travelling Config.SkipAnimation = false -- true = instant teleport (no wait, no fade) Config.DingSound = true -- GTA ding on arrival --============================================================================== -- 6 · CONFIGURATOR --============================================================================== Config.ConfiguratorCommand = 'aelevator' -- opens the editor (without /) Config.ConfiguratorPermission = 'command.aelevator' -- ace permission, false = everyone

02ملف SQL

استورد ملف SQL هذا إلى قاعدة بياناتك قبل تشغيل المورد:

CREATE TABLE IF NOT EXISTS `agency_elevator_settings` ( `key` VARCHAR(64) NOT NULL, `value` TEXT NOT NULL, PRIMARY KEY (`key`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; INSERT IGNORE INTO `agency_elevator_settings` (`key`, `value`) VALUES ('elevator_position', 'left'), ('elevator_scale', '1.0'), ('config_position', 'center'), ('config_scale', '1.0'), ('accent_color', '#3b82f6'); CREATE TABLE IF NOT EXISTS `agency_elevators` ( `id` VARCHAR(64) NOT NULL, `label` VARCHAR(128) NOT NULL, `floors` LONGTEXT NOT NULL, `created_at` TIMESTAMP DEFAULT CURRENT_TIMESTAMP, `updated_at` TIMESTAMP DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; -- Default elevators (can be edited/deleted in-game via /aelevator) INSERT IGNORE INTO `agency_elevators` (`id`, `label`, `floors`) VALUES ('pillbox_hospital', 'Pillbox Medical Center', '[{"label":"Ground Floor","coords":{"x":338.16,"y":-583.48,"z":28.80,"w":250.0}},{"label":"1st Floor","coords":{"x":338.16,"y":-583.48,"z":32.42,"w":250.0}},{"label":"2nd Floor","coords":{"x":338.16,"y":-583.48,"z":42.42,"w":250.0}},{"label":"Roof","coords":{"x":338.16,"y":-583.48,"z":52.42,"w":250.0}}]'), ('police_station', 'Mission Row PD', '[{"label":"Entrance","coords":{"x":443.02,"y":-982.08,"z":30.69,"w":90.0}},{"label":"Basement","coords":{"x":443.02,"y":-992.08,"z":25.69,"w":90.0}},{"label":"Upper Floor","coords":{"x":443.02,"y":-982.08,"z":36.69,"w":90.0}},{"label":"Roof","coords":{"x":443.02,"y":-982.08,"z":46.69,"w":90.0}}]'), ('maze_bank_tower', 'Maze Bank Tower', '[{"label":"Lobby","coords":{"x":-75.21,"y":-818.81,"z":326.17,"w":250.0}},{"label":"Floor 10","coords":{"x":-75.21,"y":-818.81,"z":340.17,"w":250.0}},{"label":"Floor 20","coords":{"x":-75.21,"y":-818.81,"z":360.17,"w":250.0}},{"label":"Penthouse","coords":{"x":-75.21,"y":-818.81,"z":380.17,"w":250.0}}]');

ما زلت عالقًا بعد هذه الصفحة؟ فريق الدعم يتولّى الأمر من هنا.