1
0
Fork 0
forked from Simnation/Main
Main/resources/[jobs]/[police]/[spy-bodycam]/spy-bodycam/config.lua

126 lines
5.7 KiB
Lua
Raw Normal View History

2025-07-12 18:56:43 +02:00
-- ███████╗██████╗ ██╗ ██╗ ██████╗ ██████╗ ██████╗ ██╗ ██╗ ██████╗ █████╗ ███╗ ███╗
-- ██╔════╝██╔══██╗╚██╗ ██╔╝ ██╔══██╗██╔═══██╗██╔══██╗╚██╗ ██╔╝██╔════╝██╔══██╗████╗ ████║
-- ███████╗██████╔╝ ╚████╔╝ ██████╔╝██║ ██║██║ ██║ ╚████╔╝ ██║ ███████║██╔████╔██║
-- ╚════██║██╔═══╝ ╚██╔╝ ██╔══██╗██║ ██║██║ ██║ ╚██╔╝ ██║ ██╔══██║██║╚██╔╝██║
-- ███████║██║ ██║ ██████╔╝╚██████╔╝██████╔╝ ██║ ╚██████╗██║ ██║██║ ╚═╝ ██║
-- ╚══════╝╚═╝ ╚═╝ ╚═════╝ ╚═════╝ ╚═════╝ ╚═╝ ╚═════╝╚═╝ ╚═╝╚═╝ ╚═╝
Config = Config or {}
Config.Framework = 'qb' -- qb | esx
if Config.Framework == 'qb' then -- Dont touch this part
QBCore = exports["qb-core"]:GetCoreObject()
elseif Config.Framework == 'esx' then
ESX = exports.es_extended:getSharedObject()
end
Config.Dependency = {
UseTarget = 'qb', -- qb | ox
UseInventory = 'qb', -- qb | ox | esx
UseProgress = 'qb', -- qb | ox | esx
UseMenu = 'qb', -- qb | ox | esx
UseNotify = 'qb', -- qb | ox | esx
2025-07-27 04:11:33 +02:00
UseAppearance = 'illenium', -- qb | illenium | false
2025-07-12 18:56:43 +02:00
}
Config.ExitCamKey = 'BACK'
2025-07-27 04:20:29 +02:00
Config.RecordHotkey = 'F1' -- Hotkey for bodycam recording
2025-07-27 04:11:33 +02:00
Config.DashcamHotkey = 'F10' -- Hotkey for dashcam recording
Config.EnableRecordingHotkeys = true -- Enable/disable hotkey functionality
2025-07-12 18:56:43 +02:00
Config.CameraEffect = {
bodycam = 'Island_CCTV_ChannelFuzz',
dashcam = 'TinyRacerMoBlur',
}
Config.ForceViewCam = false -- Forces cam view to first person when recording.
Config.RecordTime = 30 --Recording Time | 30 = 30 seconds | [*note: Dont increase the time too much or it may not upload to any service you are using for example - discord.]
Config.PropLoc = { -- Change prop position according to ur clothing pack.
male = {
bone = 24818,
pos = vector3(0.16683200771922, 0.11320925137666, 0.11986595654326),
rot = vector3(-14.502323044318, 82.191095946679, -164.22066869048),
},
female = {
bone = 24818,
pos = vector3(0.16683200771922, 0.11320925137666, 0.11986595654326),
rot = vector3(-14.502323044318, 82.191095946679, -164.22066869048),
},
}
Config.AllowedJobs = { -- Only these jobs can use bodycam/dashcam item.
'police',
'ambulance',
2025-07-12 19:38:19 +02:00
'marshal',
2025-07-12 18:56:43 +02:00
}
Config.AllowedClass = {18} -- Vehicle classes allowed to use the dashcam feature.
Config.WatchLoc = {
[1] = {
coords = vector3(440.149445, -979.437378, 30.453491),
rad = 1.5,
debug = false,
jobCam = {'police','ambulance'}, -- jobs mentioned here are shown in the list | false = able to view all the bodycams
carCam = { -- false = able to view all the dashcams
job = {'police'}, -- Jobs that activate dashcams shown in the list | false excludes.
class = {18} -- Dashcam activated on these vehicleclass shown in the list | false excludes.
},
targetAuth = {'police'}, -- jobs mentioned here can use this location from target | false = everyone can access this location
}, -- You can add more locations
}
2025-07-12 19:38:19 +02:00
Config.DebugCamera = true -- Make it true if you want to get new camera offset for some vehicle.
2025-07-12 18:56:43 +02:00
Config.VehCamOffset = {
2025-07-12 19:38:19 +02:00
[`umhellfire1rb`] = {0.000000, 0.330000, 0.530000},
[`ll1rb `] = {0.000000, 0.330000, 0.530000},
[`ll2rb `] = {0.000000, 0.330000, 0.530000},
[`ll3rb `] = {0.000000, 0.330000, 0.530000},
[`ll4rb `] = {0.000000, 0.330000, 0.530000},
[`ll5rb `] = {0.000000, 0.330000, 0.530000},
[`ll6rb `] = {0.000000, 0.330000, 0.530000},
[`ll7rb `] = {0.000000, 0.330000, 0.530000},
[`sll1rb `] = {0.000000, 0.330000, 0.530000},
[`sll2rb `] = {0.000000, 0.330000, 0.530000},
[`sll3rb `] = {0.000000, 0.330000, 0.530000},
[`sll4rb `] = {0.000000, 0.330000, 0.530000},
[`sll5rb `] = {0.000000, 0.330000, 0.530000},
[`sll6rb `] = {0.000000, 0.330000, 0.530000},
[`sll7rb `] = {0.000000, 0.330000, 0.530000},
[`20expk9rb `] = {0.000000, 0.330000, 0.530000},
[`poltaxi `] = {0.000000, 0.330000, 0.530000},
[`23gtruckrb `] = {0.000000, 0.330000, 0.530000},
2025-07-12 18:56:43 +02:00
-- [`18chgr2`] = {0.000000, 0.510000, 0.630000}, -- Example vehicle. The script comes with its own offset finder just set DebugCamera to true and get the offset.
-- [`vehiclespawncode`] = {0.000000, 0.510000, 0.630000},
}
-- Vehicle Classes:
-- 0: Compacts
-- 1: Sedans
-- 2: SUVs
-- 3: Coupes
-- 4: Muscle
-- 5: Sports Classics
-- 6: Sports
-- 7: Super
-- 8: Motorcycles
-- 9: Off-road
-- 10: Industrial
-- 11: Utility
-- 12: Vans
-- 13: Cycles
-- 14: Boats
-- 15: Helicopters
-- 16: Planes
-- 17: Service
-- 18: Emergency
-- 19: Military
-- 20: Commercial
-- 21: Trains
2025-07-27 04:11:33 +02:00
-- 22: Open Wheel