GapCam
Client export
Check whether the local player is using a GapCam camera view.
IsCameraViewActive
Call this client export to check whether the local player has an active live camera view and viewfinder:
local active = exports['402studio_gapcam']:IsCameraViewActive()The return value is true while a GapCam, ActionCam, or DSLR live view is active, and false when it is closed. Use it when coordinating your own client HUD with the camera view.
Start your integration after GapCam. For a required integration, add the dependency to its manifest:
dependency '402studio_gapcam'For an optional integration, check the resource state before calling the export:
local cameraActive = false
if GetResourceState('402studio_gapcam') == 'started' then
cameraActive = exports['402studio_gapcam']:IsCameraViewActive()
endThe export reports the local live-view state. Check Snapshots and recording for capture controls and upload behavior.