Everything posted by techgamer15
-
Game freeze and crash with this code
Ill try adding some more.
-
Game freeze and crash with this code
This is the entire callout code, if it helps:
-
Game freeze and crash with this code
Ive changed it to game.localcharacter.position.distanceto and it still does it so I am completely clueless.
-
Game freeze and crash with this code
No me neither its totally odd.
-
Game freeze and crash with this code
Just tried that, it still does it.
-
Game freeze and crash with this code
This code is the process() part of an objects on the road callout: public override void Process() { base.Process(); if (Game.IsKeyDown(System.Windows.Forms.Keys.End)) { Game.DisplayNotification("~g~Code 4~w~, return to patrol."); Functions.PlayScannerAudio("ATTENTION_ALL_UNITS WE_ARE_CODE_4"); End(); } if (onScene == false && Game.LocalPlayer.Character.DistanceTo(spawnPosition) < 10) { onScene = true; Game.DisplayHelp("Approach the ~p~objects~w~, and press ~b~Delete~w~ to move the objects off the road."); if(calloutArea.Exists()) { calloutArea.Delete(); } prop0Blip = prop0.AttachBlip(); prop0Blip.Color = System.Drawing.Color.Purple; prop1Blip = prop1.AttachBlip(); prop1Blip.Color = System.Drawing.Color.Purple; prop2Blip = prop2.AttachBlip(); prop2Blip.Color = System.Drawing.Color.Purple; while (!Game.IsKeyDown(System.Windows.Forms.Keys.Delete)) { Game.DisplayHelp("Press ~b~Delete~w~ to move the objects out of the road."); } Game.DisplayNotification("Please wait ~g~10 seconds~w~ for the objects to be moved from the road."); GameFiber.Sleep(10000); Game.DisplayNotification("~g~Code 4~w~, return to patrol."); Functions.PlayScannerAudio("ATTENTION_ALL_UNITS WE_ARE_CODE_4"); End(); } } However, when the if statement is done after the player reaches 10 meteres away from the object(s), the game freezes and crashes. Any ideas?
-
Can someone assist in helping with a pLugin for GTA V
Hello there, to start with have you checked out this tutorial by Albo1125 for the absoloute basics on the structure of callouts? :
-
First Callouts
-
First Callouts
Hey there, this is excellent I think you're doing a great job with this callout pack. I'm really happy to see more packs being released because it makes LSPDFR more diverse.
-
RoadIncident Callouts
Yeah its something I tried before but gave up because it became too tedious dealing with all the vector 3's for the cones/peds/cars/police things so I think you're doing a great job, and you have other callouts being made too so well done.
- 68 comments
- 14 reviews
-
RoadIncident Callouts
Can I just say you're doing such an amazing job with this because accident callouts are a pain to make as you have so many different spawn locations for stuff. This pack has improved alot and your're doing extremely well considering you have lots of other things to do. Keep it up dude.
- 68 comments
- 14 reviews
-
Basic Callouts (Trespassing, 911 Abuse, Assault with Firearm...)
I'm not sure thats the callouts, becuase when you press End the callout finishes. Also when you cuff them the callout should end anyway.
- 58 comments
- 12 reviews
-
Ped does not initiate pursuit whilst inside a store
Strange, becuase I was looking at other people's example callouts and they dismissed the suspect from the callout before the pursuit. Anyway, when I have the chance I will remove that line.
-
Basic Callouts (Trespassing, 911 Abuse, Assault with Firearm...)
EDIT:I've removed the callout for now, as it will need to be re-written. This is becuase it's one of the first I wrote and I can't seem to work out why the looping bug is happening. Also the blips weren't dissapearing for some reason, so I will be implementing it back when it is done.
- 58 comments
- 12 reviews
-
LSPDFR Computer+
I am trying to use the wiki to help me integrate computer+ into my callout pack. I used the "create callout" function that is listed here: computerPlusRunning = Function.IsLSPDFRPluginRunning("ComputerPlus", new Version("1.3.0.0")); // Creates the callout within the computer if (computerPlusRunning) callID = ComputerPlusFuncs.CreateCallout("Example Callout", "EXAMPLE CALLOUT", location, (int)EResponseType.Code_3, "This is an example callout."); However, ComputerPlusFuncs says that it does not exist in the current context, and adding callID as a GUID doesn't help either. My only guess is that the API has been updated, but the wiki has not, so please may someone tell me how to first of all check if the plugin is actually running, and then create a callout becuase none of the code on the wiki is valid anymore. Many thanks.
- 1,742 comments
- 172 reviews
-
Basic Callouts (Trespassing, 911 Abuse, Assault with Firearm...)
I was looking for more callouts thanks so much and Ill definitely put that on the list as it sounds like it's fun. Thanks dude. Ah yes, Computer+ integration is having me literally confused as there is a tutorial on the wiki for integrating it into callouts, but after adding the Computer+.dll as a reference, I get syntax errors relating to certain functions. I will try my absolute best to add this becuase It has actually been one of the first things I was gonna add as an update, as it really helps when on scene and you haven't a clue what you're doing lol.
- 58 comments
- 12 reviews
-
Any way to embed a YouTube video on a plugin page?
I reckon that's a valid reason as to why they did it actually, as it probably doesn't register it as a view if they do it from an external website.
-
Any way to embed a YouTube video on a plugin page?
That's a shame that they did that but thank-you for checking for me. Much appreciated. 🙂
-
Any way to embed a YouTube video on a plugin page?
As the title says, I would like to promote a YouTube video for reviewing my callout plugin : Jeff Favignano did a video with my callout plugin, and I think it would be beneficial for people to see the callouts in action first as a quick overview. At the moment, the link displays as text only, and I've seen other people embed YouTube videos on their plugins, so how might I do that? Thanks.
-
Basic Callouts (Trespassing, 911 Abuse, Assault with Firearm...)
- 58 comments
- 12 reviews
-
Basic Callouts (Trespassing, 911 Abuse, Assault with Firearm...)
From what kilroy95 said, I reckon it's a bug where the plugin creates loads of vehicle markers and that uses up loads of RAM etc, so I will need to investigate that and try and recreate it. Please do send me your logs if that happens again as you said.
- 58 comments
- 12 reviews
-
Basic Callouts (Trespassing, 911 Abuse, Assault with Firearm...)
Right, I had that before whilst testing - I think other people say its a looping thing, but that particular callout doesn't have any loops. This is a rare bug as it hasn't happened to me since so if you get it again, please send me your Rage log and/or GTA log so that I can see what it is. No one else has yet mentioned this bug, but as I said it did happen to me and I can't really investigate it again unless it happens to me again. Next time it happens, please restart your game and it should be gone.
- 58 comments
- 12 reviews
-
Basic Callouts (Trespassing, 911 Abuse, Assault with Firearm...)
Fixed that issue as of v2.0.0.0 which I'm releasing today. It will take some time for the moderators to review before the file is released to the public though.
- 58 comments
- 12 reviews
-
Ped does not initiate pursuit whilst inside a store
This is the code that intiates a pursuit when the outcome number is more than 80 (basically a 20% chance of a pursuit.) else if (outcomeNumber >= 80 && outcomeNumber <= 100) { suspect.BlockPermanentEvents = false; suspect.Dismiss(); Game.DisplaySubtitle("~r~Suspect~w~: Screw this, I'm taking these explosives and I'm stashing them..."); suspect.Metadata.searchPed = "~r~Explosives~w~"; pursuit = Functions.CreatePursuit(); Functions.AddPedToPursuit(pursuit, suspect); Functions.SetPursuitIsActiveForPlayer(pursuit, true); pursuitCreated = true; Game.LogTrivial("Pursuit created for SuspiciousAmmunitionPurchase callout"); } This callout is based inside an Ammunation building, however the ped does not react to it creating a pursuit. Any reason why? Is it to do with it being inside a building?
-
How to add prop (e.g a cone)
Thanks that's extremely helpful for a list. @SRS Bladez - have a look at this.