-- off record
if isKeyJustPressed(VK_O) and not sampIsChatInputActive() and videoCapture == true then
setAudioStreamState(StopRecordSound, ev.PLAY)
print("end recording")
videoCapture = false
if bNotf then
notf.addNotification(u8("Recording stopped."), 4, 1)
end
end
-- on recording with hands
if isKeyJustPressed(VK_I) and not sampIsChatInputActive() and videoCapture == false then
setAudioStreamState(StartRecordSound, ev.PLAY)
print("start recording")
videoCapture = true
if bNotf then
notf.addNotification(u8("Recording started!"), 4, 1)
end
end