Everything posted by LtFlash
-
Beat Cop - 80's Retro Pixel Game
- 1994 Chevy Caprice 9C1- NYPD
- A tank?
- Random events
You can use my library to achieve that, it could be documented better but you can figure things out from the code: https://github.com/LtFlash/LtFlash.Common/tree/master/LtFlash.Common/ScriptManager https://github.com/LtFlash/LtFlash.Common/wiki/BasicScript I might add it is used as a base framework for the incoming LS Noire.- Array of Blips
Parks is right, in most cases when you don't know the actual runtime lenght of an array you should use another data structure. Your example doesn't work because you did not initialize your array = it doesn't have any values. http://stackoverflow.com/questions/32290879/meanings-of-declaring-instantiating-initializing-and-assigning-an-object Also, it seems to me you should replace AttachBlip() with a Blip constructor and pass an entity to it. It should look this way: private Blip[] SuspectBlips = new Blip[1]; SuspectBlips[0] = new Blip(drivebys[i]); Array is fine when you know the lenght of your collection and/or write high performance code.- Suspect glitching (refusing to go down?)
You call Suspect.Tasks.FightAgainst(Game.LocalPlayer.Character); directly inside Process() => it means that whenever (Game.LocalPlayer.Character.DistanceTo(Suspect.Position) < 20f) == true the game assigns a new task to your ped. You should use switch..case + enum containing stages or my method based on Action. I suggest to take a look at Albo's tutorials. Here are links to my library and example of use: https://github.com/LtFlash/LtFlash.Common/blob/master/LtFlash.Common/Processes/ProcessHost.cs https://github.com/LtFlash/LtFlash.Common/blob/master/Examples/Processes/ProcessHost.cs- Adding the coords
Tomorrow I'll update CoordSaverV, new features allow to customize the output. You will be able to save coords to a text file as SpawnPoint constructors and paste them directly to your code.- Specific Locations?
You can use my CoordSaverV to collect spawn points ingame:- PutHandsUp not working?
What tanu1215 said (you have to disable pursuit AI) + Clerk.Tasks.PutHandsUp(-1, Robber);- One Million Downloads
This is the most valuable and important quality certificate a developer can get. You deserve it! Congratulations Albo!- Mafia III Modding
https://mafiamods.com/forums/topic/mafia-3-modding-mega-thread/ Beautiful open source piece of work, I did not expect a script hook so fast. I expected it might not appear at all. That made my day.- 'Good Music' Thread
- [WIP] L.S. Noir
We've already discussed many aspects you mentioned. Replayability and expansibility is our big concern. The mod and my Common library are already open source. From the perspective of someone who writes code for GTA for over 2,5 years I can tell you that the very first version of the mod might not have 20 different cases and a case editor but it still will be probably one of the most work consuming and complicated mod ever created for FR. I'm very thankful for those who already help testing the code, send donations, wish us good coding in forum posts. Your support is very important in the development process. Thanks!- 'Good Music' Thread
What a fine thread you got here, fellas! Remember The French Connection? For those of you who likes modern music - new retro xD- Getting started!
Put PlayScannerAudio() in a new GameFiber: GameFiber.StartNew(delegate { GameFiber.Wait(5000); PlayScannerAudio(params); }); Yes, a ped has to be within distance of x units to a vehicle to perform EnterVehicle() properly where x is something like 10f.- Getting started!
Try to comment out those Wait()ings and see what happens.- Getting started!
Do you have GameFiber.Wait() inside OnAccepted in that callout where creating a blip works?- Getting started!
@master1114 Use a Blip constructor with an entity as a param instead of AttachBlip() since it causes problems not only to you. route = new Blip(guard);- Getting started!
ad 1) You might use my class to display dialogues: https://github.com/LtFlash/LtFlash.Common/blob/master/LtFlash.Common/EvidenceLibrary/Dialog.cs Please mention me in your credits if you use it.- Most Moving Moments of TV
The Wire S01E10 Many of you might not have watched this series but if you are into policing you should.- Rush Hour
...more likely "The Wasteland" but I can't guarantee anything as I'm extremely busy with real life things.- 9/11
Rest in peace.- The Wasteland - callouts for Bohan
- HELP my GTA IV keeps crashing after 10-30 minutes.
Well, it's the only problem I can see in the log. It shouldn't crash you GTA though but only the LCPDFR.- HELP my GTA IV keeps crashing after 10-30 minutes.
The log shows that my plugin crashed. Make sure you installed "Wasteland" properly, pay attention to audio files. - 1994 Chevy Caprice 9C1- NYPD