πŸ”₯All scripts on our website are 50% off!πŸ”₯
Logo

Installation

Download

Before starting, you must log in to the CFX portal to download the asset. You will be able to download it as many times as you want on the official CFX page.

  1. Logging in to the CFX Portal: First, log in to the official CFX portal by clicking here.

  2. Finding your assets: Once logged in, navigate to the Granted Assets section to access your purchased assets. You can download them by clicking the "Download" button.

Download

Dependencies

(Optional) In the following link you can download the MLO that we recommend to use for the interior of the rooms:

https://forum.cfx.re/t/mlo-free-op-motel-room/3867007

The MLO is optional but recommended for enhanced room interiors. The script will work without it, but players will use the default interior teleportation system.

Add Resources

Once you have downloaded the script and dependencies (if necessary), you must add them to your server's server.cfg file. This resource must always be started below your framework and inventory.

ensure [core]
ensure [inventory]
ensure op_motel_01
ensure bit-motels

SQL Query

Use the following SQL queries in your database:

CREATE TABLE IF NOT EXISTS `bit_motels` (
  `room` int(10) DEFAULT NULL,
  `motel` varchar(50) DEFAULT NULL,
  `renter` varchar(50) DEFAULT NULL,
  `rentername` varchar(200) DEFAULT NULL,
  `amount` int(20) DEFAULT NULL
);

CREATE TABLE IF NOT EXISTS `bit_motels_owners` (
  `motel` varchar(50) DEFAULT NULL,
  `owner` varchar(50) DEFAULT NULL,
  `balance` int(200) DEFAULT NULL
);

Restart

Once you have completed these steps, restart your server and the installation will be complete.

[!CAUTION]

  • The name of the script folder must not be changed, otherwise the resource will not work correctly.
  • Do not edit the encrypted files in any way.