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.

TAG1534

Members
  • Joined

  • Last visited

Everything posted by TAG1534

  1. Haha thabk you, I didn't put the link in the read me file as well
  2. Thank you guys I appreciate the help I'll go through a few of the ones mentioned above and see what happens
  3. How would I go about playing animations, for example a search animation and or a cuff animation for detaining suspects for callouts? I don't want to actually cuff them through STP or lspdfr otherwise the callout will end but just to show immersion for the players.
  4. Ahhh sorry to hear that, I will have a look into it tonight
  5. It's a mixture of what I tried to get to work for me, from 2 open source code plugins, one is Wilderness calloits which is released on github and is open-source, and same as with Enhanced Stops, so I have not done anything wrong with borrowing and changing code to fot for myself
  6. So I'm trying to make a different version of stop the ped, for myself and maybe others... so I want to run the ped name check and license checks stuff but it won't actually grab the Peds name
  7. Hi there, I am wanting to know how I can get the Ped from vaniila LSPDFR traffic stop either on foot or through car traffic stop. this is what I have tried so far, but no luck. It doesnt grab the peds persona if (Functions.IsPlayerPerformingPullover()) { _currentPed = Functions.GetPulloverSuspect(Functions.GetCurrentPullover()); } what else can I do
  8. Hi there I am making a menu using RAGENativeUI and LSPDFR but I am trying to get the Ped that I have stopped to give the correct information. public static void MainMenuOnItemSelected(UIMenu sender, UIMenuItem selectedItem, int index) => GameFiber.StartNew((ThreadStart)(() => { if (selectedItem == AskForIDItem) { Ped ped = ((IEnumerable<Ped>)((IEnumerable<Ped>)World.GetAllPeds()).Where<Ped>((Func<Ped, bool>)(x => ((Entity)x).IsAlive && Entity.op_Inequality((Entity)x, (Entity)Game.LocalPlayer.Character) && x.IsHuman && !x.IsInAnyVehicle(false) && (double)Vector3.Distance(((Entity)x).Position, ((Entity)Game.LocalPlayer.Character).Position) < 12.5)).OrderBy<Ped, float>((Func<Ped, float>)(x => { Vector3 position = ((Entity)x).Position; return ((Vector3)ref position).DistanceTo(((Entity)Game.LocalPlayer.Character).Position); }))).FirstOrDefault<Ped>(); if (!EntityExtensions.Exists((IHandleable)ped)) return; ped.Tasks.AchieveHeading(((ISpatial)ped).GetHeadingTowards((ISpatial)Game.LocalPlayer.Character)).WaitForCompletion(2000); Object @object = new Object(Model.op_Implicit("hei_prop_hei_id_bank"), Vector3.Zero); ped.Tasks.PlayAnimation(AnimationDictionary.op_Implicit("mp_common"), "givetake1_a", 2.5f, (AnimationFlags)0); ((Entity)@object).AttachToEntity((Entity)ped, ped.GetBoneIndex((PedBoneId)28422), Vector3.Zero, new Rotator(0.0f, 180f, 0.0f)); GameFiber.Sleep(1200); } })); This is the code I have, but it keeps giving the "ref" is an invalid expresion term, how do I get around this
  9. Thank you so much LMS I got it to work now, but ive got another issue so I'll create a new Topic
  10. Oh OK, I have it in my Public Intoxication Callout just at the end after the Public Override Void End() statement. How do I register the console command throight RPH? And I've also added logging and subtitles to show if the pool has even tried to load it, in the "Main" Argument, but yeah nothing
  11. I just tried placing it into one a script in the callouts pack I made but still nothing, no error nothing. Its not even being loaded in the game
  12. Oh yeah I'll try that, I have RageNativeUI already there because I use StopThePed and UltimateBackup anyways but yeah I'll try put it in my callout pack
  13. No sadly I haven't, I'm not sure why it's not loading, I've pleaced the .dll and .pdb file in my plugins folder and also lspdfr folder but nothing... I eventually want the plugin to only work when player is on duty but that's a nothing issue
  14. Yeah I have looked at that and I have some sorta code but its not working at all and I have followed the demos and stuff but yeah nothing. Heres the code I have. I followed the example code there and changed slight things but left it pretty much the same just to get it to show up and work... But nothing namespace Ped_Interaction_Menu { using System; using System.Linq; using System.Windows.Forms; using LSPD_First_Response.Mod.API; using Rage; using Rage.Attributes; using Rage.Native; using RAGENativeUI; using RAGENativeUI.Elements; using RAGENativeUI.PauseMenu; internal static class PedInteractionMenu { private static MenuPool pool; private static UIMenu mainMenu; private static readonly Keys Keybinding = Keys.K; private static void Main() { pool = new MenuPool(); mainMenu = new UIMenu("Ped Interactions", "Version ~o~1.0.0"); { var cb = new UIMenuCheckboxItem("Checkbox", false, "A Checkbox menu Item"); cb.CheckboxEvent += (item, isChecked) => Game.DisplaySubtitle($"The Checkbox is {(isChecked ? "" : "~r~not~s~")} checked"); var spawnCar = new UIMenuItem("Spawn car", "Spawns a random car after 5 seconds."); spawnCar.Activated += (menu, item) => { // disable the item so the user cannot activate it again until the car has spawned spawnCar.Enabled = false; GameFiber.StartNew(() => { // 5 second countdown for (int sec = 5; sec > 0; sec--) { // show the countdown in the menu description mainMenu.DescriptionOverride = $"The car will spawn in ~b~{sec}~s~ second(s)."; GameFiber.Sleep(1000); // sleep for 1 second } // remove the countdown from the description mainMenu.DescriptionOverride = null; // spawn the random car new Vehicle(m => m.IsCar, Game.LocalPlayer.Character.GetOffsetPositionFront(5.0f)).Dismiss(); // wait a bit and re-enable the item GameFiber.Sleep(500); spawnCar.Enabled = true; }); }; mainMenu.AddItems(cb, spawnCar); } // create a child menu UIMenu childMenu = new UIMenu("RAGENativeUI", "CHILD MENU"); // create a new item in the main menu and bind the child menu to it { UIMenuItem bindItem = new UIMenuItem("Go to child menu"); mainMenu.AddItem(bindItem); mainMenu.BindMenuToItem(childMenu, bindItem); bindItem.RightBadge = UIMenuItem.BadgeStyle.Star; mainMenu.OnIndexChange += (menu, index) => mainMenu.MenuItems[index].RightBadge = UIMenuItem.BadgeStyle.None; } // create the child menu items childMenu.AddItems(Enumerable.Range(1, 50).Select(i => new UIMenuItem($"Item #{i}"))); // add all the menus to the pool pool.Add(mainMenu, childMenu); // start the fiber which will handle drawing and processing the menus GameFiber.StartNew(ProcessMenus); // continue with the plugin... Game.Console.Print($" Press {Keybinding} to open the menu."); Game.DisplayHelp($"Press ~{Keybinding.GetInstructionalId()}~ to open the menu."); } private static void ProcessMenus() { // draw the menu banners (only needed if UIMenu.SetBannerType(Rage.Texture) is used) // Game.RawFrameRender += (s, e) => pool.DrawBanners(e.Graphics); while (true) { GameFiber.Yield(); pool.ProcessMenus(); if (Game.IsKeyDown(Keybinding) && !UIMenu.IsAnyMenuVisible && !TabView.IsAnyPauseMenuVisible) { mainMenu.Visible = true; Game.LogTrivial("Loaded"); } } } // a command that simulates loading the plugin [ConsoleCommand("LoadPI")] private static void RunMenuExample() => GameFiber.StartNew(Main); } }
  15. I'm trying to make like a Ped Interaction Menu, sorta like STP but a basic one.. and something that I can use in my callout pack to ask and answer questions with.
  16. Hey there guys I am wanting to implement some ui menus to a few callouts of mine and maybe make a few extra things... but I can't seem to find any tutorials or guides that are up-to-date as of now.. is there a demo version that can be downloaded to see how it all works or am I missing something. I don't mind using RageNativeUI or LemonUI but would prefer RageNativeUI
  17. it would be super cool if it could stay like this
  18. These all sound amazing, haha give me a few days to sort some stuff out and I'll get onto them after I finish the bank history callout
  19. Hey guys. I have made a callout and It will only load and work once. After accepting the callout and playing through it. If you try to play the callout again it will just end callout straight away after accepting? I'm not sure what I have done wrong as I have made many other callouts the same way and neve had the issue. Any help is awesome as I'm really confused and now annoyed lol NVM I am so sorry I have fixed it... I added a maximum distance check instead of minimum distance check... Waste of yall's time sorry
  20. That sounds like a really good, Idea actually I will get onto it tonight and I will credit you for it as well
  21. Hi there I am wondering how I can set spawn AI's names. As I want it to show the correct name when PED is stoped by STP of other methods as the name I have written into the script. Is there a way to do this. I have seen it before but i'm not sure if its still do-able. Thanks Eli.
  22. I can certainly try to do something like that.. thanks for the idea.. I will let you know ehat I do with it
  23. That's odd.. I will have a look into that.. I had no issues myself but thanks for the heads up
  24. If it happens again let me know, and see if you can get a RPH.log to see what caused it. Cause no one else had any issues that I am aware of... But I will have a look at all the stuff now as Im doing a few little ui changes
  25. Hey Capitan, Yeah I just noticed that. I am looking at the code right now and testing. If all goes well it should be fixed. Again sorry for the inconvenience. But thanks for the Feedback

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.