Advertisement
Guest User

Phynix | px_police/shared/config.lua

a guest
Jun 13th, 2023
95
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 14.52 KB | None | 0 0
  1. Sh_Config = {
  2.   locale = "en_US_",
  3.  
  4.   exclusionZone911 = {
  5.     { coords = vector3(1713.17, 2586.68, 59.88), distance = 250.0 },
  6.     { coords = vector3(-106.63, 6467.72 , 31.62), distance = 45.0 },
  7.     { coords = vector3(251.21, 217.45, 106.28), distance = 20.0 },
  8.     { coords = vector3(-622.25, -230.93, 38.05), distance = 10.0 },
  9.     { coords = vector3(699.91, 132.29, 80.74), distance = 55.0 },
  10.     { coords = vector3(2739.55, 1532.99, 57.56), distance = 235.0 },
  11.     { coords = vector3(12.53, -1097.99, 29.8), distance = 10.0 },
  12.   },
  13.   enabledCalls = {
  14.     assault = true,
  15.     gunshots = true
  16.   },
  17.   barriers = {
  18.     types = {
  19.       ['Barrier'] = `prop_barrier_work05`,
  20.       ['Cone'] = `prop_mp_cone_01`
  21.     },
  22.     options = {
  23.       options = {'Barrier', 'Cone'},
  24.       index = 1,
  25.       rotation = 0.0
  26.     },
  27.     create = {
  28.       options = {'Barrier', 'Cone'},
  29.       index = 1,
  30.       rotation = 0.0
  31.     },
  32.     delete = {
  33.       range = 10.0
  34.     },
  35.     speedZoneRanges = {
  36.       [`prop_barrier_work05`] = {
  37.         [3.0] = 0.0,
  38.         [10.0] = 2.0,
  39.         [15.0] = 3.0,
  40.         [20.0] = 5.0,
  41.         [30.0] = 10.0,
  42.         [50.0] = 15.0,
  43.         [150.0] = 17.5,
  44.         [200.0] = 20.0,
  45.         [250.0] = 25.0,
  46.       },
  47.       [`prop_mp_cone_01`] = {
  48.         [15.0] = 8.0,
  49.         [20.0] = 10.0,
  50.         [50.0] = 12.5,
  51.         [60.0] = 15.0,
  52.         [75.0] = 18.5,
  53.         [150.0] = 20.0,
  54.         [250.0] = 25.0,
  55.       }
  56.     }
  57.   },
  58.   fallWhenCuffRunning = true,
  59.   items = {
  60.     handcuffs = "handcuffs"
  61.   },
  62.   cuffEscapeGameDuration = function(escapeIterations)
  63.     return math.random(1500, 2500) / math.random(1, escapeIterations);
  64.   end,
  65.   evidenceStates = {
  66.     [1] = { text = "Red hands", status = false, timer = 0 },
  67.     [2] = { text = "Dialated eyes", status = false, timer = 0 },
  68.     [3] = { text = "Red eyes", status = false, timer = 0 },
  69.     [4] = { text = "Smells like marijuana", status = false, timer = 0 },
  70.     [5] = { text = "Fresh bandaging", status = false, timer = 0 },
  71.     [6] = { text = "Agitated behavior", status = false, timer = 0 },
  72.     [7] = { text = "Uncoordinated movement", status = false, timer = 0 },
  73.     [8] = { text = "Breaths smells like alcohol", status = false, timer = 0 },
  74.     [9] = { text = "Smells like gasoline", status = false, timer = 0 },
  75.     [10] = { text = "Gunpowder residue on hands", status = false, timer = 0, special = true },
  76.     [11] = { text = "Ink stained hands", status = false, timer = 0 },
  77.     [12] = { text = "Smells like smoke", status = false, timer = 0 },
  78.     [13] = { text = "Has camping equipment", status = false, timer = 0 }, -- UNUSED
  79.     [14] = { text = "Smells like cigarette smoke", status = false, timer = 0 },
  80.     [15] = { text = "Labored breathing", status = false, timer = 0 },
  81.     [16] = { text = "Body sweat", status = false, timer = 0 },
  82.     [17] = { text = "Clothing sweat", status = false, timer = 0 },
  83.     [18] = { text = "Saturated clothing", status = false, timer = 0 },
  84.     [19] = { text = "Seatbelt", status = false, timer = 0 },
  85.     [20] = { text = "Irritated skin", status = false, timer = 0 },
  86.     [21] = { text = "Bloody hands", status = false, timer = 0 },
  87.     [22] = { text = "Hands smell like animal bait", status = false, timer = 0 }
  88.   },
  89.   evidenceMarkers = {
  90.     [1] = {type = 36, rgb = false, scale = vector3(0.5, 0.5, 0.5), rot = vector3(0.0, 0.0, 0.0), cam = 1},
  91.     [2] = {type = 28, rgb = {153, 46, 46}, scale = vector3(0.1, 0.1, 0.1), rot = vector3(0.0, 0.0, 0.0), cam = 1},
  92.     [3] = {type = 0, rgb = {9, 66, 237}, scale = vector3(0.2, 0.2, 0.2), rot = vector3(0.0, 0.0, 0.0), cam = 0},
  93.     [4] = {type = 2, rgb = {230, 222, 119}, scale = vector3(0.2, 0.2, 0.2), rot = vector3(0.0, 0.0, 0.0), cam = 1},
  94.     [5] = {type = 31, rgb = {242, 105, 36}, scale = vector3(0.4, 0.4, 0.4), rot = vector3(0.0, 0.0, 0.0), cam = 1},
  95.     [6] = {type = 42, rgb = {177, 36, 242}, scale = vector3(0.4, 0.4, 0.4), rot = vector3(0.0, 0.0, 0.0), cam = 1}
  96.   },
  97.   weaponTypes = {
  98.     [416676503] = "Pistols",
  99.     [690389602] = "Stun Guns",
  100.     [-957766203] = "SMGs",
  101.     [970310034] = "Rifles",
  102.     [-1212426201] = "Snipers",
  103.     [860033945] = "Shotguns"
  104.   },
  105.   policeJobs = { "police", "fib" },
  106.   jobRespectRelations = { "police", "fib", "ems", "judge" },
  107.   emergencyJobs = { "police", "fib", "ems", "doctor" },
  108.   dutyLocations = {
  109.     {
  110.       center = vector3(441.99, -981.9, 30.69), length = 0.9, width = 1.09, options = { -- pdduty1
  111.         heading = 1,
  112.         minZ = 30.64,
  113.         maxZ = 31.04,
  114.       }
  115.     },
  116.     {
  117.       center = vector3(-1106.52, -845.45, 19.32), length = 2.8, width = 0.35, options = { -- vespuccipdduty1
  118.         heading = 38,
  119.         minZ = 18.32,
  120.         maxZ = 21.07,
  121.       }
  122.     },
  123.     {
  124.       center = vector3(638.29, 3.21, 82.79), length = 2.45, width = 0.35, options = { -- downtownvinewoodpdduty1
  125.         heading = 340,
  126.         minZ = 81.59,
  127.         maxZ = 85.09,
  128.       }
  129.     },
  130.     {
  131.       center = vector3(384.52, 800.23, 187.68), length = 0.65, width = 1.25, options = { -- parkrangerduty1
  132.         heading = 0,
  133.         minZ = 186.68,
  134.         maxZ = 188.98,
  135.       }
  136.     },
  137.     {
  138.       center = vector3(837.28, -1289.16, 28.24), length = 2.4, width = 0.8, options = { -- la mesa
  139.         heading = 90,
  140.         minZ = 24.64,
  141.         maxZ = 28.64
  142.       }
  143.     },
  144.     {
  145.       center = vector3(377.16, -1605.85, 30.05), length = 1.2, width = 2.4, options = { -- gotham
  146.         heading = 50,
  147.         minZ = 26.85,
  148.         maxZ = 30.85
  149.       }
  150.     },
  151.     {
  152.       center = vector3(1833.55, 3678.64, 34.19), length = 1.0, width = 3.0, options = { -- sandy
  153.         heading = 30,
  154.         minZ = 31.39,
  155.         maxZ = 35.39
  156.       }
  157.     },
  158.     {
  159.       center = vector3(-447.11, 6013.55, 32.29), length = 1.0, width = 1.8, options = { -- paleto
  160.         heading = 45,
  161.         minZ = 28.69,
  162.         maxZ = 32.69
  163.       }
  164.     }
  165.   },
  166.   armories = {
  167.     {
  168.       center = vector3(-1108.23, -843.17, 19.32), length = 0.25, width = 2.8, options = { -- vespuccipdarmory1
  169.         heading = 308,
  170.         minZ = 18.12,
  171.         maxZ = 21.02,
  172.       }
  173.     },
  174.     {
  175.       center = vector3(371.18, -1613.05, 29.29), length = 0.25, width = 1.2, options = { -- ranchopdarmory1
  176.         heading = 320,
  177.         minZ = 28.09,
  178.         maxZ = 30.54,
  179.       }
  180.     },
  181.     {
  182.       center = vector3(827.73, -1289.47, 28.24), length = 1.1, width = 0.2, options = { -- lamesapdarmory1
  183.         heading = 0,
  184.         minZ = 27.04,
  185.         maxZ = 29.49,
  186.       }
  187.     },
  188.     {
  189.       center = vector3(637.35, 0.84, 82.79), length = 2.35, width = 0.25, options = { -- downtownvinewoodarmory1
  190.         heading = 340,
  191.         minZ = 81.79,
  192.         maxZ = 85.09,
  193.       }
  194.     },
  195.     {
  196.       center = vector3(387.52, 800.2, 187.68), length = 0.65, width = 1.55, options = { -- parkrangerarmory1
  197.         heading = 0,
  198.         minZ = 186.68,
  199.         maxZ = 188.68,
  200.       }
  201.     },
  202.     {
  203.       center = vector3(484.02, -994.8, 30.69), length = 0.5, width = 8.15, options = { -- pdarmory1
  204.         heading = 0,
  205.         minZ = 30.29,
  206.         maxZ = 31.89,
  207.       }
  208.     },
  209.     {
  210.       center = vector3(836.05, -1287.17, 28.24), length = 0.2, width = 3.4, options = { -- la mesa
  211.         heading = 90,
  212.         minZ = 27.24,
  213.         maxZ = 29.64
  214.       }
  215.     },
  216.     {
  217.       center = vector3(365.38, -1603.98, 25.45), length = 1, width = 4.2, options = { -- gotham
  218.         heading = 50,
  219.         minZ = 23.25,
  220.         maxZ = 27.25
  221.       }
  222.     },
  223.     {
  224.       center = vector3(1836.32, 3685.45, 34.19), length = 1, width = 4.2, options = { -- sandy
  225.         heading = 120,
  226.         minZ = 31.99,
  227.         maxZ = 35.99
  228.       }
  229.     },
  230.     {
  231.       center = vector3(-449.54, 6012.85, 37.0), length = 3.2, width = 1.0, options = { -- paleto
  232.         heading = 45,
  233.         minZ = 36.0,
  234.         maxZ = 38.8
  235.       }
  236.     }
  237.   },
  238.   lockers = {
  239.     {
  240.       center = vector3(381.07, 800.21, 187.68), length = 0.7, width = 1.7, options = { -- parkrangerlocker1
  241.         heading = 0,
  242.         minZ = 186.68,
  243.         maxZ = 188.58,
  244.       }
  245.     },
  246.     {
  247.       center = vector3(462.04, -995.37, 30.69), length = 0.6, width = 4.55, options = { -- pdlocker2
  248.         heading = 0,
  249.         minZ = 29.69,
  250.         maxZ = 32.49,
  251.       }
  252.     },
  253.     {
  254.       center = vector3(462.01, -1000.19, 30.69), length = 0.55, width = 4.55, options = { -- pdlocker1
  255.         heading = 0,
  256.         minZ = 29.49,
  257.         maxZ = 32.49,
  258.       }
  259.     },
  260.     {
  261.       center = vector3(153.79, -751.71, 45.75), length = 0.55, width = 3.3, options = { -- fiblocker1
  262.         heading = 340,
  263.         minZ = 44.75,
  264.         maxZ = 47.7,
  265.       }
  266.     },
  267.     {
  268.       center = vector3(851.9, -1312.34, 28.24), length = 1.0, width = 4.2, options = { -- la mesa
  269.         heading = 90,
  270.         minZ = 25.44,
  271.         maxZ = 29.44
  272.       }
  273.     },
  274.     {
  275.       center = vector3(360.48, -1591.82, 25.45), length = 1.0, width = 4.6, options = { -- gotham
  276.         heading = 50,
  277.         minZ = 22.45,
  278.         maxZ = 26.45
  279.       }
  280.     },
  281.     {
  282.       center = vector3(1842.5, 3681.21, 34.19), length = 4.6, width = 1.0, options = { -- sandy
  283.         heading = 30,
  284.         minZ = 31.39,
  285.         maxZ = 35.39
  286.       }
  287.     },
  288.     {
  289.       center = vector3(-439.85, 6011.83, 37.0), length = 0.6, width = 4.4, options = { -- paleto
  290.         heading = 45,
  291.         minZ = 36.0,
  292.         maxZ = 38.2
  293.       }
  294.     }
  295.   },
  296.   evidenceRooms = {
  297.     {
  298.       center = vector3(154.24, -755.37, 45.75), length = 3.15, width = 0.4, options = { -- fibevidence1
  299.         heading = 340,
  300.         minZ = 44.75,
  301.         maxZ = 47.7,
  302.       }
  303.     },
  304.     {
  305.       center = vector3(384.38, 793.96, 190.49), length = 2.1, width = 0.55, options = { -- parkrangerevidence1
  306.         heading = 0,
  307.         minZ = 189.49,
  308.         maxZ = 191.09,
  309.       }
  310.     },
  311.     {
  312.       center = vector3(475.79, -995.36, 26.27), length = 4.9, width = 0.95, options = { -- pdevidence1
  313.         heading = 0,
  314.         minZ = 23.52,
  315.         maxZ = 27.52,
  316.       }
  317.     },
  318.     {
  319.       center = vector3(471.91, -995.34, 26.27), length = 4.95, width = 0.9, options = { -- pdevidence2
  320.         heading = 0,
  321.         minZ = 23.52,
  322.         maxZ = 27.52,
  323.       }
  324.     },
  325.     {
  326.       center = vector3(1830.98, 3679.51, 38.86), length = 0.6, width = 3.4, options = { -- sandy
  327.         heading = 210,
  328.         minZ = 37.76,
  329.         maxZ = 39.76
  330.       }
  331.     },
  332.     {
  333.       center = vector3(-453.41, 5999.99, 37.01), length = 0.8, width = 3.2, options = { -- paleto
  334.         heading = 45,
  335.         minZ = 36.01,
  336.         maxZ = 37.21
  337.       }    
  338.     },
  339.     {
  340.       center = vector3(848.61, -1313.41, 28.24), length = 5.4, width = 0.4, options = { -- la mesa
  341.         heading = 270,
  342.         minZ = 27.24,
  343.         maxZ = 29.24
  344.       }
  345.     },
  346.     {
  347.       center = vector3(381.44, -1609.37, 30.2), length = 4.4, width = 0.4, options = { -- gotham
  348.         heading = 320,
  349.         minZ = 29.2,
  350.         maxZ = 31.6
  351.       }    
  352.     }
  353.   },
  354.   impounds = {
  355.     [1] = vector3(-239.44, -1183.91, 23.04),
  356.     [2] = vector3(870.86, -1351.38, 26.31)
  357.   },
  358.   policeDeptBlips = {
  359.     sprite = 60,
  360.     scale = 0.8,
  361.     color = false
  362.   },
  363.   impoundBlips = {
  364.     sprite = 317,
  365.     scale = 0.8,
  366.     color = 82
  367.   },
  368.   policeBadges = {
  369.     ["police"] = {
  370.       model = `prop_lspd_badge`,
  371.       offset = vector3(0.095, -0.03, -0.035),
  372.       rotation = vector3(90.0, 10.0, 130.0),
  373.       label = "Los Santos Police Department"
  374.     },
  375.     ["fib"] = {
  376.       model = `prop_fib_badge`,
  377.       offset = vector3(0.14, 0.04, -0.01),
  378.       rotation = vector3(80.0, -20.0, 130.0),
  379.       label = "Federal Investigation Bureau"
  380.     }
  381.   },
  382.   onSpawnPoliceVeh = function(handle, model)
  383.     if model ~= "firetruk" and model ~= "ambulance" and model ~= "predator" then
  384.       SetVehicleModColor_1(handle, 0, 0, 0)
  385.       SetVehicleModColor_2(handle, 0, 0, 0)
  386.       SetVehicleColours(handle, 0, 0)
  387.     end
  388.   end,
  389.   mdtEntries = {
  390.     ["police"] = { label = "Police Intercepter", org = "LSPD" },
  391.     ["ems"] = { label = "Emergency Ambulance", org = "LSFD" },
  392.     ["fib"] = { label = "Police Intercepter", org = "FIB" },
  393.   },
  394.   maxVehicleTempSeizeDuration = 336, -- in hours
  395.   speedCameraZones = { -- these are just polyzones, edit px_a_props/stream/speedcams/speedcams.ymap to add new camera props (prop_speedcam) physically
  396.     { pos = vector3(290.73, -853.55, 35.07),  length = 55.4,  width = 54.4,   heading = 76.0,   minZ = 28.32,   maxZ = 31.92,   speedLimit = 70.0 },
  397.     { pos = vector3(171.41, -817.06, 67.82),  length = 51.6,  width = 61.2,   heading = 340.0,  minZ = 30.02,   maxZ = 34.02,   speedLimit = 70.0 },
  398.     { pos = vector3(106.93, -998.17, 29.4),   length = 46.2,  width = 45.0,   heading = 340.0,  minZ = 28.2,    maxZ = 32.2,    speedLimit = 70.0 },
  399.     { pos = vector3(220.98, -1043.51, 29.36), length = 53.8,  width = 48.4,   heading = 345.0,  minZ = 28.16,   maxZ = 32.16,   speedLimit = 70.0 },
  400.     { pos = vector3(-98.36, -1139.95, 25.8),  length = 46.2,  width = 59.8,   heading = 355.0,  minZ = 24.6,    maxZ = 28.6,    speedLimit = 70.0 },
  401.     { pos = vector3(407.4, -854.58, 28.92),   length = 45.6,  width = 43.8,   heading = 355.0,  minZ = 28.12,   maxZ = 32.12,   speedLimit = 70.0 },
  402.     { pos = vector3(55.19, -1132.11, 28.92),  length = 46.0,  width = 65.6,   heading = 5.0,    minZ = 27.93,   maxZ = 32.13,   speedLimit = 70.0 },
  403.     { pos = vector3(208.46, -1129.87, 28.92), length = 45.0,  width = 47.6,   heading = 0.0,    minZ = 28.12,   maxZ = 32.12,   speedLimit = 70.0 },
  404.     { pos = vector3(-30.89, -941.46, 28.99),  length = 60.6,  width = 55.8,   heading = 335.0,  minZ = 28.19,   maxZ = 32.19,   speedLimit = 70.0 },
  405.     { pos = vector3(244.05, -624.15, 41.01),  length = 33.4,  width = 45.0,   heading = 340.0,  minZ = 38.41,   maxZ = 45.01,   speedLimit = 70.0 },
  406.     { pos = vector3(310.87, -387.68, 44.82),  length = 64.4,  width = 60.8,   heading = 355.0,  minZ = 44.03,   maxZ = 48.83,   speedLimit = 70.0 },
  407.     { pos = vector3(483.4, -315.42, 46.73),   length = 53.4,  width = 68.4,   heading = 325.0,  minZ = 41.73,   maxZ = 52.13,   speedLimit = 70.0 },
  408.     { pos = vector3(398.11, -1050.96, 28.98), length = 52.0,  width = 32.8,   heading = 0.0,    minZ = 28.18,   maxZ = 32.18,   speedLimit = 70.0 },
  409.     { pos = vector3(-186.26, -890.63, 28.99), length = 51.6,  width = 52.6,   heading = 345.0,  minZ = 27.99,   maxZ = 31.99,   speedLimit = 70.0 },
  410.   },
  411.   speedCameraModel = `prop_speedcam`,
  412.   spikeBlips = {
  413.     sprite = 238,
  414.     scale = 1.2,
  415.     color = false
  416.   },
  417.   spikeModel = `P_ld_stinger_s`,
  418.   policeHelicopters = { `lsfd2`, `buzzard2`, `polmav`, `pd21maverick` }
  419. }
  420.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement