0Resmon
0Resmon
0Resmon
  • 0Resmon Documentation
  • What is FiveM Escrow ?
  • Open Source and Escrow
  • 0R Lib
  • 0R RESOURCES
    • 0R House Robbery
      • ⚠️Important
      • 📁Required Items
      • ⚙️Configuration
    • 0R Manageable Casino
      • Required Dependencies
      • Required Item
      • Required Job
      • Base Configuration
    • 0R HolsterAnim
      • OX Inventory
      • QB Inventory
    • 0R Drug Business
      • Installation
      • Configuration
    • 0R Multicharacterv2
      • Installation
      • Configuration
    • 0R ATM Robbery
      • Installation
      • Configuration
    • 0R HEIST
      • DUI
        • Installation
        • Configuration
        • Exports
      • Vangelico
        • Installation
        • Configuration
        • Exports
      • Pacific Bank
        • Installation
        • Configuration
        • Exports
    • 0R Garbage
      • Installation
      • Configuration
    • 0R Gungame
      • Installation
      • Configuration
      • Exports
    • 0R Paintball-v2
      • Installation
      • Configuration
      • Exports
    • 0R Hud V3
      • Installation
      • Configuration
      • Exports
      • Events
    • 0R Apartments - V2
      • Installation
      • Configuration
    • 0R PixelHouse
      • Installation
      • Configuration
      • Exports
      • DLC
    • 0R Caravan
      • Installation
      • Configuration
    • 0R Multicharacter
      • Installation
    • 0R Houses
      • Integrators and Exports
      • Installation
    • 0R Casino
    • 0R Motels
      • Installation
      • Configuration
    • 0R VIP System
      • Installation
      • Configuration
    • 0R IDCard
      • Installation
      • Configuration
    • 0R IDCard V2
      • Installation
    • 0R Pausemenu
      • Installation
    • 0R Studio
      • Installation
    • 0R Handcuff System
      • Installation Handcuff
    • 0R Easy Time
      • 0R Easytime
    • 0R Lockpick
      • Installation
    • 0R Target
      • Installation
    • 0R Textui
      • Installation
    • 0R Fishing
    • 0R Carplay
    • 0R Hacking Mini Game
  • S4 Resources
    • ILLEGAL CARAVAN
      • Adaptations
    • s4-time
      • First Install
      • Exports
      • Config Var's
    • Illegal Phone
      • Installing, Faq & Features
      • Voice Script Adaptation
      • Other Phone Integrations
      • Task's - Location Messages
      • Data sharing
    • Breathalyser
      • API
    • Res Audio
      • Installation
      • Configuration
    • S4 Housing (BETA)
      • Claim
      • Installation
      • Permissions
      • Add House
      • Adaptation (Wardrobe)
      • Adaptation (Stash)
      • Adaptation (Garage)
    • S4 House
      • Installation
    • S4 Report System V2
      • Installation
      • Why videos not uploading?
    • S4 Health System V2
      • Installation
      • Adapting Custom Ambulance Job
      • Bleeding Adjustment
      • How To Add Custom Items
      • Required Items
    • pizza
    • s4-adminmenu
      • First Install
      • Adaptations
      • Video Recording Adaptation
  • KIBRA RESOURCES
    • Kibra Mechanics
      • Installation
      • Configuration
    • Kibra SmartPad
      • Installation
      • Configuration
    • Kibra Vehicleshops
      • Installation
      • Configuration
    • Kibra Core
      • Installation
    • Kibra Dispatch
      • Installation
      • Exports And Configure
  • BP RESOURCES
    • BP MAPUI
      • Config Settings
      • Exports, Events
      • Test Command
    • BP DRONE
      • Config Settings
    • BP INVENTORY
      • 🧠Installation
      • 🪶Config Settings
        • 🪁Config_items.lua settings
        • 🚕Config_vehicle.lua settings
      • ⚔️Export and Events
      • 👕Clothing Settings
      • 🏹Weapon settings
    • 👕BP CLOTHING V4
      • 🧠Installation-c
      • 🪶Config Settings
        • 🎓Char Create Config
        • 🎓Clothing Store Config
        • 🎓Barber Store Config
        • 🎓Tattoo Store Config
      • ⚔️Export and Events
      • 🤪Character creation settings
    • BP GARAGE
      • 🧠Installation
      • 🪶Config Settings
      • ⚔️Export and Events
      • ❓What is JSON files
      • 🖱️Commands
  • FRKN Resources
    • Frkn Racing
      • 🧠Installation
      • ⚔️Features Overview
      • 🪶Config Settings
      • 🏆Items
    • Frkn Camera System
      • 🧠Installation
      • ⚔️Usage
      • 🪶Config Settings
      • 🏆Items
    • Frkn Tuning System
      • 🧠Installation
      • ⚔️Usage
      • 🪶Config Settings
      • 🏆Items
    • Frkn Doorlock V2
      • 🧠Installation
      • 🪶Config Settings
      • ⚔️Commands
    • ⛪Frkn Bank Heist
      • Installation
      • 🛠️Config Information
      • Script Usage
    • 🎭Frkn Hack System
      • Installation
      • Config Information
      • 🛠️PH Panel Introduction
        • 💰PH Robbery Contracts
        • 📜PH Hire Contracts
        • 🙅‍♂️PH Group Members
        • 📢PH Announcements
      • 🔓Crack App Introduction
      • 🛜Salty App Introduction
      • 🕶️Dark Store App Introduction
      • ⛏️Miner App Introduction
      • 🔗Miner Extension App Introduction
      • 🚁Drone App Introduction
      • 💳Wallet App Introduction
      • 🗒️Note App Introduction
      • 🏦Bank Heist
    • Frkn Minigame Pack
      • Riddle Minigame
      • Xox Minigame
      • Stick Minigame
      • Letter Minigame
    • Lab Pet V3
      • 🧠Installation
      • 🪶Config Settings
      • ⏸️Usage Description
    • Frkn Money Washing
      • 🧠Installation
      • 🪶Config Settings
      • ⚔️Commands
      • 🏆Items
    • Frkn Deathscreen V3
      • 🧠Installation
      • 🪶Config Settings
    • Frkn Doorlock
      • 🧠Installation
      • 🪶Config Settings
      • ⚔️Commands
    • Frkn DrawText
      • 🧠Installation
      • 🪶Config Settings
      • ⚔️Export and Events
    • Frkn Fuel Station V4
      • 🧠Installation
      • 🪶Config Settings
      • ⚔️Export and Events
    • Frkn Death Screen V2
      • 🧠Installation
      • 🪶Config Settings
      • ⚔️Export and Events
    • Frkn Craft V2
      • 🧠Installation
      • 🪶Config Settings
      • ⚔️Export and Events
  • Wais Resoucres
    • ⚒️Wais Jobpack
      • ⚙️How to set it up
      • 🎛️Framework settings
      • 🗂️Install Jobs / Items
      • 🪚Job Settings
        • 🍕Pizza Delivery
        • 🗞️News Delivery
        • 🌭Mobile Hotdog
        • 🦺Forklifter
        • ☘️Gardener
        • 🚚Trucker
        • ⚒️Roadhelper
        • 🚌Bus Driver
        • 🔥Fire Department
        • 🦅Hunting
        • 👨‍🦯Detectorist
        • 🚗Project Car
        • 🤿Diver
        • 🧑‍🌾Farmer
        • 👨‍🔧Electrician
      • ❓FAQ / Errors / Questions
      • ❓Error: syntax error near '<\1>'
      • ❓How To Do
    • 🎹Wais Studio
      • 🔌Installation
        • 🔑Create API Key
        • 🎛️Framework settings
        • 📹Streaming Settings
      • 🎶Create, Settings Studio
      • ❓FAQ / Errors
      • 📚Handbook
    • 🎭Wais Club
      • ⚙️How to set it up
      • 🎛️Framework settings
      • 🔮Add / Edit Club Things
      • 🔦Spotlight Creator
      • 💃Npc Creator
      • 🔐YouTube API Stuff
      • ❓FAQ / Errors / Questions
      • ❓Error: syntax error near '<\1>'
    • Wais Multicharacterv2
      • ⚙️How to set it up
      • 📒Installation ESX
      • 🔮Installation QBCore
        • 💡Old QBCore Adapt
        • 💡New QBCore Adapt
      • ✨Installation Qbx
        • 💡Integration Qbx_core
      • 🏡Apartment Integration
      • 🔄Bringing old characters
      • 📜Starer Items
      • 🔑Slot Actions
      • 🔐Discord Authenticator
      • 🛒Tebex Authenticator
      • 🌏Spawnselector / Spawn
      • 📦Hide / Open Another UI'S
      • 📋Change Language
      • ❓Kicked For Explotation
    • Wais Bodycamv2
      • ⚙️How to set it up
      • 🎛️Installation Items
      • 🌟Adapt Framework
      • 🙋‍♂️Add Job
      • 🗺️Badge Things
      • 📸Screen Recording
      • 📷Prop System
      • 📃Change Language
      • ❓How to?
    • Wais Evidence
      • ⚙️How to set it up
      • 🔩Installation Items
      • 🏓Adapt Framework
      • 🔫Weapon Things
      • 👮Add Job
      • 📋Change Language
      • 🎯Errors / Questions
    • Wais Hudv5
    • Wais Rhud
  • Stache Resources
    • Stache Phone
      • 📱Installations
      • ⚙️Configuration
      • 🛠️Custom App
      • 📖S.S.S.
  • GENIUN RESOURCES
    • 0R Clothing
      • ⚙️Installation
      • 🛠️Configration
      • 🧰Exports & Callbacks
      • 📸How to take photos of clothes?
