1
0
Fork 0
forked from Simnation/Main
This commit is contained in:
Nordi98 2025-07-27 04:29:23 +02:00
parent 2f18b63e8e
commit 4d0046b454
2 changed files with 30 additions and 26 deletions

View file

@ -874,6 +874,7 @@ RegisterNetEvent('spy-bodycam:client:refreshRecords',function(records,isBoss)
end) end)
-- Register hotkeys for recording if enabled in config -- Register hotkeys for recording if enabled in config
Citizen.CreateThread(function()
if Config.EnableRecordingHotkeys then if Config.EnableRecordingHotkeys then
-- Bodycam recording hotkey -- Bodycam recording hotkey
RegisterKeyMapping('bodycamrecord', 'Start/Stop bodycam recording', 'keyboard', Config.RecordHotkey) RegisterKeyMapping('bodycamrecord', 'Start/Stop bodycam recording', 'keyboard', Config.RecordHotkey)
@ -883,7 +884,7 @@ if Config.EnableRecordingHotkeys then
else else
NotifyPlayer('Bodycam not activated!', 'error', 2500) NotifyPlayer('Bodycam not activated!', 'error', 2500)
end end
end) end, false)
-- Dashcam recording hotkey -- Dashcam recording hotkey
RegisterKeyMapping('dashcamrecord', 'Start/Stop dashcam recording', 'keyboard', Config.DashcamHotkey) RegisterKeyMapping('dashcamrecord', 'Start/Stop dashcam recording', 'keyboard', Config.DashcamHotkey)
@ -903,8 +904,10 @@ if Config.EnableRecordingHotkeys then
else else
NotifyPlayer('You need to be in a vehicle to use dashcam!', 'error', 2500) NotifyPlayer('You need to be in a vehicle to use dashcam!', 'error', 2500)
end end
end) end, false)
end end
end)
RegisterKeyMapping('bodycamexit', 'Exit bodycam spectate', 'keyboard', Config.ExitCamKey) RegisterKeyMapping('bodycamexit', 'Exit bodycam spectate', 'keyboard', Config.ExitCamKey)
RegisterCommand('bodycamexit', function() RegisterCommand('bodycamexit', function()

View file

@ -217,6 +217,7 @@ RegisterNetEvent('spy-bodycam:server:toggleDashcamRecording', function(netId)
end end
end) end)
RegisterNetEvent('spy-bodycam:server:logVideoDetails', function(videoUrl, streetName, isDashcam) RegisterNetEvent('spy-bodycam:server:logVideoDetails', function(videoUrl, streetName, isDashcam)
local src = source local src = source
local offName local offName