Configuration
All configuration for legends_focus is done in the config/config.lua file. This resource has a simple configuration with just two options.
Configuration File
Location: config/config.lua
Config = {}
Config.Key = 137 -- https://docs.fivem.net/docs/game-references/controls/#controls
Config.FocusMultipllier = 20.0 -- Lower value = More zoom when focusingConfiguration Options
Config.Key
Config.Key = 137Description: The control key that activates the focus/zoom feature when held down.
Type: number (FiveM control ID)
Default: 137 (Caps Lock)
The key uses FiveM's control ID system. Here are some common key codes:
| Key | Control ID |
|---|---|
| Caps Lock | 137 |
| E | 38 |
| F | 23 |
| G | 47 |
| Left Alt | 19 |
| Left Shift | 21 |
For a complete list of control IDs, see the FiveM Controls Documentation (opens in a new tab).
Config.FocusMultiplier
Config.FocusMultipllier = 20.0Description: Controls the zoom level when the focus feature is activated. This value represents the target Field of View (FOV) when zoomed in.
Type: number (FOV value)
Default: 20.0
How it works:
- The default game FOV is approximately
70.0 - Lower values = More zoom (closer view)
- Higher values = Less zoom (wider view)
Recommended values:
| Value | Zoom Level |
|---|---|
| 10.0 | Maximum zoom (sniper-like) |
| 20.0 | High zoom (default) |
| 35.0 | Medium zoom |
| 50.0 | Light zoom |
Values below 10.0 may cause visual artifacts. Values above 70.0 will have little to no effect since that's the default FOV.
Example Configurations
Sniper-Style Focus (High Zoom)
Config = {}
Config.Key = 19 -- Left Alt
Config.FocusMultipllier = 12.0 -- High zoom levelCasual Observation (Light Zoom)
Config = {}
Config.Key = 137 -- Caps Lock
Config.FocusMultipllier = 40.0 -- Subtle zoomNeed Help?
Join our Discord for support: discord.gg/lgnds (opens in a new tab)