Docs /Elevator Builder/Configuration
v1.1.0

Configuration — foltone_elevator_builder

All configuration is done in Config.lua at the root of the script. Some parameters can also be modified in-game via the admin menu’s configuration panel.

Language

Config.Locale = 'fr' -- 'fr', 'en' or 'es'

Three languages are included: French, English and Spanish. Translations are in the locales/ folder. You can add your own languages by creating a new file.

Marker

The marker indicates floor positions to players.

Config.marker_type = 25
Config.marker_scale = 0.8
Config.marker_red = 114
Config.marker_green = 204
Config.marker_blue = 114
Config.marker_alpha = 180
Config.marker_bob = false
Config.marker_spin = true
ParameterDescription
marker_typeGTA V marker type (see FiveM wiki) — supported types: 1, 2, 6, 20, 25, 27, 29
marker_scaleMarker size
marker_red/green/blueMarker RGB color
marker_alphaOpacity (0-255)
marker_bobEnable/disable bouncing animation
marker_spinEnable/disable rotation animation

Each elevator can also have its own custom marker style, configured via the admin menu during creation or editing.

Distances

Config.marker_render_distance = 10.0
Config.interaction_distance = 3.5
ParameterDescription
marker_render_distanceDistance (in meters) at which the marker is displayed
interaction_distanceDistance at which the player can interact (E key or target system)

Target System

Config.use_target = 'auto'
ValueBehavior
'auto'Auto-detect — uses the first available target system (default)
'ox_target'Force ox_target
'qb-target'Force qb-target
'interact'Force interact (Renewed)
falseDisabled — interaction via E key only

Detection order in 'auto' mode: ox_target → qb-target → interact.

If the configured target system is not detected, the script automatically falls back to E key interaction.

Teleport Animation

Config.teleport_animation = true
Config.teleport_duration = 2000
Config.teleport_fade_duration = 500
ParameterDescription
teleport_animationEnable/disable black fade animation during teleportation
teleport_durationTotal transition duration in milliseconds
teleport_fade_durationBlack fade duration (in and out) in milliseconds

When animation is enabled, the player sees:

  1. Black fade out (doors closing)
  2. Teleportation + wait (movement simulation)
  3. Black fade in (doors opening)

Sounds

Config.sounds_enabled = true
Config.sound_volume = 0.5
ParameterDescription
sounds_enabledEnable/disable sound effects
sound_volumeSound volume (0.0 to 1.0)

Sounds played:

  • Ding — On floor arrival
  • Doors — On panel open/close
  • Movement — During floor transition

Panel Appearance

Customize the elevator panel UI displayed to players.

Config.panel_accent_r = 255
Config.panel_accent_g = 180
Config.panel_accent_b = 0
Config.panel_scale = 1.0
Config.panel_side = 'right'
ParameterDescription
panel_accent_r/g/bAccent color of the elevator panel (RGB) — default is gold
panel_scalePanel size multiplier (recommended range: 0.7 to 1.3)
panel_sidePanel position on screen: 'left' or 'right'

Each elevator can have its own custom panel style, configured during creation or editing.

In-Game Configuration Panel

All parameters above can also be modified in-game via the configuration panel accessible from the admin menu (/fab → Configuration button). Changes are applied immediately and broadcast to all connected clients.

Command Customization

In client/cl_editable.lua, you can change the admin menu command:

RegisterCommand("fab", function(source, args)
    TriggerEvent("foltone_ascenseur:open_menu")
end)

Replace "fab" with your desired command name.