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
| Parameter | Description |
|---|---|
marker_type | GTA V marker type (see FiveM wiki) — supported types: 1, 2, 6, 20, 25, 27, 29 |
marker_scale | Marker size |
marker_red/green/blue | Marker RGB color |
marker_alpha | Opacity (0-255) |
marker_bob | Enable/disable bouncing animation |
marker_spin | Enable/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
| Parameter | Description |
|---|---|
marker_render_distance | Distance (in meters) at which the marker is displayed |
interaction_distance | Distance at which the player can interact (E key or target system) |
Target System
Config.use_target = 'auto'
| Value | Behavior |
|---|---|
'auto' | Auto-detect — uses the first available target system (default) |
'ox_target' | Force ox_target |
'qb-target' | Force qb-target |
'interact' | Force interact (Renewed) |
false | Disabled — 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
| Parameter | Description |
|---|---|
teleport_animation | Enable/disable black fade animation during teleportation |
teleport_duration | Total transition duration in milliseconds |
teleport_fade_duration | Black fade duration (in and out) in milliseconds |
When animation is enabled, the player sees:
- Black fade out (doors closing)
- Teleportation + wait (movement simulation)
- Black fade in (doors opening)
Sounds
Config.sounds_enabled = true
Config.sound_volume = 0.5
| Parameter | Description |
|---|---|
sounds_enabled | Enable/disable sound effects |
sound_volume | Sound 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'
| Parameter | Description |
|---|---|
panel_accent_r/g/b | Accent color of the elevator panel (RGB) — default is gold |
panel_scale | Panel size multiplier (recommended range: 0.7 to 1.3) |
panel_side | Panel 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.