NoneM
Tebex
  • Resources
    • no-base
      • Supported Resources
      • Configuration
        • Player
          • Controls
          • Actions
        • Inventory
        • Interact (Target)
        • Alerts
          • Notification
          • Indicators
    • no-alerts
      • Exports & Events
      • Notification Usage
      • Indicator Usage
    • no-chains
      • Configuration
      • Exports & Events
    • no-contextmenu
      • Exports
      • Contextmenu Usage
      • Input Menu Usage
    • no-elevators
      • Configuration
        • Elevator Creator
        • Scene Creator
        • Floor Creator
        • Door Selector
        • Icons
      • Restrictions
        • Elevator Restriction
        • Floor Restriction
    • no-gameplaycam
      • Configuration
      • Exports & Events
    • no-housing
      • Configuration
        • Buildings
          • Adding IPL Building
          • Adding Shell Building
          • Adding Building Interaction
        • Real Estate
        • Commands
        • Furniture Interactions
        • Garage
      • House Editor
        • Creating Houses
        • Editing & Removing Existing Houses
      • Furniture Editor
        • Editing Furnitures
        • Editing Furniture Categories
      • Access Sharing
      • Exports & Events
    • no-mop
      • Configuration
        • Client
        • How to disable pollution for interiors?
        • Use with commands
      • Exports & Events
    • no-newspaper
      • Configuration
        • Registering Papers
      • Exports & Events
    • no-payphone
      • Configuration
      • Integration
        • VOIP Integration
        • Phone Integration
    • no-polaroid
      • Configuration
      • Exports & Events
    • no-rappel
      • Configuration
      • Exports & Events
    • no-spy
      • Configuration
        • Client
        • Commands
      • Exports & Events
    • no-torture
      • Configuration
      • Exports & Events
    • no-trains
      • Configuration
      • Exports & Events
    • no-vehicles
      • Configuration
        • Anchor
        • Cruise
        • Indicator
        • Roll
        • Seat Belt
        • Siren Lights
        • Siren Sounds
      • Exports & Events
Powered by GitBook
On this page
  • Types
  • Door
  • Shell Building
  • Examples
  1. Resources
  2. no-housing
  3. Configuration
  4. Buildings

Adding Shell Building

From this section, you can learn how to add shell buildings

Types


Door

Field
Type
Description
Required

coords

vector3

coords

h

number

heading

Shell Building

Field
Type
Description
Required

shell

number

Shell model

doors

Inside door offsets

coords

vector3

Static shell coords

realestate

The data required to be listed in the real estate menu

interactions

function[]

radius

number

Furniture Editor radius based on coords (default 20)

onEnter

function

Function to be executed after the player enters the building

onExit

function

Function to be executed after the player exits the building

Examples


Create building_name.lua inside no-housing/config/shared/buildings/shell

Config.Buildings.Shell.building_name = {
    shell = `shell_model`, -- model of the shell
    radius = 20.0, -- furniture radius
    coords = vector3(0.0, 0.0, 0.0),
    doors = { -- inside door offsets
        {coords = vector3(-1.4218, -1.9719, 2.9), h = 1.95}
    },
    realestate = {
        label = "Trailer",
        price = 15000
    },
    onEnter = function(ctx)
        
    end,
    onExit = function()
        
    end
}
PreviousAdding IPL BuildingNextAdding Building Interaction

Last updated 1 year ago

[]

Building interactions
door
Real Estate Data