trevorbarns / luxart-vehicle-control Goto Github PK
View Code? Open in Web Editor NEWA siren / (non-els) emergency lights controller for FiveM.
Home Page: https://www.luxartengineering.com/
License: GNU General Public License v3.0
A siren / (non-els) emergency lights controller for FiveM.
Home Page: https://www.luxartengineering.com/
License: GNU General Public License v3.0
[ 92016] [b2372_GTAProce] CrBrowserMain/ Mixed Content: The page at 'https://cfx-nui-lvc//UI/html/index.html' was loaded over HTTPS, but requested an insecure XMLHttpRequest endpoint 'http://lvc/hud:sendHudScale'. This request has been blocked; the content must be served over HTTPS. (@game/ui/jquery.js:8623)
caused a crash :(
Allow for players in passenger seat to control LVC. Determine in what capacity they can control the vehicle in its entirety (menu included) or simply the main functions (lights, sirens control).
Unfortunately, this is not as simple as expanding the check for player_is_emerg_driver
to allow for passengers as well. This results in the passengers request being played temporarily on the passengers client but shortly after being overridden by the drivers original state. To the driver this appears as minor blips of audio and flashes.
I am hypothesizing that this is a race condition between the driver and passengers client, ever 200 ticks of the main LVC thread it sends the vehicle's states. I am not 100% sure this is the case and am not currently sure the best way of overcoming this without reengineering the system.
no siren or sound just lights
Uncaught typeError: Cannot read property "left" of undefined
Error apparently occurs in UI/html/lvc.js line 96
There also is another issue that nobody else can hear your sirens (using wm-serversirens) after a while (unknown if connected to this issue, but probably not)
Hello,
I just updated lux_vehcontrol to this version, sadly UI images are not working for me:
https://ctrlv.cz/shots/2020/08/21/r2iz.png
Hi, I've followed through the instructions for using wm-serversirens to the letter. I've added them as new sirens, and changed the siren assignments, rather than replace the default. However the siren is silent. It's not giving any errors and if I open the menu I can see the default wail siren is set to "New Wail" but it just won't play anything
Adjust ELS click volumes, tone scheme with audio controls menu.
Submitted by Wolfrunner86.
Hi, when I try to turn on (by pressing Q) the lights I get those errors:
I alerady have:
Then I have edited the fxmanifest to this because previously the resource wan't even starting:
------------------------------
fx_version 'adamant'
games { 'gta5' }
author 'TrevorBarns w/ credits see GitHub'
description 'A siren / emergency lights controller for FiveM.'
version '3.2.8'
compatible '3.2.2'
------------------------------
experimental 'false' -- Mute unstable version warning in server console.
debug_mode 'false' -- More verbose printing on client console.
------------------------------
ui_page('UI/html/index.html')
dependencies {
'RageUI'
}
files({
'UI/html/index.html',
'UI/html/lvc.js',
'UI/html/style.css',
'UI/sounds/Hazards_Off.ogg',
'UI/sounds/Hazards_On.ogg',
'UI/sounds/Key_Lock.ogg',
'UI/sounds/Locked_Press.ogg',
'UI/sounds/Cencom/Downgrade.ogg',
'UI/sounds/Cencom/Off.ogg',
'UI/sounds/Cencom/On.ogg',
'UI/sounds/Cencom/Press.ogg',
'UI/sounds/Cencom/Release.ogg',
'UI/sounds/Cencom/Reminder.ogg',
'UI/sounds/Cencom/Upgrade.ogg',
'UI/sounds/SSP2000/Downgrade.ogg',
'UI/sounds/SSP2000/Off.ogg',
'UI/sounds/SSP2000/On.ogg',
'UI/sounds/SSP2000/Press.ogg',
'UI/sounds/SSP2000/Release.ogg',
'UI/sounds/SSP2000/Reminder.ogg',
'UI/sounds/SSP2000/Upgrade.ogg',
'UI/sounds/SSP3000/Downgrade.ogg',
'UI/sounds/SSP3000/Off.ogg',
'UI/sounds/SSP3000/On.ogg',
'UI/sounds/SSP3000/Press.ogg',
'UI/sounds/SSP3000/Release.ogg',
'UI/sounds/SSP3000/Reminder.ogg',
'UI/sounds/SSP3000/Upgrade.ogg',
'UI/sounds/ST300/Downgrade.ogg',
'UI/sounds/ST300/Off.ogg',
'UI/sounds/ST300/On.ogg',
'UI/sounds/ST300/Press.ogg',
'UI/sounds/ST300/Release.ogg',
'UI/sounds/ST300/Reminder.ogg',
'UI/sounds/ST300/Upgrade.ogg',
'UI/textures/background.png',
'UI/textures/day/horn_off.png',
'UI/textures/day/horn_on.png',
'UI/textures/day/lock_off.png',
'UI/textures/day/lock_on.png',
'UI/textures/day/siren_off.png',
'UI/textures/day/siren_on.png',
'UI/textures/day/slide_off.png',
'UI/textures/day/slide_on.png',
'UI/textures/day/ta_off.gif',
'UI/textures/day/tkd_off.png',
'UI/textures/day/tkd_on.png',
'UI/textures/night/horn_off.png',
'UI/textures/night/horn_on.png',
'UI/textures/night/lock_off.png',
'UI/textures/night/lock_on.png',
'UI/textures/night/siren_off.png',
'UI/textures/night/siren_on.png',
'UI/textures/night/slide_off.png',
'UI/textures/night/slide_on.png',
'UI/textures/night/ta_off.gif',
'UI/textures/night/tkd_off.png',
'UI/textures/night/tkd_on.png',
'UI/textures/ta/pattern_1/ta_center.gif',
'UI/textures/ta/pattern_1/ta_left.gif',
'UI/textures/ta/pattern_1/ta_right.gif',
'UI/textures/ta/pattern_2/ta_center.gif',
'UI/textures/ta/pattern_2/ta_left.gif',
'UI/textures/ta/pattern_2/ta_right.gif',
'UI/textures/ta/pattern_3/ta_center.gif',
'UI/textures/ta/pattern_3/ta_left.gif',
'UI/textures/ta/pattern_3/ta_right.gif',
'UI/textures/ta/pattern_4/ta_center.gif',
'UI/textures/ta/pattern_4/ta_left.gif',
'UI/textures/ta/pattern_4/ta_right.gif',
'UI/textures/ta/pattern_5/ta_center.gif',
'UI/textures/ta/pattern_5/ta_left.gif',
'UI/textures/ta/pattern_5/ta_right.gif',
'UI/textures/ta/pattern_6/ta_center.gif',
'UI/textures/ta/pattern_6/ta_left.gif',
'UI/textures/ta/pattern_6/ta_right.gif',
'UI/textures/ta/pattern_7/ta_center.gif',
'UI/textures/ta/pattern_7/ta_left.gif',
'UI/textures/ta/pattern_7/ta_right.gif',
'UI/textures/ta/pattern_a/ta_center.gif',
'UI/textures/ta/pattern_a/ta_left.gif',
'UI/textures/ta/pattern_a/ta_right.gif',
'UI/textures/ta/pattern_b/ta_center.gif',
'UI/textures/ta/pattern_b/ta_left.gif',
'UI/textures/ta/pattern_b/ta_right.gif',
'UI/textures/ta/pattern_c/ta_center.gif',
'UI/textures/ta/pattern_c/ta_left.gif',
'UI/textures/ta/pattern_c/ta_right.gif',
'UI/textures/ta/pattern_d/ta_center.gif',
'UI/textures/ta/pattern_d/ta_left.gif',
'UI/textures/ta/pattern_d/ta_right.gif',
})
shared_script {
'SETTINGS.lua',
}
client_scripts {
---------------RAGE-UI---------------
"@RageUI/RMenu.lua",
"@RageUI/menu/RageUI.lua",
"@RageUI/menu/Menu.lua",
"@RageUI/menu/MenuController.lua",
"@RageUI/components/Audio.lua",
"@RageUI/components/Enum.lua",
"@RageUI/components/Keys.lua",
"@RageUI/components/Rectangle.lua",
"@RageUI/components/Sprite.lua",
"@RageUI/components/Text.lua",
"@RageUI/components/Visual.lua",
"@RageUI/menu/elements/ItemsBadge.lua",
"@RageUI/menu/elements/ItemsColour.lua",
"@RageUI/menu/elements/PanelColour.lua",
"@RageUI/menu/items/UIButton.lua",
"@RageUI/menu/items/UICheckBox.lua",
"@RageUI/menu/items/UIList.lua",
"@RageUI/menu/items/UISeparator.lua",
"@RageUI/menu/items/UISlider.lua",
"@RageUI/menu/items/UISliderHeritage.lua",
"@RageUI/menu/items/UISliderProgress.lua",
"@RageUI/menu/panels/UIColourPanel.lua",
"@RageUI/menu/panels/UIGridPanel.lua",
"@RageUI/menu/panels/UIPercentagePanel.lua",
"@RageUI/menu/panels/UIStatisticsPanel.lua",
"@RageUI/menu/windows/UIHeritage.lua",
-------------------------------------
'SIRENS.lua',
'UTIL/cl_lvc.lua',
'UTIL/cl_storage.lua',
'UTIL/cl_utils.lua',
'UI/cl_hud.lua',
'UI/cl_ragemenu.lua',
'PLUGINS/cl_plugins.lua',
-------------------------------------
'PLUGINS/extra_controls/controls.json',
'PLUGINS/extra_controls/SETTINGS.lua',
'PLUGINS/extra_controls/UI/cl_ragemenu.lua',
'PLUGINS/extra_controls/UTIL/cl_extracontrol.lua',
'PLUGINS/extra_integration/SETTINGS.lua',
'PLUGINS/extra_integration/UI/cl_ragemenu.lua',
'PLUGINS/extra_integration/UTIL/cl_extras.lua',
'PLUGINS/takedowns/SETTINGS.lua',
'PLUGINS/takedowns/UI/cl_ragemenu.lua',
'PLUGINS/takedowns/UTIL/cl_tkds.lua',
'PLUGINS/traffic_advisor/SETTINGS.lua',
'PLUGINS/traffic_advisor/UI/cl_ragemenu.lua',
'PLUGINS/traffic_advisor/UTIL/cl_advisor.lua',
'PLUGINS/trailer_support/SETTINGS.lua',
'PLUGINS/trailer_support/UI/cl_ragemenu.lua',
'PLUGINS/trailer_support/UTIL/cl_trailer.lua',
'PLUGINS/extra_controls/controls.json',
}
server_script {
'UTIL/sv_lvc.lua',
-------------------------------------
'PLUGINS/extra_controls/UTIL/sv_version.lua',
'PLUGINS/extra_integration/UTIL/sv_version.lua',
'PLUGINS/takedowns/UTIL/sv_tkds.lua',
'PLUGINS/takedowns/UTIL/sv_version.lua',
'PLUGINS/traffic_advisor/UTIL/sv_advisor.lua',
'PLUGINS/traffic_advisor/UTIL/sv_version.lua',
'PLUGINS/trailer_support/UTIL/sv_version.lua',
}
------------------------------
And at the end I have edited the SIRENS.lua file to this:
SIREN_ASSIGNMENTS = {
--['<gameName>'] = {tones},
['DEFAULT'] = { 1, 2, 3, 4 },
--['FIRETRUK'] = { 12, 13, 14, 11 },
--['AMBULAN'] = { 1, 2, 3, 4, 11 },
--['LGUARD'] = { 1, 2, 3, 4, 11 },
['AMSAMBULANCE'] = { 1, 2, 3, 4, 11 },
['AMSCAR'] = { 1, 2, 3, 4, 11 },
}
Save / Load custom renamed sirens.
I have some rmod police cars and they do not work with this. Any way to accommodate ELS here?
Hello!
With addon vehicles the sirens do not work, only the manual ones go. Is there any way to fix it? Thanks
With about 25 people on beta server with no conflicting scripts, after a bit (Approx. 15-20 mins) All sounds controlled by the Lux vehicle control just stops for specific people and doesn't work/play audio.
Had to revert to stable version with no menu.
Fresh install of LVC straight from the latest release on this repo. None of the sounds are working for me (as in the sounds generated by LVC, such as clicks, reminder beep, etc.; sirens and other sounds are fine). Have checked everything I can think of and can't figure out why it's not working. This is on a Linux server. Please let me know if you need any other information to troubleshoot and help resolve. Thank you. -Shawn
Hey,
is there a possibility to set the default HUD position server sided? So all players have the HUD at the same scale and position until they change it by there own? I dont find that option in the configs.
On random vehicles in Utility, Commerical, Industrial and others the HUD will appear when spawning from Emergency to sed vehicle classes. This also crashes game from time to time.
Hello all!
Is there any interest here to support multiple languages? I have to manually convert translations every time I update.
I could very well imagine working here, as in many other scripts, with an extra 'locales' folder and existing locale files for each supported language.
If such support is desired, then I would be willing to implement this conversion and create a pull request for later review.
Best regards
Dustin
So basically the manual siren (R-Button) doesn't work until you honk once. Tried it out, doesn't matter which Airhorn Behaviour is selected. Also tried it with enabling siren per 1/2/3-button, disabling siren and then trying manual. So seems like you really have to honk once to make manual siren work.
Edit: The SFX doesn't sound either
~Paul
I'm having an issue where sirens are getting stuck on if there are passengers in a vehicle and the driver exits the vehicle with the siren on. When someone enters the driver seat again and presses ALT the sirent doesn't turn off. Then if ALT is pressed again a second siren will turn on. The vehicle then is in a permanent state, whether there is a passenger or not, where if you exit with the siren on the siren can't be turned off. Not sure if this is a general FiveM issue or some setting I may have in one of my scripts causing this. Or if it is the versions of the vehicles I am using.
Hey,
i just installed it but i can't get it to work. I currently use this Pack
and tried the following:
`--------------------TRAFFIC ADVISOR SETTINGS---------------------
ta_masterswitch = true
-- Determines if traffic_advisor plugin can be activated.
ta_combokey = false
-- Key that needs to be pressed in combination with registered key mapping. Set to false to disable. (default: disabled (false))
--[[ Documentation / Wiki: https://github.com/TrevorBarns/luxart-vehicle-control/wiki/Traffic-Advisor ]]
TA_ASSIGNMENTS = {
['DEFAULT'] = { lightbar = 3
left = { on = { add = 11, remove = 10, repair = true }, off = { add = { 10 }, remove = { 11 } } },
right = { on = { add = 12, remove = 10, repair = true }, off = { add = { 10 }, remove = { 12 } } },
middle = { on = { add = { 10 }, remove = {}, repair = true }, off = { add = {}, remove = { 10 } } },
},
`
The Left Function is on Extra11, the right function on Extra12, Middle on Extra10.
Can anyone help me out?
Is it correct that i trigger the TA with the indicator-buttons? Or do they have extra keys? Would be great if the Wiki Pages could be more detailed :)
Thank you :)
Im having issues where the sirens arent synced the driver can hear the siren but the passenger cant hear it or sometimes if there is a player near me they here the default siren but if they turn on their siren they here the custom siren they have.
As the owner of a british server, almost every emergency vehicle we use is an ELS vehicle, and as such we are forced to use two different sytems, one for ELS and one for NON-Els cars. Making it so we could exclude models from using this script would be incredible
It's a very good design upgrade you have here. Adding DLS lighting config support would take it to the next level. DLS (Dynamic Lighting System) is something that was made for non-ELS cars on single player to give you Multi-stage lights. Especially helpful when you can't find your favorite cars (my case vanilla enhanced) in ELS.
Just a thought. (Not an issue)
Maybe it something you've got on your radar, but thought I'd offer it up.
i need to turn on the warning lights but i want it to be de primary can i change that and how?
So pretty simple, on some emergency vehicles LVC is just removing the lightbar. Is there some way to fix this?
I think it does not delete the lightbar on vehicles where the lightbar is an extra you can enable and disable but does delete it on vehicle where the lightbar is not an extra.
Edit: Appearently its just adding and removing random extras
2nd Edit: It does also delete extras on saved vehicles where, for example, Extra 1 is enabled and Extra 2 is disabled, LVC ist just disabling Extra 1 or something like that
~Paul
I haven't been able to get the blackout function to work on any vehicles. :( I've checked in the FiveM key binds to ensure I have the correct key mapped, and I've tried it with a few different key binds just in case. No luck. Any idea what might be going on?
When trying to cycle the sirens with R
while all tones are set to "Button only", the client starts to hang indefinitely.
Version: 3.1.3-beta
O
(Alt + Q)
R
to cycleNothing, there are no sirens to cycle through.
The FiveM client hangs and can only be closed using the task manager.
I believe there may be an infinite loop going on trying to cycle through an empty list of sirens, since none are enabled for the "cycle" mode.
luxart-vehicle-control/client.lua
Lines 611 to 647 in 6c2ad06
Unfortunately my LUA knowledge is not sufficient enough to debug a script of this size myself.
When I change Tone Options for a particular siren (such as setting Priority to Button Only, which I always like to do), and then goto Storage Management > Save Settings and save my configuration, it doesn't restore when I'm back in the vehicle again later. Let me know what information I can provide to help troubleshoot further. Thank you. -Shawn
For some cars i can only blast the siren by holding R but i can toggle them with other emergency cars. this has the same vehicles.meta as the other car it works for apart from the name.
I've installed the latest release of LVC and followed the instructions as closely as I could.
I do not see any error jumping out at me.
The UI of the controller does appear.
I do have the Shift H takedown function working.
The siren will sound while holding R.
The up-arrow key does not work.
The E horn also works.
...however, Q will not start my lights, nor can I then L ALT for my sirens.
I'm attempting to get the lighting and sirens functioning on the addon LEO vehicles I have added, which are JA Deigns' Code 3 Mega Pack. Checking the [vehicle.meta] the vehicle class is set as VC_EMERGENCY.
This is not an issue for only 1 vehicle but every vehicle I have added, the entirety of the Code 3 Mega Pack three times as I have uploaded them each three times with different department liveries.
TIA!
[here is what I think is the error log if it helps and I am missing something.]
CitizenFX_log_2022-06-03T221053.log
EDIT:
20 minutes after writing this I tried uploaded a vehicle from another pack and testing it. The Valor Pack I think from RedSaint is working correctly so I must have messed up the whole JA Designs pack. I will obviously go in and look myself but if you respond before I find it what are the first double checks to cross off?
I am experiencing a bug in which the wrong tones play. Yes I have ensured the wm sirens were installed correctly. Yes the bottom of the sirens.lua list each vehicle GAME NAME with the corresponding numbers of its assigned sirens.
In VEHICLES.lua I added a custom car like this:
car = { 1, 7, 10, 4 }
My intention is to have the cycle in the order of 7, 10, 4. Using R
to cycle those does work as expected and retains the order.
Now have a look at this list.
The labels are instead ordered by the corresponding number of the sound.
Priority = 4
BikeWail = 7
BikeYelp = 10
While this may be confusing on it's own, the real problem is, that the settings on the right (Cycle & Button) does not follow this ordering. To set the Priority sound to e.g. "Cycle only", you need to set BikeYelp at the bottom.
So, i have a custom FivePD server with my friend and we recently updated from Luxart by Lt.Cane to the newest release. However for some reason i cant get any of it to work, i have tried everything i can think of to get it to work, i have all of the keybinds listed in the Five M key binds section, but yet none of them work even for the default Police Cars. I would really like to get this working but i genuinely am out of ideas. If anyone could help me that would be dope! ill send ss and stuff if asked, but there are almost 0 Error codes and 0 indication as to why its not working
client randomly crashes with this installed
WM-ServerSirens is a server sided streaming resource. Build config option, instructions, schemes, vehicles.luas.
Submitted by VxperZ9421.
LVC works until vehicle extras are changed. Then the following error appears:
ragemenu.lua:92: Attempt to call a nil value (global 'IsPluginMenuOpen()' )
Any ideas?
When you tap horn while siren is on change to priority for 5-10 sec then it goes back to primary.
Submitted by Wolfrunner86.
Other comments: possibly check for brake input similar to real life.
Just went to the rev1 version to fix the in car radio. All of the siren settings save, except for the cycle/button settings. You can get in a car, make certain sirens button only, cycle only, etc and then save it. However, it doesn't save. Everything else saves. I have cars with rumblers and want the rumblers to be button only, but every time I get in a new car, it resets to cycle & button. All other settings save. Didn't have this issue before changing versions. I carried over the plugins and sirens.lua so I didn't have to redo them, idk if that's an issue.
Latest release from 5 days ago doesn't show up ingame. Console says couldn't find resource dont know why. Previous release worked fine
The Tilda key no longer seems to work for radio in emergency vehicles, I am on the latest LVC version.
Describe the bug
When selecting HUD Settings from the lux_vehcontrols menu said menu crashes and then cannot be reopened with F9 unless player disconnects and reconnects to the server.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
Display the HUD settings menu.
Extra Context
These are the plugins that are enabled at the time of this report:
ensure mapmanager
ensure chat
ensure spawnmanager
ensure sessionmanager
ensure fivem
ensure hardcap
ensure rconlog
ensure scoreboard
ensure cron
ensure fivem-map-hipster
ensure txAdmin
ensure RageUI
ensure 2020FPIUUM
ensure stealth16fpiu
ensure 2020IMPALA
#vrp
ensure ghmattimysql
ensure vrp_mysql
ensure vrp
ensure vrp_playernames
ensure vrp_basic_mission
ensure vrp_barbershop
ensure vrp_carwash
ensure vrp_loadfreeze
ensure vRP_AdvancedFuel
ensure vrp_job_display
ensure vrp_bankrobbery
ensure vrp_basic_menu
ensure vrp_barrier
ensure vrp_TruckerJob
ensure vrp_ubermission
ensure vrp_fixdvcar
ensure vrp_hotkeys
ensure vrp_doors
ensure railhouse
ensure online
ensure bob74_ipl
ensure pvp
ensure Ped
#condensed scripts (non-vrp)
ensure CustomScripts
#police skins
ensure PolicePeds
#vMenu
ensure vMenu
ensure kgv-phone
ensure handling
ensure lux_vehcontrol
Hey,
I searched for this issue and found something: #12
So TrevorBarns said, this is fixed, but I still get this issue. LVC works fine at first but also after about 30 minutes it breaks for some users and needs a restart. I got the newest version of LVC.
~Paul
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.