Jump to content
  • 0

FIVEPD Specific Department Callouts.


xIconikkx
 Share

Reason for Locking
Solved

By Grandpa Rex, on 09/10/22 08:26 PM.

Question

Hi, been trying now for a couple days to get configs working for call-outs.

 

Callouts currently get spread to all departments when set not to.


Fire call-outs that are still received in departments 1-4.


 

{
    "PedestrianStruck":{
        "IgnoreDistance": false, 
        "MinTimeout": 0, 
        "Probability": 1, 
        "ShowRoute": true,
        "Departments":[10]
    },
    "LargeStructureFire":{
        "IgnoreDistance": false, 
        "MinTimeout": 0, 
        "Probability": 1, 
        "ShowRoute": true,
        "Departments":[10]
    },
    "BrushFire":{
        "IgnoreDistance":false, 
        "MinTimeout": 0, 
        "Probability": 1, 
        "ShowRoute": true,
        "Departments":[10]
    },
    "StructureFire":{
        "IgnoreDistance":false, 
        "MinTimeout": 0, 
        "Probability": 1, 
        "ShowRoute": true,
        "Departments":[10]
    },
    "VehicleCollision":{
        "IgnoreDistance":false, 
        "MinTimeout": 0, 
        "Probability": 1, 
        "ShowRoute": true,
        "Departments":[10]
    },
    "CarFire":{
        "IgnoreDistance":false, 
        "MinTimeout": 0, 
        "Probability": 1, 
        "ShowRoute": true,
        "Departments":[10]
    },
    "AircraftFire":{
        "IgnoreDistance":false, 
        "MinTimeout": 0, 
        "Probability": 1, 
        "ShowRoute": true,
        "Departments":[10]
    }
}

 

cyclist on motorway that’s still gets dispatched to department 10 [Fire]
 

{
    "IgnoreDistance": false,
    "MinTimeout": 0,
    "Probability": 1,
    "ShowRoute": true,
    "Departments":[1,2,3,4]
}

 

Edited by xIconikkx
Link to comment
Share on other sites

11 answers to this question

Recommended Posts

  • 0

Sorry I must add. Each callout has its own folder with its own config.

Link to comment
Share on other sites

  • 0

I don't believe these options are native to callouts meaning that the developers need to code this feature in. So if they didn't code the department specific feature it probably won't work. Keep in mind I don't usually write callouts so I'm just going off of what I have been able to look up

Link to comment
Share on other sites

  • 0
4 hours ago, Grandpa Rex said:

I don't believe these options are native to callouts meaning that the developers need to code this feature in. So if they didn't code the department specific feature it probably won't work. Keep in mind I don't usually write callouts so I'm just going off of what I have been able to look up

I would like to believe that. But it doe's not say that in the documents.

 

af14d617403b673dfceb99d575a11fc9.png

 

Really need a dev to clarify this...

Link to comment
Share on other sites

  • 0
  • Community Administrator

The callout developer doesn't have to make it so that it's department specific. You just need the correct class name for the callout which you will likely have to get from the developer if it's not an open source callout.

Cipher2.png

 

Community Administrator

Link to comment
Share on other sites

  • 0
42 minutes ago, TheCipher01 said:

The callout developer doesn't have to make it so that it's department specific. You just need the correct class name for the callout which you will likely have to get from the developer if it's not an open source callout.

Even if its a single callout I still need the class name?

 

Thank you.

Link to comment
Share on other sites

  • 0
30 minutes ago, xIconikkx said:

Even if its a single callout I still need the class name?

 

Thank you.

I just did this. I got the same callout on Department 1 & 10.

 

This is the class name from the .dll file for Tresspassing

 

681a541fdd5b5c5749aae42766a0b4fe.png

 

 

{
		"Trespassing": {
		"IgnoreDistance": false,
		"MinTimeout": 0,
		"Probability": 2,
		"Departments": [10]
	}
}

 

Link to comment
Share on other sites

  • 0

Okay have some clarification, those values are built into FivePD so you can add a config to any callout. You need the class name of the call-out as @TheCipher01stated

Link to comment
Share on other sites

  • 0

It appears you are using DotPeek. If you are just getting the class names of the callouts, they are here on the left hand sideimage.thumb.png.ff6402b98286a9d6964720661b74431e.pngimage.png.8c27ad51f3e44f41da7f974109b0a677.png

 

For example in my Bar Fights callout pack, they are BarFightNonViolent and BarFightViolent

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

Thanks for visiting GPM. As a user of the GTAPoliceMods platform, we ask that you review the Terms of Use, Privacy Policy, and Guidelines. These principles allow us to continue fostering a great community. We have placed cookies on your device to help improve your experience. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.