Skip to main content
Branch: Development

Permission system

What are permissions

Permissions are defined individually for each resource and must be accepted by users when joining the server. Permissions determine the specific actions and capabilities that users are granted within a resource, such as accessing certain features or performing restricted actions.

Permission types

PermissionDescription
Screen CaptureThis allows a screenshot to be taken of the alt:V process (just GTA) and any webview
WebRTCThis allows peer-to-peer RTC inside JS
Clipboard AccessThis allows to copy content to users clipboard
Extended Voice APIThis allows to manually control voice, like activating of microphone, muting, etc. by the server

Required and optional permissions

Permissions can be categorized as optional or required. Optional permissions allow players to join the server even if they choose not to grant those permissions, but they will be limited in accessing the corresponding features. On the other hand, required permissions are essential for server access, and if users decline them, they will be unable to connect to the server.

required-permissions = [
"Screen Capture",
"WebRTC"
]

optional-permissions = [
"Clipboard Access"
]