Configuration
Every config.lua option of the FiveM cable car: language, framework, leave key, timings, speed, doors, benches, seated pose, blips and translations.
Everything is set in config.lua. Change values with the server off and start it afterwards (see the warning in Installation).
General
| Option | Default | What it does |
|---|---|---|
Config.Locale | 'en' | Language: any file in locales/ ('en', 'es') |
Config.Framework | 'auto' | 'auto', 'qbox', 'qbcore', 'esx' or 'none'. Only used to know if a player is downed |
Config.LeaveKey | { control = 38, label = 'E' } | Key to make the cabin leave right away: GTA control index (control) and the letter shown (label). Control list in the FiveM docs |
With 'none' nobody counts as downed: every passenger is seated.
Ride
| Option | Default | What it does |
|---|---|---|
Config.StationWait | 35000 | ms the cabin waits at each station with its doors open |
Config.Speed | 10.0 | Cruise speed, m/s |
Config.Acceleration | 0.65 | Acceleration, m/s² |
Config.DoorTime | 880 | ms the doors take to open or close |
Config.Zone | Around Mount Chiliad | Box where the cabins exist. Outside it they are deleted |
Config.SummitDrop | { z = -0.45, fromX = 412.0, toX = 444.9 } | How much the cabin goes down at the summit so its floor is level with the platform. Applied gradually between fromX and toX |
Config.NearRadius | 500.0 | Within this distance of a cabin the script updates every frame; farther away, every 100 ms |
Seats
Config.Benches are the 4 benches in the cabin (position inside the cabin and heading). With 2 seats per bench that makes 8 passengers.
Config.Seat is the seated pose:
| Field | What it does |
|---|---|
dict / anim | Seated animation (stock GTA) |
seats | X position of each seat inside a bench |
offset | Ped position relative to the seat. If the ped floats or sinks, change z; if it goes into the backrest or sits on the edge, change y |
Blips
| Option | What it does |
|---|---|
Config.Blips | List of blips (label and coords). By default, both stations. false shows none |
Config.BlipStyle | sprite, color, scale and shortRange for every blip |
Advanced
Config.Models (the models in stream/) and Config.Tracks (the two Mount Chiliad cable lines) are advanced settings. Keep them as they are.
Translations
Texts live in locales/en.json and locales/es.json. To add a language, copy en.json, translate it and set its name in Config.Locale. Missing keys fall back to English.