Powered by GitBook
On this page
  • What is required for installation
  • Supported Inventories
  • Apartment System Installation
  • esx_multicharacter Setup
  • qb-multicharacter Setup
  • Using a different multi-character?
  • Setup for Ox Inventory
  • Setup for QS, LJ, Origen, PS, QB Inventories
  • server.cfg
  • ESX
  • QBCore
  • What You Need to Know
  1. 0R RESOURCES
  2. 0R Motels

Installation

0Resmon Motels Installation Document and Basic Concepts

This installation guide covers both ESX and QBCore frameworks.

What is required for installation

  • 0r_lib (You can find it on your Keymaster.)

  • Map Files (You can find it script files)

Supported Inventories

  • qb-inventory

  • qs-inventory

  • ox_inventory

  • ps-inventory

  • lj-inventory

  • origen_inventory

  • ls-inventory

  • core-inventory

Apartment System Installation

Apartment system, when players register to the server, they automatically start the server in the hotel room. To achieve this, we need to make a few changes.

First, change Config.Apartment = true in the config.lua file.

Config.Apartment = true

esx_multicharacter Setup

Open the esx_multicharacter/client/main.lua file and then, as you see in the photo, you should leave a space after line 271 and place the triggerevent that allows giving a Random Room.

The code sample is available below the photo.

