This scripts allows for very efficient vehicle signals sync It uses State Bags instead of events and are therefor extremely light on the network
Nabla.LogLevel = Nabla.LogLevels.WARN -- Log levels are ALL, TRACE, DEBUG, INFO, WARN, ERROR, FATAL, OFF (default is WARN)
Config = {
-- Please check our FAQ if you have any question : https://fivem.nabla.sh/faq
-- Keybinds, you can choose from here : https://docs.fivem.net/docs/game-references/input-mapper-parameter-ids/
DefaultControls = function()
RegisterKeyMapping('+signal_left', 'Signals - Left Signal', 'KEYBOARD', 'LEFT') -- Signal to the left
RegisterKeyMapping('+signal_right', 'Signals - Right Signal', 'KEYBOARD', 'RIGHT') -- Signal to the right
RegisterKeyMapping('+signal_hazards', 'Signals - Hazards', 'KEYBOARD', 'DOWN') -- Hazards
end,
-- Should a notif be sent if a user press a keybind but no vehicle is in range ?
NoVehNotif = false,
Strings = {
['no_veh'] = 'No vehicle nearby',
},
}
local prev = nil
function ShowNotification(message)
if prev ~= nil then
RemoveNotification(prev)
end
AddTextEntry(GetCurrentResourceName().."Notif", Config.Strings[message])
BeginTextCommandThefeedPost(GetCurrentResourceName().."Notif")
prev = EndTextCommandThefeedPostTicker(false, false)
end
Keybind / Command | Action |
---|---|
← | Activate left turn signal |
→ | Activate right turn signal |
↑ | Activate hazards lights |
3/8/2022
Like : Both scripts work great and the support is spot on.
Dislike : Price was a bit more than I wanted to spend but very much worth it.