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

Configuration

[!CAUTION] Don't touch this line:

Config, Lang, Noti = {},{},{}

Framework Configuration

ESX

Config.Framework = "esx"
Config.ESXExport = "" -- For recent ESX versions, set script name (default: "es_extended")

QBCore

Config.Framework = "qb"
Config.Core = "qb-core" -- Your QBCore resource name

General Settings

-- Database
Config.Mysql = "oxmysql" -- Options: oxmysql, mysql-async, ghmattisql

-- Display
Config.alertTextFont = 4 -- Use 0 for Chinese languages
Config.currency = "$"

-- Room Key System
Config.useKeyItem = true -- Activate to use room key/card as item

-- Payment System
Config.usePayHour = false -- If true, charges at specific real time on server
Config.rentPayHour = 22 -- Time of day for automatic charges (24-hour format)

-- Integration
Config.useBillingScript = false -- Modify s_functions.lua line 53 to activate
Config.useMobileNotification = false -- Modify s_functions.lua line 58 for phone notifications

-- Ownership
Config.canBuyMotelWithMoney = true -- Allow players to purchase motels with money
Config.ownerCommand = "givemotel" -- Command format: givemotel motelname playerID
Config.adminsGroups = {"admin", "superadmin", "god"}

-- Game Mechanics
Config.sleepCameraCoord = vector3(-378.02, 152.71, 62.12)
Config.costspercentage = 0.55 -- 55% of rent goes to owner, 45% fixed costs

Language Strings

Interaction Prompts

  • Lang.pressE = "Press ~q~[~w~E~q~]~w~ to enter the motel"
  • Lang.pressEroom = "~q~[~w~E~q~]~w~ - Open"
  • Lang.exitRoom = "Press ~q~[~w~E~q~]~w~ to leave the room"
  • Lang.openCloset = "Press ~q~[~w~E~q~]~w~ to open the closet"
  • Lang.openDepositBox = "Press ~q~[~w~E~q~]~w~ to open the deposit box"
  • Lang.washFace = "Press ~q~[~w~E~q~]~w~ to wash your face"
  • Lang.shower = "Press ~q~[~w~E~q~]~w~ to take a shower"
  • Lang.lieBed = "Press ~q~[~w~E~q~]~w~ to sleep in bed"

Error Messages

  • Lang.noMoney = "You do not have enough money"
  • Lang.noRenter = "This room is not yours"
  • Lang.haveKey = "You already have a key"

Success Messages

  • Lang.receivedKey = "You have received the key to room"
  • Lang.vacatedRoom = "You have vacated the room"
  • Lang.acquiredMotel = "You have acquired the motel"

Purchase UI

  • Lang.buyMotelTitle = "Do you want to be your own boss?"
  • Lang.buyMotelDesc = "Buy this motel for"
  • Lang.buyMotelConfirmTitle = "BUY MOTEL?"
  • Lang.buyMotelConfirmDesc = "The fixed costs will be 45% of what you earn from the rent of the rooms, charged once a week, the same as the rent of the rooms."
  • Lang.youHaveToPay = "You have to pay"
  • Lang.hasAnOwner = "This motel already has an owner"

UI Labels

  • Lang.select = "SELECT"
  • Lang.manage = "MANAGE"
  • Lang.room = "ROOM"
  • Lang.rented = "RENTED"
  • Lang.buy = "BUY MOTEL"
  • Lang.yes = "YES"
  • Lang.no = "NO"

Management

  • Lang.general = "GENERAL"
  • Lang.employees = "EMPLOYEES"
  • Lang.storage = "STORAGE"
  • Lang.customers = "CUSTOMERS"
  • Lang.earned = "MOTEL PROFITS You have earned since the purchase of the Motel:"
  • Lang.sellMotelDesc = "Want to Sell the Motel? You will receive 50% of the purchase price"
  • Lang.sell = "SELL"
  • Lang.evicted = "You have evicted the tenant from the room"
  • Lang.depositok = "The deposit has been made correctly"
  • Lang.withdrawok = "The withdraw has been made correctly"

Commands

  • Lang.errorCommand = "You must indicate the motel and the player ID"
  • Lang.noConnected = "The user does not appear to be logged in at the moment"
  • Lang.deliveredMotel = "Motel has been delivered to the user with ID"

Notifications

function notifications(notitype, message, time)
    -- Change this trigger for your notification system keeping the variables
    TriggerEvent('codem-notification', message, time, notitype)
end

-- Notification types:
Noti.info = 'info'
Noti.check = 'check'
Noti.error = 'error'

-- Notification time:
Noti.time = 5000 -- 5 seconds

Admin Commands

Give Motel Ownership

/givemotel <motelname> <playerID>

Example:

/givemotel Bilingsgate 1

This command is restricted to admin groups defined in Config.adminsGroups.