[PAID] [QBCore] Kibra Motels Full MLO And Metadata System

A script by KibraX

No reviews yet.
[PAID] [QBCore] Kibra Motels Full MLO And Metadata System main image

Full Description

a0ba1636ee832504408d4e9e6bd2bb7aa891ec8d

Hi friends. I prepared an advanced Motel system. You can duplicate as many motels as you want.
You can harmonize with any MLO.

This plugin is now compatible with the QBCore Framework.

If you want to use the metadata feature, what you need is;
QBCore Inventory: qb-inventory
UI DrawText: Kibra-UIDrawText

Features

  • Each has its own private key. To be able to access rooms, you must meet that condition.
  • Multiple languages ​​are available.
  • Fully compatible with oxmysql and mysql-async.
  • Most features you can turn on in terms of config.lua status.
  • You can increase it by adding motels and rooms.

For Buy Tebex:

Preview: Click Me

func.lua

local QBCore = exports['qb-core']:GetCoreObject()

DrawTextUI = function(ControlKey, Text)

    exports["kibra-uidrawtext"]:SendUI(ControlKey, Text)

end

CloseDrawTextUI = function()

    exports["kibra-uidrawtext"]:CloseUI()

end

RegisterNetEvent('KibraNotify', function(Text, Type)

    QBCore.Functions.Notify(Text, Type)

end)

config.lua

-- Author Kibra#9999

-- My Discord **dc.kibra.online**

Config = {}

Config.Locale = "en"

Config.SaveInventoryStashName = "MotelStash"

-- The name you type here is the title of the hotel warehouses.

Config.BillingTime = 500000 -- 1000 Milisecond = 1 Second

-- Billing time

Config.MultiMotel = true

-- Allows players to rent multiple motel rooms.

Config.MotelBillAmount = 500000

-- Motel Room Rental Fee

Config.MotelsBlipAlwaysOpen = true

-- The motels keeps its Blips on at all times.

Config.MetaData = true

-- (Applies to qbcore only.) When a motel room is rented, a special key is given to that motel room. And people using this key can enter the rented room and gain access to the warehouse. If you mark it as false, each player will only be able to enter the room they rented.

Config.UIDrawText = true

-- If you mark it as true, the DrawText function is used. If you mark it as false, the UI DrawText will be used and optimized.

Config.MotelKeyItemName = "motelkey"

-- If the metadata is true, this may be useful for you.

Config.RoomNoDrawTextCommand = "showroomno"

-- When this command is used, the number of hotel rooms becomes visible to all players from the specified distance level.

Config.NewRoomAddCommand = "newaddmotelroom"

-- Command that allows you to add a new motel room to the database.

Config.StashAccessEveryone = false

-- This property will work if the metadata property is set to false. In this case, if marked as true, anyone can do the Storage Check of the Room. However, if false, only the room owner can do this.

Config.MotelRoomRentBuyType = "cash" -- "cash" or "bank"

Config.CopyRoomKeyPrice = 50

-- A fee to issue a new key if you lose your motel room key.

Config.Wardrobe = {

    EventType = "client", -- client or server

    EventName = "qb-clothing:client:openOutfitMenu", -- Clothing Menu Event Name

}

-- UI Controls

Config.UIControls = {

    StashLockControl = "[E]",

    DoorLockOpenControl = "[E]",

    StashOpenControl = "[G]",

    OpenReceptionControl = "[E]",

    WardrobeOpenControl = "[E]"

}

-- Controls

Config.StashLockControl = 38 -- Motel Stash Lock Control

Config.DoorLockControl = 38 -- Motel Door Lock Kontrol

Config.StashOpenControl = 47 -- Motel Stash Open Control

Config.OpenReceptionControl = 38 -- Reception Menu Open Control

Config.WardrobeOpenControl = 38

Config.Motels = {

    {        

        MotelName = "Pinkcage Motel", -- Motel Name

        MotelSocietyName = "PNKCGMTL", -- Motel Name

        Background = "img/motel.png", -- Reception background image.

        MotelMainCoord = vector4(324.49, -211.29, 54.09, 324.03), -- Motel Blip Coord

        MotelBlip = {Id = 475, Color = 1, Scale = 0.6},

        MotelBlipOpen = true, --  If true, Motel Blip is activated.

        MotelDistance = 10.0,

        MotelDoorDistance = 1.5, -- The distance value of the players to the door

        ReceptionCoord = vector4(324.84, -230.11, 54.22, 328.19), -- Reception Location Vector4()

        Payment = true, -- If it is true, an invoice will be issued for the room rented by the players at certain time intervals.

        MarkerColor = {r = 57, g = 125, b = 199, a = 0.9}, -- Marker color adjustment available at the reception.

        RoomPrice = 100, -- Motel Room Rent Price,

        InvoiceAmount = 50,

        Wardrobe = true, -- If true, motel rooms have wardrobes.

        MotelDoors = {

            -- Motel Rooms Available. You can add a new hotel room to this list.

            -- (Note: For a new hotel room you add here, you need to add a new column to the kibra_motels table in the database.

           {

                Owner = nil,

                KeyData = nil,

                Model = -1156992775, -- Model Number of the Door

                AutoLock = true, -- Auto Door Lock

                Coord = vector4(307.06, -212.96, 54.25, 89.29), -- Coordinate of the door in the room

                StashCoord = vector4(307.18, -208.02, 53.77, 61.15), -- Coordinate of the warehouse in the room

                StashLock = true,

                Wardrobe = vector4(302.68, -206.8, 54.23, 328.76) -- Clothe / Wardrobe

            },