Brake Lights 1.1
5 614
68
-
listopad 06, 2017
- Script Hook V
- Script Hook V .NET
Information:
Allows you to Enable/Disable the Automatic Brake Lights
when the vehicle Is Stopped!
You can toggle it on or off in side the: Brake_Lights.Ini
Allows you to Enable/Disable vehicle Brake Lights
You can change the default button inside the Brake_Lights.Ini
Default button = L
Changelog:
1.1 .Added a option: when you're vehicle is stopped
the vehicle lights will turn on automatic
You can Enable/Disable this option inside the: Brake_Lights.Ini
1.0 .First Upload!
Feel free to leave feedback, or share your experience.
Dodano: listopad 03, 2017
Ostatnia aktualizacja: listopad 06, 2017
Last Downloaded: 9 hours ago
21 Komentarzy
More mods by Meestal_Richard:
- Script Hook V
- Script Hook V .NET
Information:
Allows you to Enable/Disable the Automatic Brake Lights
when the vehicle Is Stopped!
You can toggle it on or off in side the: Brake_Lights.Ini
Allows you to Enable/Disable vehicle Brake Lights
You can change the default button inside the Brake_Lights.Ini
Default button = L
Changelog:
1.1 .Added a option: when you're vehicle is stopped
the vehicle lights will turn on automatic
You can Enable/Disable this option inside the: Brake_Lights.Ini
1.0 .First Upload!
Feel free to leave feedback, or share your experience.
Dodano: listopad 03, 2017
Ostatnia aktualizacja: listopad 06, 2017
Last Downloaded: 9 hours ago
-
Whats different to Skorpro's script? Does it have the same bug that the brake lights don't work when braking if its turned on? @Riovissoman
listopad 03, 2017 -
@MrGTAmodsgerman
Brake Lights By: Skorpro: - If you stop you're car the brake lights turn on.My script let you Enable/Disable the Break Lights and keep them on.
it's not a bug, because when you Enabled the breaking lights with my script it means the lights are already on. When you turn the break lights off, then the lights work like Vanilla again and when you break the lights go on.listopad 03, 2017 -
@Riovissoman On Skorpro's script it is a bug, because the function runs instantly. Which means that its aktivated when your car is speeding. But that disable the brakelights. It should run only when the car really is stopped. And your script don't do this automaticly?
listopad 04, 2017 -
@MrGTAmodsgerman
No, This script is only made to enable/disable the brake light when clicking on a button.
So if you would like to drive with the brake lights on for example.
You can change the key inside the .iniI'm not that good in scripting yet that i know how to make an automatic brake light, I would be happy to know how to do this in c# of course :-)
listopad 04, 2017 -
@Riovissoman I am not good at scripting too. But i could done this. First, check if your player is in the vehicle, then if the vehicle speed is > 0 to check if its standing fully. After that, make sure to enable the brake lights only if the speed is 0. So, you need to check it back, to prevent that kind of bug i am talking about. Check if speed is > 0 and disable the brake lights effect. That should work :P
You don't need to call alyways natives. You can simply use Points. I mean like. Game.World.Player.Character.CurrentVehicle.Is.. and so on
listopad 04, 2017 -
@MrGTAmodsgerman hey man Skorpro fixed that, I know I had that problem in the beginning too, then the next version fixed it and I use it ever since with no problems.
listopad 04, 2017 -
@tall70 Oh ok, thanks man :) nice to meet you again. Seems that i forget to follow the file.
listopad 04, 2017 -
@Hunk Ik they get agitated like nut jobs, also when danger is around they all turn into psychopaths and start running over everybody, i wish they would sometimes step out and just run away on foot or something, or even better step out and cover behind car....i don't have much time, but agitatedresponses and trigers metas might have potential for many mods fixing these, i already did this
and there must be more fun stuff to do
Another small thing missing is car lights in tunnel, AI get them automatically player don't, that can be done by script maybe.
listopad 04, 2017 -
@tall70 @MrGTAmodsgerman
I've added the option that the brake lights will turn on when the vehicle is stopped. The brake works when you drive and like to brake the lights will go on just as vanilla. The script will only force the brake lights to be on when the vehicle is stopped and not moving.
I'm finishing and cleaning the code before release but i hope i made you a little happy with this option coming soon :-)listopad 06, 2017 -
-
@Riovissoman
Hi,
maybe it's useful for you or someone else:// GLOBAL
float fBrakeLightSpeedTolerance = 0.5f; // or read it from INI
#define ich PLAYER_PED_ID()// FUNCTION
void skpBrakeLight(float fMaxToleranceSpeed)
{
if (IS_PED_IN_ANY_VEHICLE(ich, 1))
{
Vehicle brakeLightCar = GET_VEHICLE_PED_IS_USING(ich);
if (GET_ENTITY_SPEED(brakeLightCar) < fMaxToleranceSpeed || IS_VEHICLE_STOPPED(brakeLightCar)) SET_VEHICLE_BRAKE_LIGHTS(brakeLightCar, 1);
}
}// LOOP IN MAIN (C++)
skpBrakeLight(fBrakeLightSpeedTolerance);( Taken from: https://www.gta5-mods.com/scripts/brake-lights-v1-0-game-clock-v1-0-skorpro )
Keep it up :)
@MrGTAmodsgerman @tall70
I'm happy to see, that some people still remember me after over 2 years of silence... Thanx! :Dlistopad 07, 2017 -
@skorpro
Thank you for this information
Even without asking you where so nice to share a part of your own script, I appreciate it.
This is how we all learn and make better mods.I'm scripting in c# and this is the source code of version 1.1 Newest right now, So you could see how i've done this: https://pastebin.com/iVEVTZNr
What do you think of this so far?listopad 07, 2017 -
@skorpro Nice dass es dich noch gibt. Hätte nie damit gerechnet :P
listopad 07, 2017 -
@Riovissoman
You're welcome :) Your code looks good to me!Hint: I prefer to name the variables analog to the types. Example:
bool bBrakeLights;
int iCounter; // or nCounter
float fCoord;Coz there is already a function called "BrakeLightsOn"!
I'm NOT very familiar with C# but in C++ you could get an ass kick for this ;)This is how I would do it:
// C# CODE
private void OnTick(object sender, EventArgs e)
{
PlayerPed = Game.Player.Character;
if (PlayerPed.IsInVehicle())
{
vehicle = PlayerPed.CurrentVehicle;
if (bBrakeLightsOn == true) vehicle.BrakeLightsOn = true; // bool var "BrakeLightsOn" renamed to "bBrakeLightsOn"!
else if (vehicle.IsStopped || vehicle.Speed < 0.5f) // 0.5 = speed-tolerance
{
if (Automatic_Brake_Lights == true) vehicle.BrakeLightsOn = true;
}
}
}@MrGTAmodsgerman
Doch, doch, bin noch da ;)
Aber ich code nur noch selten was und wenn, dann nur so zum Zeitvertreib, ohne Release!
Außerdem gibt's ja schon (fast) alles, da braucht keiner mehr meine Mods :)
Zocke gelegentlich mal die Stunt-Rennen in GTA Online. Das war's dann aber auch.
C ya :D@ALL
Is it possible to use BBCodes in the comments?listopad 07, 2017 -
@skorpro Es gibt fast alles? Ich habe so viele Ideen. Kannst du sehr gut skripten?
listopad 07, 2017 -
thanks so can u make wipers mod i mean in all cars in gta v they have all wipers in windsheild and it's idle always so can u make it movable for suppose if rain and you are driving and if u press F7 Or something and wipers are moving...... haha.... please and your mod is good but if u make wipers make moving then that will really really good ;D
styczeń 03, 2019 -
@Venkey It's been made already. Try searching the site before asking for [xyz] to be made on someone's page.
https://www.gta5-mods.com/vehicles/project-of-wipers-for-original-carsstyczeń 03, 2019 -
Change log:
Version 1.1 .Added a option: when your vehicle is stopped
the vehicle lights will turn on automatic.
You can Enable/Disable this option inside the: Brake_Lights.Ini