Key-List LUA-Script

Hello thx for helping!

I wonna change keys in a script. It using the key for example “spacebar = 22”, “E = 51”…

All Key-Lists I found like “GTA Control Keys” missing the Numbers, in one script I found this:

local Keys = {
[“ESC”] = 322, [“F1”] = 288,…

but this keys are also not working. Where I can find this numbers, please?

GreetZ
NebelRebell

1 Like

https://wiki.fivem.net/wiki/Controls

WOW AMAZING HOW FAST, Thank you much!

Sorry, there is spacebar = 55… maybe the part of the script helps what I search:

local fov_max = 80.0
local fov_min = 5.0 – max zoom level (smaller fov is more zoom)
local zoomspeed = 15.0 – camera zoom speed
local speed_lr = 5.0 – speed by which the camera pans left-right
local speed_ud = 5.0 – speed by which the camera pans up-down
local toggle_helicam = 51 – control id of the button by which to toggle the helicam mode. Default: INPUT_CONTEXT (E)
local toggle_vision = 25 – control id to toggle vision mode. Default: INPUT_AIM (Right mouse btn)
local toggle_rappel = 154 – control id to rappel out of the heli. Default: INPUT_DUCK (X)
local toggle_spotlight = 183 – control id to toggle the front spotlight Default: INPUT_PhoneCameraGrid (G)
local toggle_lock_on = 22 – control id to lock onto a vehicle with the camera. Default is INPUT_SPRINT (spacebar)
local Nightvision = false

Wonna change this line

local toggle_helicam = 51 – control id of the button by which to toggle the helicam mode. Default: INPUT_CONTEXT (E)

to “O”

What I can gather from the control list “O” is not a bindable key.

Thx! I understand it now, have a nice gamingday Wulf!

[CLOSED]

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.