[QBCore/ESX] Camper Housing

This FiveM (QBCore/ESX) script enables players to use camper vans as mobile homes with personalized interiors, item stashes, and clothing options.

Features:

  • Unique Stashes: License plate-based stashes provide personal item storage within each van.
  • Customizable Vans: Easily configure multiple van types with unique interiors.
  • Isolated Interiors: Players are placed in separate van instances for privacy.
  • Clothing Menu: Allows players to change clothes inside their van (optional).
  • Persistent Shells: Interiors are dynamically created upon interaction and persist until the player exits.
  • Enter/Exit System: Seamlessly enter and exit vans, with position saved and restored upon exit.

Requirements:

  • QBCore or ESX
  • qb-target or ox_target interaction system.
  • ox_inventory or qb-inventory (or compatible inventory script using inventory:client:SetCurrentStash).
  • Clothing script (e.g., illenium-appearance, qb-clothing - optional, for in-van clothing changes).

Configuration (config.lua):

Config = {}

Config.Framework = 'QBCore'  -- "ESX" or "QBCore"
Config.CoreObject = 'qb-core' -- 'qb-core' for QBCore, 'es_extended' for ESX
Config.Target_script = 'ox_target' -- "qb-target" or "ox_target"
Config.inventory = "ox" -- options "qb", "new-qb", or "ox"
Config.clothing_event = 'illenium-appearance:client:openClothingShopMenu'
Config.ExitVanCommand = 'exitvan' -- Command to exit van "if player dont load the interior and fall to the ground"

Config.Vans = {
    ['camper1'] = {
        Vehicle = "journey",
        Enter_coords = vector3(656.13, 1328.0, 244.38),
        Clothing = vector3(656.41, 1332.06, 244.38),
        Stash = vector3(656.55, 1324.62, 244.38),
        Exit = vector3(656.13, 1328.0, 244.38),
        stash_options = { maxweight = 20000, slots = 25 }
    },
    ['camper2'] = {
        Vehicle = "camper",
        Enter_coords = vector3(648.18, 1328.96, 242.85),
        Clothing = vector3(647.46, 1326.1, 242.85),
        Stash = vector3(647.16, 1328.59, 242.85),
        Exit = vector3(648.67, 1328.95, 242.85),
        stash_options = { maxweight = 20000, slots = 25 }
    },
    ['camper3'] = {
        Vehicle = "brickade",
        Enter_coords = vector3(696.52, 1323.45, 243.97),
        Clothing = vector3(697.13, 1329.77, 243.97),
        Stash = vector3(697.9, 1327.68, 244.02),
        Exit = vector3(696.52, 1323.45, 243.97),
        stash_options = { maxweight = 40000, slots = 35 }
    },
    ['camper4'] = {
        Vehicle = "brickade2",
        Enter_coords = vector3(715.98, 1324.05, 243.97),
        Clothing = vector3(716.14, 1329.83, 243.97),
        Stash = vector3(717.24, 1324.55, 243.97),
        Exit = vector3(715.75, 1323.41, 243.97),
        stash_options = { maxweight = 50000, slots = 50 }
    },
    -- Add more van configurations here
}

Database:

Ensure your player_vehicles table includes license and citizenid columns for proper vehicle ownership verification.

Usage:

Players interact with configured camper vans (using qb-target) to access their personal mobile homes.

In-Van Features:

  • Stash: Stores items in a license plate-linked inventory.
  • Clothing Menu: Accesses a clothing menu inside the van (if a clothing script is configured).
  • Exit: Returns the player to the outside location where they entered.

Adding More Vans:

  1. Open config.lua.
  2. Add a new entry under Config.Vans.
  3. Define the Vehicle model, and coordinates for Enter_coords, Clothing, Stash, and Exit.
  4. Set stash_options (e.g., maxweight, slots).

chenge logs 1.1.0 :

  • removed “qb-interior” dependency now theres no need for it.

  • the resource now support new qb-inventory.

chenge logs 1.2.0 :

  • script now support esx

  • script now support ox_target and ox_inventory for esx and qbcore

chenge logs 1.2.5

  • Added translation configuration for notifications and labels.

tebex

Buy Here

Preview

Watch Me

Other Scripts

QBCore/ESX|BaseBuilding
Standalone|AdvancedZombieSystem
Standalone|SurvivalHUD
Standalone|VehicleSpawne
QBCore/ESX|UsableItems
QBCore/ESX|VehicleCrafting
QBCore/ESX|Recycler
QBCore/ESX|Gather
Standalone|SafeZone
QBCore/ESX|LootAreas
QBCore/ESX|LootPeds
QBCore/ESX|RadiationZones
Standalone|ZombieSystem
QBCore|Shop
QBCore|WeatherSync
QBCore/ESX|InGameMusic
QBCore/ESX|LootBags
Vehicles|ApocalypticVehicles-V1
QBCore/ESX|HorseRiding
QBCore/ESX|Menu

Support:
you can join my discord for any support ! Sinor System

Code is accessible only config
Subscription-based No
Lines (approximately) +500
Requirements qbcore/esx
Support Yes

chenge logs 1.1.0 :

  • removed “qb-interior” dependency now theres no need for it.

  • the resource now support new qb-inventory.

chenge logs 1.2.0 :

  • Added ESX support.

  • Implemented ox_target and ox_inventory support for both ESX and QBCore.

chenge logs 1.2.5

  • Added translation configuration for notifications and labels.

change logs 1.3.0 :

  • Minor bug fixes,
  • Added translation options