Keybinds and Allowed Controls
Default Keybinds
A default keybind can be assigned to all players to open and close the menu. This is configurable in the config file
-- The default keybind used to open/close the neon controller menu
-- Set this to nil if you dont want a keybind to be used
Config.DefaultKeybind = 'n'
As mentioned in the comments above, setting the default keybind to nil
(not 'nil'
) will completely remove the key mapping. This is ideal if your server is already overloaded with keybinds from various scripts. This will mean that players will either have to use commands, or you must provide alternative methods using exports/event
Allowed Controls
Controls that will be registered while the NUI is active (so that you can actually still utilize the vehicle while the control UI is open)
-- Keyboard controls that are enabled while the neon controller UI is open.
-- See https://docs.fivem.net/docs/game-references/controls/ for all keys
Config.AllowedControls = {
75, -- exit vehicle (F)
71, -- accelerate vehicle (W)
72, -- deccelerate vehicle (S)
59, -- turn vehicle left/right (A/D)
86, -- honk (E)
74, -- toggle headlight (H)
101, -- open vehicle roof (H)
76, -- handbrake (Spacebar)
245, -- open chat (T)
85, -- use radio (Q)
}
Last updated