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.

Braveheart

Members
  • Joined

  • Last visited

Everything posted by Braveheart

  1. It appears to be randomly selected between police1 - 4. I would like the prisoner transport vehicle to respond without lights, too. Or have a choice between a non-urgent and an urgent request.
  2. This should already be the case. It's set to sometimes show those who are supposed to be in prison (potential escapee/absconder) I suppose I can make these rarer if they're showing up too often.
  3. I wrote that quickly before heading off to work, probably should have mentioned I've tried removing all the mods and I've tried a clean and patched backup, they both behave the same. I'm going to try restarting my computer, that usually fixes any and all problems. If not I suppose I'll have to reinstall once again...the joys of GTAIV. Anybody know why Social Club takes me about a year to login? It constantly says "Login failed" until eventually - when it feels like it - it will login. Such a pain.
  4. When loading into a multi-player game (either joining a game or starting one) the game keeps crashing ("EFLC stopped working") before the game loads or the menu screen when creating a game loads. Single-player loads without issue and multi-player used to too. I have dsound.dll. Any ideas on why this may be happening? I'd like to avoid having to use a fresh install if possible.
  5. Nice job tomato! Can you make a shorter version?
  6. Thanks for that. It seems to cause the game to freeze though, I'll keep trying to figure it out. Is there anywhere that explains how to use the GTA.Native.Function.Call()? I keep seeing it used with lots of different parameters but nowhere have I found an explanation of what these parameters can or should be. When getting a ped around the Player, what is the maximum distance I can use? One last thing, the drunk peds outside of the clubs (and randomly spawned in LCPDFR) are they playing animations or are they using a certain walk style? Or is it euphoria? I can't find the animations/walk styles anywhere.
  7. Braveheart posted a gallery image in GTA IV Galleries
  8. Braveheart commented on Braveheart's gallery image in GTA IV Galleries
  9. Is there any way to have ped animations loop? I was using the while loop to ensure the drunk animation kept going as without it, the ped returns to normal (or usually just stands still staring into oblivion).
  10. Braveheart posted a gallery image in GTA IV Galleries
  11. Hello I initially posted this over on the GTAforums and I figure this is another good place for assistance. These issues (the one pertaining to the script in particular) are prohibiting me from working on the rest of the script, I would really appreciate any help you can provide in fixing them. I'm attempting to put together a small script to spawn several different events around the player. I've been reading other peoples' code and trying to make sense of how spawning and assigning tasks and all that sort of good stuff works; I'm finally getting the hang of it. However no matter what I do, the script is producing some rather annoying issues (note: I have the latest scripthook, scripthook.net and advanced script hook installed), I've been searching around the internet for answers to these issues for a while and haven't found anything. There doesn't seem to be much documentation out there for GTAIV scripting (I've got the ScriptHook documentation and using the Object viewer, but they lack examples and whilst a good resource, aren't enough for a newb) I simply cannot get these fixed so I'm posting here for some assistance: The first issue is quite complicated to explain; somehow the script appears to be causing GTA:EFLC (also note it's the most recent version, 1.1.2.0) to intermittently switch between "Not responding" and apparently loading very slowly when starting up. I've always had to close the game when this happens, the furthest I can get it to go is the TBOG/TLAD menu screen, but the intermittent hanging prevents making any selection. This seems to happen only on installations with scripthook installed (I have several backups, clean one still works). A restart fixes it. Sometimes clearing the settings folder from App Data fixes it, sometimes minimizing the game and re-opening whilst it's loading fixes it. Sometimes calling it a swine fixes it. Truth be told I don't know what's causing this and I don't know exactly how to fix it (bar restarting my computer which is just a pain). It would appear to happen after I've had to close the game due to the game freezing because of - I suspect - my script. It's extremely frustrating though, it makes for a hard time just trying to get in-game to test the script. Anyone have any ideas why this would happen? The second issue is more related to the script (once the game stops messing around and loads up). It will not stop giving me the following error: What causes this error? I've tried everything to fix it, I've tried a straight copy paste of other working scripts to removing everything from my script and ONLY running the following (sometimes the script is fine until I 'reloadscripts' then the error starts appearing): using System; using System.Collections.Generic; using System.Text; using System.Windows.Forms; using GTA; namespace Policing { public class Policing : Script { Ped Person = null; Blip PersonMarker = null; AnimationSet Anim1 = new AnimationSet("amb@bum_c"); AnimationSet Anim2 = new AnimationSet("amb@drunk"); AnimationFlags animflags = AnimationFlags.Unknown12 | AnimationFlags.Unknown11 | AnimationFlags.Unknown09 | AnimationFlags.Unknown06; Blip CreateMarker(Ped person, BlipIcon icon, string name) { Blip blip = person.AttachBlip(); blip.Icon = icon; blip.Name = name; return blip; } private static void DeleteBlip(Blip blip) { blip.Delete(); } public int random_num(int min, int max) { Random random = new Random(); return random.Next(min, max); } public Policing() { Game.DisplayText(" Running Policing script by Braveheart", 7000); Interval = 30000; this.Tick += new EventHandler(this.Policing_Tick); } public void Policing_Tick(object sender, EventArgs e) { Person = World.GetRandomPed(Player.Character.Position, 8.0f); if (Person != null && Person.Exists() && Person.isAlive && Person.Position.DistanceTo(Player.Character.Position) <= 500.0f) { Game.DisplayText("Event 1", 999); PersonMarker = CreateMarker(Person, BlipIcon.Misc_Revenge, "Suspected D&I"); while (!Person.isInCombat && Person.isAlive) { Person.Task.PlayAnimation(new AnimationSet("amb@bum_c"), "walkcycle_drunk_b", 1.0f, animflags); } } } } } That is only a section of the code there's quite a lot of it, but the error appears to stem from something in there. Sometimes the game will freeze completely and no error is present in the log. I initially thought one of the following was the cause: Wait() PlayAnimation Animation.WaitUntilFinished World.GetRandomPed But even after removing all of the above and ONLY having a tick with nothing inside of it, I still get the error. So then, anyone have any ideas on the first issue? What about the script error, where does it come from and how should I look to fix it? When using World.GetRandomPed, what's the largest float radius I can (or should) use? Thanks in advance for any assistance you can provide.
  12. Braveheart commented on Braveheart's gallery image in GTA IV Galleries

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.