forked from Simnation/Main
ed
This commit is contained in:
parent
2f18b63e8e
commit
4d0046b454
2 changed files with 30 additions and 26 deletions
|
@ -874,6 +874,7 @@ RegisterNetEvent('spy-bodycam:client:refreshRecords',function(records,isBoss)
|
|||
end)
|
||||
|
||||
-- Register hotkeys for recording if enabled in config
|
||||
Citizen.CreateThread(function()
|
||||
if Config.EnableRecordingHotkeys then
|
||||
-- Bodycam recording hotkey
|
||||
RegisterKeyMapping('bodycamrecord', 'Start/Stop bodycam recording', 'keyboard', Config.RecordHotkey)
|
||||
|
@ -883,7 +884,7 @@ if Config.EnableRecordingHotkeys then
|
|||
else
|
||||
NotifyPlayer('Bodycam not activated!', 'error', 2500)
|
||||
end
|
||||
end)
|
||||
end, false)
|
||||
|
||||
-- Dashcam recording hotkey
|
||||
RegisterKeyMapping('dashcamrecord', 'Start/Stop dashcam recording', 'keyboard', Config.DashcamHotkey)
|
||||
|
@ -903,8 +904,10 @@ if Config.EnableRecordingHotkeys then
|
|||
else
|
||||
NotifyPlayer('You need to be in a vehicle to use dashcam!', 'error', 2500)
|
||||
end
|
||||
end)
|
||||
end, false)
|
||||
end
|
||||
end)
|
||||
|
||||
|
||||
RegisterKeyMapping('bodycamexit', 'Exit bodycam spectate', 'keyboard', Config.ExitCamKey)
|
||||
RegisterCommand('bodycamexit', function()
|
||||
|
|
|
@ -217,6 +217,7 @@ RegisterNetEvent('spy-bodycam:server:toggleDashcamRecording', function(netId)
|
|||
end
|
||||
end)
|
||||
|
||||
|
||||
RegisterNetEvent('spy-bodycam:server:logVideoDetails', function(videoUrl, streetName, isDashcam)
|
||||
local src = source
|
||||
local offName
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue