ConfigurationAdvanced

Enter Options

Learn how to configure the enter options for interiors.

Change Enter Key

Follow these steps to modify the key used for entering interiors:

  1. Open the config.lua file in the resource folder.
  2. Locate the Config.EnterKey variable.
  3. Change the values to your preferred key.
Config.EnterKey = {
    index = 38, -- Default: 38 (E key)
    name = 'INPUT_CONTEXT', -- Default: 'INPUT_CONTEXT'
}

Find a list of available key codes here.

  1. Save the file and restart the resource.

Change Enter Animation

To modify the animation used when entering an interior:

  1. Open the config.lua file in the resource folder.
  2. Locate the Config.EnterAnim table.
  3. Change the values to your preferred animation.
Config.EnterAnim = {
    dict = 'anim@apt_trans@garage', -- Animation dictionary
    name = 'gar_open_1_right', -- Animation name
    startTime = 0.24 -- Start time of the animation
}
  1. Save the file and restart the resource.

Change Enter Distance

To adjust the distance required to enter an interior:

  1. Open the config.lua file in the resource folder.
  2. Locate the Config.EnterDistance variable.
  3. Change the values as needed.
Config.EnterDistance = {
    on_foot = 2.0, -- Distance required to enter on foot
    in_vehicle = 5.0 -- Distance required to enter in a vehicle
}
  1. Save the file and restart the resource.

On this page