Configuration

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 focusing

Configuration Options

Config.Key

Config.Key = 137

Description: 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:

KeyControl ID
Caps Lock137
E38
F23
G47
Left Alt19
Left Shift21

For a complete list of control IDs, see the FiveM Controls Documentation (opens in a new tab).

Config.FocusMultiplier

Config.FocusMultipllier = 20.0

Description: 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:

ValueZoom Level
10.0Maximum zoom (sniper-like)
20.0High zoom (default)
35.0Medium zoom
50.0Light 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 level

Casual Observation (Light Zoom)

Config = {}
 
Config.Key = 137 -- Caps Lock
Config.FocusMultipllier = 40.0 -- Subtle zoom

Need Help?

Join our Discord for support: discord.gg/lgnds (opens in a new tab)


Legends Store - Premium FiveM Scripts