Everything posted by Braveheart
-
Restricting prisoner transport cars
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.
- Roleplaying tool (serious enthusiasts only!) [mdc.lcpdfr.com]
-
Multi-player crash
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.
-
Multi-player crash
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.
- GTA IV - LCPDFR New "MP" sound short version
-
Large scale disturbance reported
-
Large scale disturbance reported
Incident wise thus far I've added: drunk & incapable persons; persons suspected of being in possession of a knife or gun; small disturbances (fights, arguments and so forth); larger scale disturbances (which you see many of in this screenshot) with several people fighting or stood around watching; injured persons (ambulances dispatch to these too) whose health will deteriorate the longer it takes you/the paramedics to arrive and being CPR and; fires which can be extinguished. I've also added the ability to tell a person to leave the area, they will respond either positively or negatively and may even lash out at you.
-
Help required with scripting issues
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.
-
Liberty City Police Beat Response vehicle
From the album: Liberty City Police 2011
Ambulance service requested police and fire assistance after coming across a fire and a male with minor burn wounds. -
Liberty City Police Beat Response vehicle
From the album: Liberty City Police 2011
Ambulance service requested police and fire assistance after coming across a fire and a male with minor burn wounds. -
Liberty City Police Beat Response vehicle
From the album: Liberty City Police 2011
Ambulance service requested police and fire assistance after coming across a fire and a male with minor burn wounds. -
Liberty City Police Beat Response vehicle
From the album: Liberty City Police 2011
Ambulance service requested police and fire assistance after coming across a fire and a male with minor burn wounds. -
Liberty City Police Beat Response vehicle
From the album: Liberty City Police 2011
Ambulance service requested police and fire assistance after coming across a fire and a male with minor burn wounds. -
Liberty City Police Beat Response vehicle
From the album: Liberty City Police 2011
Ambulance service requested police and fire assistance after coming across a fire and a male with minor burn wounds. -
Street fire
From the album: Liberty City Police 2011
Ambulance service requested police and fire assistance after coming across a fire and a male with minor burn wounds. -
Large scale disturbance reported
From the album: Liberty City Police 2011
Testing a script which compliments LCPDFR with extra incidents to police. -
Liberty City Police Beat Response vehicle
From the album: Liberty City Police 2011
-
Liberty City Police Beat Response vehicle
From the album: Liberty City Police 2011
-
Testing new script
This is just one event of many I'm putting in. That isn't a shotgun, it's a knife! This particular one is a large scale fight on-going (or a large-scale disturbance) so everyone is indeed fighting each other. When I and some backup units arrived we managed to detain three or so of them whilst the rest made off down the street which worked really nicely.
-
Help required with scripting issues
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).
-
Testing new script
From the album: Blues & Twos
A quick shot of a mass disturbance from a script I'm trying to put together. -
Liberty City Police ARV
From the album: Blues & Twos
Liberty City Police armed response vehicle attending a call for immediate assistance. -
Help required with scripting issues
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.
-
Night club arrest
These weren't made by me, jacko999 made them for me. The decision to release them remains his, sorry!
-
Liberty City Police roads policing vehicle