This is the command used to trigger or access the MDT.
Copy Config.Command = 'mdt'
Does security checks to see if the user is allowed to perform an action.
This can be turned on to prevent injectors.
Copy Config.SecurityChecks = true
incidents
: Allows officers to view only incidents from colleagues in their department.
reports
: Allows officers to view only reports from colleagues in their department.
evidence
: Allows officers to view only evidence from colleagues in their department.
staff
: Allows officers to view only staff members in their department.
announcements
: Allows officers to view only announcements made in their department.
recent
: Allows officers to view only recent activity in their department.
shared
: Specifies which departments can see each other's data.
Example: [0] = { 1 }
means department 0 can view department 1's data.
Copy Config.DepartmentViews = {
incidents = true,
reports = true,
evidence = true,
staff = true,
announcements = true,
recent = true,
shared = {
[0] = { 1 },
[1] = { 0 }
}
}
This table defines the representation of gender values stored in the database.
Each gender has an associated numeric value which si used as a key in this table.
When retrieving a gender from the database using its numeric value, the corresponding string value from this table will be used to provide a readable gender label.
Copy Config.Genders = {
[0] = 'Male',
[1] = 'Female',
[2] = 'Helicopter'
}
Retrieves specified columns from the vehicle table and formats them for display, showcasing the associated data.
Copy Config.VehicleData = {
{ column = "fakeplate", label = "Known fake plate {fakeplate}", enabled = true },
{ column = "garage", label = "Parked at {garage}", enabled = true },
{ column = "fuel", label = "Fuel {fuel}%", enabled = true },
{ column = "engine", label = "Engine health {engine}", enabled = true },
{ column = "body", label = "Body health {body}", enabled = true },
{ column = "state", label = "State {state}", enabled = true },
{ column = "depotprice", label = "Depot price {depotprice}", enabled = true },
{ column = "drivingdistance", label = "Milage {drivingdistance}", enabled = true },
{ column = "status", label = "Status {status}", enabled = true }
}
Configures columns and their data types for the in-game database, providing customization flexibility based on user preferences. It breaks down into three sections:
roster : Specifies roles and details for staff members, such as their responsibilities and status.
academy : Details training and skills assessment, indicating what a staff member has accomplished or needs to complete.
database : Records disciplinary actions, capturing details of infractions, the subsequent actions taken, and their resolution.
Each entry within these sections outlines the column's name, its display label, the data type, and default values, ensuring the database effectively serves the in-game pages' requirements.
Copy Config.StaffTables = {
roster = {
{ column = "apu", label = "APU", type = "checkbox", default = false },
{ column = "air", label = "AIR", type = "checkbox", default = false },
{ column = "mc", label = "MC", type = "checkbox", default = false },
{ column = "k9", label = "K9", type = "checkbox", default = false },
{ column = "fto", label = "FTO", type = "checkbox", default = false },
{ column = "strikes", label = "Strikes", type = "input-number", default = 0 },
{ column = "responsibilities", label = "Responsibilities", type = "input", default = "Default Text" },
{
column = "status",
label = "Status",
type = "select",
default = 0,
options = {
{ value = 0, label = "Pending" },
{ value = 1, label = "Resolved" },
{ value = 2, label = "Under Review " }
}
},
{ column = "notes", label = "Notes", type = "input-textarea", default = "" }
},
academy = {
{ column = "intro_course", label = "Intro course", type = "checkbox", default = false },
{ column = "mdt_access", label = "MDT Access", type = "checkbox", default = false },
{ column = "driving", label = "Driving", type = "checkbox", default = false },
{ column = "shooting_training", label = "Shooting Training", type = "checkbox", default = false },
{ column = "writing", label = "Writing", type = "checkbox", default = false },
{ column = "rights", label = "Rights", type = "checkbox", default = false },
{ column = "theory_test", label = "Theory Test", type = "checkbox", default = false },
{ column = "practical_test", label = "Practical Test", type = "checkbox", default = false },
{ column = "notes", label = "Notes", type = "input-textarea", default = "" }
},
database = {
{ column = "date_of_infaction", label = "Date of Infraction", type = "date", default = nil },
{ column = "description_of_infaction", label = "Description of Infraction", type = "input-textarea", default = "" },
{ column = "disciplinary_action_taken", label = "Disciplinary Action Taken", type = "input", default = "" },
{
column = "status",
label = "Status",
type = "select",
default = 0,
options = {
{ value = 0, label = "Pending" },
{ value = 1, label = "Resolved" },
{ value = 2, label = "Under Review " }
}
},
{
column = "severity_level",
label = "Severity Level",
type = "select",
default = 0,
options = {
{ value = 0, label = "Minor" },
{ value = 1, label = "Moderate" },
{ value = 2, label = "Serious" }
}
},
{ column = "supervisor", label = "Supervisor", type = "input", default = "" },
{ column = "date_of_resolution", label = "Date of Resolution", type = "date", default = nil },
{ column = "notes", label = "Notes", type = "input-textarea", default = "" }
},
}
Specifies the frequency for automated checks in the system.
Copy Config.Cron = {
prints = {
start = true,
execute = true,
wait = true,
expired = true,
update = true
},
timers = {
bolos = 5,
warrants = 5,
announcements = 30,
officers = 1
}
}
A table that maps numerical indexes to specific vehicle color descriptions, ensuring consistent color references for vehicles.
Copy VehicleColor = {
[0] = "Metallic Black",
[1] = "Metallic Graphite Black",
[2] = "Metallic Black Steal",
[3] = "Metallic Dark Silver",
[4] = "Metallic Silver",
[5] = "Metallic Blue Silver",
[6] = "Metallic Steel Gray",
[7] = "Metallic Shadow Silver",
[8] = "Metallic Stone Silver",
[9] = "Metallic Midnight Silver",
[10] = "Metallic Gun Metal",
[11] = "Metallic Anthracite Grey",
[12] = "Matte Black",
[13] = "Matte Grey",
[14] = "Matte Light Grey",
[15] = "Util Black",
[16] = "Util Black Poly",
[17] = "Util Dark silver",
[18] = "Util Silver",
[19] = "Util Gun Metal",
[20] = "Util Shadow Silver",
[21] = "Worn Black",
[22] = "Worn Graphite",
[23] = "Worn Silver Grey",
[24] = "Worn Silver",
[25] = "Worn Blue Silver",
[26] = "Worn Shadow Silver",
[27] = "Metallic Red",
[28] = "Metallic Torino Red",
[29] = "Metallic Formula Red",
[30] = "Metallic Blaze Red",
[31] = "Metallic Graceful Red",
[32] = "Metallic Garnet Red",
[33] = "Metallic Desert Red",
[34] = "Metallic Cabernet Red",
[35] = "Metallic Candy Red",
[36] = "Metallic Sunrise Orange",
[37] = "Metallic Classic Gold",
[38] = "Metallic Orange",
[39] = "Matte Red",
[40] = "Matte Dark Red",
[41] = "Matte Orange",
[42] = "Matte Yellow",
[43] = "Util Red",
[44] = "Util Bright Red",
[45] = "Util Garnet Red",
[46] = "Worn Orange",
[47] = "Worn Light Orange",
[48] = "Metallic Securicor Green",
[49] = "Metallic Dark Green",
[50] = "Metallic Gasoline Blue Green",
[51] = "Matte Lime Green",
[52] = "Util Dark Green",
[53] = "Util Green",
[54] = "Worn Dark Green",
[55] = "Worn Green",
[56] = "Worn Sea Wash",
[57] = "Metallic Midnight Blue",
[58] = "Metallic Dark Blue",
[59] = "Metallic Saxony Blue",
[60] = "Metallic Blue",
[61] = "Metallic Mariner Blue",
[62] = "Metallic Harbor Blue",
[63] = "Metallic Diamond Blue",
[64] = "Metallic Surf Blue",
[65] = "Metallic Nautical Blue",
[66] = "Metallic Bright Blue",
[67] = "Metallic Purple Blue",
[68] = "Metallic Spinnaker Blue",
[69] = "Metallic Ultra Blue",
[70] = "Metallic Bright Midnight Blue",
[71] = "Gloss Black",
[72] = "Worn Dark Red",
[73] = "Worn Red",
[74] = "Worn Golden Red",
[75] = "Worn Dark Brown",
[76] = "Worn Brown",
[77] = "Worn Straw Beige",
[78] = "Worn Dark Blue",
[79] = "Worn Blue",
[80] = "Worn Light Blue",
[81] = "Metallic Taxi Yellow",
[82] = "Metallic Race Yellow",
[83] = "Metallic Bronze",
[84] = "Metallic Yellow Bird",
[85] = "Metallic Lime",
[86] = "Metallic Champagne",
[87] = "Metallic Pueblo Beige",
[88] = "Metallic Dark Ivory",
[89] = "Metallic Choco Brown",
[90] = "Metallic Golden Brown",
[91] = "Metallic Light Brown",
[92] = "Metallic Straw Beige",
[93] = "Metallic Moss Brown",
[94] = "Metallic Biston Brown",
[95] = "Metallic Beechwood",
[96] = "Metallic Dark Beechwood",
[97] = "Metallic Choco Orange",
[98] = "Metallic Beach Sand",
[99] = "Metallic Sun Bleeched Sand",
[100] = "Metallic Cream",
[101] = "Util Brown",
[102] = "Util Medium Brown",
[103] = "Util Light Brown",
[104] = "Metallic White",
[105] = "Metallic Frost White",
[106] = "Worn Honey Beige",
[107] = "Worn Brown",
[108] = "Worn Dark Brown",
[109] = "Worn straw beige",
[110] = "Brushed Steel",
[111] = "Brushed Black steel",
[112] = "Brushed Aluminium",
[113] = "Chrome",
[114] = "Worn Off White",
[115] = "Util Off White",
[116] = "Worn Orange",
[117] = "Worn Light Orange",
[118] = "Metallic Securicor Green",
[119] = "Worn Taxi Yellow",
[120] = "police car blue",
[121] = "Matte Green",
[122] = "Matte Brown",
[123] = "Matte White",
[124] = "Worn White",
[125] = "Worn Olive Army Green",
[126] = "Metallic Pea Green",
[127] = "Metallic Bright Blue",
[128] = "Metallic Olive Drab Green",
[129] = "Metallic Dark Earth",
[130] = "Metallic Desert Tan",
[131] = "Metallic Foilage Green",
[132] = "DEFAULT ALLOY COLOR",
[133] = "Epsilon Blue",
[134] = "Pure Gold",
[135] = "Brushed Gold",
[136] = "Secret Gold",
[137] = "Dark Green",
[138] = "Metallic Racing Green",
[139] = "Sea Green",
[140] = "Olive Green",
[141] = "Green",
[142] = "Matte Lime Green",
[143] = "Yellow",
[144] = "Metallic Off White",
[145] = "Yellow",
[146] = "Lime Green",
[147] = "Forest Green",
[148] = "Lime Green",
[149] = "Dark Green",
[150] = "Bright Purple",
[151] = "Muted Pink",
[152] = "Bright Pink",
[153] = "Currant Pink",
[154] = "Fuchsia",
[155] = "Hot Pink",
[156] = "Pinky",
[157] = "Bright Pink",
[158] = "Purple",
[159] = "Muted Pink"
}