📃Config

Config = {}

-- Locale: 'en' (English) or 'pt' (Português)
Config.Locale = 'en'

-- General Settings
Config.MaxRentalsPerPlayer = 3 -- Maximum number of rented rooms per player
Config.RentalPeriods = {1, 15, 30} -- Available rental periods (in days)
Config.SellRefundPercentage = 50 -- Percentage received when selling the room (50% = half of the paid amount)

-- Stash Settings
Config.StashSettings = {
    slots = 50, -- Number of slots in the stash
    maxWeight = 100000  -- Maximum weight
}

-- Stash Upgrade System
Config.StashUpgrades = {
    enabled = true,
    maxLevel = 3, -- Maximum 3 upgrade levels
    levels = {
        [1] = { slots = 75, maxWeight = 150000, price = 5000 },  -- Level 1: +25 slots, +50kg
        [2] = { slots = 100, maxWeight = 200000, price = 10000 }, -- Level 2: +50 slots, +100kg
        [3] = { slots = 150, maxWeight = 300000, price = 20000 }  -- Level 3: +100 slots, +200kg
    }
}

-- Motel Owner Permissions
Config.OwnerPermissions = {
    canEvictTenants = true,  -- Allow evicting tenants
    canChangePrices = true,  -- Allow changing room prices
    canOpenTenantStash = true,  -- Allow motel owner to open tenant stashes (for police roleplay)
    canBlacklistPlayers = true,  -- Allow motel owner to blacklist players from renting
    canViewTransactionHistory = true  -- Allow motel owner to view transaction history
}

-- Transaction History System
Config.TransactionHistory = {
    enabled = true,
    maxHistoryDays = 30,  -- Keep history for X days (0 = unlimited)
    recordTypes = {
        rental = true,  -- Record new rentals
        renewal = true,  -- Record renewals
        cancellation = true,  -- Record cancellations
        upgrade = true,  -- Record stash upgrades
        minibar = true,  -- Record mini-bar purchases/restocks
        eviction = true,  -- Record evictions
        withdraw = true  -- Record balance withdrawals
    }
}

-- Blacklist System
Config.Blacklist = {
    enabled = true,
    allowUnban = true,  -- Allow motel owners to unban players
    showBanReason = true,  -- Show ban reason to blacklisted player when they try to rent
    maxBansPerMotel = 50  -- Maximum number of blacklisted players per motel (0 = unlimited)
}

-- Mini-Bar System
Config.MiniBar = {
    enabled = true,
    profitPercentage = 30, -- Percentage of profit for the motel owner (30% = owner gets 30% of each sale)
    
    -- Blacklisted items (items that CANNOT be sold in mini-bar)
    blacklistedItems = {
        'weapon_pistol',
        'weapon_combatpistol',
        'lockpick',
        'advancedlockpick',
        -- Add more items here
    }
}

-- Rental Renewal System
Config.RenewalSystem = {
    enabled = true, -- Enable/disable the entire renewal system
    allowManualRenewal = true, -- Allow players to manually renew their rental
    allowAutoRenewal = true, -- Allow players to set up automatic renewal
    autoRenewalCheckInterval = 3600000, -- Check for expiring rentals every X ms (3600000 = 1 hour)
    autoRenewalThreshold = 24, -- Hours before expiration to trigger auto-renewal (24 = 1 day before)
    
    -- Email/SMS notification system
    notifications = {
        enabled = true, -- Enable/disable phone notifications
        
        -- Send notification X hours before expiration (multiple warnings)
        warningTimes = {72, 48, 24, 12}, -- Hours before expiration (3 days, 2 days, 1 day, 12 hours)
        
        -- Notification messages
        messages = {
            sender = "Motel Management",
            subject = "Rental Expiration Warning",
            message = "Your rental at %s (%s) will expire in %d hours. Please renew to avoid losing access."
        }
    }
}

-- Discounts by period
Config.Discounts = {
    [1] = 0,    -- 0% discount for 1 day
    [15] = 10,  -- 10% discount for 15 days
    [30] = 20   -- 20% discount for 30 days
}

-- Blips on map
Config.UseBlips = true
Config.BlipSettings = {
    sprite = 475,
    color = 3,
    scale = 0.8,
    label = 'Motel'
}

-- Creator System: Interior Templates
Config.InteriorTemplates = {
    ["no_interior"] = {
        isShell = false,
        label = "No Interior (MLO)",
        spawn = nil,
        wardrobe = nil,
        stash = nil,
        management = nil,
    },
    ["modern_apartment"] = {
        isShell = false,
        label = "Modern Apartment",
        spawn = vec3(151.32, -1007.98, -100.0), -- This is where ped spawn inside the room
        wardrobe = vec3(151.71, -1001.42, -100.0),
        stash = vec3(151.25, -1003.21, -100.0),
        management = vec3(153.96, -1006.7, -100.0),
    },
    ["furnitured_midapart"] = { -- https://k4mb1maps.com/product/5015840
        isShell = true,
        label = "K4MB1 Mid Apartment",
        spawn = vec3(7.38, -9.83, 51.8),
        wardrobe = vec3(12.02, 9.81, 51.81),
        stash = vec3(12.86, 4.39, 51.8),
        management = vec3(6.9, 1.63, 51.81),
    },
    ["standardmotel_shell"] = { -- https://k4mb1maps.com/product/5015840
        isShell = true,
        label = "Standard Motel Room",
        spawn = vec3(-5.53, -2.79, 475.55),
        wardrobe = vec3(-3.81, 2.18, 475.55),
        stash = vec3(-3.5, -3.0, 475.55),
        management = vec3(-5.56, 0.87, 475.55),
    },
}

Config.TestShells = { -- If you want some debug for add more shells on interiors
    enabled = true,
    command_test = "testshell",
    command_delete = "deleteshell"
}

Config.Motels = {} -- Dont modify this line

Last updated