💻
alt:V Athena Docs v3.0.0
  • Info
    • Introduction
    • Patreon & Support
    • Athena Discord
    • FAQ
  • Installation
    • Common Issues
    • Windows
    • Linux (Ubuntu 20.04+)
    • Debugging
    • Updating
  • Info
    • Admin
    • Configuration
    • Console
    • Database
    • Hotkeys
    • Identifier
  • Plugins
    • Load Plugins
    • Create Plugins
    • Mods
    • Clothing
  • Controllers
    • What is a Controller?
    • Blip Controller
    • Interaction Controller
    • Marker Controller
    • Object Controller
    • Ped Controller
    • Text Label Controller
    • World Notification Controller
  • Systems
    • Interiors
    • Inventory & Items
    • Inventory Rules
    • Jobs
    • Time
    • Weather
  • Menus
    • Menu Types
    • Action Menus
    • Input Menu
    • Wheel Menu
  • Player
    • Admin-Commands
    • Animations
    • Attach Objects
    • Credits
    • Currency
    • Commands
    • Error Screen
    • Message
    • Meta
    • Notifications
    • Particle
    • Progress Bar
    • Save
    • Shard
    • Sound
    • Spinners
    • Task Timeline
  • Custom WebViews
    • Introduction
    • Your First Page
    • CSS Framework
  • Misc
    • Custom Sounds
    • Custom Streamers
    • Custom Icons
    • Adding Locale / Translations
    • Adding Vehicle Rules
    • Adding Whitelist
    • Adding Wheel Menus
    • Adding Parking Garages
Powered by GitBook
On this page
  • Interior(s)
  • Adding an Interior by Example
  • Global Interior
  • House Interior
  • Adding a House by Command
Edit on GitHub
  1. Systems

Interiors

Learn how to add an interior.

Interior(s)

Interiors are bound to a dimension automatically. Which means that each interior has a unique dimension that belongs to it.

There is currently just a single command to add a house.

Adding an Interior by Example

If you have a plugin or custom location where you want to add a bunch of houses to the Database. You can use the below example(s) to create two different interior types.

Global Interior

await InteriorSystem.add({
    name: 'Diamond Resorts Casino',
    uid: 'diamond-resort-casino',
    outside: { x: 935.1909790039062, y: 46.17036819458008, z: 80.09584045410156 },
    inside: { x: 1089.8856201171875, y: 206.2451629638672, z: -49.5 },
    objects: [],
    system: INTERIOR_SYSTEM.NONE,
    isUnlocked: true,
});

House Interior

await InteriorSystem.add({
    name: 'Some Cool House',
    uid: 'some-cool-house',
    outside: { x: -841.6432495117188, y: -24.96125030517578, z: 39.39847183227539 },
    inside: { x: -786.8663, y: 315.7642, z: 216.6385 },
    system:
        INTERIOR_SYSTEM.HAS_LOCK |
        INTERIOR_SYSTEM.HAS_OWNER |
        INTERIOR_SYSTEM.HAS_PRICE |
        INTERIOR_SYSTEM.HAS_STORAGE,
    ipl: 'apa_v_mp_h_01_a',
    price: 25000,
    isUnlocked: true,
});

The above examples must use an async function to work

Adding a House by Command

It will prompt you for information about the house.

/addhouse

General input for testing...

Name: Some Property
Price: 25000
POS: {"x":-783.0387573242188,"y":317.3805236816406,"z":176.80389404296875}
IPL: apa_v_mp_h_01_a

You can find interiors by googling for IPL lists and such. Make sure to get door positions and what not as well.

PreviousWorld Notification ControllerNextInventory & Items

Last updated 3 years ago