Everything posted by Rich
-
Automatic Siren Cutout
- 262 comments
- 34 reviews
-
Automatic Siren Cutout
I will try to replicate and diagnose this problem, but I haven't heard of it until now. Vehicles will still be deleted, but I'll try shrinking the radius that it happens in. Thanks for the input.
- 262 comments
- 34 reviews
-
Automatic Siren Cutout
The vehicle disappearing is normal, similar to how Ultimate Backup will delete vehicles in the area that the backup unit will be driving to. However, the occupants popping out is a bug I haven't seen yet. Thank you for letting me know, I'll address it in the next release!
- 262 comments
- 34 reviews
-
Automatic Siren Cutout
- 262 comments
- 34 reviews
-
Automatic Siren Cutout
- 262 comments
- 34 reviews
-
Automatic Siren Cutout
- 262 comments
- 34 reviews
-
Force pursuit peds to stay in vehicle after vehicle is disabled?
Is there a way to force vehicle occupants to stay in their vehicle after the vehicle has been disabled during a pursuit? Looks like LSPDFR forces them out with an internal task. Performing Tasks.Clear didn't appear to have any effect.
-
Automatic Siren Cutout
Unfortunately I cannot fix your problem without more information. Sorry you couldn't get it to work!
- 262 comments
- 34 reviews
-
Automatic Siren Cutout
- 335,168 downloads
- Version 3.1.5
Merged into Rich's Police Enhancements v1.6 About Automatic Siren Cutout is a plugin created primarily for ELS users. This script will automatically turn off your sirens while keeping your emergency lights on when you get out of emergency vehicles. Be advised, this will not work if you use your mouse to exit your vehicle or toggle your lights. Keyboard or controller only. Included Features Friendly Honk: A fun little feature that makes other emergency vehicles honk their horn or blip their siren at you if you honk or blip your siren at them. Traffic Light Control: Turn traffic lights green as you approach intersections with stage 3 lighting enabled. This does not affect AI traffic. Traffic Yielding AI will drive around your vehicle when you are stopped with stage 3 lighting on.- 262 comments
- 34 reviews
-
Issue getting vehicle tint
While using the native GET_VEHICLE_WINDOW_TINT, the value always returns -1 on cars that I haven't manually changed the tint on. Does anyone know if there's a workaround for this, or if it's possible to get the correct tint value? The correct value returns if I change the tint with my trainer first.
-
My game crashes when answering calls
The RAGE website.
-
My game crashes when answering calls
Your RAGE Plugin Hook is out of date.
-
Removing blips on LSPDFR crash?
How would I go about ensuring that when LSPDFR crashes, blips created by my plugin are deleted? Currently they stay on the map indefinitely.
-
Manipulate ELS through code?
I appreciate you taking the time to help.
-
Manipulate ELS through code?
Thanks for the info, I wasn't aware of that. After implementing that native as suggested, it no longer crashes, but it doesn't seem to be affected by lights or sirens. Am I doing this wrong? if (Rage.Native.NativeFunction.Natives.xB5CC40FBCB586380<bool>(playerVehicle) == true) { Game.DisplaySubtitle("Siren sound is on"); } else { Game.DisplaySubtitle("Siren sound is off"); } It never returns true. I've found that if I check if a player is in a vehicle, then execute (Rage.Native.NativeFunction.Natives.SetVehicleSiren(playerVehicle, true)) The siren will play until the player exits the vehicle. This is close to what I'm trying to do, but I do not want to always have the siren set while the player is in the vehicle. If I instead try to execute that line of code as false if the player is no longer in the vehicle (after the player turned the siren on themselves) the siren will not turn off.
-
Manipulate ELS through code?
I was calling it just like every other functional native: Rage.Native.NativeFunction.CallByName<bool>("_IS_VEHICLE_SIREN_SOUND_ON", playerVehicle);
-
Manipulate ELS through code?
Is it possible to manipulate ELS through code? Specifically to turn on and off the different sirens? The IsSirenSilent and IsSirenOn vehicle properties are only affected by stage 3 lights, not sirens. The native "SET_VEHICLE_SIREN" will turn siren tone 1 on if lights are off, blip if stage 1 or stage 2 lights are on, and do nothing if stage 3 lights are on. The native "_IS_VEHICLE_SIREN_SOUND_ON" will either crash RPH or GTA V depending on if it's used when stage 3 lights are on or off.
-
[SOLVED] Can't Manipulate Ped after Invoking Animation
Goal: Make ped flee when player is within X distance of the ped (before pursuit initiates). Problem: When I am within 50m of the ped, the animation stops but nothing else happens. The ped becomes static. They don't even flee when the pursuit initiates unless I knock them over. I've spent a majority of the day troubleshooting and trying different solutions (including using natives, clearing ped tasks, and changing BlockPermanentEvents to false). I would appreciate some guidance. Edit: It turns out that when I am within 50m the animation will stop and the ped is static, but when I leave the 50m area the ped will then flee. Solution Edit: I was able to fix my problem by creating a boolean for Fleeing and incorporating it into my if statement, similar to how the pursuit is managed. I will leave this post here in case someone has a similar issue in the future. OnCalloutAccepted() if ((SpawnChance >= 5 && SpawnChance <= 9) && rand <= 50) { Game.LogTrivial("Spawning Dealer ped outside of buyer vehicle"); Dealer = new Ped("csb_ballasog", BuyerVehicle.GetOffsetPosition(new Vector3(1f, 0f, 0f)), BuyerVehicle.Heading + 90f); Dealer.RandomizeVariation(); // Random clothing Dealer.IsPersistent = true; Dealer.BlockPermanentEvents = true; Dealer.Tasks.PlayAnimation("amb@prop_human_bum_shopping_cart@male@idle_a", "idle_b", 1, AnimationFlags.Loop); } Process() if (Game.LocalPlayer.Character.DistanceTo(Dealer.Position) < 50f) { // Make dealer flee when player is within 50m //Game.DisplayHelp("Player within distance"); Dealer.Tasks.Flee(Game.LocalPlayer.Character, 100, -1); } Process() fixed if (!Fleeing && Game.LocalPlayer.Character.DistanceTo(Dealer.Position) < 50f) { // Make dealer flee when player is within 50m //Game.DisplayHelp("Player within distance"); Dealer.Tasks.Flee(Game.LocalPlayer.Character, 100, -1); Fleeing = true; }
-
Need Help Identifying Different Types of Crashes
Thank you, I've re-downloaded and re-installed VocalDispatch and Computer+ and will see if it changes anything. Edit: The VocalDispatch issue was due to my audio driver breaking as a result of a Windows update I did last night, thus disabling the jack my mic was plugged into. Downloading the most recent audio driver for my motherboard fixed it. As far as the invalid vehicle models go, I am aware of this. I am troubleshooting a personal vehicle pack and had to remove it temporarily. The models are still present in other files. Thanks for the help
-
Need Help Identifying Different Types of Crashes
I'm usually pretty good about troubleshooting my problems, but there are a few issues I've had recently that I haven't been able to solve after extensive Googling. My first problem is a random LSPDFR crash that doesn't seem to be triggered by anything in particular. I don't have a full log from the last time it happened, but I have this bit: My second issue is with Vocal Dispatch. It just started happening last night where when I hit the input button, the PTT sound plays, but it immediately gives the tooltip for not understanding what was said (before I even said anything), then it doesn't seem to register any subsequent PTT attempts. The third issue is with Computer+ I believe, or some mod conflicting with it. I'm aware some people have issues with Computer+ crashing regularly. I've disabled ped and vehicle images in the options. The crash seems to happen most commonly when I open the computer and click ped database to pull up someone's information. In the spoiler below is the full log from my last session. I've bolded two areas, one which pertains to VocalDispatch when it stopped working, and the other being DropTheWeapon at the very end while I was accessing Computer+. Please also find below a picture of my plugins folder if you need it. Thanks for your time.