Skip to content
View in the app

A better way to browse. Learn more.

LCPDFR.com

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

khorio

Members
  • Joined

  • Last visited

Everything posted by khorio

  1. public static class EntryPoint This is what rage is looking for when it starts your plugin, the EntryPoint class
  2. [assembly: Rage.Attributes.Plugin("My First Plugin", Description = "This is my first plugin.", Author = "MyName")] using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace MyFirstPlugin { public static class EntryPoint { public static void Main() { } } } http://docs.ragepluginhook.net/html/51ce7151-4a76-4b21-be90-34d114769311.htm Follow that or it won't work, especially the references to the EntryPoint class.
  3. Is it a rage plugin or an lspdfr one? might wanna post your starting code
  4. So i had massive lag while my callout was running, i timed everything up to my entire main process, and the highest i got is 5ms. Is there something else that could cause this slowdown? Or something else i should check?
  5. Will breathalyzer stop crashing if you move a speedtrap with Num8 after you've breathalyzed someone? :)
  6. public static void ToggleSpeedoMeter() { stop = !stop; SpeedoMeterMain(); } fixed that now :p but still the same duplication
  7. still no go sadly, Now it doesn't appear at all :) using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using Rage; using Gwen; using RagePluginHook; using System.Drawing; using RAGENativeUI.Elements; using System.Windows.Forms; using System.Diagnostics; using System.Threading; namespace KTools { class SpeedoMeter { private static TimerBarPool timerBarPool; private static TextTimerBar SpeedText; private static bool stop; public static void ToggleSpeedoMeter() { stop = !stop; Game.LogTrivial("Toggle: " + stop.ToString()); } public static void SpeedoMeterMain() { Game.FrameRender += Process; timerBarPool = new TimerBarPool(); SpeedText = new TextTimerBar("Speed", "0 km/h"); timerBarPool.Add(SpeedText); } public static void Process(object sender, GraphicsEventArgs e) { if (!stop) { return; } timerBarPool.Draw(); SpeedText.Text = MathHelper.ConvertMetersPerSecondToKilometersPerHourRounded(Game.LocalPlayer.Character.Speed) + " km/h"; } } } [21/05/2016 00:38:55.416] Plugin "KTools" was loaded from "KTools.dll". [21/05/2016 00:39:00.515] KTools: Toggle: True [21/05/2016 00:39:01.717] KTools: Toggle: False [21/05/2016 00:39:02.524] KTools: Toggle: True [21/05/2016 00:39:03.525] KTools: Toggle: False Nevermind, it would help if i added a call to SpeedoMeterMain() :p So its the same problem all over with this, here's after toggling it 4 times (apologies for the pbrush quality :p) It seems like it keeps adding new ones on top of it, thats why i tried to setting it to null and all that.
  8. Is there any way to toggle a timerbar on and off without it duplicating? public static void NewStart() { stop = false; SpeedoMeterMain(); } public static void SpeedoMeterMain() { if(!stop) { Game.FrameRender += Process; timerBarPool = new TimerBarPool(); SpeedText = new TextTimerBar("Speed", "0 km/h"); timerBarPool.Add(SpeedText); ismade = true; } } public static void KillSpeedoMeter() { stop = true; timerBarPool.Remove(SpeedText); timerBarPool = null; SpeedText = null; } public static void Process(object sender, GraphicsEventArgs e) { if(stop) { return; } timerBarPool.Draw(); SpeedText.Text = MathHelper.ConvertMetersPerSecondToKilometersPerHourRounded(Game.LocalPlayer.Character.Speed) + " km/h"; } I've been trying all kinds of methods but it just won't give in :p Any help is appreciated :)
  9. Awesome, thanks a lot :)
  10. looks like recordperformance no longer works in rage, is there a another way to check a plugins execution time?
  11. pervs chasing girls, but that's beyond the point :p Fixed my problem, had a loop error. But now this is what happens after my callout finishes : [19/05/2016 04:19:43.914] [TRACE] Arrested or dead [19/05/2016 04:19:43.940] [TRACE] No more suspects useable, aborting chase [19/05/2016 04:19:43.944] [TRACE] Removing ped from ChaseController #1 (GameplayMandatory) [19/05/2016 04:19:43.948] [TRACE] Removing ped from ChaseController #1 (GameplayMandatory) [19/05/2016 04:19:43.948] [TRACE] Instance cleaned (ChaseController #1) [19/05/2016 04:19:43.948] [TRACE] Aborted chase [19/05/2016 04:19:43.951] [TRACE] Instance cleaned ( #1) [19/05/2016 04:19:55.837] [TRACE] Ending already [19/05/2016 04:19:55.842] at System.Environment.GetStackTrace(Exception e, Boolean needFileInfo) [19/05/2016 04:19:55.842] at System.Environment.get_StackTrace() [19/05/2016 04:19:55.842] at LSPD_First_Response.Engine.BaseComponent.End() in E:\GTA V\LSPD First Response\LSPD First Response\Engine\BaseComponent.cs:line 34 [19/05/2016 04:19:55.842] at LSPD_First_Response.Mod.Callouts.Callout.End() in E:\GTA V\LSPD First Response\LSPD First Response\Mod\Callouts\Callout.cs:line 194 [19/05/2016 04:19:55.842] at LSPDFR_Khallouts.Callouts.Sexual_Harrassment.End() [19/05/2016 04:19:55.842] at LSPDFR_Khallouts.Callouts.Sexual_Harrassment.Process() [19/05/2016 04:19:55.842] at ?????????????????????????????????????????.?????????????????????????????????????????() in E:\GTA V\LSPD First Response\LSPD First Response\Mod\Callouts\CalloutManager.cs:line 197 [19/05/2016 04:19:55.842] at Rage.GameFiber.Main() [19/05/2016 04:19:55.842] at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx) [19/05/2016 04:19:55.842] at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx) [19/05/2016 04:19:55.842] at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state) [19/05/2016 04:19:55.842] at System.Threading.ThreadHelper.ThreadStart() [19/05/2016 04:19:55.842] [TRACE] Ending already [19/05/2016 04:19:55.842] at System.Environment.GetStackTrace(Exception e, Boolean needFileInfo) [19/05/2016 04:19:55.842] at System.Environment.get_StackTrace() [19/05/2016 04:19:55.842] at LSPD_First_Response.Engine.BaseComponent.End() in E:\GTA V\LSPD First Response\LSPD First Response\Engine\BaseComponent.cs:line 34 [19/05/2016 04:19:55.842] at LSPD_First_Response.Mod.Callouts.Callout.End() in E:\GTA V\LSPD First Response\LSPD First Response\Mod\Callouts\Callout.cs:line 194 [19/05/2016 04:19:55.842] at LSPDFR_Khallouts.Callouts.Sexual_Harrassment.End() [19/05/2016 04:19:55.842] at LSPDFR_Khallouts.Callouts.Sexual_Harrassment.Process() [19/05/2016 04:19:55.842] at ?????????????????????????????????????????.?????????????????????????????????????????() in E:\GTA V\LSPD First Response\LSPD First Response\Mod\Callouts\CalloutManager.cs:line 197 [19/05/2016 04:19:55.842] at Rage.GameFiber.Main() [19/05/2016 04:19:55.842] at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx) [19/05/2016 04:19:55.842] at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx) [19/05/2016 04:19:55.843] at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state) [19/05/2016 04:19:55.843] at System.Threading.ThreadHelper.ThreadStart() anyone?
  12. just changed it, same problem sadly..
  13. The plugin i'm trying to make keeps crashing over weird stuff and i can't seem to figure out why. public override bool OnCalloutAccepted() { AreaBlip = new Blip(SpawnPoint,20f); AreaBlip.Color = Color.Yellow; AreaBlip.Alpha = 100; AreaBlip.EnableRoute(Color.Yellow); Rage.Native.NativeFunction.CallByName<uint>("TASK_REACT_AND_FLEE_PED", Victim, Suspect); Suspect.Tasks.EnterVehicle(Bike, -1).WaitForCompletion(); Suspect.Tasks.ChaseWithGroundVehicle(Victim).WaitForCompletion(2000); check = 0; Game.LogTrivial("k: 1/10 Create Pursuit"); Pursuit = Functions.CreatePursuit(); Game.LogTrivial("k: 2/10 Entering Runthings()"); runthings(); return base.OnCalloutAccepted(); } public override void OnCalloutNotAccepted() { if (Suspect.Exists()) Suspect.Dismiss(); if (SuspectBlip.Exists()) SuspectBlip.Delete(); if (Victim.Exists()) Victim.Dismiss(); if (VictimBlip.Exists()) VictimBlip.Delete(); base.OnCalloutNotAccepted(); } public void runthings() { Game.LogTrivial("k: 3/10 Deleting AreaBlip"); if (AreaBlip.Exists()) { AreaBlip.Delete(); } Game.LogTrivial("k: 4/10 Attaching Blips"); SuspectBlip = Suspect.AttachBlip(); VictimBlip = Victim.AttachBlip(); VictimBlip.Color = Color.Yellow; Random randNum = new Random(); Game.LogTrivial("k: 5/10 Display victimcall"); Game.DisplaySubtitle("~y~Victim: ~w~" + help[randNum.Next(help.Count)], 5000); GameFiber.Sleep(5000); Game.LogTrivial("k: 6/10 Display suspectcall"); randNum = new Random(); Game.DisplaySubtitle("~r~Suspect: ~w~" + harrassmentlines[randNum.Next(harrassmentlines.Count)], 5000); GameFiber.Sleep(5000); Game.LogTrivial("k: 7/10 fleeing suspect"); GameFiber.Sleep(5000); Rage.Native.NativeFunction.CallByName<uint>("TASK_REACT_AND_FLEE_PED", Suspect, Rage.Game.LocalPlayer.Character); GameFiber.Sleep(5000); Game.LogTrivial("k: 8/10 adding suspect to pursuit"); Functions.AddPedToPursuit(Pursuit, Suspect); } public override void Process() { Game.LogTrivial("k: 9/10 entering process()"); base.Process(); if (!Functions.IsPursuitStillRunning(Pursuit)) { End(); } } public override void End() { Game.LogTrivial("k: ending call"); if (Suspect.Exists()) Suspect.Dismiss(); Game.LogTrivial("k: susblipdel"); if (SuspectBlip.Exists()) SuspectBlip.Delete(); if (Victim.Exists()) Victim.Dismiss(); Game.LogTrivial("k: vicblipdel"); if (VictimBlip.Exists()) VictimBlip.Delete(); base.End(); } } [18/05/2016 21:09:31.479] LSPD First Response: k: 1/10 Create Pursuit [18/05/2016 21:09:31.482] [TRACE] Created new chase [18/05/2016 21:09:31.482] LSPD First Response: k: 2/10 Entering Runthings() [18/05/2016 21:09:31.485] LSPD First Response: k: 3/10 Deleting AreaBlip [18/05/2016 21:09:31.485] LSPD First Response: k: 4/10 Attaching Blips [18/05/2016 21:09:31.486] LSPD First Response: k: 5/10 Display victimcall [18/05/2016 21:09:36.132] [TRACE] Asked thread ZoomThread #2 to abort: Timeout exceeded [18/05/2016 21:09:36.132] [TRACE] Instance cleaned (ZoomThread #2) [18/05/2016 21:09:36.134] [TRACE] Thread ZoomThread #2 has been shut down [18/05/2016 21:09:36.491] LSPD First Response: k: 6/10 Display suspectcall [18/05/2016 21:09:41.507] LSPD First Response: k: 7/10 fleeing suspect [18/05/2016 21:09:51.526] LSPD First Response: k: 8/10 adding suspect to pursuit [18/05/2016 21:09:51.528] [TRACE] Suspect added to chase [18/05/2016 21:09:51.650] LSPD First Response: [18/05/2016 21:09:51.651] LSPD First Response: ============================== [18/05/2016 21:09:51.651] LSPD First Response: UNHANDLED EXCEPTION DURING GAME FIBER TICK [18/05/2016 21:09:51.651] LSPD First Response: ------------------------------ [18/05/2016 21:09:51.652] LSPD First Response: Origin: Game fiber "CalloutManager". [18/05/2016 21:09:51.652] LSPD First Response: ------------------------------ [18/05/2016 21:09:51.654] LSPD First Response: Exception type: Rage.Exceptions.InvalidHandleableException [18/05/2016 21:09:51.654] LSPD First Response: Exception message: Operation is not valid because the specified Rage.Blip is invalid. [18/05/2016 21:09:51.654] LSPD First Response: ------------------------------ [18/05/2016 21:09:51.654] LSPD First Response: Inner exceptions: [18/05/2016 21:09:51.654] LSPD First Response: ------------------------------ [18/05/2016 21:09:51.654] LSPD First Response: Stack trace: [18/05/2016 21:09:51.655] LSPD First Response: at Rage.Blip.Delete() [18/05/2016 21:09:51.655] at LSPD_First_Response.Mod.Callouts.Callout.OnCalloutAccepted() in E:\GTA V\LSPD First Response\LSPD First Response\Mod\Callouts\Callout.cs:line 154 [18/05/2016 21:09:51.655] at LSPDFR_Khallouts.Callouts.Sexual_Harrassment.OnCalloutAccepted() [18/05/2016 21:09:51.655] at ?????????????????????????????????????????.?????????????????????????????????????????() in E:\GTA V\LSPD First Response\LSPD First Response\Mod\Callouts\CalloutManager.cs:line 338 [18/05/2016 21:09:51.656] at ?????????????????????????????????????????.?????????????????????????????????????????() in E:\GTA V\LSPD First Response\LSPD First Response\Mod\Callouts\CalloutManager.cs:line 173 [18/05/2016 21:09:51.656] at Rage.GameFiber.Main() [18/05/2016 21:09:51.657] LSPD First Response: ============================== I even tried to stop the removal of the blips by commenting it out, it still crashes on the same thing.
  14. Would there be a way to make a ped detonate a placed sticky bomb? Couldn't find anything in the natives.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.