Script API - v1.26.10
    Preparing search index...

    Class PlayerInputPermissions

    Contains APIs to enable/disable player input permissions.

    export class PlayerInputPermissions {
    private constructor();
    isPermissionCategoryEnabled(permissionCategory: InputPermissionCategory): boolean;
    setPermissionCategory(permissionCategory: InputPermissionCategory, isEnabled: boolean): void;
    }
    Index

    Constructors

    Methods

    • Parameters

      Returns boolean

      Returns true if an input permission is enabled.

      This function can't be called in restricted-execution mode.

      This function can throw errors.

      This function can't be called in early-execution mode.

    • Parameters

      Returns void

      Enable or disable an input permission. When enabled the input will work, when disabled will not work.

      This function can't be called in restricted-execution mode.

      This function can throw errors.

      This function can't be called in early-execution mode.