-
Notifications
You must be signed in to change notification settings - Fork 0
Creating a Callout
fivepd-json is the easiest way to make callouts on the fly.
To get started simply make your json file. Example: mycallout.json I would recommend making it a unique json file name because there cannot be more of the same name.
You may also take note that server owners need to add your json file names into a manifest.json file so you should supply these to make it simple for them.
Here's the layout template for your json file. You'll have to keep reading to learn about what's optional, what the options are, and whatnot.
Fork: https://github.com/mega-group/fivepd-json/tree/gh-pages -> edit the callouts.json to include your callout (downloadURL, name, etc) then submit a pull request and wait! We supplied this in-case large websites fail to submit or recognize your callouts as acceptable to be on their website.
{
"version": "",
"updateURL": "",
"shortName": "",
"description": "",
"responseCode": 0,
"weapon": "",
"pedModel": "",
"hasBlip": "",
"blipColor": "",
"behavior": "",
"vehicleModel": "",
"vehiclehasBlip": "",
"heading": 0.0,
"autoEnd": false,
"startDistance": 0.0,
"debug": false,
"suspects": [
{
"pedModel": "",
"hasBlip": "",
"blipColor": "",
"weapon": "",
"vehicleModel": "",
"vehiclehasBlip": "",
"heading": 0.0,
"behavior": "",
"pursuit": false,
"vehicleId": "",
"seatIndex": 0,
"excludeFromTrafficStop": false,
"questions": [
{
"question": null,
"answers": null
}
],
"vehicleData": {
"items": [
{
"Name": "",
"IsIllegal": false
}
],
"licensePlate": "",
"insurance": false,
"registration": false
},
"PedData": {
"firstName": "",
"lastName": "",
"dateOfBirth": "",
"warrant": "",
"address": "",
"gender": "",
"age": 0,
"bloodAlcoholLevel": 0.0,
"usedDrugs": [],
"driverLicense": {
"expiration": "",
"licenseStatus": ""
},
"weaponLicense": {
"expiration": "",
"licenseStatus": ""
},
"huntingLicense": {
"expiration": "",
"licenseStatus": ""
},
"fishingLicense": {
"expiration": "",
"licenseStatus": ""
},
"items": [
{
"Name": "",
"IsIllegal": false
}
],
"violations": [
{
"Offence": "",
"Charge": ""
}
]
}
}
],
"victims": [
{
"pedModel": "",
"behavior": ""
}
],
"location": {
"x": 0.0,
"y": 0.0,
"z": 0.0,
"mode": ""
},
"locations": [
{
"x": 0.0,
"y": 0.0,
"z": 0.0,
"mode": ""
}
],
"questions": [
{
"question": "",
"answers": [
""
]
}
]
}This will change as fivepd-json gets more features
Changes to fivepd-json may also break callouts so keep that in mind.