Reputation Activity
-
Owen.butler17 got a reaction from Yasd in Stop the ped all-tow trucks are now workingHEY everyone
just to let you know that all the tow trucks are now working again
i have attached a video as i have discovered this after calling for a tow truck and selecting small tow truck
-
Owen.butler17 got a reaction from unitedOrange66 in Stop the ped all-tow trucks are now workingHEY everyone
just to let you know that all the tow trucks are now working again
i have attached a video as i have discovered this after calling for a tow truck and selecting small tow truck
-
Owen.butler17 got a reaction from Cyan in Stop the ped all-tow trucks are now workingHEY everyone
just to let you know that all the tow trucks are now working again
i have attached a video as i have discovered this after calling for a tow truck and selecting small tow truck
-
Owen.butler17 reacted to GTAbear in MY Callout pack causes my game to crashYou say that the pursuit should be created if PLC < 100f form a vector-point
That will be true as long as PLC is that, and that will make your plugin create pursuit over and over.
Make a boolean short-circuit shouldCreatePursuit
if (Game.LocalPlayer.Character.Position.DistanceTo(SpawnPoint) <= 100f && shouldCreatePursuit) { shouldCreatePursuit=false //only create pursuit once :
:
}
-
Owen.butler17 reacted to Charlie686 in MY Callout pack causes my game to crashI'm sidetracking a bit here 😅 but I would - as in my example - do the boolean check first.
Your if statement contains important order of operations, and your code will continue to check the distance even if a pursuit should not be created. If you check if a pursuit should be created first, that means you are only performing distance calculations if you actually need them.
Maybe that's not something you considered, but I would certainly recommend it nonetheless! 😄
-
Owen.butler17 reacted to Charlie686 in MY Callout pack causes my game to crashHey @Owen.butler17,
Hoping I can lend some experience here!
First up, Process() is looping, so unlike OnCalloutAccepted() and End() which are only executed once, Process() keeps iterating over while your callout is running.
According to your logic, if the player is within 100f of the spawn point, you are continuously creating a pursuit & requesting backup. And that code keeps looping, and before you know it you've tried to request over a 100 backup units for your 100 pursuits & the game crashes!
What you can do here to fix this is add a simple boolean (true or false) to prevent this code from executing more than once.
At the top of your class, you can add: private bool IsPursuitRunning = false;
And when you create a pursuit, you can set IsPursuitRunning = true;
Then in your if statement, change it to include your boolean check:
if (!IsPursuitRunning && Game.LocalPlayer.Character.Position.DistanceTo(SpawnPoint) <= 100f)
I hope this helps you! 😄 Best of luck.
-
It's working! I did all you say, thx - u're the best!
-
Owen.butler17 got a reaction from Brodacz997 in I need help! Could not hook game process....add your entire gta v directory to your exclusions list for Avast free antivirus also add it to the exclusions for Microsoft defender antivirus @Brodacz997i am assuming you are on windows
lspdfr can be flagged as a false positive by some antivirus
-
Owen.butler17 got a reaction from Brodacz997 in I need help! Could not hook game process....@Brodacz997what antivirus software are you running?
-
I'm using Avast Free Antivirus
-
Owen.butler17 reacted to K4te in Crash gta near the police station2 possibilities:
Plugin from gta5\plugins folder fault - delete files that belongs to other plugins from this folder and add them again one by one with test -> add 1 plugin and check if it cause crash or not - if not then install another one Do you have mod folder and use custom vechicles? -
We've released a minor compatibility update for LSPDFR 0.49 (Build 8382) which adds compatibility for the new version of GTA V (v2802.0) - "Los Santos Drug Wars".
There are a few minor known bugs in this release as Rockstar has made a lot of behind-the-scenes changes to the game. As an example to developers; these include but are not limited to breakages in some RAGE Plugin Hook class properties (e.g. checking for vehicle gadgets). These do not affect play majorly in LSPDFR but will be fixed nonetheless in a future update.
Also note that this version temporarily does not include the automated installer, this will be included in a follow-up update.
For updating, you only need the updated RAGEPluginHook.exe and LSPDFR files in the 'Plugins' folder of the manual installation ZIP.
To make a new installation, copy everything from the manual installation ZIP to your game folder.
Note that the new version of the RAGE Plugin Hook which is required for LSPDFR to work on the new GTA V update is included with the new LSPDFR download. The RAGE Plugin Hook website has not yet been updated, so you should not download the RAGE Plugin Hook from there but instead use the included version with LSPDFR.
Please ensure that you now update your game to the latest version of GTA V before playing this new version of LSPDFR 0.4.9, which you can find as normal on the main LSPDFR page.