Freeroam Configurator Options
Provides default freeroam configuration options for traffic and time-of-day settings. Responds to the freeroam configurator's option gathering and application hooks.
Provides default freeroam configuration options for traffic and time-of-day settings. Responds to the freeroam configurator's option gathering and application hooks.
Hooks
| Hook | Signature | Description |
|---|---|---|
M.onFreeroamConfiguratorGetOptions | (level, options) | Populates traffic and time-of-day option groups |
M.onFreeroamConfiguratorApplyOptions | (options) | Applies selected options to freeroam_freeroam.spawningOptionsHelper |
Options Provided
Traffic (order 100)
Key: traffic_trafficMode
| Value | Description |
|---|---|
disabled | No traffic |
parkedOnly | Parked vehicles only |
enabled | Normal traffic + parked |
police | Traffic + police (25% ratio) + parked |
Disabled with a notice if the level doesn't support traffic.
Time of Day (order 200)
Key: environment_timeOfDay - Uses level-defined time-of-day presets from core_levels.getTimeOfDayOptions().
Key: environment_timePlay - Time progression speed: disabled, slow, normal, fast.
Disabled with a notice if the level has no time-of-day options.
How It Works
onFreeroamConfiguratorGetOptionscheckslevel.supportsTrafficand available time presets- Builds select-type option UI structures with labels, icons, and values
onFreeroamConfiguratorApplyOptionsmaps UI selections tospawningOptionsHelperfields- Traffic mode
policesets both traffic enabled + police ratio of 0.25
Usage Examples
-- Options are gathered automatically via hook
local options = {}
extensions.hook("onFreeroamConfiguratorGetOptions", level, options)
-- Options are applied via hook before freeroam starts
extensions.hook("onFreeroamConfiguratorApplyOptions", {
traffic_trafficMode = "enabled",
environment_timeOfDay = "sunset",
environment_timePlay = "slow"
})Notes
- Uses
translateHelperfor localized labels - Part of the modular freeroam configurator system - additional option providers can be added in
configuratorOptions/
See Also
- Freeroam Guide - Guide
Freeroam Vue Big Map
M.dependencies = {'gameplay_missions_missions','freeroam_bigMapMode', 'gameplay_rawPois'}
Freeroam Facilities Fuel Price
Manages fuel price display on gas station 7-segment signs. Reads price configuration from facility data, applies randomness, and renders prices via TSStatic shape swapping.