Main Library
Default configuration
This is the default configuration of the script. Take note that there is others configurations in the bridge files.
Config = {}
-- [string] → The locale you want to use. If the locale does not exist, the script will use the default locale.
Config.locale = GetConvar(GetCurrentResourceName() .. ":locale", "en")
-- [string] → The bridge you want to use. You can put a valid bridge or put "auto_detect" to let the script choose the best bridge for you.
Config.bridge = "auto_detect"
-- [boolean] → If you want the script to check for updates. If the script is not up to date, it will print a message in the console.
Config.checkForUpdates = true
-- [boolean] → Show the raycast debug line from player to target
Config.debugLine = false
-- [string] → The default key for the interaction (default: LMENU = Left Alt)
-- This uses RegisterKeyMapping so players can rebind it in their GTA settings
-- See: https://docs.fivem.net/docs/game-references/input-mapper-parameter-ids/keyboard/
Config.interactionKey = "LMENU"
-- [string] → The key mapper type (keyboard, mouse, etc.)
Config.interactionKeyMapper = "keyboard"
-- [table] → Controls that remain enabled while interaction mode is active
-- Mouse controls needed for cursor position tracking
Config.mouseControls = { 239, 240, 24, 25 } -- Mouse X, Mouse Y, Attack, Aim
-- [table] → Movement controls that remain enabled while interaction mode is active
Config.movementControls = { 30, 31, 32, 33, 34, 35, 36, 21, 22 } -- Move LR, Move UD, Move Up, Move Down, Move Left, Move Right, Move UD, Sprint, Jump
-- [table] → Vehicle controls that remain enabled while interaction mode is active
Config.vehicleControls = {
71, 72, -- Accelerate, Brake/Reverse
63, 64, -- Steer Left, Steer Right
59, -- Move LR (analog steering)
76, -- Handbrake
75, -- Exit Vehicle
68, 69, 70, -- Duck, Special Ability, Vehicle Special
80, 81, 82, 83, 84, 85, 86, -- Vehicle fly controls
}
Last updated