Jump to content

LtFlash

Members
  • Posts

    610
  • Joined

  • Last visited

 Content Type 

Forums

Gallery

Downloads

Tutorials

News Stories

Wiki

Community Guidelines

LSPDFR BOLO Series

GTA5 Native Database

GTA5 Native Parameters

Release Highlights

LSPDFR Mod Showcase

LML User Contributions

Everything posted by LtFlash

  1. 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.
  2. 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.
  3. 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
  4. 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.
  5. You can use my CoordSaverV to collect spawn points ingame:
  6. What tanu1215 said (you have to disable pursuit AI) + Clerk.Tasks.PutHandsUp(-1, Robber);
  7. This is the most valuable and important quality certificate a developer can get. You deserve it! Congratulations Albo!
  8. 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.
  9. 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!
  10. What a fine thread you got here, fellas! Remember The French Connection? For those of you who likes modern music - new retro xD
  11. 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.
  12. Try to comment out those Wait()ings and see what happens.
  13. Do you have GameFiber.Wait() inside OnAccepted in that callout where creating a blip works?
  14. @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);
  15. 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.
  16. The Wire S01E10 Many of you might not have watched this series but if you are into policing you should.
  17. ...more likely "The Wasteland" but I can't guarantee anything as I'm extremely busy with real life things.
  18. Well, it's the only problem I can see in the log. It shouldn't crash you GTA though but only the LCPDFR.
  19. The log shows that my plugin crashed. Make sure you installed "Wasteland" properly, pay attention to audio files.
×
×
  • Create New...