πŸš— Garage

Access a comprehensive guide that includes a detailed installation process, examples of code, previews of configurations.

INSTALLATION GUIDE

Step 0 - First Steps

  1. Download is_garage from KeyMaster and is_lib and ox_lib from GitHub.

  2. Add is_garage, is_lib, ox_lib to your resources on server.

  3. Open server.cfg and configure it so that they start with the server.

ensure is_lib
ensure ox_lib
ensure your-framework
ensure is_garage

THE ORDER IN WHICH SCRIPTS START IS IMPORTANT AND INCORRECT CONFIGURATION MAY CAUSE UNEXPECTED ERRORS!

Step 1 - Configure Resources

You must read and configure the config.lua file in both is_garage and is_lib to meet your needs.

Step 2 - Import SQL

You can import the is_garage.sql file included with the received script or use the following command in the database

CREATE TABLE `is_garage` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `citizenid` varchar(100) DEFAULT NULL,
  `fullname` varchar(100) DEFAULT NULL,
  `vehicle` varchar(100) DEFAULT NULL,
  `hash` varchar(100) DEFAULT NULL,
  `vin` varchar(100) DEFAULT NULL,
  `plate` varchar(100) DEFAULT NULL,
  `status` varchar(300) DEFAULT NULL,
  `location` varchar(100) DEFAULT NULL,
  `coords` varchar(100) DEFAULT NULL,
  `fuel` int(11) DEFAULT NULL,
  `engine` int(11) DEFAULT NULL,
  `body` int(11) DEFAULT NULL,
  `distance` int(11) DEFAULT NULL,
  `mods` longtext DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_general_ci;

CREATE TABLE `is_garage_codes` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `type` varchar(100) DEFAULT NULL,
  `code` varchar(100) DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_general_ci;

CREATE TABLE `is_garage_keys` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `citizenid` varchar(100) DEFAULT NULL,
  `fullname` varchar(100) DEFAULT NULL,
  `vin` varchar(100) DEFAULT NULL,
  `favorite` tinyint(1) DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_general_ci;

Step 3 - Tebex Integration

Log in to your Tebex account, go to your project, and then:

  1. Open the Integrations tab and select Game Servers.

  2. If you don't have a created Server, click Connect Game Server and choose the PLUGIN connection type. Then, you'll need to specify the Server Name and click Select All next to Packages.

  3. If you have an existing Server, make sure it has the properties mentioned above.

  4. Click Edit on Your Server and then click Copy in the Secret Key tab.

  5. Then, in your server's FTP, go to server.cfg and insert this line, replacing yourKey with the copied key:

setr sv_tebexSecret yourKey

Step 4 - Package Integration

Log in to your Tebex account, go to your project, and then:

  1. Go to the Packages tab and create your resource.

  2. Once you've done that, go to the package you created.

  3. The link to the page you are on should look like this: https://creator.tebex.io/packages/0000000, where the digits at the end of the link represent your package's ID - copy them.

  4. In your server's FTP, go to is_garage/config.lua and set the value of the variable cfg.PlatePackageId to the ID you copied.

  5. Now, anyone with the specified resource will be able to use it in the game by referencing the transaction, tbx-xxxxxxxxx.

Step 5 - Converting Vehicles

To transfer your Vehicles from Old Garages, simply use the in-game command convertVehicles or the one set in config.lua, and then restart the script. After this, all vehicles from supported frameworks will be added to our Garage System.

Last updated