Documentation
  • Discord Server
  • About Us
  • Free Resources
    • Death Screen
      • PS-Dispatch Integration
    • Battlepass
      • Guides
      • Commands
        • Player Commands
        • Admin Commands
      • API
        • Server
    • Garages
      • Guides
        • Creating Interior
        • Creating Garage
        • How to find entity sets (customizations) for interior
  • Paid Resources
    • Elevator Creator V2
      • Installation
      • Accessible code
    • Radar System V2
      • Installation
      • Accessible code
    • Hotels Creator
      • Accessible code
    • Vehicle Shop Creator
      • Accessible code
    • Stocks Market
      • Accessible code
      • [DEV] - Usable Functions
    • Discord Voice Attendance
      • Installation
    • Deathmatch System
      • Installation
        • esx_ambulancejob
        • qb-ambulancejob
        • wasabi_ambulance
        • qbx_medical
        • codem-inventory
        • core_inventory
      • Accessible code
    • Object Creator
      • Dependencies
      • Accessible code
    • Cocaine Labs
      • Dependencies
      • Accessible code
    • Ownable Crafting Tables
      • Dependencies
      • Accessible code
      • Common Problems
    • Evidence System
      • Dependencies
      • Accessible code
      • Installation
      • API
    • Marketplace V2
      • Accessible code
      • Installation
      • Migration from V1
    • EMS Dispatch
      • Sending Dispatch
      • Accessing the Menu
      • Config File
    • Weed Planting
      • Accessible code
      • How to add new strain?
      • How to install
    • Advanced DarkNet System
      • Config
    • Advanced Taxi Job
      • Accessible code
      • Changelog
    • Advanced Gang Creator
      • Accessible code
      • Installation
        • QB Core
        • QBOX Core
      • API
      • FAQ
    • Advanced Private Cameras
      • ESX
        • Items
      • QBCore
        • Items
      • Accessible code
    • Advanced Elevator Creator
      • Accessible code
    • Advanced Ownable Rent Creator
      • SQL
      • ESX
      • QBCore
      • Config File
    • Advanced Job Creator
      • Installation
        • QB CORE
      • Accessible code
    • Advanced Ownable Shops
      • Installation
      • Accessible code
      • SQL
    • Advanced Ped Creator
      • SQL
      • Config File
    • Advanced Promocode Creator
      • Accessible code
      • SQL File
      • Common problems
    • Advanced Safe Zone Creator
      • Config File
    • Turf Wars
      • Ox Inventory
      • Accessible code
      • API
    • Advanced Gas Station Creator
      • Accessible code
    • Advanced Advertisements System
      • SQL File
      • Accessible code
    • Player Manager
      • Installation
      • Accessible code
    • Mechanic Job
      • Installation
      • Accessible code
      • SQL
    • Advanced Radar System
      • Accessible code
      • SQL
    • Crypto Mining
      • Installation
      • Accessible code
      • Items
      • SQL
    • Racing System
      • Accessible code
    • Car Theft
      • Accessible code
    • Advanced Solar Panels
      • Accessible Code
      • SQL
      • ESX
        • Items
      • QBCore
        • Items
    • Pilot Job
      • Accessible Code
      • ESX
        • SQL
      • QBCore
        • Metadata
        • qb-smallresources
      • QBOX
        • Metadata
    • Advanced Ownable Banks
      • Accessible Code
    • Post Office
      • Accessible Code
      • ESX
        • SQL
      • QBCore
        • SQL
      • Exports
    • Weather Sync
      • API
    • Billing System
      • Accessible code
      • SQL
      • Common problems
Powered by GitBook
On this page
  1. Free Resources
  2. Garages
  3. Guides

Creating Interior

All the interiors are defined in a file using key-value pairs. The key represents the name of the interior, and the value is a table containing the options for that interior. Later, the key from that table will be used in the garage to determine which interior the garage will use.

Interior options: table

  • interiorId: number

    • Id of interior, you can use native GetInteriorAtCoords or CodeWalker to find it

  • ipl?: string

    • Optional, some interiors doesn't have it

  • insideSpawn: vector4

    • Location where player will be spawned inside interior

  • customizationMenu?: vector3

    • Optional, if your interior doesn't have options to customize, you dont put this

  • Vehicles: table

    • The Vehicles table consists of numbered sub-tables, where each number represents a specific floor. Inside each floor, there are multiple sets of coordinates (vector4) where vehicles will spawn

    Vehicles = {
        [1] = { -- This represents floor 1
            vec4(0, 0, 0, 0),
            vec4(0, 0, 0, 0),
        },
        [2] = { -- This represents floor 2
            vec4(0, 0, 0, 0),
        }
    }
  • Customization?: table

    • The Default table defines the initial settings that are applied when a garage is purchased

    • Each number ([1], [2], etc.) represents a floor (similar to the Vehicles table).

    • Each entry inside a floor is a configuration setting.

    • Each setting must have:

      • name: string – A name of entity set.

      • type: string – Specifies the category of the setting (e.g., tint, blinds), naming doesn't matter.

      • color: number (Optional) – Only included if applicable.

      Default = {
          [1] = {
              { name = 'entity_set_shell_01', type = 'interior' },
              { name = 'entity_set_shell_02' }, -- static, wont change
              { name = 'entity_set_shell_03', type = 'tint', color = 1 },
          }
      },
  • Purchasable: table

    • Each item belongs to a category, and the category name (key) will be displayed as a title in the menu.

    • Every item in the table must contain:

      • label – The name of the item that will be shown in the menu.

      • name – The internal name (entity set) used by the script to apply changes.

      • price – The cost of the item.

      • type – The type of the item (e.g., interior, tint, etc.).

      • color (optional) – A numerical value representing the item's color (if applicable)

  • DeactivateInterior?: function

    • Function that will unload interior

  • LoadDefaults?: function

    • Function that will load interior for preview, make sure that Default table have same logic as this because when you purchase garage it will set data from Default table

PreviousGuidesNextCreating Garage

Last updated 2 months ago

You can check some predefined interiors in

config/interior.lua