Jump to content

Recommended Posts

48 minutes ago, WildJam said:

I searched every folder and i can't find any dll file (My plugin is called just "Plugin") Do i have save it or something? I have some errors, if this can be by this tell me i will sent u photos.

 

what dll did you mean? is it the reference for visual studio?

you have to "add reference" in visual studio to add the dll as your project library.

Share this post


Link to post
Share on other sites
14 hours ago, Wilhelm said:

 

Sorry but this video doesn't help me.

14 hours ago, Pazzi said:

 

what dll did you mean? is it the reference for visual studio?

you have to "add reference" in visual studio to add the dll as your project library.

i have added a refrences, LSPDFR and Ragepluginhook sdk. I have some errors:

https://imgur.com/a/WqLTMdQ

Share this post


Link to post
Share on other sites
1 hour ago, WildJam said:

i have added a refrences, LSPDFR and Ragepluginhook sdk. I have some errors:

https://imgur.com/a/WqLTMdQ

 

Ok, you're going to struggle writing a plugin called Plugin. The reason for this is that "Plugin" is already a class, which represents the actual RPH plugin. However, because you've named your plugin "Plugin" your compiler is thinking that you're referencing a namespace (like a file path).

 

From this, I would really recommend reading up on C# some more because you'll continue to struggle without some fundamental knowledge of the language (trust me I'm a software developer).

 

https://csharp.net-tutorials.com/getting-started/introduction/

https://dotnetcademy.net/CSharp/Beginner

 

You need to understand object-orientated programming, including abstract classes, before you can really get elbow deep in this.

Share this post


Link to post
Share on other sites
1 hour ago, Wilhelm said:

 

Ok, you're going to struggle writing a plugin called Plugin. The reason for this is that "Plugin" is already a class, which represents the actual RPH plugin. However, because you've named your plugin "Plugin" your compiler is thinking that you're referencing a namespace (like a file path).

 

From this, I would really recommend reading up on C# some more because you'll continue to struggle without some fundamental knowledge of the language (trust me I'm a software developer).

 

https://csharp.net-tutorials.com/getting-started/introduction/

https://dotnetcademy.net/CSharp/Beginner

 

You need to understand object-orientated programming, including abstract classes, before you can really get elbow deep in this.

Okay thanks, i repaired these errors. But(that's not my computer's faulth) When i accepting my callout, occur black screens and other crazy graphic glitches, how i can repair it?

 

My callout script - https://imgur.com/a/050fq8F

Main.cs script - https://imgur.com/a/HNoEzij

Share this post


Link to post
Share on other sites
53 minutes ago, WildJam said:

Okay thanks, i repaired these errors. But(that's not my computer's faulth) When i accepting my callout, occur black screens and other crazy graphic glitches, how i can repair it?

 

My callout script - https://imgur.com/a/050fq8F

Main.cs script - https://imgur.com/a/HNoEzij

 

I don't think there's anything obvious shown in your screenshots. Its best if you check through your logs and you'll be able to tell where it's getting stuck/causing issues.

Share this post


Link to post
Share on other sites
3 hours ago, Wilhelm said:

 

I don't think there's anything obvious shown in your screenshots. Its best if you check through your logs and you'll be able to tell where it's getting stuck/causing issues.

I recorded video, how its looks. u can see, when i am  near the suspect, my computer is laggy. After i catch him, there is not lags

-  

 

 

If u want to see it on your computer, i can give u my plugin files.

 

Can u tell me how to set amount of back up? Idk how and there is 50-100 police units.

 

My script for back up:

 

Functions.RequestBackup(Game.LocalPlayer.Character.Position, LSPD_First_Response.EBackupResponseType.Pursuit, LSPD_First_Response.EBackupUnitType.LocalUnit);

Edited by WildJam

Share this post


Link to post
Share on other sites

Have you fixed this? If not, the reason is probably because the Process() function will loop until you assert the completion of it. So likely what's happening is its added the ped to a pursuit over and over whenever you're within 100f of it.

Share this post


Link to post
Share on other sites
12 hours ago, Wilhelm said:

Have you fixed this? If not, the reason is probably because the Process() function will loop until you assert the completion of it. So likely what's happening is its added the ped to a pursuit over and over whenever you're within 100f of it.

yea, i fixed it, i will delete this topic beacuse this is kind of spam, i have already created 3 topics but i dont know how to delete it, and thanks for your help.

 

            with what i need help is:

  • how to make passangers in the car
  • how to make callout created when only near the area of spawnpoint
Edited by WildJam

Share this post


Link to post
Share on other sites
29 minutes ago, WildJam said:
  • how to make passangers in the car

I believe this answered your question in this thread: https://www.lcpdfr.com/forums/topic/89258-stolen-vehicle-callout-but-with-more-peds-in-it/

 

30 minutes ago, WildJam said:
  • how to make callout created when only near the area of spawnpoint

You'll have to have a play around with this and see what you can get it to do.

 

Like I said before, you'll need to make sure you've got a good grip on C# (do check out those tutorials, I get the sense that you're struggling with the basic syntax and structure of C# and you'll really benefit from learning some of it properly).

Share this post


Link to post
Share on other sites
2 hours ago, Wilhelm said:

I believe this answered your question in this thread: https://www.lcpdfr.com/forums/topic/89258-stolen-vehicle-callout-but-with-more-peds-in-it/

 

You'll have to have a play around with this and see what you can get it to do.

 

Like I said before, you'll need to make sure you've got a good grip on C# (do check out those tutorials, I get the sense that you're struggling with the basic syntax and structure of C# and you'll really benefit from learning some of it properly).

Yes somebody answered it, but its doesn't works. And after Reading beginner tutorials i still cant do anything, what i need now is how to make shooting peds from car and how to make passangers, if i Will know it i can already make Callout plugin, but i cant find anywhere this. 

Edited by WildJam

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


×
×
  • Create New...