ConfigurationAdvanced

Interiors

Learn how to configure interiors in your resource.

Adding a New Interior

Follow these steps to add a new interior to your resource:

  1. Open the config.lua file in the resource folder.
  2. Locate the Config.Interiors table.
  3. Add a new entry in the table, structured as follows:
Config.Interiors = {
    ...
    -- Add a new interior entry here
    ['interior_name'] = {
        coords = vector4(x, y, z, heading), -- Location of the interior
        rotation = vector3(x, y, z), -- Rotation of the interior
    }
}
  1. Replace 'interior_name' with a unique identifier. This must not match any other interior and will be used to reference it in other configurations.
  2. Replace x, y, z, and heading with the cameras's location.
  3. Replace x, y, and z in the rotation field with the camera's rotation.
  4. Save the file and restart the resource.

Changing the Default Interior

To set a default interior:

  1. Open the config.lua file in the resource folder.
  2. Locate the Config.DefaultInterior variable.
  3. Adjust the value as needed:
Config.DefaultInterior = 'interior_name'
  1. Replace 'interior_name' with the identifier of the interior you want as default.
  2. Save the file and restart the resource.

On this page