Hello everyone,
Today I bring to you a super simple addition to Lt.Caines Luxart Vehicle Controls with Faction’s sound edits. My contribution to this script is the ability to switch the TA patterns on SoCalThero’s newest CHP/SAHP pack
I have to stress that not all cars/models are the same this was a collaborative effort with Thero as I brought up to him during his beta testing if it was possible to have all cars have a uniform extra structure for the TA bar and he graciously agreed. I hope in the future the script is able to be used by more and more models.
Controls : 1, 2, and 3 keys on the top row of Keyboard 1. Right to Left TA pattern (Passenger to Driver) 2. Center to Out TA pattern 3. Left to Right TA pattern (Driver to Passenger) 4. Toggle Scene Lighting (LAPD/LSPD Pack ONLY)
Installation: Drag and drop lux_vehcontrol folder into your resources
If you already have lux_vehcontrol and have changes open up the client.lua I provide and copy lines 461-489 into your client.lua within the “if not IsPauseMenuActive()” statement.
I realize the addition is very minimal but looking at the forums I’m sure there are people that want this and are either too lazy to code it or simply don’t have the coding experience.
This release IS A MODIFICATION TO AN ORIGINAL SCRIPT!
Luxart Vehicle Control with added sounds by Faction. Luxart is a script for NON-ELS vehicles and originally made by @Lt.CaineALL CREDIT TO THEM . My contribution to this script solely adds the ability to change the TA pattern on SPECIFIC VEHICLES (Thero’s CHP/SAHP pack)
Scene Lighting toggle is only available in Thero’s new LAPD based pack found here (Thero’s LAPD/LSPD pack)
MODERATORS
If this post is considered to be against the Terms of Service for releases feel free to remove it.**
I will try and provide support but it’s a drag and drop resource if the keybinds conflict you can edit the client.lua with any keybind you want found in the FiveM keybind master list.
I am a vehicle modeler and I would love to know how to make cars that are comparable with this resource. If you could give more explanation on how the resource works and what is required of the vehicle model that would be great!
I will upload a video as soon as I can, it’s really quite simple it simply changes the extra that is enabled on Thero’s car as I stated the keys 1 2 and 3 are each bound to an extra/pattern.
I am not too sure how Thero models but the way he set up his vehicles is so that certain extras had a different pattern than others. For example, extra 10 goes from the center out, extra 11 goes from passenger to driver, and extra 12 goes from driver to passenger. This is more of a modeling question and I’d much rather direct you to his post on his vehicles that use this system maybe in that thread he could help you more.
I figured it out. Thero simply grouped the TA Sirens into a group and made each group an extra, and AlphaDog you just Made Luxart where you can toggle Extras with a keybind (1,2, or 3)
Cool, Uses too many sirens for me, but I totally appreciate the work!
I know devs like XBR has done that before. Using extras to block/hide lights, ambers going different directions that can be controlled with extras. There could be a lot more than one car pack with this script
ok question… if i want to add other extras, would it look like this to add extra 9? not worried about the keybinding, moreless how to add more extras to other keys
– First thing
elseif IsControlJustPressed(1, 158) or IsDisabledControlJustPressed(1, 158) then
if IsVehicleExtraTurnedOn(GetVehiclePedIsUsing(GetPlayerPed(-1), false), 9) then
else
SetVehicleExtra(GetVehiclePedIsUsing(GetPlayerPed(-1), false), 12, true)
SetVehicleExtra(GetVehiclePedIsUsing(GetPlayerPed(-1), false), 11, true)
SetVehicleExtra(GetVehiclePedIsUsing(GetPlayerPed(-1), false), 10, true)
SetVehicleExtra(GetVehiclePedIsUsing(GetPlayerPed(-1), false), 9, false)
TriggerEvent(“lux_vehcontrol:ELSClick”, “On”, 0.5)
end
Yes, essentially whatever extras you are using for example extras 1 2 and 3 you would do
SetVehicleExtra(GetVehiclePedIsUsing(GetPlayerPed(-1), false), 1, false)
to enable the extra
and then do
SetVehicleExtra(GetVehiclePedIsUsing(GetPlayerPed(-1), false), 2, true)
SetVehicleExtra(GetVehiclePedIsUsing(GetPlayerPed(-1), false), 3, true)
to disable the ones that need to be disabled.
– First thing
elseif IsControlJustPressed(1, 158) or IsDisabledControlJustPressed(1, 158) then
if IsVehicleExtraTurnedOn(GetVehiclePedIsUsing(GetPlayerPed(-1), false), 9) then
else
SetVehicleExtra(GetVehiclePedIsUsing(GetPlayerPed(-1), false), 12, true)
SetVehicleExtra(GetVehiclePedIsUsing(GetPlayerPed(-1), false), 11, true)
SetVehicleExtra(GetVehiclePedIsUsing(GetPlayerPed(-1), false), 10, true)
SetVehicleExtra(GetVehiclePedIsUsing(GetPlayerPed(-1), false), 9, false)
TriggerEvent(“lux_vehcontrol:ELSClick”, “On”, 0.5)
end
for every extra, however only one extra at a time goes on… how do i make it so i can toggle each extra on and off separate? so i can have extras 1 2 3 on and 4 off or all them on
because like my cars have white flashing, and rear flashing and middle of the bar, i want to turn them on and off for different things
If I’m understanding you correctly you want to turn on multiple extras in that case with your example of extras 1 2 3 and 4 if you want the first three to turn on when “IsControlJustPRessed(1,158)” your code should look like this.
– First thing
elseif IsControlJustPressed(1, 158) or IsDisabledControlJustPressed(1, 158) then
SetVehicleExtra(GetVehiclePedIsUsing(GetPlayerPed(-1), false), 1, false)
SetVehicleExtra(GetVehiclePedIsUsing(GetPlayerPed(-1), false), 2, false)
SetVehicleExtra(GetVehiclePedIsUsing(GetPlayerPed(-1), false), 3, false)
SetVehicleExtra(GetVehiclePedIsUsing(GetPlayerPed(-1), false), 4, true)
TriggerEvent(“lux_vehcontrol:ELSClick”, “On”, 0.5)
end
It’s basically backwards “false” is enabled and “true” is disabled the native basically set the “hidden” property so hidden = false means its enabled.
I did it this way for my server and felt like sharing the list on key binds is out there and the script is editable. In my eyes what you said isn’t easier for my player base so really it’s in the eyes of the beholder, but like I said it’s editable to each person’s taste