Agency Docs
Standalone

Agency-Garage Installation

The garage system for FiveM in the Agency design.

v1.3.0Paid5 Pages

01Installation

  1. 1Extract Agency-Garage into your resources folder
  2. 2Database: nothing to do, the tables are created on first start (sql/install.sql is only for manual setups)
  3. 3Add ensure Agency-Garage to server.cfg
  4. 4Configure garage locations & categories in config.lua
  5. 5Optional: run /garageimages in game as an admin, then restart Agency-Garage once so every player gets the vehicle pictures
  6. 6Optional: add the free Agency-Companion resource for one accent colour across all Agency scripts. Section 1 of config.lua is Agency Companion, switched on by default
  7. 7Updating: replace the resource folder and take your values over into the new config.lua. Old keys keep working and your data in the database stays untouched
  8. 8Restart server
  9. 9Open Edition: client code, shared code, the interface and config are yours to edit, the server code stays encrypted. Keep the folder name and remove the regular edition first.

02Dependencies

  • oxmysql (required, MySQL persistence)
  • QBCore / ESX (optional, standalone works out of the box)
  • Agency-Companion (optional, free: one accent colour for all Agency scripts)

03SQL File

Optional: the resource creates these tables on its own when it starts. Import this file only if you set up the database by hand:

-- ===================================================================== -- Agency Garage - Database (SUPPORT FILE) -- -- You normally do NOT need to run this. With Config.AutoSetupDatabase = true -- the script creates/adds everything on its own. -- This file only exists for support cases or if auto-setup is disabled. -- ===================================================================== -- ---------- STANDALONE ---------- -- Only needed if you run WITHOUT QBCore/ESX (Config.Framework = 'standalone'). CREATE TABLE IF NOT EXISTS `agency_garage_vehicles` ( `id` INT AUTO_INCREMENT PRIMARY KEY, `identifier` VARCHAR(64) NOT NULL, `plate` VARCHAR(12) NOT NULL, `model` VARCHAR(64) NOT NULL, `props` LONGTEXT, `garage` VARCHAR(64) DEFAULT 'legion', `state` TINYINT DEFAULT 1, `fuel` FLOAT DEFAULT 100, `engine` FLOAT DEFAULT 1000, `body` FLOAT DEFAULT 1000, `depotprice` INT DEFAULT 0, `category` VARCHAR(16) DEFAULT 'car', UNIQUE KEY `plate` (`plate`), INDEX `identifier` (`identifier`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; -- ---------- ESX ---------- -- If your owned_vehicles table is missing these columns, uncomment them: -- ALTER TABLE `owned_vehicles` ADD COLUMN `garage` VARCHAR(64) DEFAULT 'legion'; -- ALTER TABLE `owned_vehicles` ADD COLUMN `agency_state` TINYINT DEFAULT 1; -- ALTER TABLE `owned_vehicles` ADD COLUMN `fuel` FLOAT DEFAULT 100; -- ALTER TABLE `owned_vehicles` ADD COLUMN `engine` FLOAT DEFAULT 1000; -- ALTER TABLE `owned_vehicles` ADD COLUMN `body` FLOAT DEFAULT 1000; -- ALTER TABLE `owned_vehicles` ADD COLUMN `depotprice` INT DEFAULT 0; -- ---------- QBCore ---------- -- player_vehicles already has state/garage/fuel/engine/body/depotprice. -- Nothing to do.

Still stuck after this page? Our support team takes it from here.