Skip to content
View in the app

A better way to browse. Learn more.

LCPDFR.com

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Looking for Mentor?

Featured Replies

Hey all,

After looking into callout plugins and the API, I have decided that I would like to give coding my own a go. I was hoping if anyone has some free time you could perhaps spend time with me showing me the basics? I have a lot of stupid questions and instead of spamming the forum with them. I would like to just add someone on Skype or PM here and talk about the very basics.

Some questions for those of you that would like to help:

  1. How to I build the project so i can put the .dll in my plugins folder and play?
  2. How can I make a .ini file so the user can put in their unit number and name, etc..
  3. Are there quick ways to update the source and .dll and then update in-game instead of just closing and opening again?
  4. What is the code to make a notification appear when the callout has ended? I know where to put it just not what to put.

Thank you anyone who can/does help :)

-

Read this (Sections 1-17 at least)

http://rbwhitaker.wikidot.com/c-sharp-tutorials

 

Watch this series (1-5 episodes)

https://www.youtube.com/watch?v=M8eFhD-_UP0

 

Use GitHub for Examples (.INI too)

https://github.com/LMSDev/LSPDFR-API

 

3) Use RPH console to ReloadAllPlugins after replacing the .dll of your plugin.

4) Game.DisplayNotification("Callout Ended.");

I don't use skype nor do I really have the time to mentor you directly so good luck with regards to that.

But some general advice is as follows:

1) Use visual studio for all development purposes, you can get the 2015 community edition for free. This allows you to "build" your source code into a DLL library for usage
2) Making an ini file I believe is something covered on the developers collaborative github found in Toastin's reply above
3) Yes, you can add post-build commands to Visual Studio to make it really simple. These actions basically copy the built DLL file into your game directory so all you have to do is alt + tab, rebuild your plugin and then reload it in the game.
 

Example here:

copy /Y "$(TargetDir)$(ProjectName).dll" "E:\Steam\steamapps\common\Grand Theft Auto V\Plugins\LSPDFR

 

Live Streaming daily from 8pm GMT (UK) at https://twitch.tv/OfficialLukeD - I play a variety of things 😄

Join my official discord server for support, general chat and my stream schedule! https://discord.gg/Mddj7PQ

  • Author

@ToastinYou & @LukeD - Thank you both, I'm watching Albo's videos now and they are helping. I understand the INI better now and will add that after I have managed to get a call out working. I am using VS now but when clicking build it seems to work but I can't find the .dll anywhere? Isn't it suppose to go in the project folder?

Edited by CharlieModo

-

13 minutes ago, CharlieModo said:

@ToastinYou & @LukeD - Thank you both, I'm watching Albo's videos now and they are helping. I understand the INI better now and will add that after I have managed to get a call out working. I am using VS now but when clicking build it seems to work but I can't find the .dll anywhere? Isn't it suppose to go in the project folder?

Documents > VS 2015 > Projects > Project Name > Project Name > Bin > Debug > use the .dll and use the .pdb for debugging.

16 minutes ago, CharlieModo said:

@ToastinYou & @LukeD - Thank you both, I'm watching Albo's videos now and they are helping. I understand the INI better now and will add that after I have managed to get a call out working. I am using VS now but when clicking build it seems to work but I can't find the .dll anywhere? Isn't it suppose to go in the project folder?

If you right-click on the project itself (the second line in Solution Explorer) and select properties, then go to the Build tab you can see and change the output path. I've set mine to my GTA installation's plugins directory, so I just have to build the project, alt-tab into the game and reload LSPD First Response to re-test

My YouTube Channel: Darkmyre Gaming (Australian LSPDFR patrols, plugins in development, and other games)

My Discord Server | AusGamer Network

 

Please do not PM me for technical support or bug reports, use the appropriate forum or plugin's comments instead.

  • Author

So far so good. Got a vehicle spawned and a suspect. Now, how can I add a dead or wounded police officer? Also is there a way to make other units respond to a call out too? For example, I am trying to make a shots fired at officer call, but I would like to accept the call out, then the officer spawns wounded and other units respond but not be on scene when i get there all the time. Is this possible?

I presume I can make a unit spawn *this far* away from scene and route them to go there? Or is there some callout priority, where they will automatically respond if its high priority?

Edited by CharlieModo

-

23 minutes ago, CharlieModo said:

So far so good. Got a vehicle spawned and a suspect. Now, how can I add a dead or wounded police officer? Also is there a way to make other units respond to a call out too? For example, I am trying to make a shots fired at officer call, but I would like to accept the call out, then the officer spawns wounded and other units respond but not be on scene when i get there all the time. Is this possible?

I presume I can make a unit spawn *this far* away from scene and route them to go there? Or is there some callout priority, where they will automatically respond if its high priority?

EBackup.ResponseType.Code3.Police or something for backup. @Stealth22 can tell you if he isn't busy.

Also, I believe if you spawn the new ped officer and then in rage look for something like Officer.IsDead = true;

32 minutes ago, ToastinYou said:

EBackup.ResponseType.Code3.Police or something for backup.

That's if you use LSPDFR's API to request backup. But they usually spawn pretty close by.

If you want them to respond from far away, you'd have to spawn the cops yourself and make them drive to the location...which isn't difficult.

Stealth22
LSPDFR Tester | Plugin Developer
My Plugins: Code 3 Callouts | Traffic Control | Keep Calm | ALPR+

Please do not PM me for any kind of technical support.
I unfortunately do not have enough free time to answer every PM that I get. For issues with my plugins, please post in the comments section of the file, or it's forum thread. You'll get a much quicker response from me there than if you send me a PM; I do my best to respond to every question in the comments sections. For API/programming questions, please post them in the API Development forum, so all developers can benefit from the answer as well. Thanks!

  • Author

Thanks everyone. Does anyone know how to spawn a dead or wounded ped? I have looked around but not found anything. I have got to the point where the plugin loads when I go on duty, and one call out where a police car is spawned at the location and a ped but would like to make it be the scene of a shootout. Dead cop, suspect running around, etc..

-

24 minutes ago, CharlieModo said:

Thanks everyone. Does anyone know how to spawn a dead or wounded ped? I have looked around but not found anything. I have got to the point where the plugin loads when I go on duty, and one call out where a police car is spawned at the location and a ped but would like to make it be the scene of a shootout. Dead cop, suspect running around, etc..

Ped.IsDead = true; 

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...

Recently Browsing 0

  • No registered users viewing this page.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.