TriggerEvent('0R:Motels:Client:SetPlayerRandomRoom')

qb-multicharacter Setup

First you must disable qb-apartments.

What you need to do here is; Open the qb-multicharacter/client/main.lua file and find the qb-multicharacter:client:closeNUIdefault event starting at line 100. And update as below.

Code You Need to Add:

if not exports["0r_motels"]:GetApartment() then
    SetEntityCoords(PlayerPedId(), Config.DefaultSpawn.x, Config.DefaultSpawn.y, Config.DefaultSpawn.z)
end

What we need to do in the same way here is; Open the qb-multicharacter/server/main.lua file and find the qb-multicharacter:server:createCharacter event starting at line 116 and add the following code with a space after line 124.

if exports["0r_motels"]:GetApartment() then
    TriggerClientEvent('0R:Motels:Client:SetPlayerRandomRoom', src)
end

Using a different multi-character?

If you are using a different multi-character, you need to place the event in the server or client event where the player is registered to integrate it. I leave a small explanation.

You must add this code to the new section of the player's character. Each multicharacter has a default spawn point. You must cancel these spawn points.

if exports["0r_motels"]:GetApartment() then
    TriggerClientEvent('0R:Motels:Client:SetPlayerRandomRoom', src)
end

We have an export for this, exports["0r_motels"]:GetApartment(). Thanks to this export, you can check whether the Apartment system is active or not. If Config.Apartment is true, you must cancel the default spawn points of your multicharacter.

Setup for Ox Inventory

Open the ox_inventory/data/items.lua file. And place the following code.

['motelcard'] = {
	label = 'Motel Card',
	weight = 200,
	stack = false
},

['doorlockpick'] = {
	label = 'Lockpick',
	weight = 200,
	stack = false
},

and now open the ox_inventory/modules/items/client.lua file and place the following code.

Item('motelcard', function(data, slot)
    TriggerEvent('0R:Motels:Client:OpenDoorNotTeleport', slot)
end)

Setup for QS, LJ, Origen, PS, QB Inventories

The best thing about these inventories is that their infrastructure is qb-inventory. That's why the installations are the same.

Place these items in items.lua in your inventories. (qb-inventory to qb-core/shared/items.lua)

['motelcard'] = {['name'] = 'motelcard', ['label'] = 'Motel Card', ['weight'] = 500, ['type'] = 'item', ['image'] = 'motelcard.png', ['unique'] = true, ['useable'] = true, ['shouldClose'] = true, ['combinable'] = nil, ['description'] = 'Motel Card'},

Open your inventory javascript file. And search for the FormatItemInfo function and place this code in the if loop within that function. There should be a metadata.js file in qs-inventory, do the same process there.

} else if (itemData.name == "motelcard") {
    $(".item-info-title").html("<p>" + itemData.label + "</p>");
    $(".item-info-description").html(
        "<p><strong>Motel: </strong><span>" +
        itemData.info.motelname +
        "</span></p><p><strong>Room Id: </strong><span>" +
        itemData.info.roomid
);

For New qb-inventory

case "motelcard":
    return `<p><strong>Motel: </strong><span>${itemData.info.motelname}</span></p>
    <p><strong>Room ID: </strong><span>${itemData.info.roomid}</span></p>`;

for codem-inventory (in metadata.js)

} else if (item.name.match("motelcard")) {
    let infoData = [
        { label: "Motel: ", value: iteminfo.motelname },
        { label: "Room ID:", value: iteminfo.roomid },
    ]
    returnString = infoData;

server.cfg

The server.cfg initialization order should be as follows.

If you are going to use an apartment system, pay attention to the server.cfg sequence. The motel system must be initialized before your multicharacter script.

ESX

start es_extended
start 0r_lib
start 0r_motels
--- esx resources --

QBCore

start qb-core
start 0r_lib
start 0r_motels
--- qbcore resources --

What You Need to Know


Where is the sql file ?

There is no SQL File. The system automatically installs SQL into your database.

How to add a motel room?

You can get information about this by watching this video.

How to create a motel?

You can get information about this by watching this video.

How to create new room type ?

Previous0R MotelsNextConfiguration

Last updated 1 year ago

https://youtu.be/Wx-91KYJmvQ
https://youtu.be/_bO_Velqtpw
https://youtu.be/J-iX8PUsdQQ